Contributions
Re: Groovy to run a specific test step and then abort the test case
Thanks for the response but I just realized (after using your solution) that Iforgot to mention that I am using a session start step before this groovy step and to run anyspecific test case through groovy I also have to pass onthe session. And the problem is I am not able to pass on the session using groovy. Here is the test case structure: Step #1 Session Start Step#2 Groovy torun a specific test stepamong next 5 steps (Test1...Test5) Step#3 Test1 Step#4Test2 Step#5Test3 Step#6Test4 Step#7Test56 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentGroovy to run a specific test step and then abort the test case
In one of my re-usable test case I have 5 steps(requests) and I want to write a groovy step (in the same test case) which should read the property and based on its value should runone of the available 5 steps and ignore rest of them. Basically dynamically pick and run a test step and then abort the test case. Thanks in advance for help.Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3CommentsCustomize the number of key value pairs in a request based on parameter value.
I have a patch request which can be used for multiple categories (as parameter) as following PATCH {URL}/categories/<CategoryName>/values [{ "name": "<Para1_Name>", "value": "<Para1_value>" }, { "name": "<Para2_Name>", "value": "<Para2_value>" }] We have multiple categories and the only thing that varies for these categories is the "number" of input parameters, that they support as part of above call. What I want to accomplish is to reuse the same call but dynalically update the number of input parameters based on the category name. Any help would be greatly appreciated.Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes2Comments