Contributions
Re: Iterate through the TestSuites in my Project TearDown Script (using Groovy Script)
You were mostly there, it looks like you were only getting the name in your script is that right? The property I think you are looking for is the status property of the various result classes. I put this in my tear down script and it worked well. for (suiteResult in runner.results) { log.info(suiteResult.testSuite.name + " " + suiteResult.status) for (caseResult in suiteResult.results) { log.info("\t" + caseResult.testCase.name + " " + caseResult.status) for (stepResult in caseResult.results) { log.info("\t\t" + stepResult.testStep.name + " " + stepResult.status) } } } You can write to a file instead of using log.info if you want to save this output for some type of reporting. Jack8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: parse the json response with field name containing slash '/'
This is primarily a groovy question. There are actually a coupleof ways you can handle this. The simplest change is just to quote your fields, so change your line below to this: def bName =jsonResponse.meta."data/library".bookName It looks weird, but you need quotes because / is a valid character for identifiers in groovy, but not in java. Here is the documentation for this feature. http://groovy-lang.org/syntax.html#_quoted_identifiers The documentation for the JsonSlurper class says that the parseText method returns maps and lists, so you could optionally use the native syntax for those classes like jsonResponse["/data/library"]["bookName"] but then you are using quotes anyway. Jack8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews1like2CommentsDatasource values blank on Linux
Hello, I am using SoapUI NG Pro, and I have been changing the project I work with from using a groovy test step that call methods that read a csv file to just using a Datasource test step. This works fine on the Windows machine I am developing my test on. The datasource and following HTTP request work as expected. When I transfer the project file and csv file to a headless Linux machine (which has more resources for load tests) it seems as though the query paramater's value is now blank. There is a need to change the filepath in the project's xml to fit the Linux filepath scheme, but I have done that. Is there anything else I need to do or any other reason this would be happening? I have tested that this occurs on Ready API 1.5 and 1.7. I also saw this posthttps://community.smartbear.com/t5/SoapUI-NG/TestSuite-Data-not-passed-from-Data-Source-to-Request-XML/td-p/113967 but I thought I would get a response faster by making a new post since activity was moved away from that one. Thanks8 years agoPlace ReadyAPI QuestionsReadyAPI Questions788Views0likes1Comment