Forum Discussion
Unfortunately I've never found an easy way to do this with groovy. If I understand correctly, you need a way to access/login to the OpenShift server and transfer files/logs from the server to your ReadyAPI client? Does that sound close to what you want to do?
- avidCoder7 years agoSuper Contributor
Yes absolutely correct groovyguy . Is there any way we can do this? Else I need to opt for another approach.
- groovyguy7 years agoCommunity Hero
avidCoder: Are the log files available through an HTTP / HTTPS / FTP webserver? If so, that may be doable with either an FTP test step, or a groovy script. If they are available through a network share, that might work too.
If the files are not available through such an interface and if you do truly need to log into a server and manually download/copy the files, then I am not sure there's much that can be done even with groovy. Can you elaborate and provide the detailed steps you would need to mimic? How would you do this process manually?
- avidCoder7 years agoSuper Contributor
Manually, I'd login to OpenShift server with username and password. Once it is logged in properly, I'd go to the application and click on the logs link. Here we can see the logs for the services. From here, I need to get the SOAP response and that's all. This thing I want to automate through Java/Groovy.
After I hit the REST request, I will get the REST response in JSON format, Next testStep I will add as "validateXML" . Here, I'd write the code for all the connection of OpenShift.
So, What is happening here is, I am hitting the REST service and getting the JSON response and once I get this, I need to verify the same from OpenShift which has SOAP response. And all the tags will be different here. So, By any way I get the logs, I will take put the SOAP response out of it and then will MAP JSON object with XML tags. And we are done.
Related Content
- 4 years ago
- 9 years ago
- 3 years ago
- 6 years ago
Recent Discussions
- 22 days ago