We have a requirement to test a number of web based applications. The applications exist in multiple environments. They differ in that the initial starting URL, user name and password are different.
If this is the only issue is it possible to use the same script in multiple environments if all that has to be changed is the starting URL.
I ask this because I have been told that it cannot be done and we will have to rewrite the scripts especially for each environment.
Yes, it's quite easily done.
Just need to be mindful when adding objects to your repository to not use any absolute urls. Use either regular expressions, descriptive programming, or settoproperty to change to the proper environment.
Yes it can be done very easily, just provide all url's in a seperate vbs file and call any url before test run.
I don't build Software but I make them work better, Testing is a Passion