SOAPUI TestRunner test case count and runner (teardown) test case count mismatch
Hi, Structure and flow of Project TestSuite Test Case 1 Test Step (REST request) Test Case 2 Test Step (REST Request) Test Step (Groovy script) (this script will call and execute Test Case 3 based on condition, test case 3 will be disabled state, if condition pass it will enable test case and execute and again it will be disabled Test Case 3 Test Step (REST Request) Problem Statement : If we execute above TestSuite via 'SOAPUI-TestRunner', number of test case executed count is correct, in our sample case : Total Test case count : 4 (which is correct, since test case 3 got executed twice via groovy script (Test Case 1 + Test case 2 + Test case 3 + Test Case 3), but if we try to get total Test case executed count from teardown its showing as 'Test case count : 2 Teardown script not considering test cases which got executed via groovy script Attached snapshots for reference Any help or support would be great, thanks3.4KViews0likes7CommentsJenkins publishes 2x soap test results
My requirement is to run SOAPUI test cases via maven (POM), automate it's build using jenkins and generate a report of the test results. I have successfully done except the last part. I do get the test results but Jenkins returns 2x of them. I mean I have only one test case but Jenkins shows 2 test cases.2x test results Jenkins My POM file contains only one test case: <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.smartbear.samples</groupId> <artifactId>soapui-maven2-plugin</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Maven 2 SoapUI Sample</name> <url>http://maven.apache.org</url> <pluginRepositories> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId> <version>4.6.1</version> <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <id>test1</id> <goals> <goal>test</goal> </goals> <configuration> <projectFile>simple-test-soapui-project.xml</projectFile> <junitReport>true</junitReport> <outputFolder>${basedir}/target/surefire-reports</outputFolder> <printReport>true</printReport> <exportAll>true</exportAll> <globalProperties> <value>ENV=DEV</value> </globalProperties> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.1</version> </plugin> </plugins> </reporting> </project> and my surefire reports shows that I have only one test case: Surefire report containg just one test case How can I setup Jenkins to show only one test case in diagram? Thanks.1KViews0likes1Comment