URGENT HELP!! How do I begin to implement a custom JUnitReportCollector?
I have already seen lot of blogs and post but not much clear about how can i modify existing junitreportcollector class to generate custom report. I need success test step as well in my report. My current implementation just run mvn test over xml file like: <plugin> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>${readyApiVersion}</version> <dependencies> <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc4</artifactId> <version>${sqlVersion}</version> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${pgVersion}</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>${basedir}/scripts/dortal/myproject.xml</projectFile> <outputFolder>${basedir}/target/surefire-reports</outputFolder> <testSuite>${soapui.test-suite}</testSuite> <testCase>${soapui.test-case}</testCase> <junitReport>true</junitReport> <printReport>true</printReport> <environment>Default environment</environment> <settingsFile>${basedir}/soapui-settings.xml</settingsFile> <projectProperties> <value>JDBC=${sqlJdbc}</value> <value>qe_id=${Id}</value> <value>AuthEndpoint=${AuthEndpoint}</value> </projectProperties> </configuration> </execution> </executions> </plugin> Can somebody help here?1.3KViews0likes3CommentsFailed to create JUnitReportCollector class
Hi All, I am trying to run a build from Jenkins to create a customised JUnit style report. Attached is my pom.xml. I am using com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:4.5.1.4 plugin to generate customised report, i have used the following property in soapuiProperties: <property> <name>soapui.junit.reportCollector</name> <value>test.soapui.CustomJunitReportGenerator</value> </property> This pom.xml works perfectly fine in Maven build in eclipse and generates the desired report, but gives the following exception while building from jenkins and hence i end up with the default JUnit style report:womansad: I get the following exception in jenkins build: WARN org.ktc.soapui.maven.extension.impl.report.ReportCollectorFactory - Failed to create JUnitReportCollector class [C:\api_automation11\src\test\soapui\CustomJunitReportGenerator] so use the default one; error cause: java.lang.ClassNotFoundException: C:\api_automation11\src\test\soapui\CustomJunitReportGenerator mvn goal: mvn clean install com.github.redfish4ktc.soapui:maven-soapui-extension-plugin:test What am i doing wrong? :womanfrustrated:770Views0likes0Comments