Forum Discussion
rraghvani
2 years agoChampion Level 3
I agree, the question doesn't make sense!
For example, I have the following web environments DEV, UAT, REG, PS and P. The URL for each environments looks like this,
http://dev.smartbear.com
http://uat.smartbear.com
http://reg.smartbear.com
https://ps.smartbear.com
https://www.smartbear.com
I have an INI file, that stores the URL, username and password,
; Defines the environment to be used
[Settings]
URL=http://uat.smartbear.com
Username=tester1
Password=letme1n
I read the INI file, and pass the appropriate parameters to my script which will then launch the browser,
var ini = Storages.INI("C:\\settings.ini");
// Reads URL
var url = ini.GetSubSection("Settings").GetOption("URL");
Browsers.Item(btChrome).Run(url);
// Etc
I can modify the INI file, without making changes to the script, to automate the required environment.
Related Content
- 3 years ago
Recent Discussions
- 19 hours ago
- 5 days ago