Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

Switching endpoints before a run

Hello,
Using soapui 2.0, i can go to the interface service endpoint sections and new endpoint pointing to different environments. After I add the new endpoint I click on assign and select 'All request and test requests' and verify that all test will not be pointing to the new environment.

Is there any way to do this via command line in test runner. In our automation framework, we have seperate projects for seperate envionrments. I would like to have just one project since the change is only in the endpoints.

Thanks

Ali

11 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    you would currently have to put this in the project load script (in the project window), which could call into general functionality for this available in your script-library. So if you define some kind of "SoapUIInitializer" class in your script library with a static "initProjectProperties" method, you could call it from the load script with

    SoapUIInitializer.initProjectProperties( project )

    Hope this helps!

    regards,

    /Ole
    eviware.com