Ini files are used to store global data required for testing.
Typical ini file looks like this.
This is how you can read values from ini file in QTP.
Please give your inputs, suggestions, feedback to Us. We value your thoughts.
Typical ini file looks like this.
[Environment]
URL=http://xyz.com
UserId=abc
Password=pass
[Environment]
Example -
To load above ini file in QTP script, you have to use below lines of code
Environment.LoadFromFile “c:\Environment_Variable\Env.ini"
Print Environment.Value("URL")
This is how you can read values from ini file in QTP.
Please give your inputs, suggestions, feedback to Us. We value your thoughts.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs