I would like to know is there any way to control the validations for testcase level. we have tags, which are testcase selection level. I have a testcase which covers addition and subtraction of two numbers.
Here my requirement, both actions are in the same testcase but, if I mention 'add' testcase will execute only addition part and similarly sub. if we didn't specify any specification then it has to run both the operations. IS there any way to control these kind of scenarios in Robot? kind of if/else scenario in testcase level. We will mention our input while running the script. Of course we can write it in different testcases like, one for Sub and another one for Add but, in my case i have total of 100+ testcases are with this kind of scenario.
Sample code:
| Setting | Value | | * Test Cases * |
-----------------------------
| Testing1
| | [Tags] | PRIORITY:P0 | CATEGORY:NA | STC_DB_INDEX:NA
if {add}
| | Log | Addition of two numbers |
| | Run Keyword | addition | 20 | 25 |
if {sub}
| | Log | Subtraction of two numbers |
| | Run Keyword | sub | 10 | 5 |