Forum Discussion

Nimith's avatar
Nimith
Contributor
11 years ago

Can the test complete scripts be hidden

Hi,

 

I have a setup where in there is a Automation UI which allows the users to select the scripts to run. Once they select the scripts and hit the RUN button, Test Complete is invoked in the background and the corresponding tests are run. 

 

Once the test run is complete, Test Complete process ends and the results are shown in an HTML page. 

 

At present, the Test Complete automation sripts are visible for any user that logs onto that machine and can access the scripts and manipulate them. I want to restrict this action. Is there a way this can be achieved?

 

 

Thanks,

Nimith

5 Replies

  • You might have them use TestExecute instead of TestComplete. Maybe install TestComplete on a different machine and only have TestExecute installed on the one they execute from (with access to the project files). 

     

    TE only lets you run tests, not create/design them. That should solve your problem. I believe you get a TE license when you get TC.


  • At present, the Test Complete automation sripts are visible for any user that logs onto that machine and can access the scripts and manipulate them. I want to restrict this action.


    I agree with the Test Execute approach but that would require additional licensing. If you have IIS on your Test Complete box, why not create a web page that presents the automation selections to kick of Test Complete thus your users no longer need to logon to the Test Complete environment?

    • Nimith's avatar
      Nimith
      Contributor

      Thank you! This looks good. However I have few doubts:

       

      1. Is there a way we can use Test Execute without creating the Project Test Items list in Test Complete?  In Test Execute Help file, it says that we need to have the Test Items list created and then execute the project from Test Execute,

       

      Project_Test_Item.JPG

       

      2. We wont be able to create a Test Item list as the Test can be run in any random order as selected by a user from a UI we developed. 

       

      3. Is there a way where in we can have Test Execute read the tests selected in our UI grid instead of Test Items listed in Test Complete? Below is a screen shot of our UI Grid, where the tests which are needed to be run, are selected.

       

      UI_Sample.JPG

      • jmcpeek's avatar
        jmcpeek
        Contributor

        Let me make sure I understand your set-up...

         

        Right now, your users open a UI Grid where they select N scripts to run from a TC project. Your code then launches TC to run the selected scripts. Is that correct?

         

        If so, it sounds like you're already almost there. You're already calling your TC scripts via command line calls, which is the key. TE and TC use the same command line functionality, so you only need to change your program from testcomplete.exe to testexecute.exe. You don't have to change anything with your project setup to run it through TE instead of TC. Think about it like this: TestComplete is the whole she-bang - create/modify/execute. TestExecute is just the "execute" piece of TC that's been pulled out by itself for portability, scalibility and situations like yours where someone doesn't want end users to have access to manipulate the tests, or don't want to pay the higher price for TC licenses when users only need to run them.

         

        If you're not already launching TC from the command line, let me know and I can provide more detail.