Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : WinRunner @ OneStopTesting |
Topic: Global Variable in one single file |
|
Author | Message |
sonali
Newbie Joined: 24Apr2007 Online Status: Offline Posts: 39 |
Topic: Global Variable in one single file 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; Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
mayukh
Newbie Joined: 25Apr2007 Online Status: Offline Posts: 1 |
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) |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.