Adding conditional logic
You can add an If-Else conditional logic around portions of a test,
a compound test, or a schedule and you can make those portions of a
test run when a specific condition is met. A conditional block can run portions of a test
that depend on the value of a reference or field reference. The reference or field reference
must exist in the test and precede the If-Else condition.
You must have recorded an HTTP test.
The test might already contain the test elements that you want to run. If the test
contains the elements that you want to run, you must select the requests and then
add an If condition. You can also create an empty conditional block
at the end of the test or request. If the reference or field reference that the
conditional block uses for input does not exist, you must create the references. See
Creating a Reference or a Field Reference.
You have achieved the following results:
- You have added an
IfandElsecondition to a test. - You have performed the negate to operator, case-sensitive, and digit comparisons in a test.