cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Endpoints Dynamically using Groovy

SOLVED
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.↓↓↓↓↓
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.↓↓↓↓↓
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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors