QEngine WebTest allows you to add and edit global variables using the Global Variables Editor UI so as to set and get values across test scripts using the callScript() or when executing multiple scripts in a Suite. You can configure the values using this UI and set global variable value using setGlobal("<variable_name>","<variable_value>") in script1, and in script10 you can get the global variable value using getGlobal("<variable_name>").
Invoking the Global Variables
Editor Screen
From the Suite Manager page, select the appropriate suite
and click the Continue button
to select the test type as Web Application Functional. This displays the
WFMainScreen page. In this page, choose the Global
Variable Editor option
from the script editor toolbar
options as shown in the image given below:

Configuring the Global Variables
In the Global Variables Editor screen, you can edit the value of an existing global variable in the setGlobal() or add new global variables in the Editor using the setGlobal() and choose the Save button to apply the changes. The saved details are stored in the Variables.py file in <QEngine_Home>/projects/<Suite_Name>/conf directory. You can get the values in the script using the getGlobal("variable_name").
Copyright © 1999, AdventNet Inc. All Rights Reserved.