Ask a Question

use property value in URL endpoint

mgroen2
Super Contributor

use property value in URL endpoint

Hi,

 

I am pretty new to ReadAPI. However I have got some question. I would like to use custom property in the URL.

 

I have created a custom property on Project level. Now I want to use the property in the end point.

I have tried this, 

 

but I get an http://null (see attached screenshot). 

 

What am I doing wrong? And how to correct this?

 

Thanks,

Mathijs

 

 

2018-11-01_10-40-42.png2018-11-01_10-42-56.png

2 REPLIES 2
Radford
Super Contributor

Re: use property value in URL endpoint

I think your property expansion needs to be:

 

${#Project#server}

 

You don't reference a project by name, it is more like a property specified by this project. See the following page for more details:

 

https://support.smartbear.com/readyapi/docs/testing/properties/expansion.html

 

As an aside, if you are using project properties to change server names, have you investigated the Environments functionality. This will allow you to easily configure Ready API to switch between a different set of end points, DB connections,etc. eg, Dev, SAT, UAT.

Olga_T
Moderator

Re: use property value in URL endpoint

Hi everyone,

 

@Radford, thanks for your reply!

 

@mgroen2 did the above post help you accomplish your task? Or, do you have any additional information for us to consider?

We are looking forward to hearing from you.

 

 

 


Olga Terentieva
SmartBear Assistant Community Manager

cancel
Showing results for 
Search instead for 
Did you mean: