How can I set testsuite property in maven like we set project property in projectProperty tag?
Hi, I want to set testsuite level property in maven something like, <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>src.main.resources</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>smartbear-sweden-plugin-repository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.1.0</version> <configuration> <projectFile>Offline-soapui-project.xml</projectFile> <junitReport>true</junitReport> <outputFolder>${project.build.directory}/reports</outputFolder> <testSuite>SmokeTestSuite</testSuite> <testSuiteProperties> <testSuiteProperty>serviceEndpoint=${serviceEndpoint}</testSuiteProperty> </testSuiteProperties> </configuration> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> so that when I run soapui project from command line and pass testsuite property value as mvn - test -DserviceEndpoint=http://some_url it should set testsuite property in the soapui project. Any help would be greatly appreciated. ThanksSolved2.5KViews0likes2CommentsRequest Not Modified
I need to test multiple requests in a same testcase.Below Steps have been followed to achieve this. Declared Property at Testsuite Level (eg. Number 1,2,3) Split those values and set the property in Property Step level. So each time during the iteration the property at Property Step will change. Then run the request. But the issue i am facing is, the property at PropertyStep gets updated for every iteration. But the values is not passed to the request. This is my code. ef number = testRunner.testCase.testSuite.getPropertyValue( "number" ) String[] nu = number.split(",") for (int i=0;i<nu.size();i++) { nums=nu[i] testRunner.testCase.testSteps["Prop"].setPropertyValue( "number",nums ) def prop = testRunner.testCase.testSteps["Prop"].getPropertyValue( "number" ) log.info prop def Response = "" Response = testRunner.testCase.testSteps["request1"].testRequest.response.contentAsString log.info Response def file = new PrintWriter ("C:\\Users\\Laksh\\PycharmProjects\\BRMCODE\\response_"+i+".xml") file.println(Response) file.close() }Solved1.9KViews0likes2CommentsTest suit only runs the first test case
Hi, some people in the team is facing a problem when are trying to execute a Test Suite. Only the first test cases runs. The execution of the 1st test case ends properly, but Soap doesn't continue executing the rest of the test cases. It happens with all the Test Suites (some of them have been executed for months). Any idea? Thanks in advance1.7KViews0likes3CommentsCalling a TestSuite from test step of another Test case
I have a requirement to call a Test suite from test step of another Testcases. Project structure Our Project structure is 1.TestSuite1 1.1 TestSuite1_Positive 1.2 TestSuite1_Negative 2. TestSuite2 2.1 TestSuite2_Positive. 2.2 TestSuite2_Negative 3. TestSuite3 3.1 Runner Requirement is to run TestSuite 1 from TestSuite3 -->Runner . Is there any way to achieve this ? Thanks in advance .Solved1.3KViews0likes4CommentsAdd Soap-Content (XML) in TestStep
Hi there, I'm trying to add XML-Payload to a TestStep via Java API. There's no problem with adding "normal" to a wsdl project: WsdlOperation operation = iface.getOperationByName(operationName); WsdlRequest request = operation.addNewRequest(requestName); request.setRequestContent(requestStr); Now I'm doing this: TestStepConfig testStepConfig = WsdlTestRequestStepFactory.createConfig(operation, "TestStepConfig"); WsdlTestCase testCase = testSuite.addNewTestCase("TestCase"); WsdlTestStep testStep = testCase.addTestStep(testStepConfig); But neither testStep nor testCase seem to have any suitable methode to add my payload (like setRequestContent()). How do I do this? Thank you very much for your help, Simon867Views0likes1CommentError running TestSuite from command line (windows)
Hello, so what I am trying to do is to run a batch file that calls the testrunner from SOAPUI\bin folder and it is supposed to run the TestSuite contained in an specified folder. I know the batch script works because already other person used it many times but in a different SOAPUI version so I wonder if that is the error or something else. Below are the errors I am getting: Error: Could not find or load main class com.eviware.soapui.tools.JfxrtLocator Error: Could not find or load main class com.eviware.soapui.tools.SoapUITestCaseRunner Any help is appreciated, Thanks.790Views0likes0Comments