Contributions
Re: Run SoapUi project(.xml extention) through maven through
hello skush05 I guess I can help with. Just few days ago a made it happen. 1. Setup maven and make sure that your command line recognices the "mvn" command. For details look here 2. Create a pom.xml file and place it to the same folder where your SoapUI test project is located 3. The content should look like this (for more details look here): <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>YOUR_GROUP_ID</groupId> <artifactId>YOUR_ARTIFACT_ID</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>YOUR_NAME</name> <description>YOUR_DESCRIPTION</description> <url>http://maven.apache.org</url> <pluginRepositories> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://smartbearsoftware.com/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.3.0</version> <dependencies> <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> <version>7.4.1.jre8</version> <scope>runtime</scope> </dependency> </dependencies> <configuration> <projectFile>YOUR_TEST_PROJECT.xml</projectFile> <outputFolder>${project.build.directory}/reports</outputFolder> <junitReport>true</junitReport> <printReport>true</printReport> <testSuite>YOUR_TEST_SUITE</testSuite> <soapuiProperties/> </configuration> </plugin> </plugins> </build> </project> In this example we use also database connection via JDBC driver from micrososft. You can see how it is specified in dependencies section 4.Open command line tool (in Windows it is cmd) and navidate to the folder where the test project and pom xml files are located 5. To run 1st time and resolve/download dependencies: mvn install 6. To execute test suite specified int he pom.xml: mvn com.smartbear.soapui:soapui-maven-plugin:5.3.0:test As successfull result you will get something like oapUI 5.3.0 TestCaseRunner Summary ----------------------------- Time Taken: 42743ms Total TestSuites: 1 Total TestCases: 632 (0 failed) Total TestSteps: 2528 Total Request Assertions: 632 Total Failed Assertions: 0 Total Exported Results: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 667.296 s [INFO] Finished at: 2019-11-27T14:31:28+01:00 [INFO] ------------------------------------------------------------------------ NOTE: Before doing it on remote machine (where CI server is running) I recommend to try it 1st on local machine.919Views0likes0CommentsTestSuite is marked as FAILED and test execution is terminated
Dear SmartBear Community Our company moved from ORACLE JDK to AdoptOpenJDK (It uses infrastructure, build and test scripts to produce prebuilt binaries from OpenJDKâ„¢ class libraries). The reason of the move is the change in ORACLE licensing from free to paid. Since this migration the test suite executes the 1st test cases and marks the overal execution as failed even if test case passed. Meanwhile in SoapUI log I can see the following error: Thu Sep 19 14:00:53 CEST 2019:INFO:Used java version: 1.8.0_222 Scheduling garbage collection every 60 seconds Thu Sep 19 17:33:28 CEST 2019:ERROR:Exception during Test Execution java.lang.NoClassDefFoundError: javafx/application/Platform at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel$InternalTestSuiteRunListener.afterTestCase(WsdlTestSuiteDesktopPanel.java:430) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.notifyAfterRunTestCase(WsdlTestSuiteRunner.java:200) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.runSequential(WsdlTestSuiteRunner.java:130) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:94) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:128) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: javafx.application.Platform at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) Seems it is caused by missing javafx libraries. Could you please help to workaround this error.682Views0likes1CommentRe: SoapUI 5.5.0 will not run project or suites - Toolkit not initialized error
Apologies for misinformation. I am getting completely other errror. Thu Sep 19 09:27:04 CEST 2019:ERROR:Exception during Test Execution java.lang.NoClassDefFoundError: javafx/application/Platform at com.eviware.soapui.impl.wsdl.panels.testsuite.WsdlTestSuiteDesktopPanel$InternalTestSuiteRunListener.afterTestCase(WsdlTestSuiteDesktopPanel.java:430) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.notifyAfterRunTestCase(WsdlTestSuiteRunner.java:200) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.runSequential(WsdlTestSuiteRunner.java:130) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:94) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:46) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:128) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: javafx.application.Platform at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) Our IT Services installed AdoptOpenJDK and seems it has javafx missing. What is the best solution to solve it?1.6KViews0likes1CommentRe: How to execute a SQL query which includes temp table ( creates and inserts ) - JDBC Step
I do not see the original issue resolved as still CREATE command is not working from JDBC test step. At least for me. I started one more topic to for the same issue: https://community.smartbear.com/t5/SoapUI-Open-Source/CREATE-TABLE-does-not-work-from-JDBC-test-step/m-p/188667#M292585 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0CommentsCREATE TABLE does not work from JDBC test step
Hello SoapUI community I have SQL Server DB. When I execute the following JDBC test step it runs without any error: drop table if exists ##GTA_PFile100_Precondition_Result; create table ##GTA_PFile100_Precondition_Result ( checkResult nvarchar(2000) ) insert into ##GTA_PFile100_Precondition_Result (checkResult) values ('Failed'); Request Log: 2019-08-06 16:08:23 - Sql executed: drop table if exists ##GTA_PFile100_Precondition_Result; create table ##GTA_PFile100_Precondition_Result ( checkResult nvarchar(2000) ); insert into ##GTA_PFile100_Precondition_Result(checkResult) values ('Failed'); 2019-08-06 16:08:23 - response time: 3ms (54 bytes) In result the only drop command was applied to the database. The create and insert commands were not. There are similar topics and the solution is to use the grrovy script to execute sql commands. I am curious why drop is working but create is not. Could you pls help me with it?Solved1.3KViews0likes2Comments- 5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes2Comments