Ilario72Occasional ContributorJoined 4 years ago12 Posts2 LikesLikes received3 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: I have a groovy script that parses a complex json and throws the desired values in loop Hi, first of all, with a groovy script (e.g. step-1) you can set a property value with the size of the result (grantscnt) and save an additional property for take note of actual result index, example: def grantscnt = parsedJson[0].Grant.Project.Grants.size; testStep.testCase.setPropertyValue("grantscnt", grantscnt); testStep.testCase.setPropertyValue("grantindex", "0"); then in the next groovy step (e.g. step-2) get the values of the first grantDetailId and save as properties and update actual result index: def index = testStep.testCase.getPropertyValue("grantindex").toInteger(); testStep.testCase.setPropertyValue("grantindex", (index +1).toString() ); now you can get the properties values and use as you want (SQL, requests, etc) and finally with a groovy script step go to step-2 and get the next index until grantindex<grantscnt using the gotoStepByName function Re: OAuth2 Hi, the error responseStatus=0 is the highest problem, it seems that the url is not reachable from your computer or is locked, you should at least receive one of the following responseStatus: 400 (bad request) 401 (unauthorized) 404 (not found) Please check the documentation of the OAuth2 service that you are trying to connect and check the status code 0 meaning Re: SoapUI 5.6.0 launch error Java Hi, you should install and use a SoapUI version compatible with your Java, have a look to the release notes of SoapUI versions: https://www.soapui.org/downloads/latest-release/release-history/ and choose a compatible version Re: Soapui Test failing in Azure DevOps pipeline HI, this seems an error with the repository configured for maven, probably the repository is not more reachable you should have a look to the maven settings, usually located in ~/.m2/settings.xml Have a look to this thread there is a cloud solution for this: https://stackoverflow.com/questions/66980047/maven-build-failure-dependencyresolutionexception Re: Error shown as The JVM could not start. The maximum heap size might be too large or an antivirus or Hi, in this link you can find the solution: https://support.smartbear.com/readyapi/faq/readyapi-startup-troubleshooting/ PS: in case of SoapUI edit the file SoapUI-X.X.0.vmoptions instead of ReadyAPI.vmoptions Re: Is there a way to start a webservice mock from .xml in docker? Hi, I'm not sure I understand the question but in linux bin/mockservicerunner.sh script covers running both a REST and SOAP mock with this command line: bin $ ./mockservicerunner.sh -m "MockService 1" "/home/usrsoapui/SoapUIProjects/Project-soapui-project.xml" where m: The name of the MockService to run. So in your docker container (with soapui included) you can run the same project specifying the MockService to run Re: I want to enter value in a popup text box using groovyscript can some one suggest me how to do that? Hi, with this Groovy script: import javax.swing.* def popup = { JFrame jframe = new JFrame() String answer = JOptionPane.showInputDialog(jframe, it) jframe.dispose() answer } def mytext = popup("Enter a text") log.info "text inserted: " + mytext I'm able to enter a value in a popup: Re: Upgrading from ReadyAPI 2.7.1 to 3.10.0. Hi, I recently upgraded my 3.8 version to 3.10 and during the installation the installer asks me if I want to install install version 3.10 separately or replace the current version: I choose replace, so be alert to questions during the upgrade process Re: How to convert Test Steps to a Test Case I don't think there is a solution for do it automatically with a single action, as I know you must select a single test step right click and press "Clone test step" then in the Clone window select Target Test Case : <Create New> and select Move Instead option, perform these actions for each step. I hope it helps you Re: unable to send message to weblogic JMS I finally solved it following this procedure that I want share to you: - insert in <readyapi>/bin/ext/ directory the jar files: weblogic.jar and wlthint3client.jar (get them from from your weblogic machine) - Start ReadyAPI - create new project, then new test suite and test case - add a new JMS Server with: - Initial Context Class: weblogic.jndi.WLInitialContextFactory - Provider URL: (insert your t3 address, e.g.: t3://twls01:7020 ) - Connection Factory JMDI Name: insert the JNDI name of your connection factory (see your weblogic configuration) - User and Password of weblogic - additional JNDI: add java.naming.security.principal (with weblogic user value) - additional JNDI: add java.naming.security.credential (with weblogic password value) - once created press "test" button to check connection - import a new API definition using a wsdl (e.g.: http://www.dneonline.com/calculator.asmx?wsdl ) - in the test case add new step: JMS Request - in the JMS Request popup select interface: SOAP - in the JMS Request popup select a operation interface (e.g.: CalculatorSoap->Add) - leave empty the options for the new request - in the question: Start Hermes for creating JMS objects? press NO - in the manual tab insert: - JMS Server (select the JMS created) - Send JNDI Destination: insert the JNDI name of the queue/topic (see your weblogic configuration) - in the step JMS Request insert your xml message and assertion: JMS Status As conclusion I believe that in this new version there are too many references to HermesJMS even if it is no longer used, this creates confusion to the user and in addition the online documentation is not exhaustive