Forum Discussion

kamatchipriya16's avatar
kamatchipriya16
Occasional Contributor
7 years ago

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.

  • 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 :)

     

  • kamatchipriya16's avatar
    kamatchipriya16
    Occasional Contributor

    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 :)