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
| Attribute | Data Source | Recommendation |
|---|---|---|
| Logical expression (operator): is one (or a group) of conditions considered in the test scenario | Recommended system is Value | Default system is String |
| If block: perform a step (or group of steps) when the logical expression has a result of true | Recommended system is Value | Default system is String |
| Else block: perform a step (or group of steps) when the logical expression has a result of false | Recommended system is Variable | The 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