Contributions
SOAP UI: Assert JSON response parameter with 2 possible values
Hi I have use case where in response, I am getting code as a parameter where possible values may be 110 and 200 I applied Script assertion as below But it does not work. Can you please help me here. import groovy.json.* def response = context.expand( '${Hit SMS Request#Response}' ) def parsed = new JsonSlurper().parseText(response) def smscode = parsed.code.toString() if (smscode=="110" || "200") { log.info "Pass" } else { log.info "Fail" } assert smscode.contains('110' || '200')Solved596Views0likes2CommentsNot able to generate index.html report using SOAP UI maven plugin. 5.3.0
I am running SOAP UI tests using Maven. It runs well but NOT able to see index.html file where we can see overall status of execution. I am using following POM.xml. Kindly suggest if am missing anything ? Also can anyone please suggest weather we can generate .pdf reports using maven ? My installed version is3.6.0 Thanks. MY POM.xml file <?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.XpressBees.app</groupId> <artifactId>Cargo</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Cargo Booking</name> <properties> <soapui.junitReport>true</soapui.junitReport> <soapui.exportAll>true</soapui.exportAll> <soapui.printReport>true</soapui.printReport> <soapui.outputFolder>target/surefire-reports</soapui.outputFolder> <soapui.reportFormat>PDF</soapui.reportFormat> <soapui.reportName>maven_pdf_report</soapui.reportName> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> </dependencies> <!-- Adding SoapUI Maven plugin --> <pluginRepositories> <pluginRepository> <id>SmartBearPluginRepository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <dependencies> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.9-RC1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.10-FINAL</version> <exclusions> <exclusion> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.3.0</version> <configuration> <projectFile>CargoBooking-soapui-project.xml</projectFile> <outputFolder>${basedir}/target/surefire-reports</outputFolder> <junitReport>true</junitReport> <exportAll>true</exportAll> <printReport>true</printReport> <testFailIgnore>true</testFailIgnore> <!--testSuite>Business test cases</testSuite--> </configuration> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> </plugin> </plugins> </build> </project>348Views0likes0CommentsAbout SOAP-UI eclipse plugin
Hi In my organisation, there is mandate to use SOAP UI eclipse plugin for API automation. I was able to find the SOAP-UI 4.0.1 plugin only I am using eClipse Neon 3 version with Java 1.8 version. But looks like 4.0.1 version is old plugin and is not compatible Can you please suggest me on if any latest SOAP UI eclipse plugin which should be compatible with latest eClipse.778Views0likes1Comment- 1.5KViews0likes0Comments
SOAP UI 5.0.0 : Move test cases within different suites in Bulk
Hi I want to move test cases from one suite to another suite in Bulk (around130 TC's) . Is there any way for this bulk movement ? Earlier I was using ReadyAPI licensed version and there was way for bulk movement. But in SOAP UI 5.5.0, when I select more than one TC, and right click, there is no option for clone. Regards VishalSolved1.6KViews0likes2CommentsJenkins - SOAP UI 5.1.2 Maven Plu - Test count is doubled in slack notifications
Hi I have integrated SOAP UI Tests in Jenkin usingsoapui-pro-maven-plugin (5.1.2) When I runs jenkins job, it shows proper test count on Jenkins console. But in slack notifications, it shows test count as double. Jenkins Console Output SoapUI 5.1.2 TestCaseRunner Summary ----------------------------- Time Taken: 25638ms Total TestSuites: 1 Total TestCases: 15 (0 failed) Total TestSteps: 75 Total Request Assertions: 79 Total Failed Assertions: 0 Total Exported Results: 75 Slack Notifications Test Status: Passed: 30, Failed: 0, Skipped: 0 I also tried withmaven-soapui-plugin, but same issue is there. Can anyone please help me to sort this issue. Attached my POM.xml for reference.1KViews0likes1CommentCan't generate PDF report using ReadyAPI 2.4.0 Maven plugin
Hi I want to gnerate PDF report using Ready API 2.4.0 Maven plugin. I have done neessary configuration. But PDF report is not gererated. Only html report is generated. Can anyone please help me in resolving this issue. Attached my POM.xml file. Thanks in advance. Vishal Pachpute6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentRe: Run same API step for multiple data sets
Hi Thanks very much for your solution. I have followed your steps. But now I am facing issue that, it doesn't calls the property value in my test step ${Property- Looper#Value} Please go through following request. Also I have attached my Test Suite and data file for reference. <?xml version="1.0" encoding="UTF-8"?> <er-request> <payload> <purchase> <msisdn>${#Project#MSISDN_GB11}</msisdn> <package>${Property- Looper#Value}</package> </purchase> </payload> </er-request> Can you please help me solving this issue.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0CommentsRun same API step for multiple data sets
Hi I have one requirement that 1. Run one purchase request for multiple packages one by one. 2. Package ID's are kept seperate in .txt file. 3. If there are 10 package ID's, then purchase API step should run for 10 times for each packageID Note: Initialy I have done it using DataSource and dataSource loop in ReadyAPI 1.9 But On Jenkinns , I am using SOAP UI 5.3.0 version and it doesn't supports data source. So my TC fails. And I am new to Groovy. So can anyone please help me doing this in Groovy. My purchase request <?xml version="1.0" encoding="UTF-8"?> <request> <purchase> <msisdn>8928374323</msisdn> <package-id>${DataSource#package-id}</package-id> [Note: Needs to take packageID's from .txt file] <rating-attributes /> </purchase> </request>7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3Comments