Global Variable in one single file
Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: WinRunner @ OneStopTesting
Forum Discription: WinRunner is an automated functional GUI testing tool that allows a user to record and play back UI interactions as test scripts using a proprietary Test Script Language (TSL).
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=911
Printed Date: 05Jul2025 at 2:16pm
Topic: Global Variable in one single file
Posted By: sonali
Subject: Global Variable in one single file
Date Posted: 24Apr2007 at 11:28pm
Hi all:
I
have 3 files (each file contains a number of functions and it has its
global variable) and 1 main test scripts (this file also has global
variable). I want to put all global variable in 1 single file. How do I
do that and use that.
File_01 public state; public city;
public function ABC() public function ABCD()
File_02 public age; pbluc city;
public function ABC23() public function ABCD233()
File_02 public address; public school;
public function XYH344() public function XYH()
Main testscript using all global variable declared in File_01, File_01, File_01
Now, I would like to keep all global variable in 1 file, so it has:
public state; public city; public age; pbluc city; public address; public school;
|
Replies:
Posted By: mayukh
Date Posted: 25Apr2007 at 3:17am
Why don't you create a startup script ? Settings->General Options->Environment. I like to
load my global variables from an ini file using GetPrivateProfileString, but there are many
other options (xls data sheet, xml file, database, tab delimited text file, ect)
|
|