Contributions
SoapUI Open Source project test cases are running in indefinite loop
I have a SoapUI project with Test Suite Setup scripts running the test cases multiple times based on a global property but it is running in indefinite loop. Please help me to fix the issue: def project = null def workspace = runner.testSuite.project.getWorkspace(); def count=context.expand('${#Global#run}') if (workspace != null) { project = workspace.getProjectByName("IQCX") } if (project.open && project.name == "IQCX") { def properties = new com.eviware.soapui.support.types.StringToObjectMap() def testcase = project.getTestSuiteByName("TestSuite 1").getTestCaseByName("Login"); def testcase1 = project.getTestSuiteByName("TestSuite 1").getTestCaseByName("Logout"); if(testcase == null) { throw new RuntimeException("Could not locate testcase 'TestCase'! "); } else { // This will run everything in the selected project for(int i=1;i<=count;i++){ if(i!=count){ testcase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) sleep(70000) testcase1.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) sleep(5000) log.info( "Finished running "+i+" cycle" ) } else if(i==count){ log.info "count is " + i runner.cancel("finish it") testcase=null return null break; } else{ break; } } runner.cancel("finish it") testcase=null return null } } else { throw new RuntimeException("Could not find project") }386Views0likes1CommentSoapUI 5.2 Project tests execution using Maven plugin in Jenkins transitive dependency error
am trying to run a SoapUI 5.2.0 open source project xml in Jenkins using Maven and getting the following error: [ERROR] Failed to execute goal com.smartbear.soapui:soapui-maven-plugin:5.4.0:test (SoapUI-Test) on project AmexIQCX: Execution SoapUI-Test of goal com.smartbear.soapui:soapui-maven-plugin:5.4.0:test failed: Plugin com.smartbear.soapui:soapui-maven-plugin:5.4.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.fasterxml.jackson.core:jackson-databind:jar:2.3.0, org.apache.ws.security:wss4j:jar:1.6.16: Could not transfer artifact com.fasterxml.jackson.core:jackson-databind:jar:2.3.0 from/to m-all (https://ci-repo.aexp.com/java-proxy/content/groups/prod/😞 Access denied to:https://ci-repo.aexp.com/java-proxy/content/groups/prod/com/fasterxml/jackson/core/jackson-databind/2.3.0/jackson-databind-2.3.0.jar, ReasonPhrase:Requested item is quarantined. -> [Help 1] Here 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>AmexIQCX</groupId> <artifactId>AmexIQCX</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <!-- or whatever current version --> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.4.0</version> <configuration> <projectFile>./SabreCommandLLS1-8-1RQ-soapui-project.xml</projectFile> <testSuite>TestSuite 1</testSuite> <printReport>true</printReport> <outputFolder>${basedir}/soapui-output</outputFolder> <junitReport>true</junitReport> </configuration> <dependencies> <dependency> <groupId>com.jgoodies</groupId> <artifactId>forms</artifactId> <version>1.0.7</version> </dependency> <dependency> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.4.0</version> <!-- <exclusions> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </exclusion> <exclusion> <groupId>org.apache.ws.security</groupId> <artifactId>wss4j:jar</artifactId> </exclusion> </exclusions> --> </dependency> </dependencies> <executions> <execution> <id>SoapUI-Test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.20.1</version> <configuration> <reportsDirectories> <reportsDirectory>${basedir}/soapui-output</reportsDirectory> </reportsDirectories> <outputDirectory>${basedir}/soapui-output</outputDirectory> <outputName>${project.artifactId}-TEST-${env}</outputName> <showSuccess>true</showSuccess> <aggregate>true</aggregate> <linkXRef>false</linkXRef> </configuration> <executions> <execution> <id>Surefire-Report</id> <phase>test</phase> <goals> <goal>report-only</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <pluginRepositories> <pluginRepository> <id>smartbear-sweden-plugin-repository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> </project>Solved1.1KViews0likes1CommentRunning a test case of different project in a same workspace using maven soapui plugin in java
Hi, I have a project A in which i am running a groovy to call a test case of another project B in same workspace. When I run it in SoapUI 5.3 UI it works OK but in java using maven soapui plugin it is not working. Project A (PriceQuoteService-Tests-soapui-project) test step: import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.wsdl.testcase.* import com.eviware.soapui.model.testsuite.* import com.eviware.soapui.model.support.PropertiesMap; import com.eviware.soapui.model.project.ProjectFactoryRegistry import com.eviware.soapui.impl.wsdl.WsdlProjectFactory import com.eviware.soapui.impl.WorkspaceImpl; import java.io.File def session = testRunner.testCase.testSuite.getPropertyValue("Session") log.info session def filePath def groovyUtils=new com.eviware.soapui.support.GroovyUtils(context) def os = System.getProperty("os.name").toLowerCase(); log.info os if(os.indexOf("win")>=0){ filePath = groovyUtils.projectPath + "\\" + "SharedTests-soapui-project.xml" } else if(os.indexOf("nix") >= 0 || os.indexOf("nux") >= 0 || os.indexOf("mac") >= 0){ filePath = groovyUtils.projectPath + "/" +"SharedTests-soapui-project.xml" } else{ filePath = groovyUtils.projectPath + "/" +"SharedTests-soapui-project.xml" } // Printing the value of the variable log.info filePath def workspace = context.testCase.testSuite.project.workspace def testProject = (workspace==null) ? ProjectFactoryRegistry.getProjectFactory(WsdlProjectFactory.WSDL_TYPE).createNew(filePath) : workspace.getProjectByName("SharedTests") if(!testProject.open && workspace!=null) workspace.openProject(testProject) WsdlTestCase testCase = testProject.getTestSuiteByName("SharedTests").getTestCaseByName("SetUp_GDS") testProject.properties["Session"].value = session TestRunner runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) Project B (SharedTests-soapui-project) test case Java code to run project A: WsdlProject project = new WsdlProject(project A xml path); File projectfile = new File(projectxmlpath); String parent = projectfile.getParent(); File ws = new File(parent + File.separator + "default-soapui-workspace.xml"); WorkspaceImpl wsimpl = new WorkspaceImpl(parent + File.separator + "default-soapui-workspace.xml", null); wsimpl.loadWorkspace(ws); WsdlTestCaseRunner wsRunner = project.getTestSuiteByName(testSuiteName).getTestCaseByName(testCaseName).run(new PropertiesMap(), false);1.7KViews0likes0CommentsHow to re run failed SoapUI 5.3 tests using maven plugin with Java
We have created a maven Java application to run SoapUI tests using maven plugin 5.3. This project we run in Jenkins for Regression. To re-run the failed tests of SoapUI project after fixing we have to run the Jenkins job again for that project. Jenkins job gets the fixed (updated proejct xml after fix from SVN repository) tests and rerun all the passed and failed tests again. Is there a way to re-run only the failed test in Jenkins? Jenkins job: Get the updated SoapUI project xml from SVN Run the tests using a custom jar (plugin) Plugin: SoapUI.setSoapUICore(new StandaloneSoapUICore(true)); Create a WSDL project WsdlTestCaseRunner wsRunner = project.getTestSuiteByName(testSuiteName).getTestCaseByName(testCaseName).run(new PropertiesMap(), false);762Views0likes1CommentRe: Moving up and down Test cases
Below is the error log: Fri Dec 05 18:01:18 IST 2014:ERROR:org.apache.xmlbeans.impl.values.XmlValueDisconnectedException org.apache.xmlbeans.impl.values.XmlValueDisconnectedException at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1244) at com.eviware.soapui.config.impl.ModelItemConfigImpl.isSetId(ModelItemConfigImpl.java:332) at com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem.getId(AbstractWsdlModelItem.java:148) at com.eviware.soapui.model.support.ModelSupport.findModelItemById(ModelSupport.java:124) at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry.getSource(SourceFile:238) at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEntry.<init>(SourceFile:94) at com.eviware.soapui.impl.wsdl.teststeps.AssertionTestStep.a(SourceFile:80) at com.eviware.soapui.impl.wsdl.teststeps.AssertionTestStep.resetConfigOnMove(SourceFile:614) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.resetConfigOnMove(WsdlTestCase.java:892) at com.eviware.soapui.impl.wsdl.WsdlTestSuite.moveTestCase(WsdlTestSuite.java:443) at com.eviware.soapui.impl.wsdl.actions.testcase.MoveTestCaseUpAction.perform(MoveTestCaseUpAction.java:45) at com.eviware.soapui.impl.wsdl.actions.testcase.MoveTestCaseUpAction.perform(MoveTestCaseUpAction.java:31) at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:93) 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.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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$200(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$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.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$1.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)949Views0likes0CommentsMoving up and down Test cases
Hi All, I have a test suite with around 65 test cases. I am facing problem now to move test cases up or down within test suite as SoapUI Pro v5.0 hangs. Screenshot attached. i have Windows 7 Prof 64 bit OS with 3 GB RAM. Coverage setting is OFF. VM options is : -Xms128m -Xmx512m Thanks, Sneh1.2KViews0likes2Comments