An error occurred [Invalid JSON String], see error log for detail when clicks Plugins at 2.0
Recently we have upgraded from Ready API 1.9 to 2.0. An error occurred [Invalid JSON String], see error log for details message is displayed at when tried to click on the Preference log. Below message from error log. Fri May 12 13:49:45 EDT 2017:ERROR:net.sf.json.JSONException: Invalid JSON String net.sf.json.JSONException: Invalid JSON String at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:143) at net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:103) at net.sf.json.groovy.JsonSlurper.parseText(JsonSlurper.java:78) at com.eviware.soapui.plugins.PluginManager$AvailablePluginsLoader.a(PluginManager.java:462) at com.eviware.soapui.plugins.PluginManager$AvailablePluginsLoader.readAvailablePlugins(PluginManager.java:440) at com.eviware.soapui.plugins.PluginManager.getAvailablePlugins(PluginManager.java:296) at com.eviware.soapui.actions.plugin.PluginManagerAction$AvailablePluginsTableModel.(PluginManagerAction.java:602) at com.eviware.soapui.actions.plugin.PluginManagerAction.actionPerformed(PluginManagerAction.java:95) at com.eviware.soapui.support.action.support.WrapperSoapUIAction.perform(WrapperSoapUIAction.java:20) at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:128) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)6.9KViews0likes7Commentsjson block as a property value
Is it possible to have a json block as my property value? { "firstName": "John", "lastName" : "doe", "age" : 26, "address" : { "streetAddress": "naist street", "city" : "Nara", "postalCode" : "630-0192" } I tried it by making it a single line and it worked. However, when it comes to large json data, it will be very hard to maintain it.Solved5.1KViews0likes8CommentsHow do i fetch raw request for REST, the one that you see by clicking on the RAW button,using groovy
How do i fetch a raw request using a Groovy script. Understand that I don't want the raw request shown in the custom property, but the one which you can see when you click on the RAW tab. it includes, the endpoint details, headers, body etc. something like this. GET https://chrus.au.club.io/orders/0754855/memo HTTP/1.1 Accept-Encoding: gzip,deflate X-Transaction-Id: gfr456d03ygh38s2 Host: chorus-scg-api-v1-sit.au.cloudhub.io Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_112)Solved4.5KViews0likes2Commentstestrunner.bat java.lang.StackOverflowError
Hi All testrunner.bat -sBatServices -a -fC:\Users\XXX\Desktop\Results "-RTestSuite Report" -FPDF "-EDefault environment" "C:\Users\XXX\Documents\\Services\restapi\XXX.xml" I noticed that first test always fails in test suite and you can see exception below.. I tested it by moving duplicate step to the first step to the top and they fail but the same test works if its like 3 in a row It works perfectly fine with UI option When I try to run by testrunner.bat from cmd, I have jdk build 1.8.0_91 i have exception.. I tried changing memory size in testrunner but it did not help. I tried to update jdk version but no luck. I would really appreciate if you can help me to resolve exception 17:14:55,199 INFO [SoapUIProTestCaseRunner] Running tests in project [Mobile] 17:14:55,260 INFO [SoapUIProTestCaseRunner] Running TestCase [LoginTest] 17:14:55,274 INFO [SoapUIProTestCaseRunner] Running TestCase [LoginTest] 17:14:55,289 INFO [SoapUIProTestCaseRunner] running step [Login] 17:14:55,419 ERROR [SoapUI] An error occurred [java.lang.StackOverflowError], see error log for details 17:14:55,419 ERROR [errorlog] java.lang.StackOverflowError java.lang.StackOverflowError at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source)3.3KViews0likes2CommentsMongo Context varibale - Is it possible to use it throughout the test suite
Greetings, While working with MondoDB using gmongo (groovy wrapper), we open connection using mongoDB context, something like this: def mongoClient = new MongoClient( new ServerAddress(dbServer), Arrays.asList(credentials) ) context.gmongo = new GMongo( mongoClient ) context.mongoDB = context.gmongo.getDB(dbDatabase) In my current framework, I open connection and close it everytime I need to do something with mongodb. I am trying to somehow define the context once globally and use the variable to access mongodb throughout the test suite. Is there any way to do it ? Any help would be much appreciated.Solved3KViews0likes8Commentshow to set options for mock service in Ready API ?
hi team, could you please let us know how to set options for mock service in Ready API ? PFB screenshot as to how I used to do in SOAP UI, I used to set Host I am not clear on how we could do the same in Ready API, could you please help me out with it Thanks Wilfred C2.7KViews0likes1CommentData driven testing with excel not working
I want to implement Data driven testing with excel/JDBC. Initially I want to try with excel. I followed the tutorialhttp://readyapi.smartbear.com/soapui/data_driven/tutorial/jdbc/source I don't see any response when I run the data source first and request next, but when I run request with manual input it is working perfect. Please see the attachment. Thanks, RaviSolved2.3KViews0likes4CommentsReExecution Status is not getting Updated from test suite teardown
Hi Team, Greetings!! I am running a test suite andin the tear down script am re-executing the failure test cases. The issue is ,I am able to re-execute the failed test cases but the status of the test case are not getting updated even though testcase got passed on Re-Execution. Please help me out in this how to update status of the failure testcase Thank You!!2.3KViews0likes7CommentsSOAP UI data driven testsuit's custom Junit report using plugin
:I have a problem generating custom JUnit report for SOAPUI Pro using com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.5.1.0 plugin asmy testsuits are data driven and have DataSource step (SOAP UI Pro feature) which is not recozinised in this plugin:womansad: I can however generate default JUnit report using com.smartbear:ready-api-maven-plugin:1.5.0 which recoznises DataSource step. How can i get a custom report with datasource as a step? Attaching both my pom.xml. Using ready-api-maven-plugin: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>ready-api-maven-plugin</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Create SoupUI Application</name> <url>http://repo.maven.apache.org/maven2/</url> <pluginRepositories> <pluginRepository> <id>MavanSmartBearPluginRepository</id> <url>http://repo.maven.apache.org/maven2/</url> </pluginRepository> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://smartbearsoftware.com/repository/maven2/</url> </pluginRepository> </pluginRepositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <build> <plugins> <plugin> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.5.0</version> <dependencies> <dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> <version>1.3.1</version> </dependency> <dependency> <groupId>net.sourceforge.jexcelapi</groupId> <artifactId>jxl</artifactId> <version>2.6</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>forms</artifactId> <version>1.0.7</version> </dependency> <dependency> <groupId>com.jgoodies</groupId> <artifactId>looks</artifactId> <version>2.2.0</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>sampleProject.xml</projectFile> <outputFolder>${basedir}${file.separator}reports</outputFolder> <junitReport>true</junitReport> <exportAll>true</exportAll> <printReport>true</printReport> <testSuite>${testsuite}</testSuite> <soapuiProperties> <property> <name>script.logroot</name> <value>Log/</value> </property> <property> <name>soapui.home</name> <value>C:/Program Files/SmartBear/ReadyAPI-1.5.0/bin</value> </property> </soapuiProperties> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.7.2</version> </plugin> </plugins> </reporting> </project> Usingmaven-soapui-extension-plugin: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <name>Create SoupUI Application</name> <repositories> <repository> <id>maven2</id> <url>http://repo.maven.apache.org/maven2</url> </repository> <repository> <id>smartbearpluginRepository</id> <url>http://www.soapui.com/repository/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>maven2</id> <url>http://repo.maven.apache.org/maven2</url> </pluginRepository> <pluginRepository> <id>smartbearpluginRepository</id> <url>http://smartbearsoftware.com/repository/maven2</url> </pluginRepository> </pluginRepositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <dep.version.soapui>4.5.1</dep.version.soapui> </properties> <dependencies> <dependency> <groupId>eviware</groupId> <artifactId>soapui</artifactId> <version>${dep.version.soapui}</version> </dependency> <dependency> <groupId>eviware</groupId> <artifactId>soapui-pro</artifactId> <version>${dep.version.soapui}</version> </dependency> <dependency> <groupId>eviware</groupId> <artifactId>ext-xmlbeans</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> </dependency> <dependency> <groupId>com.github.redfish4ktc.soapui</groupId> <artifactId>maven-soapui-extension-plugin</artifactId> <version>4.5.1.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupId>com.github.redfish4ktc.soapui</groupId> <artifactId>maven-soapui-extension-plugin</artifactId> <version>4.5.1.0</version> <dependencies> <dependency> <groupId>test</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> <configuration> <runnerType>PRO</runnerType> <projectFile>sampleProject.xml</projectFile> <outputFolder>${basedir}${file.separator}reports</outputFolder> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>true</exportAll> <junitHtmlReport>true</junitHtmlReport> <soapuiProperties> <property> <name>soapui.logroot</name> <value>Logs/</value> </property> <property> <name>soapui.junit.reportCollector</name> <value>soapui.CustomJunitReportGenerator</value> </property> </soapuiProperties> </configuration> </plugin> </plugins> </build> </project>Solved2.1KViews0likes3CommentsNullPointerException at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep
I am stuck with below error . I am calling a groovy test step from assertion of a Test Step and this groovy test step is calling another test case . it is running but below exception is coming . Just sample code . Test Step 1 - > In assertion calling another test step based on some conditions context.testCase.getTestStepByName("VerifyAddress").run(context.testRunner,context) Test step 2 (VerifyAddress) //calling another step based on few conditions def key = context.testCase.testSuite.project.testSuites['Keywords_Addresses'].testCases['ApproveAdress'] key.setPropertyValue("city",city) def runner = key.run( null, true ) runner.waitUntilFinished() Thu Apr 29 22:53:32 IST 2021: ERROR: java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:921) at com.eviware.soapui.model.testsuite.TestStep$run$0.call(Unknown Source) at Script7.run(Script7.groovy:14) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:94) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:83) at com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.GroovyScriptAssertion.assertScript(GroovyScriptAssertion.java:150) at com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.GroovyScriptAssertion.internalAssertResponse(GroovyScriptAssertion.java:186) at com.eviware.soapui.impl.wsdl.teststeps.WsdlMessageAssertion.assertResponse(WsdlMessageAssertion.java:164) at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.assertResponse(RestTestRequest.java:150) at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:141) at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:606) at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.afterSubmit(RestTestRequestDesktopPanel.java:365) at com.eviware.soapui.impl.wsdl.WsdlSubmit.notifyListenersAfterSubmit(WsdlSubmit.java:111) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:157) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:835)Solved2KViews0likes4Comments