Student Mode Code Display

Welcome to the Fraternity!

Commenting has been enabled. You can comment on all the Code Items now.

Environment Variable usage


Add This Code to My Favourite List
Enter Email

Contributed By IT Prof
Date 2016-03-12 08:24:48

'Environment File
'Loads the specified environment variable file. 
'The environment variable file must be an XML file using the following syntax: 
' 
'
'        
'
'              This is the first variable's name 
'
'              This is the first variable's value 
'
'        
'        
'
'              This is the 2nd variable's name 
'
'              This is the 2nd variable's value 
'
'        
' 

'To load Environment Variable from a File
Environment.LoadFromFile("C:\QTPStuff\QTPTrainingCode\EnvironmentVariableFile\EnvFile.xml") 

'Read Environment variable value and use it
userName = Environment.Value("sUserName")
password = Environment.Value("sPassword")
msgbox username
msgbox password

Download Above Code

Comments:



Add your comments...
Name : *      
Email : *      
The content of this field will be kept private and will not be shown publicly

Your Comment/Answer *

Enter the text present in this box : *