Switch test step

A Switch statement is used to select one of several alternatives based on the value of an integer, a character, or a string variable. Once a match is found, only the steps in that case will be executed.

Drag the Switch test step from the Test Palette into your test case:

Update the following parameter:

Value: The value to switch on case

Switch statements come with one case by default, to add an additional case or a default case, right-click on the Switch test step and select the Add an Case/Default Clause option:

Then save the test case.

Documentation library

Other available resources

Looking for something different?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.