Ask a Question

Multiple Test encapsulation and loop

SOLVED
Lee_M
Community Hero

Multiple Test encapsulation and loop

I have multiple unit tests that work correctly

 

I have put these tests in an execution plan to complete a test run of my site

Lee_M_4-1613561987822.png

 

 

Can I put create a browser loop for this test?

e.g. convert it to like the below test

 

Lee_M_0-1613562137532.png

 

 

 

I know that I can create a browser loop test in a single script calling the individual scripts but that would not give the flexibility I am looking for here.

 

How can I accomplish this functionality?

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Multiple Test encapsulation and loop

No, the Execution Plan is just a list.  It doesn't know how to loop or do any other code functionality.  It's just running your tests in the order that you select.

---------------------------------

The Execution Plan editor shows the project’s test items in the order they will be run. A test item can be:

  • A keyword test
  • A script routine
  • A low-level procedure
  • A network suite, or its job or task
  • A BDD scenario or several scenarios
  • A unit test or a Selenium test
  • A ReadyAPI functional or security test
  • tag or tag expression specifying one or several tests (keyword tests, script routines, and BDD scenarios) to run

You can organize test items into a plain list, grouped list or a tree-like structure (where child items are run after the parent item has finished running). You can exclude test items from or include them in the test run using the check box next to the test item name.

 

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/execution-plan.html#M...


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

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: Multiple Test encapsulation and loop

No, the Execution Plan is just a list.  It doesn't know how to loop or do any other code functionality.  It's just running your tests in the order that you select.

---------------------------------

The Execution Plan editor shows the project’s test items in the order they will be run. A test item can be:

  • A keyword test
  • A script routine
  • A low-level procedure
  • A network suite, or its job or task
  • A BDD scenario or several scenarios
  • A unit test or a Selenium test
  • A ReadyAPI functional or security test
  • tag or tag expression specifying one or several tests (keyword tests, script routines, and BDD scenarios) to run

You can organize test items into a plain list, grouped list or a tree-like structure (where child items are run after the parent item has finished running). You can exclude test items from or include them in the test run using the check box next to the test item name.

 

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/execution-plan.html#M...


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

View solution in original post

Lee_M
Community Hero

Re: Multiple Test encapsulation and loop

how do you select the tags in the plan - I can't find any documentation of this

 

 

- sorry found tags at the very bottom of test categories

MarkSchofer
Frequent Contributor

Re: Multiple Test encapsulation and loop

I was going to ask the same.  It is a big of a pain to go back and add browser loops however,,,,life goes on.

cancel
Showing results for 
Search instead for 
Did you mean: