A new version of Qualitia Automation Studio 7.2.x is now available. We highly recommend you upgrade. Find more details here.
Qualitia System Variables
Introduction
Qualitia provides its own set of system variables that let you decide test case or task execution flow at run time. Qualitia System Variables act as global variables and can be accessed in any test case. You can only use the values of these variables, but cannot modify those in any test step. Data type of these variables can be integer, Boolean, and string values. Following is the complete list of System Variables that can be used when developing test cases in Qualitia:
This system variable records and stores value of the status of the last executed step. You can then add tasks in the test cases to be executed based on the recorded value. Value of this variable is not case-sensitive. Possible values for relational operator of $$_STATUS variable are as follows: This system variable stores a Boolean value for current desktop web execution platform. This expression returns Boolean value comparing the values set in Configuration Settings (or the value overridden by the action SwitchWebExecutionPlatform). The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. Example: This variable can be used where user wants to execute certain test steps based on the execution platform (Mobile and Desktop). This system variable stores a Boolean value for current mobile web execution platform. This expression returns Boolean value comparing the values set in Configuration Settings (or the value overridden by the action SwitchWebExecutionPlatform). The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. Example: This variable can be used where user wants to execute certain test steps based on the execution platform (Mobile and Desktop). This system variable stores a Boolean value for Android mobile platform. This expression returns Boolean value comparing the values set in Configuration Settings (Mobile). The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the operating system (OS) of the execution device / emulator is Android. Once the OS is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for iOS mobile platform. This expression returns Boolean value comparing the values set in Configuration Settings (Mobile). The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the operating system (OS) of the execution device / simulator is iOS. Once the OS is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for Windows platform. This is generally used when executing test cases using Offline Package. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the operating system (OS) of the execution device is Windows. Once the OS is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for Linux platform. This is generally used when executing test cases using Offline Package. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the operating system (OS) of the execution device is Linux. Once the OS is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for Mac platform. This is generally used when executing test cases using Offline Package. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify the execution device is Mac. Once this is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for Execution browser type. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the test case execution browser is set as Firefox. Once the browser is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for execution browser type. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the test case execution browser is set as Google Chrome. Once the browser is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for execution browser type. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the test case execution browser is set as Internet Explorer. Once the browser is identified, tasks can be added to be executed accordingly. This system variable stores a Boolean value for execution browser type. This expression returns Boolean value comparing the values set in Configuration Settings. The value returned (TRUE or FALSE [case-sensitive]) can be used when developing test cases using Automation studio. This variable can be used to verify that the test case execution browser is set as Safari. Once the browser is identified, tasks can be added to be executed accordingly. This variable is used by Qualitia only when developing test cases for executing offline packages on Sauce Labs. You can use this variable to change the application path type (Upload or PublicURL) at test case level. When executing offline package for mobile applications on Sauce Labs, Qualitia gives provision to upload application under test either from local (or shared) location to Sauce Storage or make it available to Sauce using the public URL. To use this variable, the user must store the application path type using the StoreVariable action as shown in the screenshot below before using the Mobile.OpenApp action. As shown in the screenshot above, the key name in the StoreVariable action must be "$$_Mobile_APP_PATH_TYPE" and the value of this key should either be Upload or PublicURL. Based on the value set in variable, Qualitia uses the app path type at test case level when executing offline packages in Sauce Labs environment. In both the cases, it is mandatory for user to give the absolute path to the application in the Mobile.OpenApp action parameter. $$_STATUS
Value Execution Status Description 0 Pass Indicates that the previous step is executed successfully. 1 Fail Indicates that the previous step has failed. 2 Defect Indicates that the previous step has some defect. -1 Not Executed Indicates that the previous step is not executed. $$_IS_WEB_EXECUTION_PLATFORM_DESKTOP
$$_IS_WEB_EXECUTION_PLATFORM_MOBILE
$$_ISANDROID
$$_ISIOS
$$_ISWINDOWS
$$_ISLINUX
$$_ISMAC
$$_ISFIREFOX
$$_ISCHROME
$$_ISIE
$$_ISSAFARI
$$_MOBILE_APP_PATH_TYPE