Forum Discussion
You could create a function/method, that simply calls the indicated scripts in sequence and associate that with your button. Technically, with the way you're running things, there's not really a reason to use TestItems... your userform and the code behind controls execution order.
- mgreen5 years agoContributor
The test Items have parameters I pass through to them via the Test Item Page..
Is there a way to call a group of tests versus having to put each function (test) in order?
There are a few hundred in each folder.
- tristaanogre5 years agoEsteemed Contributor
Via script code (or keyword test code) there is no interface to execute a test item directly.
Project.TestItems.TestItem(<index>) returns the test item, but there is no execution method. TestItems, themselves, are the means for executing either scripts or keyword tests via a visual interface without writing code. If you want to execute a sequence of script routines (with parameters) in a particular order, you will need to write a calling routine as mentioned.
- Marsha_R5 years agoChampion Level 3
It looks like you're trying to create yet another UI when you might not need one.
If you want users to be able to run a certain set of tests, then you can set them up in something like Bamboo or GoAnywhere and inside that tool, have a TestExecute job that runs the tests that you want.
- mgreen5 years agoContributor
Thanks for the replies.
Essentially you are correct Martha.
All I want is an icon on the desktop (batch file), and when clicked will pop a form with a few different test-plans to choose from (which are hundreds of test items that have been grouped together in various categories).
It appears the only real solution here is to either train in the tester to open TestComplete and modify the Test Items Page to check/uncheck what is needed, or I just bite the bullet and manually type in all the different sequences into a few different functions. (But even with that I will have to import hundreds of methods into that Script Unit so I can call it within the button function.) So Ill probably end up doing it the long way.
I think Im good on integrating another third party program. Just trying to make it easy for non-technical people to walk up to the machine and simply double click to start the test-plan they need.
TestExecute pretty much will do the trick for this by simply opening the project named approprietly, but it is currently running extremely slow and sometimes hanging.. So I may just have to hold off until I can get a faster machine to do it via TestExecute.
Thanks for the help everbody as usual!!