alibaba82
18 years agoSuper Contributor
automation question
Hello,
I am trying to write a framework so that I can automate the testing of web services. I have been using the groovy script library to accomplish most of my automation. So for instance I have defined my connection string in an external XML file. Within my groovy script I will read this file and do appropriate actions.
I wanted to know if there is any way I can do something similar to dynamically change the endpoints in the request. I have different environments (QA, integration, production) which I would like to point to while running my tests. for example
in Integration
http://cswebdev.tvguide.com/v2/UserProfileService.asmx
would change to
http://qa-services.tvguide.com/v2/UserP ... rvice.asmx
in QA.
As of now I just open the project file in notepad and do a simple copy/replace and save the file.
Any suggestions, ideas would be appreciated.
I am trying to write a framework so that I can automate the testing of web services. I have been using the groovy script library to accomplish most of my automation. So for instance I have defined my connection string in an external XML file. Within my groovy script I will read this file and do appropriate actions.
I wanted to know if there is any way I can do something similar to dynamically change the endpoints in the request. I have different environments (QA, integration, production) which I would like to point to while running my tests. for example
in Integration
http://cswebdev.tvguide.com/v2/UserProfileService.asmx
would change to
http://qa-services.tvguide.com/v2/UserP ... rvice.asmx
in QA.
As of now I just open the project file in notepad and do a simple copy/replace and save the file.
Any suggestions, ideas would be appreciated.