Contributions
Re: How do you use a Groovy script to clone a TestSuite from one project to another?
I get what you're saying. So is there no way to move the test suites and have it pick up the new interface generated by the new Swagger import (or just not move the original interface at all), using the script? I'm guessing that's what happens when I move Test Suites between projects manually? Thanks, Rish4KViews0likes1CommentRe: How do you use a Groovy script to clone a TestSuite from one project to another?
JHunt, firstly, I really appreciate you taking the time to provide such a concise solution to my question. I would like to offer some clarification regarding my projects and Test Suites. The Projects that I'm working on are created by importing Swagger documentation. There are updates to this documentation over time, however since SoapUI Open Source does not allow you to re-import the Swagger documentation to the same project, I have to create new projects. However, the Test Suites that have been created in the previous Projects will always work in the new one (with the updated Swagger doc., mainly because there are only small updates), which is why I resort to MOVING the Test Suites using the Clone option. The question I posted was in an attempt to automate this cloning/moving. Will your code still work for this scenario?4.1KViews0likes3CommentsHow do you use a Groovy script to clone a TestSuite from one project to another?
I found the interface Interface CloneTestSuiteAction.Form in the SoapUI API docs, but I am unsure how to use to it to implement the cloning. The clone would be something like moving the TestSuite "Example" from Project 1 to Project 2. Any help would be greatly appreciated. Thanks!Solved4.1KViews0likes5CommentsExtract multiple JSON response properties to use in the next request
I have a GET request thathas a response like: [{ "message_category_id": "1", "message_sub_category_id": "1", "message_id": "1", "heading": "Test Heading 1", "summary": "Test Summary 1", "body": "Test Body 1", "is_seen": true, "is_read": true, "is_archived": false }] The POST request that follows this, requires a JSON input like: [ { "message_id": "hex", "is_seen": true/false, "is_read": true/false, "is_archived": true/false } ] Is there a way I can extract only the properties I need from the GET response and use it in the POST request as a JSON input?974Views0likes0Comments