cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Endpoints Dynamically using Groovy

SOLVED
Highlighted
Contributor

Changing the Endpoints Dynamically using Groovy

Hi Team,

 

I need to change the endpoint hostname dynamically when I am passing  the environment.

 

For Example:

val####:8090/postpage

I have to change the host, When I am passing the INT or Staging. it has to change to val####:8091

 

Regards,

Karthik

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Changing the Endpoints Dynamically using Groovy

Hi @maddenapally,

 

When creating an environment, you can set the endpoint in its parameters (documentation: https://support.smartbear.com/readyapi/docs/testing/environments/create.html). Also, you can change it anytime in the environment panel.


Kirill Zakharov
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

2 REPLIES 2
Highlighted

Re: Changing the Endpoints Dynamically using Groovy

Hi @maddenapally,

 

When creating an environment, you can set the endpoint in its parameters (documentation: https://support.smartbear.com/readyapi/docs/testing/environments/create.html). Also, you can change it anytime in the environment panel.


Kirill Zakharov
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

View solution in original post

Highlighted
Community Manager

Re: Changing the Endpoints Dynamically using Groovy

Thanks for your assistance, Kirill,

@maddenapally, did Kirill's suggestion help?

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
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

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Filtering data retrieved from a DataSource

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors