Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Looping

Options

I have a soatest test suite that has 12 rest clients. Is there a way to run the test so that it calls these 12 rest clients in 20 loops? Or, do I have to run the test 20 times? Thanks. JT

Tagged:

Best Answer

Answers

  • benken_parasoft
    benken_parasoft Posts: 1,235 ✭✭✭
    Options

    See Test Suite Logic Options > While variable

    Basically, you can define the test suite to loop based on a variable. For example, on the Variables tab, define some integer variable with value of 0. Under Execution Options > Test Flow Logic, select "While variable" for Flow type. Configure the "while" condition with the selected variable then pick "<" and then type "20" next to it. Make sure "do" is set to "Increment".

Tagged