When constructing test logic, there may be instances where you need to retrieve details about the ongoing test job, the environment in which it's running, and the status of a specific test case at any given moment.
Here is a valuable set of commands to assist you in acquiring this information within your Action logic.
Requirement |
Command |
Check if the current test case failed or not | Is the current test case failed |
Get information like the name of the current test case, the name of the Scenario it is part of, the start time of the current test case, and the data-driven test case number index within the Scenario. | Get current running test case info |
Check the Application environment against which the current test is running | Is Application Environment |
Check the value of an execution parameter passed for this test execution | Is Execution Parameter Value |
Check the browser type on which the current test is running | Is Browser Type |
Find if this is the last test case in the run | Is first test case in the Run |
Find if this is the last test case in the run | Is last test case in the Run |
Get the count of total/failed/passed/in-progress/not-run/completed tests in the current run | Get test case counts in the current Run |
Check if the current test is running on iOS or Android | Is mobile platform |
Get the name of the mobile device on which the test is running | Get mobile device name |
Comments
0 comments
Please sign in to leave a comment.