cancel
Showing results for 
Search instead for 
Did you mean: 

How to Handle different resources for the same point

SOLVED
Highlighted
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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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.

View solution in original post

4 REPLIES 4
Highlighted
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.

View solution in original post

Highlighted
Community Manager

Thank you Rao!!

 

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


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

@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.

 

 

Highlighted
Community Hero

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


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors