Contributions
get property value from soapui groovy script to java
Hi.. I have created groovy script in soapui project and it is integrated with maven. In the script i used setPropertyValue like below.. testRunner.testCase.testSuite.project.setPropertyValue("report", "localhost:8080"); Now, i want to get the property from groovy script to java class..How can i get this property in java class.. Kindly help me ASAP.1.5KViews0likes2CommentsRe: Endpoint is not changed from maven
I got a solution for this.. In sopaui groovy script i set the property for endpoint like, testRunner.testCase.testSuite.project.setPropertyValue("endpoint_services", "http://localhost:8080") ${#Project#endpoint_services} From maven i added the property like, <projectProperties> <projectProperty>endpoint_services=http://localhost:8080</projectProperty> </projectProperties> Now it is working :)952Views0likes0CommentsRe: Exclude/disable test suites from maven
Can anyone please help me on this.. still i am searching for the result.. i am trying different approach here. i can disable the test suite from groovy script like below.. def suiteName = project.getTestSuiteByName("Suite1").setDisabled(true) testRunner.testCase.testSuite.project.setPropertyValue("suiteDisable", suiteName) Please tell me how can i call this property from pom.xml? in pom.xml i called the property but it is not working. Please tell your suggestions ASAP. (ie) <projectProperties> <projectProperty>suiteDisable= true</projectProperty> </projectProperties>915Views0likes0CommentsExclude/disable test suites from maven
Hi, I am running groovy script in soapui. so the script will run all the test suite and generate HTML report.. i am integrating soapui project with maven.In maven i am not running all test suites, just i have mentioned the script test suite so that it will automatically run all test suite from the script. Now i want to disable any particular test suite from maven since i am running script test suite alone. i tried below maven configuration but it is not working (i.e) Its not disabling particular test suite. Please help me to resolve this issues ASAP. <configuration> <projectFile>${project.basedir}/src/main/resources/soapui/TEST-HTML_REPORT.xml</projectFile> <outputFolder>target/surefire-reports</outputFolder> <junitReport>true</junitReport> <exportAll>false</exportAll> <excludes> <soapui.testsuite>FPSuite</soapui.testsuite> </excludes> <printReport>true</printReport> <testCase>${soapui.testcase}</testCase> <projectProperties> <value>Environment=Local</value> <!-- <value>endpoint_datagateway_services="http://localhost:8080"</value> --> <value>endpoint_services=${soapui.serviceEndpoint}</value> <testCase>${soapui.testcase}</testCase> </projectProperties>961Views0likes1CommentEndpoint is not changed from maven
Hi, I am generating HTML report from groovy and i integrated with maven. So in soapui i set the endpoint in property & i called it from script. (ie)${#Project#endpoint_services} When i changed the endpoint from maven and run it is not working.. <soapui.serviceEndpoint>http://localhost:8080</soapui.serviceEndpoint> <projectProperties> <value>Environment=Gold</value> <value>endpoint_services=${soapui.serviceEndpoint}</value> <testCase>${soapui.testcase}</testCase> </projectProperties> Kindly help on this.Solved992Views0likes1Comment