NullPointerException 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)Solved2.1KViews0likes4CommentsGetting java.lang.NoClassDefFoundError in Ready API
HI all, I have a need where I need to come up with a function which with return a Jason to map Json { "a": { "b": 1, "c": null, "d": [false, true] }, "e": "f", "g": 2.3 } Map Key Value a.b 1 a.c null a.d[0] false a.d[1] true e f g 2.3 This can be done using JsonFlattener jar and was implemented in Eclipse, so added that external Jar in Ready API under “Custom Java libraries” but on executing this function it error out with message “java.lang.NoClassDefFoundError”, can some one please help me how this can be resolved. Below is the code import com.github.wnameless.json.flattener.JsonFlattener; public def func1(def expected){ def resultMap = [ : ]; resultMap = JsonFlattener.flattenAsMap(expected) return resultMap; }Solved2KViews0likes5CommentsCan we trigger a jenkins job thru ready api
Hi All, I am trying to automate a process in my present project, i have two questions related to it. 1) can I trigger a Jenkins job using ready api? 2) If the answer to my 1st question is Yes, then this jenkins job does a spark submit and run an etl job on hadoop cluster and presently I do a manual check on job status (accept, running, finished) on hadoop by passing a parameter which I used while triggering the jenkins job, So, my second question is can I make calls to the hadoop cluster to check the job status (as this job takes times around 5 to 10 mins to complete can I make recurring calls until the status changes to finished).1.7KViews0likes5CommentsSOAP 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.1KViews0likes3CommentsRerun failed test cases for a run that has tests with tags and using test runner
I have a composite project with a list of test suites and the test cases have tags. When running the tests using test runner with Test case tags, i would like to re run the test cases that were failed in the run ? Are there any possiblity to rerun a test case with tag that was failed in the run ? Thanks Jeeva938Views0likes2CommentsSoapUI on Jenkins with global variables (auth)
Hello, I have project for soapUI that contains global variables for username and password. ${#Global#username} Now I have setup to run tests on Jenkins, but it fails to authentication error. I need somehow to pass those global parameters. I have setJenkins job configuration, enable "This build is parameterized" and typedName same asmyvariable username and value for it. But it did not work, test failed, because I see username is empty while trying to call web service.1.6KViews0likes2CommentsReExecution 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.3KViews0likes7CommentsI have a service where i need to fetch the GET and POST response from it using Ready API.
I have a service where i need to fetch the GET and POST response from it using Ready API. I am able to retrieve the responses from both methods manually. Right now my requirement is, I am getting a dynamic UID from the GET response. This dynamic UID, I have to use as an input for the POST method and generate the response. As I am new to Ready API, I am unable to achieve this dynamic thing in my project. I went through few tutorials, but non of them explained complete procedure for a beginner. Can you please help me with this from scratch?641Views0likes1CommentCreating New Composite Project On Git/Bitbucket: Error
I want to create a new project inside a repository which already exist, something line this: https://bitbucket.org/xxxxxxx/soapuitest Now i am trying to create a new composite project inside this repository from SOAP UI. But when i try to go via option 'Save and Share project' and give repository url and username/pass, this is not working. It gives me error saving not a git repository but that too its trying to search .git inside the project which i want to create new and this will never happen when i dont have any project... Mon Jan 22 23:40:42 CET 2018:ERROR:java.lang.IllegalStateException: No git repo exist in: C:\shared\Test-Project\soapuitest\Project-1-readyapi-project java.lang.IllegalStateException: No git repo exist in: C:\shared\Test-Project\soapuitest\Project-1-readyapi-project at com.smartbear.readyapi.plugin.git.GitCommandHelper.createGitObject(GitCommandHelper.java:164) at com.smartbear.readyapi.plugin.git.ReadyApiGitIntegration.getLocalRepositoryUpdates(ReadyApiGitIntegration.java:84) at com.eviware.soapui.plugins.vcs.dialogs.VcsChangesDialog.a(VcsChangesDialog.java:80) So should we have 1 repository for 1 project, if not then please let me know how can i create multiple project from soap ui in same repo.979Views0likes0Comments