Contributions
Re: Problems setting up readyAPI and Maven..
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.censored</groupId> <artifactId>censored2.0</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>censored2.0</name> <properties> <do.junit.report>true</do.junit.report> </properties> <dependencies> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-runners</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-soapui-pro</artifactId> <version>${project.version}</version> <exclusions> <exclusion> <groupId>activeQueryBuilder</groupId> <artifactId>activeQueryBuilder</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-soapui</artifactId> <version>${project.version}</version> <exclusions> <exclusion> <groupId>com.jgoodies</groupId> <artifactId>forms</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>runtime</scope> </dependency> </dependencies> <build> <plugins> <plugin> <dependencies> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.9-RC1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.10-FINAL</version> <exclusions> <exclusion> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.5.0</version> <executions> <execution> <id>Full_run</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>C:\Workspace\soapui-integration-tests\API_Gateway\censored2.0.xml</projectFile> <testSuite>Main</testSuite> <testCase>Full_run</testCase> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>true</exportAll> <reportFormat>"TestCase Report"</reportFormat> <reportType>TestCase Report</reportType> <reportName>maven_pdf_report</reportName> <outputFolder>C:\Workspace\soapui-integration-tests\API_Gateway\Results</outputFolder> </configuration> </execution> </executions> <configuration> <projectFile>C:\Workspace\soapui-integration-tests\API_Gateway\censored2.0.xml</projectFile> <testSuite>Main</testSuite> <testCase>Full_run</testCase> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>true</exportAll> <reportFormat>"TestCase Report"</reportFormat> <reportType>TestCase Report</reportType> <reportName>maven_pdf_report</reportName> <outputFolder>C:\Workspace\soapui-integration-tests\API_Gateway\Results</outputFolder> <environment>SITE - API GW Open proxy</environment> <readyApiProperties> <property> <name>soapui.home</name> <value>C:/Program Files/SmartBear/ReadyAPI-1.4.1/bin</value> </property> <property> <name>soapui.scripting.library</name> <value>C:/Workspace/soapui-integration-tests/Library</value> </property> </readyApiProperties> <!--soapuiProperties> <property> <name>soapui.home</name> <value>C:/Program Files/SmartBear/ReadyAPI-1.4.1/bin</value> </property> <property> <name>soapui.scripting.library</name> <value>C:/Workspace/soapui-integration-tests/Library</value> </property> </soapuiProperties--> </configuration> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.17</version> <configuration> <outputDirectory>${project.build.directory}/reports</outputDirectory> <reportsDirectories> <reportsDirectories>${project.build.directory}/reports</reportsDirectories> </reportsDirectories> </configuration> </plugin> </plugins> </reporting> </project>9 years agoPlace ReadyAPI QuestionsReadyAPI Questions5KViews1like1CommentRe: Problems setting up readyAPI and Maven..
I copied the <configuration> out of the <execution> tag, so it's not in both places. Then it seems to work. If I move it out instead, it tells me I can't have configuration tag there. Strage. Anyways, it's working now, even if the POM is ugly, so I'll close this thread, and start cleaning up the POM9 years agoPlace ReadyAPI QuestionsReadyAPI Questions5KViews1like3CommentsRe: [Ready API 1.2] Double slash (//) in path
I'm having the same problem. We run the integration testsuite as part of a Jenkins pipeline, and build will be blocked if the soapui project fails. Now it fails always because of this error... Any update on this would be greatly appresiated.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.9KViews0likes2CommentsRe: URIException error while running loadtestRunner from cmdline
Did you find a solution for the .MalformedURIException: Double slash (//) in path error? I am seeing this in my soapui project as well. Both in soapUI, and when running it commandline with maven.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions940Views0likes0CommentsProblems setting up readyAPI and Maven..
Hi I'm trying to set up ready API to run on Maven. I'm having trouble getting my configurations read. Here's my pom.xml (Yes, it's way way to long, been trying to use the documentation on readyapi.smartbear.com/readyapi/integration/maven/ but's it quite francly really bad... the example POM.xml does not even contain valid XML, and they are in huge contrast to each other) <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.anonym</groupId> <artifactId>anonym.0</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>anonym.0</name> <parent> <groupId>com.smartbear</groupId> <artifactId>ready-api</artifactId> <version>1.5.0</version> </parent> <properties> <do.junit.report>true</do.junit.report> </properties> <dependencies> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-runners</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-soapui-pro</artifactId> <version>${project.version}</version> <exclusions> <exclusion> <groupId>activeQueryBuilder</groupId> <artifactId>activeQueryBuilder</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-soapui</artifactId> <version>${project.version}</version> <exclusions> <exclusion> <groupId>com.jgoodies</groupId> <artifactId>forms</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>runtime</scope> </dependency> </dependencies> <!-- Adding SoapUI Maven plugin --> <!--pluginRepositories> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories--> <build> <plugins> <plugin> <dependencies> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.9-RC1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.10-FINAL</version> <exclusions> <exclusion> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.5.0</version> <executions> <!--execution> <id>Full_run</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>C:\Workspace\soapui-integration-tests\API_Gateway\anonym.0.xml</projectFile> <testSuite>Main</testSuite> <testCase>Full_run</testCase> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>true</exportAll> <reportFormat>PDF</reportFormat> <reportType>TestCase Report</reportType> <reportName>maven_pdf_report</reportName> <outputFolder>C:\Workspace\soapui-integration-tests\API_Gateway\Results</outputFolder> <activeEnvironment>AITE - API GW Open proxy</activeEnvironment> <soapuiProperties> <property> <name>soapui.home</name> <value>C:\Program Files\SmartBear\SoapUI-5.2.0\bin</value> </property> <property> <name>soapui.scripting.library</name> <value>C:/Workspace/soapui-integration-tests/Library</value> </property> </soapuiProperties> <readyApiProperties> <property> <name>soapui.home</name> <value>C:/Program Files/SmartBear/ReadyAPI-1.4.1/bin</value> </property> <property> <name>soapui.scripting.library</name> <value>C:/Workspace/soapui-integration-tests/Library</value> </property> </readyApiProperties> </configuration> </execution--> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <id>p2</id> <configuration> <projectFile>C:\Workspace\soapui-integration-tests\API_Gateway\anonym.0.xml</projectFile> <testSuite>Main</testSuite> <testCase>Full_run</testCase> <outputFolder>C:\Workspace\soapui-integration-tests\API_Gateway\Results</outputFolder> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>true</exportAll> <reportFormat>"TestCase Report"</reportFormat> <reportName>maven_pdf_report</reportName> <outputFolder>C:\Workspace\soapui-integration-tests\API_Gateway\Results</outputFolder> <soapuiProperties> <property> <name>soapui.home</name> <value>C:/Program Files/SmartBear/ReadyAPI-1.4.1/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.17</version> <configuration> <outputDirectory>${project.build.directory}/reports</outputDirectory> <reportsDirectories> <reportsDirectories>${project.build.directory}/reports</reportsDirectories> </reportsDirectories> </configuration> </plugin> </plugins> </reporting> </project> Here is the mvn output: C:\Workspace\soapui-integration-tests\API_Gateway>mvn com.smartbear:ready-api-maven-plugin:1.5.0:test [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building SCRAMBLE_1.0 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- ready-api-maven-plugin:1.5.0:test (default-cli) @ SCRAMBLE_1.0 --- [WARNING] The POM for eviware:reports:jar:1.0 is missing, no dependency information available [WARNING] System property 'soapui.home' is not set! Using this directory instead: . [WARNING] No base packages specified - no classpath scanning will be done [INFO] Hibernate Validator 4.1.0.Final [INFO] Adding module 'com.smartbear.ready.cmd.CommandLineModule [WARNING] System property 'soapui.home' is not set! Using this directory instead: . 11:22:11,037 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\cc31028\soapui-settings.xml] 11:22:11,159 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Workspace\soapui-integration-tests\Library] [WARNING] System property 'soapui.home' is not set! Using this directory instead: . [WARNING] Disabling database functionality since the database schema is not compatible with this version of Ready! API. [WARNING] System property 'soapui.home' is not set! Using this directory instead: . [INFO] Reflections took 59 ms to scan 1 urls, producing 44 keys and 340 values [INFO] Reflections took 129 ms to scan 14 urls, producing 341 keys and 1478 values 11:22:13,276 INFO [PluginManager] Adding plugin from [C:\Users\cc31028\.soapui\plugins\ready-uxm-plugin-1.0.1.jar] 11:22:13,279 INFO [PluginManager] Adding plugin from [C:\Users\cc31028\.soapui\plugins\soapui-swagger-plugin-2.1.2-dist.jar] [INFO] Reflections took 220 ms to scan 1 urls, producing 892 keys and 3747 values 11:22:13,529 INFO [PluginManager] 2 plugins loaded in 254 ms 11:22:13,530 INFO [DefaultSoapUICore] All plugins loaded [WARNING] System property 'soapui.home' is not set! Using this directory instead: . 11:22:14,767 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\cc31028\soapui-settings.xml] [WARNING] System property 'soapui.home' is not set! Using this directory instead: . [INFO] Reflections took 19 ms to scan 1 urls, producing 44 keys and 340 values [INFO] Reflections took 99 ms to scan 14 urls, producing 341 keys and 1478 values 11:22:14,935 INFO [PluginManager] Adding plugin from [C:\Users\cc31028\.soapui\plugins\ready-uxm-plugin-1.0.1.jar] 11:22:14,936 INFO [PluginManager] Adding plugin from [C:\Users\cc31028\.soapui\plugins\soapui-swagger-plugin-2.1.2-dist.jar] [INFO] Reflections took 233 ms to scan 1 urls, producing 892 keys and 3747 values 11:22:15,174 INFO [PluginManager] 2 plugins loaded in 239 ms 11:22:15,175 INFO [DefaultSoapUICore] All plugins loaded 11:22:15,473 INFO [WsdlProject] Loaded project from [file:/C:/Workspace/soapui-integration-tests/API_Gateway/SCRAMBLE_1.0-soapui-project.xml] 11:22:15,854 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Workspace\soapui-integration-tests\Library] 11:22:16,103 INFO [SoapUIProTestCaseRunner] Running tests in project [SCRAMBLE-APIGW-FI-1.0] 11:22:16,106 INFO [SoapUIProTestCaseRunner] Running Project [SCRAMBLE-APIGW-FI-1.0], runType = SEQUENTIAL 11:22:16,106 WARN [WsdlProject] Not storing test run data for project 'SCRAMBLE-APIGW-FI-1.0' since there is no repository. 11:22:16,107 WARN [WsdlProject] Not storing test run metadata for project 'SCRAMBLE-APIGW-FI-1.0' since there is no repository. [WARNING] Not storing test run data for TestSuite 'Main' since there is no repository. [WARNING] Not storing test run metadata for TestSuite 'Main' since there is no repository. 11:22:16,122 WARN [WsdlTestCasePro] Not storing test run data for TestCase 'Authentication' since there is no repository. 11:22:16,122 WARN [WsdlTestCasePro] Not storing test step run data (latest runs) for TestCase 'Authentication' since there is no database repository. 11:22:16,127 INFO [SoapUIProTestCaseRunner] Running TestCase [Authentication] 11:22:16,130 INFO [SoapUIProTestCaseRunner] running step [initiatheAuthentication] 1. My soapui.home is not set. This is not a big problem, but I would expect it to be set since I do set it... 2. It starts running all testsuites and testcases, not following the setup in the POM.xml. I know I'm setting quite a lot of stuff in the pom.xml now, but I've been trying everything I can find.... Any help is greatly appresiated. -HenrikSolved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.1KViews0likes5CommentsJSON response not showing in JSON view
I got a strange issue. When calling a service that is returning JSON, it is not showing in the XML or JSON view. From XML tab: <xml/> From JSON tab: <Not JSON content> From Raw tab: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=c1eab944c1eabf400b1c938627d9 X-Backside-Transport: OK OK Date: Tue, 18 Nov 2014 10:38:17 GMT Content-Type: application/json; charset=utf8 Cache-Control: no-cache, no-store X-Cache: MISS from cache-a1 Transfer-Encoding: chunked Via: 1.1 cache-a1 (squid) Connection: keep-alive { "getAccountDetailsOut" : { "ibanNo" : "SE76 9500 0099 6042 0017 3237", "accountName" : "SALOMON MAURITZ", "topAccount" : 173237, "bankAccountNumber" : "173237", "BIC" : NDEASESS, "creditInterest" : 0.0, "creditLimit" : "", "dueDate" : "", "dueDateInterest" : "", "accountRoles" : [], "interestRates" : [{ "interestRateExpaireDate" : "", "interestRate" : 0.0, "accuredInterest" : , "amountBracket" : 0, 00 till 50.000, 00, "interestPaidDuringPrevoiusYear" : }, { "interestRateExpaireDate" : "", "interestRate" : 0.0, "accuredInterest" : , "amountBracket" : 50.000, 01 till 200.000, 00, "interestPaidDuringPrevoiusYear" : }, { "interestRateExpaireDate" : "", "interestRate" : 0.25, "accuredInterest" : , "amountBracket" : 200.000, 01 och uppåt, "interestPaidDuringPrevoiusYear" : } ] } } PS. I have removed some customer data and added XXXX(test data, but still) and formated it using notepad++, but not changed the actuall JSON at all. The JSON is valid. content-Type is also application/json. There are no messages in any logs at all. Any suggestions to what this might be? Other services on the same URL is working as expected. I could not find any similar issues, so I'm sorry if there are some, that didn't match my search criteria.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentRe: Jenkins, Maven + SoapUI. Need some config help
Thank you soo much for your help! I managed to figure out the groovy script yesterday. I had to use the pro version of the plugin. I didn't know it was 2 different ones. But I have to use the pro version of SoapUI to run the Groovy scripts, so I guess it makes sence to use the pro plugin for that as well:) I will talk to my employer, and see if they can put your plugin into their repository. They block internet for all applications on all their computers/servers, so I can't use any repositories except their own. I'm looking forward to seeing the results:)8.2KViews0likes0CommentsRe: Jenkins, Maven + SoapUI. Need some config help
I have now tried to add: <soapuiProperties> <property> <name>soapui.scripting.library</name> <value>src/test/library</value> </property> </soapuiProperties> I have copied my script to this folder. I get: Setting soapui.scripting.library value src/test/library in the console logg. It seems like it still can't use this library thought. I still get: 14:23:59,131 ERROR [SoapUI] An error occurred [No such property: SOSvalidation for class: Script1], see error log for details groovy.lang.MissingPropertyException: No such property: SOSvalidation for class: Script1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at Script1.run(Script1.groovy:15) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:149) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:239) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Any additional help would be great:)8.2KViews0likes0CommentsRe: Jenkins, Maven + SoapUI. Need some config help
Thank you for your reply! the solution to problem 1 worked perfectly. Problem 2 I keep my groovy script in a library folder, that I specify the location of in SoapUI (In the soapUI pro tab -> Script library). Can I specify this in Maven somehow? Problem 3 I use Maven 3 to run the tests. I figured that it would be the best way to do it. I guess in your Soapui project, you have configure your testcase to not fail on teststep failures to be able to run all steps, and you would like to know which steps failed. Exactly. I am hoping to make a nice overview over available services. Basically my tests only needs to see if the response contains an element that the service would respond with, if it is up and running as it should be. From what I can understand, the easiest way would be to move my teststeps into testcases instead. I am not sure I can try your plugin. The company I'm doing this project for, has very strict rules about everything, so I have to use their local repositories, and ordering new plugins/addons/updates etc takes weeks. I would love for you to tell me when it is released/is in a stable version though, and I will definitely use it then. It looks like it is exactly what I am looking for!8.2KViews0likes0Comments