Contributions
Re: Testing for login failure
You probably have to lookat different test option which I'm not sure how to do that in SmartBear SoapUI. I usethis tool to test web API only so all of my test cases don't really launch any web application. It seems to me you're testing GUI as well. Maybesomeone here knows how to test GUI with SoapUI otherwise SpecFlow with Selenium. Goodluck...7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: Testing for login failure
To pass username and password into GET, make sure you're in SoapUI NG tab because there are Dashboard, Projects, SoapUI NG, Secure, LoadUI NG, and Service V. But in SoapUI NG tab allows you to create parameter. There should be plus sign to add parameter. For the parameter input fields, there will be the Name and Value of the parameter so just enter username and password. Since the product that I have tested, the Login API returns back when login successful so I can check the return call of JSON. However the developers in my team feel afraid of security risk for returning back the value when login failed so they decided not to return anything.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: Is it possible to call assert with my own test result (Pass or Fail)?
The reason I want to validate my own test result because I test one of the features that member requires license to perform the operation. Since the license team hasn't fixed their defects and I cant fail that tested feature because the developer who ownsthat feature says it's not the functionality fault, it's the requirement does not meet so he wants me to pass the test case rather fail or block it. Sometimes developers just have their own reasoning when deciding whether to pass or fail the test.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes0CommentsIs it possible to call assert with my own test result (Pass or Fail)?
Hi, I would like to know if it's possible if I validate the test results with my own logics then call theassertion script to either pass/true or fail/false based onmy own reasoning? thanksSolved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes4CommentsRe: How to parse JSON or XML in Assertions
Wow that is very slick. I didn't know we could do right-click to generate the assertion. Thanks! However I would like to learn how to use Assertions script, so can you look at the script below of what's wrong with it because it does not print out all the MemberName. I have 20 members, but it shows only 5 members printing to the output screen. //grab the response def responseMsg = messageExchange.response.responseContent def parsedJson = new groovy.json.JsonSlurper().parseText(responseMsg) //get IsSuccess log.info parsedJson.IsSuccess //iterate def int count = 0; parsedJson.each { log.info parsedJson.Data[count].MemberName count++; } //also try loop, but it does not print all members def int count = 0; for(content in parsedJson) { log.info parsedJson.Data[count].MemberName; count++; }7 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.9KViews0likes7CommentsHow to parse JSON or XML in Assertions
Hi All, I'm trying to parse each response value from a response format either XML or JSON. I found some posts and tried them, but couldn't get it work because I always get errors. Can someone show me how to parse the response below in the Assertions. I got this format reponse from the Reponse window in SoapUI. This is what JSON response looks like: { "IsSuccess": true, "Data": [ { "MemberAge": 31, "MemberGender": "Female", "MemberName": "Erika Garcia", }, { "MemberAge": 25, "MemberGender": "Male", "MemberName": "James Nelson", }, ], "IsRedirect": false, "RedirectUrl": "" } This is what XML response looks like: <Response xmlns="https://<domain name>/Member/Account"> <Data> <e> <MemberAge>31</MemberAge> <MemberGender>Femalse</MemberGender> <MemberName>Erika Garcia</MemberName> </e> <e> <MemberAge>25</MemberAge> <MemberGender>Male</MemberGender> <MemberName>James Nelson</MemberName> </e> </Data> <IsRedirect>false</IsRedirect> <IsSuccess>true</IsSuccess> <RedirectUrl/> </Response>Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions9.9KViews1like9CommentsRe: Can I keep the login credential for other test cases?
I try to avoid that because it will be too much calls under one login call. Right now I have one test case but 20 test steps. The reason these test steps are into one test case because they need the login credential. But since each test step tests different feature so I would like to separate into own test case but can't do that without calling login every test case.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions957Views0likes0Comments