Forum Discussion

Amobee_Support's avatar
Amobee_Support
New Contributor
14 years ago

[Waiting] Set all Test Cases or Test Steps to use an URL

Hi,

I have a problem to update all test cases or test steps with the URL definition of a scheme (endpoint).
When i'm updating the definition of a WSDL (replacing the URL), the URL (endpoints) for the test cases and test steps remain the same (old URL).
I've tried all options in the "update definition" screen (can't attach the screenshot).
is there any way to set the URL automatically?

thanks in advanced.

Tal.
  • Finan's avatar
    Finan
    Frequent Contributor
    Quickest solution for now is to doubleclick the wsdl > open tab: "Service Endpoints" > edit the endpoints you want to change.

    Personally I prefer to have as service-endpoint ${#Project#servicename}, which refers to the custom project property servicename.
    This allows me to :
    1. (easily) change endpoints at a central spot
    2. save the properties to a settings.properties, in order to:
    2,1 Easily switch between environments.
    2.2 Set properties (like endpoint properties and jdbc connection strings) from the commandline (automatic builds).
  • Thank you for the quick response.
    The first solution is not good for me. in case I have more than 1 env, and I want to select 1 for all services- I need to select them manually for each service.
    I would like to create a project property, but I don't know how to do it. (I can create only custom property).
    Can you please assist?

    Thanks again
    Tal.
  • Finan's avatar
    Finan
    Frequent Contributor
    The "custom properties" on project level are the project properties I referred to in my previous post. (See attached screenshot)
  • Thank you!

    After I've created the property, how do I set the test step/test case to use the endpoint property?

    attached my test suite.

    Thanks again.
  • Finan's avatar
    Finan
    Frequent Contributor
    In one of the following 2 way's:
    1. doubleclick the wsdl > open tab: "Service Endpoints" > edit the endpoint (as seen from your screenshot "http://172.16.40.11:9001/admin" > ${#Project#webserviceproperty}
    2. by opening a soap-request interface (as shown on your screenshot) and select the endpoint selection box (currently selected "http://172.16.40.11:9001/admin") > select "edit" and enter ${#Project#webserviceproperty}

    Small note, if webservices have multiple endpoints set, it is recommended to manually check if one of the refers to the other options (not the ${#Project#webserviceproperty})