During test execution, it is often necessary to access information about the current execution context. This includes details about the running job, the specific test case, and the environment in which the test is being performed. ACCELQ provides a set of commands to retrieve this runtime information directly within your Action logic.
Note on Execution Context: The values returned by these commands are populated during a formal job execution. If a statement is executed as part of a local recorder or playback session, the returned values for some of the options may be blank strings ("").
Job-Level Information
This command retrieves various properties related to the overall test job that is currently executing.
Get Current Test Job Info
When using this command in ACCELQ Action logic, you will select the desired property from a dropdown list of enumerated values.
Test Case Information
These commands retrieve details about the currently running test case and its specific execution environment.
Get Current running Test Case Info
This command requires selecting a property from a predefined list to get details about the currently executing test case.
Contextual Check Commands
These commands are used for conditional logic and return a boolean (true/false) value.
- Is Application Environment: Checks if the test is running in the specified application environment.
- Note: You can use the "regex" option to check against a list of possible values (e.g., to check if the environment is either "Staging" or "Prod").

- Is current test case failed: Checks if the currently executing test case has already recorded a failure.
- Is first test case in the Job: Checks if the current test case is the first one scheduled in the job.
- Is last test case in the Job: Checks if the current test case is the last one scheduled in the job.
- Is Execution Parameter Value: Compares the value of a specified Execution Parameter against an expected value.
- Note: This command also supports using the "regex" option to check against a set of expected values.
Execution Device Related Commands
These commands provide information about the platform (browser or mobile device) on which the test is running.
- Is Browser Type: Checks if the test is running on the specified browser. Returns a boolean.
- Is mobile platform: Checks if the test is running on the specified mobile platform (e.g., "iOS" or "Android"). Returns a boolean.
- Get mobile device name: Returns the name of the mobile device on which the test is executing. Returns a string.
Comments
0 comments
Please sign in to leave a comment.