Forum Discussion

jsc's avatar
jsc
Regular Contributor
14 years ago

Disable projects / keyword tests in TestExecute 8 via parameter

Hi all,



My Testenvironment currently is like that:

- System A: implementing automated tests with TestComplete 8 Enterprise

- System B: running automated tests with TestExecute 8

Test files and scripts are under revision control (tortoise SVN)



My Project suite contains ~15 projects. Each Project contains between 1 and 5 keyword tests.

By default all Projects and all test items are enabled.



Is there any possibility when starting TestExecute 8 with the project suite pass parameters to disable some projects or some keyword tests?



My test now runs for ~2.5 hours. If the test keeps growing like in the past weeks, I can't run all projects and keyword tests with each release.

So I want to create a schedule which tests I run by day and run the complete schedule at night. If there is another possibility to achieve this, this would be fine too.



Kind regards,



Joachim
  • Hi,


    You can create a duplicate for each of your project suites. In the original project suite, you will enable all projects and project items. You will run this suite at night. In the duplicated suite, you can enable only the needed projects and items. This suite will be run by day.


    To create a duplicated suite, follow the steps below:

    1. Create a new project suite.

    2. Add the references to the projects of the original project suite to this new project suite. To do this, right-click the project suite node in the Project Explorer, select Add Existing from the context menu and use the ensuing dialog to select the needed project. For more information, please refer to http://smartbear.com/support/viewarticle/11217/.

    3. Specify the projects and tests to be run by the new project suite by using the Test Items page of the project suite editor and by using the Test Items page of the project editor.

  • jsc's avatar
    jsc
    Regular Contributor
    This looks rather complicated and looks like a workaround. The test is automatically called from a server. Isn't it possible to pass parameters to TestExecute to enable / disable projects and testitems upon start?



    Joachim
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    The answer is, simply, no.  



    However, you can send command line parameters to TestExecute to run selective projects.  So, if you have projects A, B, and C in a project suite, you can tell TestExecute to run Project A alone.  



    Within projects, you can tell TestExecute to run specific script routines to execute certain select tests.  So, if you create script routines to run the tests that are indicated by your TestItems, you can call them from the command line as well.



    So, as mentioned, you can't send a command line to TestExecute to disable projects and/or Test Items.  However, you can use the command line to run specific routines and projects.



    See http://smartbear.com/support/viewarticle/10998/ for information about all command-line functions.  The article indicates TestComplete but the same command line arguments are available for TestExecute.
  • Hi Joachim,


    As far as I know, there are no parameters that let you enable or disable several projects or test items in the project suite. If you need to run a single project or a single test, you can do this via the TestExecute command line. However, if you need to specify several projects or test items to run, you need to use the workaround I described in my previous post.

  • jsc's avatar
    jsc
    Regular Contributor
    Hey Martin,



    I think, I will stick to this solution:



    During the setup of the test I will set a global variable ("TestForm" or something like that) and at the start of each test item I ask for some specific value ("short test", "full test",...). So I can specify different schedules just by the variable.



    The drawback is, that the test will be shown in the test result as either red, yellow or green. Currently I prefer throwing a warning "test not executed".



    Is there any posibility to make those test items not appear in the result?

    Or is it possible to make them be shown with another icon (e.g. grey) instead of green, red or yellow?



    Thanks a lot. (I really learned a lot reading all these linked pages)



    Joachim
  • Hi Joachim,


    Unfortunately, there is no way to filter displayed test items in the Log Items panel, as well as to set specific icons for test items. You can only filter messages in the Test Log panel.