Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingWinRunner @ OneStopTesting

Message Icon Topic: Global Variable in one single file

Post Reply Post New Topic
Author Message
sonali
Newbie
Newbie
Avatar

Joined: 24Apr2007
Online Status: Offline
Posts: 39
Quote sonali Replybullet 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 IP Logged
mayukh
Newbie
Newbie
Avatar

Joined: 25Apr2007
Online Status: Offline
Posts: 1
Quote mayukh Replybullet 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 IP Logged
Post Reply Post New Topic
Printable version Printable version

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



This page was generated in 0.803 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting