Forum Discussion
This is kind of server, you can say.. for which we have URL for different environment. And to access this URL we require client SSL certificate. Just we need to navigate to that URL through browser and enter the user/pass for the environment I am accessing. RDP is not at all required. we can access it on local but certificate is required.
Since it's browser based, you could potentially use a Selenium driver in a groovy script and automate browsing to the webpage that way. It's been done and there's been a number of guides posted here on the forums and across the web. Here's a few examples:
https://gist.github.com/bensullivan/4631660
https://support.smartbear.com/readyapi/docs/testing/integrations/selenium/about.html
- avidCoder8 years agoSuper Contributor
I used selenium to fetch the logs. The logs used to come row wise with the row numbers and I wanted the latest logs once I hit the service. So, What I did was, I counted the total number of rows inside logs then took the last 3 rows values (using for loop) which used to contain the latest logs value. Further, I used XmlSlurper() - getNodeValues() method to fetch the particular node and stored to excel for data validation.
But Still, I am looking for any other approach to get this. may be by using any OpenShift jar. Once, I get this. I will let you know.
- sanj8 years agoSuper Contributor
I have done a few code of selenium using groovy.
The other option which may be better is to have all your libraries coded in java and have a groovy code running in READY API which calls these java libraries
Your selenium code can be done in java
I find this way its easier to reuse code for different tcs
- avidCoder8 years agoSuper Contributor
This is what I have thought of as my final try. But before that i'd like to work on fetching this using codes.. Anyway, thanks for the reply.
- groovyguy8 years agoCommunity Hero
No problem, hope you get it sorted out. I'd like to hear how you accomplish this, when you do! :)