cancel
Showing results for 
Search instead for 
Did you mean: 

ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestRequest

SOLVED
Highlighted
Frequent Contributor

ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestRequest

Howdie,

 

In previous versions of ReadyAPI (before the major release 3.0) I could select a particular environment in a project that changed all Endpoints of the requests of a that particule project. Also, I only had 1 Endpoint in the Environment as I was adding it.

With the major release I'm not able to do so anymore. When I select the new environment, the old Endpoint stays in the rest request. Also all webservices created in that project are within each environment created. Why please?

What am I doing wrong?

 

What I would like to be able to do:

When selecting a project, I want to be able to choose which environment I need to execute the tests. Even if possible to automate it later on Jenkins to execute the tests for 1 particular environment.

e.g. if I have these environments:

* TestAcceptance

* Integration

I will execute the TestAcceptance tests manually by clicking on the desired project. As I'm always working in the test acceptance environment to add assertions, groovyscript, adapt the testcases according the analyse, etc...

 

The Integration environment should be ran automatically on Jenkins, therefore I will need some code.

etc...

 

But in the TestAcceptance environment I have 2 different Endpoints that need to be tested: TA on the client side, and TA on our side (our team). our side is put on a server, the client side is put on a forward proxy. Both enpoints need to give the same result, and at least an HTTP 200 result.

When selecting the environment the Requests Endpoint in my project doesn't change anymore. 

Can someone help me please?

 

Thanks in advance.

AAB

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

Hi @socaltester 

 

I think I found a solution.

In my project I had to add webservices on creation. I've added a webservice as REST request.

On creation of the TestSuite-TestCase-TestStep I needed to link to the desired webservice right?

Well, click on the project, go to the main menu and go to Environments, create a new environment, in my case PDC-TA, add the Endpoint for this environment.

Create another environment with the name eg. FSB-TA and add another Endpoint to this. In each of the endpoints you can edit it and add an authorization if you want to. For my second one I needed Admin rights. So add this while editing.

Now when I go to my project and I select a rest request and I select FSB-TA as enviromet, I see the desired endpoint in my RestRequest. Nevertheless, all the endpoint from the different webservices still remain visible in the environments.

I really can't remember what I did wrong before, but it works.

 

Cheers, 

AAB 

View solution in original post

7 REPLIES 7
Highlighted
Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

I'm experiencing that same. It causes me to go in and manually change each endpoint and even those changes may revert back to the original endpoint.

Highlighted
Frequent Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

Hi @socaltester 

 

I think I found a solution.

In my project I had to add webservices on creation. I've added a webservice as REST request.

On creation of the TestSuite-TestCase-TestStep I needed to link to the desired webservice right?

Well, click on the project, go to the main menu and go to Environments, create a new environment, in my case PDC-TA, add the Endpoint for this environment.

Create another environment with the name eg. FSB-TA and add another Endpoint to this. In each of the endpoints you can edit it and add an authorization if you want to. For my second one I needed Admin rights. So add this while editing.

Now when I go to my project and I select a rest request and I select FSB-TA as enviromet, I see the desired endpoint in my RestRequest. Nevertheless, all the endpoint from the different webservices still remain visible in the environments.

I really can't remember what I did wrong before, but it works.

 

Cheers, 

AAB 

View solution in original post

Highlighted
Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

Thank you for the update and I'm glad to hear you may have found a work around and/or solution. I'll give it a try.

Highlighted
Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

Interesting. I don’t have admin rights on my work PC. Do you think’s necessary? I can’t get admin rights until I acquire a Microsoft Certificate of some sort. It’s aggravating. Sigh.

Anyway, I’ll attempt this on Monday.
Highlighted
Frequent Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

@socaltester No, normally this has nothing to do with admin rights on your laptop. Even if your company/client has installed ReadyAPI on your laptop, you should be able to access all elements IN ReadyAPI.

 

Maybe @TanyaGorbunova   or  @Nastya_Khovrina   can help you out here.

 

Good luck,

AAB

Highlighted
Moderator

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

@socaltester,

 

Can you provide a video which shows the issue on your side. The issue should be slightly different from what @AboveAndBeyond experienced. 

 

If you don't want to share the video in public, you can open a new case with our Support team here: https://support.smartbear.com/message/?prod=ReadyAPI 



 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
Contributor

Re: ReadyAPI-Environments: how to select the environment so it reflects automatically in the RestReq

I wish I could, but video isn't aloud.