Ask a Question

Run selective test groups using javascript code

Adagio
Frequent Contributor

Run selective test groups using javascript code

Hello,

 

I'm trying to find out ways to run the test groups thru a piece of code rather than running it by clicking 'Run Focused Item' icon.

Based on some conditions, I'd want to run only some Test groups. 

 

For sample, Here's the screenshot of  the Test Groups.

 

 

 

UsrForm.PNG

 

Thank you

Abhi

2 REPLIES 2
Marsha_R
Community Hero

This link may be useful:

 

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/in-scripts.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
NisHera
Valued Contributor

What you could try is command line utility in test complete.

Though it seems bit complex at beginning once you prepare one line correctly, you could do bend it for many situation.

 

But when you decide which test to run at run time, you have to write code for it.

You can call each script in that main driver script or use project Item run method.

cancel
Showing results for 
Search instead for 
Did you mean: