Forum Discussion

JeffSm's avatar
JeffSm
Contributor
14 years ago

running specific tests in TestExecute...

I have a question about running specific tests in TestExecute. In TestComplete, I add a bunch of test items in the project. There may be 10 or more test items in the project. When I copy the project to my test PC, and open in TestExecute, when I select Run (from the TestExecute icon in the system tray), I don't get to choose the specific test I may want to run. It runs all checked items in the project. This seem really inflexible, and a big hole in TestExecute. This can be accomplished by running TestExecute from the command line, but I don't want to have the testers remembering a bunch of command line arguments to run a specific test. I've also set this up to run as a distributed test and executed from TestComplete, but the time to set it up, and the actual running is very slow. This also seems to be very error prone. To get around this, I've only selected one test item in the project, saved it, then copied the project file to the test PC, and renamed it to match the test I want to run. This creates a huge amount of overhead though, because I now have to have multiple versions of my project on the test PC. Seems to me that the best way would be for TestExecute to allow running either all scripts selected in the project or a specific script when I run from the system tray.



Am I missing something, or is there a way to accomplish this? I'm running TestComplete 8.0.290.7 and TestExecute 8.0.290.11.



Jeff

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    If you click "Run Project" from TestComplete, the effect is the same.  You don't choose the items to run after you click "Play".



    TestExecute is assuming that you've made any modifications you want to to the project, including checking or unchecking items, before you ask TestExecute to run.  Test items are considered part of the project itself and so they are just run as is.



    Now, as for commandline, rather than necessarily having to have testers remember what to run, I'd modify what you're doing and, instead of renaming the project, I'd create multiple BAT files containing the specified command line to run what you want run.






  • Thanks Robert. I think creating multiple BAT files is probably a cleaner and easier way to run the scripts. That also means I only have to give them one project file too.



    I'd still like to see a "run selected item" option as well in TestExecute, similar to the "run focused item" in the TestComplete project.



    Jeff