Forum Discussion

misior88's avatar
misior88
New Contributor
6 years ago
Solved

Changing Endpoints

I Have a Question,

 

In the Request if you Double click there is an Endpoint page with endpoints.

like in the Picture.

 

inow have Locahost 8080 and 4040. is there Any way for me to get these Endpoints as a List in SoapUI 5.4.0.

I am jsut asking because even Preference Settings can be accesed in SoapUi and getting these Endpoints would be awesome.

  • JHunt's avatar
    JHunt
    6 years ago

    Hi, you can use

     

    project.interfaces["Some Interface"].getEndpoints()

    Depending on where you run the script, to get project you might need to use

    context.getTestCase().getProject()

    or similar.

4 Replies

  • misior88's avatar
    misior88
    New Contributor

    What i mean is if there is a way to get These endpoints via Groovy Script?

    • JHunt's avatar
      JHunt
      Community Hero

      Hi, you can use

       

      project.interfaces["Some Interface"].getEndpoints()

      Depending on where you run the script, to get project you might need to use

      context.getTestCase().getProject()

      or similar.

      • misior88's avatar
        misior88
        New Contributor

        Hi Thx for the Reply. 

        It was really helpful thx

        Can somebody explain how the project.interface List works or were i can find documentation for ist?