Contributions
Re: HTTP Builder support
I managed to send a http request through groovy script in SoapUI 5.4.0, bu putting the following jars in the lib folder:http-builder-0.6.jarantlr-2.7.7.jarappengine-api-1.0-sdk-1.3.8.jarasm-3.2.jarasm-analysis-3.2.jarasm-commons-3.2.jarasm-tree-3.2.jarasm-util-3.2.jarezmorph-1.0.6.jarsignpost-commonshttp4-1.2.1.1.jarsignpost-core-1.2.1.1.jarxml-resolver-1.2.jar Maybe not all of them are necessary, let me know if some of them can be removed without harm. The script I used is the following: import groovyx.net.http.* import static groovyx.net.http.ContentType.* import static groovyx.net.http.Method.* import org.apache.http.auth.* def http = new HTTPBuilder( 'http://tch-testrail01/testrail/index.php?/api/v2/add_result/435517' ) http.request( POST, JSON ){ req -> body = [status_id:1, comment:'passed'] headers.'Content-Type' = 'application/json' headers.'Authorization' = 'Basic ' + 'user:password'.bytes.encodeBase64().toString() response.success = { resp, json -> log.info json } }1.6KViews0likes0CommentsHow to export the TestSuite log automatically?
I would like to automatically export the TestSuite log, for example via a groovy script or through a SoapUI option. For the moment I'm using the soapui-error.log and soapui.log but I find them quite confusingif you wantto keep trace all the test executed.555Views0likes0CommentsRe: How to Parse a JSON Response Using Groovy (Examples!)
Thanks for the suggestion. I found though that if you have an array of elements the .findResult function works only for the first element, isn't it? The .find method instead seems to work properly.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions18KViews1like0Comments