Contributions
- 9 years agoPlace ReadyAPI QuestionsReadyAPI Questions860Views0likes1Comment
HOW CAN I REPETE TESTSTEP UNTILL GET SOME SPECIFIC RESPONSE?
I have testcase with testeps with video uploading and second testest with checking status for uploaded video in first step. How can I loop second step untill server will send status 200 - video was uploaded succesufully.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions803Views0likes2CommentsHOW USE RESULT FROM DATASOURCE IN GROOVY AND HOW USE SQL RESULT FOR ASSERTETION IN OTHER STEPS?
How use result from datasource in groovy (I use Dataconnection) and how use sql result for assertetion in other steps? Could I convert result in Json?9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes4CommentsGET DIFFERENCE BETWEEN 2 JSONS AND GET SURPLUS FOR JSON1 TO JSON2
How compare 2 json response, one like [{id:5, color:red}, {id:8, color:blue}{id:9, color:blue}{id:2, color:green}] and secound like {[id:2, status:1], [id:8, status:2],[id:100, status:1]}, I need comparing only for id value and other parameters should be ignored. I wish to get difference between these jsons and get surplus for json1 to json2 and on the contrary, get surplus for json2 to json1. Example: json1:[{id:5, color:red}, {id:8, color:blue}{id:9, color:blue}{id:2, color:green}] json2:{[id:2, status:1], [id:8, status:2],[id:100, status:1]} surplus json1 - json2 by id= [{id:5, color:red}, {id:9, color:blue}] surplus json2 - json1 by id= {[id:100, status:1]}9 years agoPlace ReadyAPI QuestionsReadyAPI Questions687Views0likes1CommentHOW CAN I CHECK WHAT OBLECTS IN JSON SORTED CORRECTLY BY SOME KEY?
How can I check what oblects in json sorted correctly by some key, I need something like this: Assert what objects sorted by color in ABC order: assert(isSort([{id:5, color:red}, {id:8, color:blue}{id:9, color:blue}{id:2, color:green}])) = false assert(isSort([{id:9, color:blue}, {id:8, color:blue}{id:2, color:green}{id:5, color:red}])) = true9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes3CommentsHOW CAN I USE CUSTOM PARAMETERES IN SQL QUERY?
How can I use custom parameteres in SQL query, I want use datasourse step with data connection and use something like select * from dbase where {$param_1_for_sql} in my requst into datasource.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions684Views0likes1Comment