Quality Testing

Quality is delighting customers

HI
i am practicing modular frame work in QTP.
I have a to know how to create and where to create the following environment file

Environment File

[Environment]
app_path=c:\program Files\HP\QuickTestProfessional\samples\flight\app\flight4a.exe
td_path=F:\Flightproj\TestData\





I AM IN BASIC LEARNING LEVEL PLEASE KINDLY HELP ME IN KNOWING QTP CONCEPTS

Views: 8

Reply to This

Replies to This Discussion

not getting what u want to ask?
>> First create the folders in particular folder in the drive.
>> Folder structure is the most comfortable and easy for the Automation frame work

'Loading the environment settings XML file
'---------------------------------------------------
test_dir = Environment.Value("TestDir")
strPath = "Scripts\"&Environment.Value("TestName")&""
Dir_path = Mid(test_dir,1,Len(test_dir)-Len(strPath))
Env_Path = Pathfinder.Locate(Dir_path & "Environment\Environment.xml")
Environment.LoadFromFile(Env_Path)


'Initialising Path of the Folders based on value of Environment variables
'-------------------------------------------------------
Libr_Path = Dir_path & Environment.Value("Lib")
Data_Path = Dir_path & Environment.Value("Datatbl")
Env_Path = Dir_path & Environment.Value("EnvName")
OR_Path = Dir_path & Environment.Value("OR")
Result_Path = Dir_path & Environment.Value("Res_Path")
Out_Path = Dir_path & Environment.Value("OutPutFldr")
THANKS Ramakrishnareddy Garu

RSS

TTWT Magazine

Webinar

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service