how to create config file can call in test (keyword)
I would like to know how to create a config/property/environment file in testcomplete and call the approparite env url & username & password in keyword test, Or any other suggestions on how to create it.?
I dont want to create three different env scripts .
for example, if i want to run in QA env, then i should call QA url , QA username and QA password, similary for UAT and DEV env, in one single click.
Any help is greatly appreciated.
i) QA URL : https://QA.QAenv.com
username : test@QA.com
password : test@123
ii) UAT : https://UAT.UATenv.com
username : test@uat.com
password : test@123
iii) PROD : https://PROD.PRODenv.com
username:test@prod.com
password : test@123
Hi,
Did You try to use a Project Variables?
Hi,
Another possible approach is to create an .ini file with the content like this:
[QA]
username=test@QA.com
password=test@123
[UAT]
username=test@uat.com
password=test@123
[PROD]
username=test@prod.com
password=test@123
and work with this file via Storages object provided by TestComplete.
Required environment can be specified, for example, either via the command line or Project Variable (as suggested by Wamboo )