Contributions
where or how to change the JVM arguments for soapui when running from command line using maven
Please help me by letting me know thewhere or how to change the JVM arguments for soapui when running from command line using maven. I am aware of the chnages we can do to soapui.bat or testrunner.bat files situated in bin directory of soapui installation directory. But changing there is not holding good for the cmd line run using maven. Your kind help will be deeply appreciated. Thanks and Regards Rahul Singh1.6KViews0likes1CommentReport Enhancement
Hi Team, In my Soapui-Maven project , I'm using maven-surefire-report-plugin. As this report are very shallow, Can anybody please suggest me the changes to my project such that report being generated are more informative this is how my POM.xml looks like <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>com.aristocrat.NCube_Regression</groupId> <artifactId>GamePlayService</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>GamePlayService</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <pluginRepositories> <pluginRepository> <id>eviwarePluginRepository</id> <url>http://www.eviware.com/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>4.6.1</version> <configuration> <projectFile>${basedir}/GamePlayService-soapui-project.xml</projectFile> <outputFolder>${basedir}/target/soapui</outputFolder> <junitReport>true</junitReport> <exportwAll>true</exportwAll> <printReport>true</printReport> <soapuiProperties> <property> <name>soapui.ext.libraries</name> <value>C:\res_test_maven\GamePlayService\bin\ext</value> </property> <property> <name>soapui.logroot</name> <value>${project.build.directory}/soapui-logs/</value> </property> </soapuiProperties> </configuration> <executions> <execution> <id>soap-webservice-test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>${basedir}/</directory> <includes> <include>**/*.log</include> </includes> </fileset> <fileset> <directory>${basedir}/soapui-errors</directory> </fileset> <fileset> <directory>${basedir}/global-groovy</directory> </fileset> </filesets> </configuration> <executions> <execution> <phase>clean</phase> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <configuration> <outputDirectory>target/site/soapui</outputDirectory> <reportsDirectories> <reportsDirectories>target/soapui/</reportsDirectories> </reportsDirectories> </configuration> </plugin> </plugins> </reporting> </project>10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes2CommentsConfiguring Log file Location for SoapUi-Maven project
Hello Team, In my Soapui-Maven project , log files like global-groovy.log, soapui.log and soapui-errors.log gets generated in the base directory of the project, I want to configure the log file location for all such type log files mentioned above. Please guide me on the same Below is my pom.xml <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>com.aristocrat.NCube_Regression</groupId> <artifactId>GamePlayService</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>GamePlayService</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <pluginRepositories> <pluginRepository> <id>eviwarePluginRepository</id> <url>http://www.eviware.com/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>4.6.1</version> <configuration> <projectFile>${basedir}/GamePlayService-soapui-project.xml</projectFile> <outputFolder>${basedir}/target/soapui</outputFolder> <junitReport>true</junitReport> <exportwAll>true</exportwAll> <printReport>true</printReport> <soapuiProperties> <property> <name>soapui.ext.libraries</name> <value>C:\someDirectory\GamePlayService\bin\ext</value> </property> </soapuiProperties> </configuration> <executions> <execution> <id>soap-webservice-test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>${basedir}/soapui</directory> </fileset> <fileset> <directory>${basedir}/soapui-errors</directory> </fileset> <fileset> <directory>${basedir}/global-groovy</directory> </fileset> </filesets> </configuration> <executions> <execution> <phase>clean</phase> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <configuration> <outputDirectory>target/site/soapui</outputDirectory> <reportsDirectories> <reportsDirectories>target/soapui/</reportsDirectories> </reportsDirectories> </configuration> </plugin> </plugins> </reporting> </project>10 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.8KViews0likes2Comments- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes0Comments
[Res]JunitReport are not getting generated
Hello Team, Let me give some background first, I have soapui project, trying to build the same using maven, my pom.xml looks like this <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>com.aristocrat.NCube_Regression</groupId> <artifactId>GamePlayService</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>GamePlayService</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <pluginRepositories> <pluginRepository> <id>eviwarePluginRepository</id> <url>http://www.eviware.com/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>4.6.1</version> <configuration> <projectFile>${basedir}/GamePlayService-soapui-project.xml</projectFile> <outputFolder>${basedir}/target/soapui</outputFolder> <junitReport>true</junitReport> <exportwAll>true</exportwAll> <printReport>true</printReport> <soapuiProperties> <property> <name>soapui.ext.libraries</name> <value>C:\res_test_maven\GamePlayService\bin\ext</value> </property> </soapuiProperties> </configuration> <executions> <execution> <id>soap-webservice-test</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>${basedir}/soapui</directory> </fileset> <fileset> <directory>${basedir}/soapui-errors</directory> </fileset> <fileset> <directory>${basedir}/global-groovy</directory> </fileset> </filesets> </configuration> <executions> <execution> <phase>clean</phase> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <configuration> <outputDirectory>target/site/soapui</outputDirectory> <reportsDirectories> <reportsDirectories>target/soapui/</reportsDirectories> </reportsDirectories> </configuration> </plugin> </plugins> </reporting> </project> On executing below command "mvn com.smartbear.soapui:soapui-maven-plugin:4.6.1:test",it does not creates the target(specified as target directory in reporting plugin of pom.xml) folder and reports are not getting generated. Also on executing "mvn test" it says [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building GamePlayService 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ GamePlayService --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\res_test_maven\GamePlayService\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ GamePlayService --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ GamePlayService --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\res_test_maven\GamePlayService\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ GamePlayService --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ GamePlayService --- [INFO] No tests to run. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.071s [INFO] Finished at: Tue Apr 15 17:28:52 IST 2014 [INFO] Final Memory: 5M/153M [INFO] ------------------------------------------------------------------------ C:\res_test_maven\GamePlayService> Please shed some light on how to generate Junit report, when the project is build using maven. Many Thanks Rahul Singh11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes3CommentsAn error occurred [No such property: RGS for class: Script1]
Hello, I am having a test suite which basically performs validation on Restfull webservices, for request parameters I have to use java classes , which I have bundled as jar file and placed at “C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\ext”. Now when I run my test from command line or from soapUI directly it works good. However on running the same as maven install, I see following error [INFO] --- soapui-pro-maven-plugin:4.6.1:test (soap-webservice-test) @ NCube_Regression_TestSuite --- SoapUI Pro 4.6.1 Maven2 TestCase Runner 12:24:24,331 WARN [SoapUI] Missing folder [C:\res_test_maven\NCube_Regression_TestSuite\.\ext] for external libraries 12:24:24,508 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\singhrah\soapui-settings.xml] 12:24:24,662 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\scripts] 12:24:25,130 INFO [WsdlProject] Loaded project from [file:/C:/res_test_maven/NCube_Regression_TestSuite/NCube-AccountService-Regression-soapui-project.xml] 12:24:25,224 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\scripts] 12:24:25,537 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [NCube_AccountService_Regression] 12:24:25,539 INFO [SoapUIProTestCaseRunner] Running Project [NCube_AccountService_Regression], runType = SEQUENTIAL 12:24:25,548 INFO [SoapUIProTestCaseRunner] Running SoapUI testcase [CreateBet TestCase] 12:24:25,554 INFO [SoapUIProTestCaseRunner] running step [Groovy Script] 12:24:25,957 INFO [WsdlProject] Loaded project from [file:/C:/Users/singhrah/Desktop/NCube-AccountService-Regression-soapui-project.xml] 12:24:25,961 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\scripts] 12:24:25,987 ERROR [SoapUI] An error occurred [No such property: RGS_WebSession for class: Script1], see error log for details groovy.lang.MissingPropertyException: No such property: RGS_WebSession 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:18) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:89) 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:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) 12:24:25,993 ERROR [SoapUIProTestCaseRunner] Groovy Script failed, exporting to [C:\res_test_maven\NCube_Regression_TestSuite\NCube_AccountService_regression_TestSuite-CreateBet_TestCase-Groovy_Script-0-FAILED.txt] 12:24:25,994 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [CreateBet TestCase], time taken: 433ms, status: FAILED 12:24:25,995 INFO [SoapUIProTestCaseRunner] Project [NCube_AccountService_Regression] finished with status [FAILED] in 454ms [ERROR] java.lang.Exception: TestCase [CreateBet TestCase] failed without assertions11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes2CommentsAn error occurred [No such property: RGS_WebSession for clas
Hello , I am having a test suite which basically performs validation on Restfull web-services, for request parameters I have to use java classes , which I have bundled as jar file and placed at “C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\ext”. Now when I run my test from command line or from soapUI directly it works good. However on running the same as maven install, I see following error 12:24:24,331 WARN [SoapUI] Missing folder [C:\res_test_maven\NCube_Regression_TestSuite\.\ext] for external libraries 12:24:24,508 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\singhrah\soapui-settings.xml] 12:24:24,662 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\scripts] 12:24:25,130 INFO [WsdlProject] Loaded project from [file:/C:/res_test_maven/NCube_Regression_TestSuite/NCube-AccountService-Regression-soapui-project.xml] 12:24:25,224 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\scripts] 12:24:25,537 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [NCube_AccountService_Regression] 12:24:25,539 INFO [SoapUIProTestCaseRunner] Running Project [NCube_AccountService_Regression], runType = SEQUENTIAL 12:24:25,548 INFO [SoapUIProTestCaseRunner] Running SoapUI testcase [CreateBet TestCase] 12:24:25,554 INFO [SoapUIProTestCaseRunner] running step [Groovy Script] 12:24:25,957 INFO [WsdlProject] Loaded project from [file:/C:/Users/singhrah/Desktop/NCube-AccountService-Regression-soapui-project.xml] 12:24:25,961 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\Program Files\SmartBear\soapUI-Pro-4.6.0\bin\scripts] 12:24:25,987 ERROR [SoapUI] An error occurred [No such property: RGS_WebSession for class: Script1], see error log for details groovy.lang.MissingPropertyException: No such property: RGS_WebSession 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:18) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:96) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:89) 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:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) 12:24:25,993 ERROR [SoapUIProTestCaseRunner] Groovy Script failed, exporting to [C:\res_test_maven\NCube_Regression_TestSuite\NCube_AccountService_regression_TestSuite-CreateBet_TestCase-Groovy_Script-0-FAILED.txt] 12:24:25,994 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [CreateBet TestCase], time taken: 433ms, status: FAILED 12:24:25,995 INFO [SoapUIProTestCaseRunner] Project [NCube_AccountService_Regression] finished with status [FAILED] in 454ms [ERROR] java.lang.Exception: TestCase [CreateBet TestCase] failed without assertions [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.749s [INFO] Finished at: Thu Feb 13 12:24:25 IST 2014 [INFO] Final Memory: 15M/122M Her is my pom <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>com.aristocrat.Regression</groupId> <artifactId>TestSuite</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>NCube_Regression_TestSuite</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>4.6.1</version> <configuration> <projectFile>${basedir}/Regression-soapui-project.xml</projectFile> </configuration> <executions> <execution> <id>soap-webservice-test</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.5</version> <configuration> <filesets> <fileset> <directory>${basedir}/soapui</directory> </fileset> <fileset> <directory>${basedir}/soapui-errors</directory> </fileset> <fileset> <directory>${basedir}/global-groovy</directory> </fileset> </filesets> </configuration> <executions> <execution> <phase>clean</phase> </execution> </executions> </plugin> </plugins> </build> </project>11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes1Comment