Ask a Question

Create test items during runtime

SOLVED
kathir_43
Occasional Contributor

Create test items during runtime

we have developed a framework combination keyword and data driven framework. The Framework will have main class which will looks for the test case which marked as Yes and execute the corresponding Keywords. The Keywords will basic modules like login , logout ..etc .The test data will be mapped to the Testcase and will be passed on run time. Under Execution entity we have only one class (i.e. scripts/main).

Our need is to perform the parallel distributed testing in multiple machines through Jenkins server. we have created a job by following the documentation below:

https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/pipeline.html

 Able to successfully configure machines but on execution the same test case is getting executed in both machines.

Sample scenario

TestcaseNameExecutionKeyword1Keword2Keyword3
TC001YesloginCreateorderLogout
TC002YesloginDeletedOrderLogout
TC003NoLoginLogout 

 

Is it possible to create Multiple Test Items based on Number of Testcases marked Yes? Can someone throw insights for this problem??

 

4 REPLIES 4
AlexKaras
Community Hero

Hi,

 

No, it is not possible to dynamically create Test Items during runtime in TestComplete.

Also I am not aware that TestComplete supports partial execution of Test Items tree during parallel execution. (I.e. when first test box starts first test item, second test box starts second test item and then test box picks next test item from the execution plan when it (test box) is done with execution of its test item -- this is not supported.)

The idea that I have of top of my head is to add some logic to your framework, so that depending on the number of available test boxes, each of them picked up only its portion of enabled tests.

E.g., considering two test boxes available, the first box would execute only odd tests and the second box would execute only even tests out of common list of enabled tests.

 

Regards,
  /Alex [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
================================

One more possible option is to assign tags to tests and them execute only relevant tests on each of test execution boxes.

 

Regards,
  /Alex [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
================================
sonya_m
SmartBear Alumni (Retired)

Thanks, Alex! Hi @kathir_43 , does the advice help?


Sonya Mihaljova
Community and Education Specialist

mkharsha
Senior Member

Yes. Possible with indirect methods. If you share framework, I can suggest achieving this. 

cancel
Showing results for 
Search instead for 
Did you mean: