Contributions
Re: ReadyApi 403 while in Postman 200 ok
I have added manually headers but doesn't make difference. I get 403. When I sent the request with Postman I see traffic in Fiddler. With ReadyApi I don't see any traffic in Fiddler. Is there a setting in ReadyAPI that must be changed to get work?3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1CommentRe: ERROR: java.net.SocketException: Network is unreachable: connect
The endpoint of the API I have used is http. If I change the HTTP version in the settings from 1.0 to 1.1 or 1.1 to 1.0 there is no difference. I must close and restart ReadyAPI3 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes0CommentsERROR: java.net.SocketException: Network is unreachable: connect
Because I run lot of programs I set my laptop to standby and don't turn my laptop off when I go to office from home for example If I connect to another network I must close and re-open ReadyAPI otherwise I can't sent request and get:ERROR: java.net.SocketException: Network is unreachable: connect Is there a solution/setting to fix this or must I always re-open ReadyAPI when I connect to another network?3 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes4Comments- 4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes2Comments
Re: Assertion for 1 specific value which contains in all results in response
example of my response: { "data": [{ "City": "New York", "houseNumber": 1, "postalCode": 1520 }, { "City": "New York", "houseNumber": 2, "postalCode": 1520 }, { "City": "New York", "houseNumber": 2, "postalCode": 1520 }, { "City": "New York", "houseNumber": 4, "postalCode": 1520 }, { "City": "New York", "houseNumber": 5, "postalCode": 1520 } ] } What I want is: - check if value all "postalCode" are equal to "1520" - check whether value all "postalCode" is greater than "1519" Also I want to check if value of "City" is equal to "New York" Which assertion method can I use?4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes6CommentsRe: Assertion for 1 specific value which contains in all results in response
Can you tell me how to use one-liner script assertion? From "Add Assertion" and then "Script Assertion" does not work. With JSONPath Expression: "$['data'][*]['postalCode']" the assertion likes ok. But the expected value can change from example 70 result to 71 when add 1 postalCode and the expected result is different. I want to check all the postalCode have the value "1520"4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes9CommentsAssertion for 1 specific value which contains in all results in response
After a GET request where I'm searching for a specific postal code, I get response with 75 results. I want to assert that all 70 results have the same value for property(postalCode). If I use the assertions contains option I see JSONPatch Expression: $['data'][0]['postalCode'] "[0]"shows the first result. In the expected result I see value "1520" How Can I assert that all postalCode have the same value "1520"? What I have tried: replacing $['data'][0]['postalCode'] with $['data'][*]['postalCode'] works but when the result is not 70 the assertion will failSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes11Comments