Contributions
How do I show Successful TestSteps in JUnit Report
Hi, Is it possible to show successful TestSteps in JUnitReport? Currently We are chaining the requests by TestSteps and it would be helpful to show the successful TestSteps. Thanks in advance for the help. -Madhu.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes3CommentsRe: where do I find soapui-settings.xml in unix installation
- Yes , I have installed Soap-UI Pro Linux installer (64-bit) with bundled JRE . - Using SoapUI Pro 4.6.2 - Attached the installation log . Did not see any errors. - when I tried to start soapui/bin/soapui-pro.sh at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source) at java.awt.Window.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source) at javax.swing.JFrame.<init>(Unknown Source) at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:753) at com.eviware.soapui.SoapUIPro.a(SourceFile:135) at com.eviware.soapui.SoapUIPro$SoapUIProRunner.run(SourceFile:1708) at java.awt.event.InvocationEvent.dispatch(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.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)11 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.9KViews0likes0CommentsRe: where do I find soapui-settings.xml in unix installation
Marcus, Can I start SOAPUI from Linux? If yes, what is the file? In Windows I do not see any issues. The issue is on Linux. We still can't locate soapui-settings.xml file in Linux. If you see there is a difference in log statement between linux and windows. I believe in linux since it is not finding the soapui-settings.xml from the installation, it is trying to create a new one but that also I can't locate it. We do not think File permissions is an issue as we are able to create a file. Linux: 10:50:09,210 INFO [DefaultSoapUICore] Creating new settings at [/home/build2/soapui-settings.xml] Windows: 14:27:55,730 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\ChelikM\soapui-settings.xml] Another thing, I noticed which could be the issue. The zip file for Linux tarball (Java not included)Linux tarball (Java not included) under soapui does have soapui-settings.xml where as the zip file under soapui-pro tab does't. at http://www.soapui.org/ Any help will be greatly appreciated.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.9KViews0likes0CommentsRe: where do I find soapui-settings.xml in unix installation
Thanks Marcus! The Jenkins build log shows as below. It says it is creating a soapui-settings.xml at /home/build2/soapui-settings.xml but we can't find it. Any reason you can think of? LOG ---------- Setting soapui.ext.libraries value /common/build/tools/soapui-4.5.2/bin/ext Setting soapui.home value /common/build/tools/soapui-4.5.2/bin 10:50:09,210 INFO [SoapUI] Adding [/common/build/tools/soapui-4.5.2/bin/ext/poi-3.9-20121203.jar] to extensions classpath 10:50:09,210 INFO [DefaultSoapUICore] Creating new settings at [/home/build2/soapui-settings.xml] 10:50:09,873 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/common/build/workspace/TestHarness-SoapUI-new/scripts] 10:50:09,887 INFO [DefaultSoapUICore] Adding listeners from [/common/build/tools/soapui-4.5.2/bin/listeners/demo-listeners.xml] 10:50:11,635 INFO [WsdlProject] Loaded project from [file:/home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/Ihg-b2b-soapui-project.xml] 10:50:11,783 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/common/build/workspace/TestHarness-SoapUI-new/scripts] 10:50:12,556 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [IHG] 10:50:12,625 INFO [SoapUIProTestCaseRunner] Running Project [IHG], runType = SEQUENTIAL 10:50:13,293 INFO [log] ********** Results folder created 10:50:13,447 INFO [log] Environment : utc 10:50:13,459 INFO [log] RegressionDataFile for TestCase Amadeus is :/home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/environments/utc/B2B_Regression_TestSuite/Amadeus/Amadeus_Regression_Data.xls 10:50:13,517 INFO [log] RegressionData File /home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/environments/utc/B2B_Regression_TestSuite/Amadeus/Amadeus_Regression_Data.xls Exists.Hence Setting The Global Property. 10:50:13,562 INFO [SoapUIProTestCaseRunner] Running SoapUI testcase [Amadeus] 10:50:13,902 INFO [SoapUIProTestCaseRunner] running step [RegressionData] 10:50:14,096 INFO [SoapUIProTestCaseRunner] running step [DataGen] 10:50:14,109 INFO [log] Environment : utc 10:50:14,113 INFO [log] XPath Assertions Present inn File : /home/build2/workspace/TestHarness-SoapUI-new/src/ihg/test/soap-ui/environments/utc/B2B_Regression_TestSuite/Amadeus/Amadeus_RateRange_XPath.xls 10:50:14,392 INFO [log] ************Removing Assertions Present if Any Before Dynamically Adding Assertions for Excel Sheet 10:50:14,449 INFO [log] Xpath Assertion, Row Number :1 10:50:14,450 INFO [log] XPATH ://*:OTA_HotelAvailRS/*:RoomStays/*:RoomStay/@AvailabilityStatus -Madhu.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.9KViews0likes0CommentsRe: maven dependancy for soapui pro jar
Thanks for the Reply. Do I have to install soapui 4.5.1.4 locally to run from moaven to see if the extended class is picking up when run? I have currently soapui-pro 4.6.2 installed. I changed the pom as below and my first test is to check if the new class gets picked. I placed the jar file under C:\Program Files\SmartBear\SoapUI-Pro-4.6.2\bin\ext. As you can see below, I just have an empty implementation for afterStep. But it appears that the report is generating as it was generating earlier. It doesn't appear that the new class got picked up. Thanks for the help. POM ----- <?xml version="1.0" encoding="UTF-8"?> <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>com.ihg.dec.apps</groupId> <artifactId>B2BTest</artifactId> <packaging>jar</packaging> <version>1.0</version> <name>B2BTest</name> <url>http://maven.apache.org</url> <properties> <currentEnvironment>qa</currentEnvironment> <targetEnvironement>utc</targetEnvironement> </properties> <profiles> <profile> <activation> <property> <name>automated</name> </property> </activation> <properties> <warExclude>WEB-INF/lib/*.jar</warExclude> </properties> </profile> </profiles> <repositories> <repository> <id>central</id> <url>http://maven.ihg.com:8181/artifactory/releases</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>snapshots</id> <url>http://maven.ihg.com:8181/artifactory/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>private-releases</id> <url>http://maven.ihg.com:8181/artifactory/private-releases</url> <name>private-releases</name> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>sonar</id> <url>http://repository.codehaus.org</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://maven.ihg.com:8181/artifactory/releases</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>snapshots</id> <url>http://maven.ihg.com:8181/artifactory/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.github.redfish4ktc.soapui</groupId> <artifactId>maven-soapui-extension-plugin</artifactId> <version>4.5.1.5</version> <dependencies> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.9</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>src/ihg/test/soap-ui/Ihg-b2b-soapui-project.xml</projectFile> <!--<endpoint>http://qa.b2b.ihg.com</endpoint>--> <host>${currentEnvironment}.b2b.ihg.com</host> <!--<environment>qa</environment>--> <!--<testSuite>B2B Regression TestSuite</testSuite> <testCase>Travelport</testCase>--> <outputFolder>target/soap-ui/${currentEnvironment}</outputFolder> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>false</exportAll> <reportName>IHG-B2BRegression-ProjectReport</reportName> <reportFormat>PDF,HTML</reportFormat> <testFailIgnore>true</testFailIgnore> <globalProperties> <value>environment=${currentEnvironment}</value> <value>resultsPath=target/soap-ui/${currentEnvironment}/Results/</value> <value>resultsComparePath=target/soap-ui/${targetEnvironement}/Results/</value> <value>testcase_src=${project.basedir}/src/ihg/test/soap-ui/</value> </globalProperties> <soapuiProperties> <property> <name>soapui.home</name> <value>${env.SOAPUI_HOME}/bin</value> </property> <property> <name>soapui.ext.libraries</name> <value>${env.SOAPUI_HOME}/bin/ext</value> </property> <property> <name>soapui.scripting.library</name> <value>${env.SOAPUI_HOME}/bin/scripts</value> </property> <property> <name>soapui.logroot</name> <value>${project.build.directory}/soap-ui/${currentEnvironment}/logs/</value> </property> <!-- To Override the Default JUnitCollector --> <property> <name>soapui.junit.reportCollector</name> <value>com.ihg.dec.b2b.test.junit.reports.B2BJUnitReportCollector</value> </property> </soapuiProperties> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${project.basedir}</directory> <includes> <include>*.log</include> </includes> <followSymlinks>false</followSymlinks> </fileset> </filesets> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.github.redfish4ktc.soapui</groupId> <artifactId>maven-soapui-extension-plugin</artifactId> <version>4.5.1.5</version> </dependency> </dependencies> </project> My JUnitReportCollector Extended Class ------------------------------------ package com.ihg.dec.b2b.test.junit.reports; import java.util.HashMap; import com.eviware.soapui.model.testsuite.TestCase; import com.eviware.soapui.model.testsuite.TestCaseRunContext; import com.eviware.soapui.model.testsuite.TestCaseRunner; import com.eviware.soapui.model.testsuite.TestStep; import com.eviware.soapui.model.testsuite.TestStepResult; import com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus; import com.eviware.soapui.report.JUnitReport; import com.eviware.soapui.report.JUnitReportCollector; /** * This Class Extends the SOAPUI's JUnitReportCollector * * @author Madhu.Chelikani@ihg.com * * @since Dec 11, 2013 */ public class B2BJUnitReportCollector extends JUnitReportCollector { HashMap<String, JUnitReport> reports; HashMap<TestCase, String> failures; HashMap<TestCase, Integer> errorCount; private int maxErrors; HashMap<TestCase, String> status; public B2BJUnitReportCollector() { this(0); } public B2BJUnitReportCollector(int maxErrors) { this.maxErrors = 0; this.maxErrors = maxErrors; this.reports = new HashMap<String, JUnitReport>(); this.errorCount = new HashMap<TestCase, Integer>(); this.failures = new HashMap<TestCase, String>(); this.status = new HashMap<TestCase, String>(); } @Override public void afterStep(TestCaseRunner testRunner, TestCaseRunContext runContext, TestStepResult result) { TestStep currentStep = result.getTestStep(); TestCase testCase = currentStep.getTestCase(); } private String getXML(){ } }11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes0Commentsmaven dependancy for soapui pro jar
Hello, I do not see the class File JUnitSecurityReportCollector or JUnitReportCollector in soapui-pro-4.6.2.jar file. I need to extend the class JUnitReportCollector. Please let me know which jar file to be put in the pom dependancy to do the above. So far I have as below. Thanks and Appreciate the Help. <?xml version="1.0" encoding="UTF-8"?> <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>com.ihg.dec.apps</groupId> <artifactId>B2BTest</artifactId> <packaging>jar</packaging> <version>1.0</version> <name>B2BTest</name> <url>http://maven.apache.org</url> <properties> <currentEnvironment>qa</currentEnvironment> <targetEnvironement>utc</targetEnvironement> </properties> <profiles> <profile> <activation> <property> <name>automated</name> </property> </activation> <properties> <warExclude>WEB-INF/lib/*.jar</warExclude> </properties> </profile> </profiles> <repositories> <repository> <id>central</id> <url>http://maven.ihg.com:8181/artifactory/releases</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>snapshots</id> <url>http://maven.ihg.com:8181/artifactory/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>private-releases</id> <url>http://maven.ihg.com:8181/artifactory/private-releases</url> <name>private-releases</name> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>sonar</id> <url>http://repository.codehaus.org</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://maven.ihg.com:8181/artifactory/releases</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>snapshots</id> <url>http://maven.ihg.com:8181/artifactory/snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <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.2</version> <dependencies> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.9</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>src/ihg/test/soap-ui/Ihg-b2b-soapui-project.xml</projectFile> <!--<endpoint>http://qa.b2b.ihg.com</endpoint>--> <host>${currentEnvironment}.b2b.ihg.com</host> <!--<environment>qa</environment>--> <!--<testSuite>B2B Regression TestSuite</testSuite> <testCase>Travelport</testCase>--> <outputFolder>target/soap-ui/${currentEnvironment}</outputFolder> <junitReport>true</junitReport> <printReport>true</printReport> <exportAll>false</exportAll> <reportName>IHG-B2BRegression-ProjectReport</reportName> <reportFormat>PDF,HTML</reportFormat> <testFailIgnore>true</testFailIgnore> <globalProperties> <value>environment=${currentEnvironment}</value> <value>resultsPath=target/soap-ui/${currentEnvironment}/Results/</value> <value>resultsComparePath=target/soap-ui/${targetEnvironement}/Results/</value> <value>testcase_src=${project.basedir}/src/ihg/test/soap-ui/</value> </globalProperties> <soapuiProperties> <property> <name>soapui.home</name> <value>${env.SOAPUI_HOME}/bin</value> </property> <property> <name>soapui.ext.libraries</name> <value>${env.SOAPUI_HOME}/bin/ext</value> </property> <property> <name>soapui.scripting.library</name> <value>${env.SOAPUI_HOME}/bin/scripts</value> </property> <property> <name>soapui.logroot</name> <value>${project.build.directory}/soap-ui/${currentEnvironment}/logs/</value> </property> <!-- To Override the Default JUnitCollector --> <!--<property> <name>soapui.junit.reportCollector</name> <value>my.company.MyJunitCollector</value> </property>--> </soapuiProperties> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${project.basedir}</directory> <includes> <include>*.log</include> </includes> <followSymlinks>false</followSymlinks> </fileset> </filesets> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro</artifactId> <version>4.6.2</version> </dependency> <dependency> <groupId>eviware</groupId> <artifactId>ext-xmlbeans</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> </dependencies> </project>11 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.8KViews0likes5Comments[Res] Failed Xpath Assertion is Not showing complete XPath
I am using SOAP UI Pro 4.6.2 I have an Xpath Assertion for Match as shown in the Attached Image. The Assertion is //ns1:OTA_HotelAvailRS[1]/ns1:POS[1]/ns1:Source[1]/@TerminalID and the Expected Content is DDDYDD The above assertion is failed as the value from xml response is different than the expected. The message it shows in SoapUI TestStep is Match Content of [@TerminalID] FAILED XPath Contains Comparison Failed, expecting [DDDYDD] actual was [5FBC4A] Desired is to Print the whole Xpath which includes //ns1:OTA_HotelAvailRS[1]/ns1:POS[1]/ns1:Source[1]/@TerminalID Please look at the Image attached to this post.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.3KViews0likes7Comments