Troubleshooting
Problem
This technote provides you with information about IBM Rational Performance Tester in regards to the use of the Conditional IF in a test.
Resolving The Problem
You can insert IF-THEN logic around portions of a test to make those portions run if a specific condition is met. In this example, we have a three page test; the third page will only execute if the condition is met. The IF-THEN is set up to verify the page title of the second page of the test (Rational - Google Search); if the page title is present the third page of the test will be executed.
This is what it looks like from within the test:
- In the First operand field, either select the input for the block (a reference containing a string value to be compared with the Second operand, or a field reference to be used with the contains operator) or type a value.
- In the Operator field, indicate the basis of comparison of the two operands. Note that the two operands are strings.
- In the Second operand field, either select the input for the block (a reference containing a string value to be compared with the First operand) or type a value. When the defaults are used (both operand fields set to true and the Operator field set to Equals), the block is always processed.
[{"Product":{"code":"SSMMM5","label":"IBM Rational Performance Tester"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Test Configurations","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0.2;7.0.2.1;7.0.2.2;7.0.2.3;8.0;8.0.0.1;8.0.0.2;8.0.0.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21386511