Forum Discussion

harmancheema's avatar
harmancheema
Occasional Contributor
6 years ago
Solved

Set endpoint using groovy script which works in Ready API and Soap UI free version

Hello,   I have a project which is being run on both Ready API and Soap UI free version. Since, Soap UI free version does not have the "Environment" feature, I need to set it dynamically using gr...
  • HimanshuTayal's avatar
    6 years ago

    Hi harmancheema

     

    Try below code: 

     

    testRunner.testCase.getTestStepByName("").setPropertyValue("Endpoint", "test")

    Hope this will solve your problem as it will work in both SoapUI and ReadyAPI

     

    Click "Accept as Solution" if my answer has helped, and remember to give "kudos" :)

     

    Thanks and Regards,

    Himanshu Tayal