Contributions
how to write groovy scripts in servicev or virtualservice
I want guidance on ServiceV / Virtual service after creating the mockserver in servicev, I need to write some scripts to validate incoming requests from the client using Groovy. Because of every operation, I need to perform or validate from the servicev side only. for that, I need to use Groovy script which doesn`t support the writing of more classes like in other tools. Please guide me.Solved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1CommentGuidance required on servicev groovy script
I have on an application which is developed in c++ command line and I need to create a mock server to communicate with my application and perform the validations on the servicev side using a groovy script. Step 1: I am able to communicate with my Application by creating the ssh key. https://localhost:4443/<api Name> Step 2: Using sample scripts I can able to get the Method Name, api path, etc. Step 2: I want to validate the incoming request is valid or not and also it has some time intervals, retrycount, and timeout. How do I validate those cases as the incoming requests are coming from the client are within secs. I need to save the time of those request and hold it into a variable and then catch up the next time of the same request and do validations for the same requests . is it possible or not. Please guide me which approach do I need to follow. is it possible to write Java/groovy classes in ServiceV tool?5 years agoPlace ReadyAPI QuestionsReadyAPI Questions788Views0likes0Comments