Forum Discussion
If command line is an option, you may consider this: https://support.smartbear.com/viewarticle/54655/
I'm afraid command line is not an ideal solution, as the syntax/execution of it might be a little much for my other team members who will be using TestExecute.
I did create my own solution using the suggestions earlier in the thread, and although its not super pretty, it does exactly what I want it to do.
I started by creating a text file that lives in the project folder of my testcomplete project. This file contains a list of scripts that can be run for the project and an "Enabled" or "Disabled" label at the end of each test name.
I then created an executable in C# which would read this file, and display a checkbox window similar to the one within testcomplete, but much more bare bones and I did not implement a tree view. Here the user can check or uncheck which tests they want and click a save button, which then replaces the Enabled or Disabled string in the text file accordingly.
Lastly I created a script for the automation project which reads in this test file, and checks for the enabled substring for each test, and based on if the test has that enabled substring, it calls the associated script function for performing the automated tests.
I plan to make this solution more modular and user friendly as time goes on, as I feel it will be ideal for allowing other team members not exactly familiar with the testcomplete/testexecute tools to run useful automation with little confusion/setup time.
Big thanks for Ghuff for the suggestions which lead me to this solution.
- ghuff210 years agoContributor
Nice, that's a really good solution you came up with. Glad I could help.
- tristaanogre10 years agoEsteemed ContributorSounds like a great solution. Basically, you're on track for creating a framework that is driven by a file/table to determine test execution. Keep going down this path and you may even have your non-techincally minded testers building tests using nothing but excel spreadsheets, SQL tables, or CSV files. ;)