Ask a Question

How to Handle different resources for the same point

SOLVED
doubtsreadyapi
Contributor

How to Handle different resources for the same point

Hi 

 

Is there a way how to parameterize the resource in the endpoint url

 

I have Two versions of the endpoints for one version already automation is done, Now we are getting one more version of the endpoints with the resource different for the endpoint

 

like for ex: Before the endpoint url is like  abcd.com/users

where as now the endpoint is changed to abcdef.com/new/users

 

the resource differs from endpoint to endpoint

 

So is there a way where both the endpoints should work with the existing automation already done?

 

Thanks

4 REPLIES 4
nmrao
Community Hero

Use custom properties and replace with property expansion.
Here is the documentation
https://www.soapui.org/docs/scripting-and-properties/property-expansion/


Regards,
Rao.
sonya_m
SmartBear Alumni (Retired)

Thank you Rao!!

 

@doubtsreadyapi Please mark the answer as a Solution if it helped🙂


Sonya Mihaljova
Community and Education Specialist

@nmrao 

 

This wont help. My suite has to work  with the both the versions of endpoints  in the same environment, As i told earlier,

 

for ex: Before the endpoint url is like  abcd.com/users

where as now the endpoint is changed to abcdef.com/new/users

 

but if i use property expansion, and parameterize the endpoints it will take only one version of endpoints.

 

 

that's not correct. Use multiple properties to form total url.


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: