Skip to main content
Version: 1.0.1

If...else

Is a keyword that considers the condition to perform one or a group of actions in the test scenario

Platform​

Web, Android, iOS, Windows, JavaSwing, Api, JDBC, SSH. FTP

Attribute​

AttributeData SourceRecommendation
Logical expression (operator): is one (or a group) of conditions considered in the test scenarioRecommended system is ValueDefault system is String
If block: perform a step (or group of steps) when the logical expression has a result of trueRecommended system is ValueDefault system is String
Else block: perform a step (or group of steps) when the logical expression has a result of falseRecommended system is VariableThe default is String

Use case​

Use when you need to perform an action (or some) bound by a certain condition (or some) depending on the requirements of the problem

Note: parameters initialized in the keyword If…else cannot be called outside If…else