ContributionsMost RecentMost LikesSolutionsRe: Testing for login failure You probably have to look at different test option which I'm not sure how to do that in SmartBear SoapUI. I use this 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. Maybe someone here knows how to test GUI with SoapUI otherwise SpecFlow with Selenium. Goodluck... Re: 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. Re: 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 owns that 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. Re: Is it possible to call assert with my own test result (Pass or Fail)? thanks. I didn't know why I didn't do this "assert true" Is 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 the assertion script to either pass/true or fail/false based on my own reasoning? thanks SolvedRe: How to parse JSON or XML in Assertions Thank you to both nmarao and PaulMS. Both suggestions work for me. Re: 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++; } Re: Get Current Test Step Name in Script Assertion returns Source Test Step Name? My test step is "Login" and when I use the code above, they do return back correctly of my test step name. Thanks. How 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> SolvedRe: 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.