cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Test encapsulation and loop

SOLVED
Lee_M
Occasional Contributor

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...

View solution in original post

2 REPLIES 2
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...

View solution in original post

Lee_M
Occasional Contributor

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

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors