cancel
Showing results for 
Search instead for 
Did you mean: 

Endpoint is not changed from maven

SOLVED
Occasional Contributor

Endpoint 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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: 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 Smiley Happy

 

View solution in original post

1 REPLY 1
Highlighted
Occasional Contributor

Re: 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 Smiley Happy

 

View solution in original post