Controlling the flow of test

A test is usually run in the order it was recorded. However, you might want to add some conditions to the test that the users would actually face when interacting with the application under test. For example, if you select a product, you want to know its manufacturing date. If the date is not available, you want to exit. You can now add such control to the test.

Procedure

  1. In the Test Navigator view, browse to the test and double-click it.
  2. Select the request or page that uses the IF condition and click Insert > Test Flow Control.
  3. In the Test Flow Control Details section, specify one of the following actions:
    Action Description
    Continue Continue running the test.
    Exit Transaction Exit the transaction and continue running the test. If there are multiple levels of transactions, specify whether you want to exit the innermost or outermost transaction.
    Exit Loop Exit the loop and continue running the test. If there are multiple levels of loops, specify whether you want to exit the innermost or outermost loop.
    Continue to next iteration of loop Continue to run the next iteration of the loop after the existing iteration completes.
    Exit test Exit the test.
    Exit user Exit the currently running virtual user and start running with the next user.
    Terminate Run Stop the A schedule, in this context, is used to refer to both VU Schedule and Rate Schedule.