Contributions
Re: Failing assertion, can't understand why or how to fix it?!
I thought about that, but to be honest I really don't feel that's the appropriate answer. In our business validating exact information is pretty crucial and I think using a contains would allow for additional information to technically pass. This information is likely to not change, but I cannot say with 100% certainty that it will never change. I would really like to understand why this is failing so that I, or someone, can correct this issue.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes2CommentsFailing assertion, can't understand why or how to fix it?!
I am placing assertions against a JSON response, by right clicking the response and "Add Assertion > for Content" Initially the assertion passes as expected. But items I created on Friday are failing on Monday. I've looked a dozen times and the fact is the response is 100% identical to to the expected assertion value. I've even used BeyondCompare to verify as well as Notepad++ to verify the text, carriage returns and line feeds are exactly the same. I don't understand how this can initially pass then not pass when the value returned as not changed. I can't post the actual value due to complaince and security reasons so I will post an example response in hopes that this can be understood. The response is as follows (Note the CR/LF after Name): RIVERSIDE-TN SSN / ITIN: xxx-xx-xxxx dbaExample Company Name6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes5CommentsRe: Need help re-using a response item in other tests
Ok, I think I have actually found a solution. To be clear, documentation on property transfer is outdated and not easy for the inexperienced user to make use of it. It seems intentionally complex when it could be a simplier process. I was able to use the property tranfser to get this working, but it took a lot of trial and error, and probably could be done better. For those that might stumble on this question looking for an answer for ReadyAPI: In the section of my project I right clicked > Add Step > Properties Green plus sign in the top left and added a name i.e. - UseToken In the request I right clicked on the token value Transfer To > then in the lower box look for the property and name you just created, click on it Then in my GET call I created a header: Authorization - Bearer${#[Project Name#Get Token#Access_Token]#UseToken} Which then worked to complete the request6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes2CommentsRe: Need help re-using a response item in other tests
I'm not familiar with groovy code so this doesn't really help me. And this seems excessive to simply take a response item and create something to then use in other tests, but it might just be my ignorance of SoapUI. Is there not a more simple solution built into SoapUI already? Here are a few items I was looking at initially: https://www.soapui.org/docs/functional-testing/properties/transferring-properties.html https://stackoverflow.com/questions/35499787/property-transfer-from-a-testcase-response-to-a-request-in-different-testcase6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes3CommentsNeed help re-using a response item in other tests
I'm a new user that has been tasked with learning SoapUI Pro (ReadyAPI) to test our REST API. We have used tools like Postman and Telerik to set variables that can be easily reused elsewhere, and I'm trying to do the same within SoapUI and not having any success. I send a POST request with a username and password and get a response with an access_token, I am trying to capture and use this token to then use to pass in our other GET & POST requests. Some of the documentation I've found for this is both outdated and still confusing for the new user. In JSON the response item I'm trying to use looks as below. I need to capture the access_token to use in other areas. { "access_token" : "r3@llyL0nGR@ndoMStUffH3r3", "token_type" : "bearer", "expires_in" : 1209599, "userId" : "12345", ".issued" : "Fri, 10 Aug 2018 12:16:22 GMT", ".expires" : "Fri, 24 Aug 2018 12:16:22 GMT" } I'm pretty sure this involves the property transfer item, but I need some more detailed step by step information to make this work, as my attempts have failed. in postman we have it setup to do this in the Header: Authorization - Bearer {{access_token}}Solved2.9KViews0likes5Comments