cancel
Showing results for 
Search instead for 
Did you mean: 

How to make it works well if I used project properties in request key?

SOLVED
Contributor

How to make it works well if I used project properties in request key?

For Example, I have API like: https://www.baidu.com/s?wd=test

 

And I want to make querystring key like wd which defined as project properties and then referer it in teststeps, but it not work as expect:

 

Expect Link: https://www.baidu.com/s?wd=test
Actual Link: https://www.baidu.com/s?%24%7B%23Project%23key%7D=test

 

How to make it possiable, please help.

 

Details as below:

TIM截图20190530235554.png

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: How to make it works well if I used project properties in request key?

@richie , it looks like we have found that feature request:


https://community.smartbear.com/t5/ReadyAPI-Feature-Requests/Ability-to-parameterize-REST-API-Parame...


We have also asked our Product team to consider this feature request.
In the meantime, Community, if you think this feature is worth implementing, feel free to upvote it!

 


Olga Terentieva
SmartBear Assistant Community Manager

View solution in original post

9 REPLIES 9
Super Contributor

Re: How to make it works well if I used project properties in request key?

I'm not sure if you can use a property expansion as a Method Param name.

 

Usually where you can use a propety expansion you can right click and use the "Get Data" menu item. e.g. in the Method Param value:

 

requestparams.png

 

I'm not an expect with REST requests, so perhaps someone else could provide more detail, or correct me.

Highlighted
Community Hero

Re: How to make it works well if I used project properties in request key?

Hi,

This isn't possible in ReadyAPI!/SoapUI.

I needed to do exactly this (parameterise a REST request's query parameter name rather than the value) about 6 months ago and spent a lot of time trying to find a way around the issue.
I raised a ticket with Smartbear to see if they could help but they confirmed it was impossible using the out the box functionality and to rely on groovy to build my REST requests instead.
I also raised a feature request so it might appear in the future, but i wouldnt hold my breath waiting! Smiley Happy

Cheers,

Richie
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Contributor

Re: How to make it works well if I used project properties in request key?

Method Param name has the "Get Data" menu item too 

Contributor

Re: How to make it works well if I used project properties in request key?

OK, really want this feature, hope it can be come true in the future

Moderator

Re: How to make it works well if I used project properties in request key?

Hi all,


@richie , could you please share the link to the feature request you created so that other users could upvote it? Smiley Happy

 


Olga Terentieva
SmartBear Assistant Community Manager

Moderator

Re: How to make it works well if I used project properties in request key?

@richie , it looks like we have found that feature request:


https://community.smartbear.com/t5/ReadyAPI-Feature-Requests/Ability-to-parameterize-REST-API-Parame...


We have also asked our Product team to consider this feature request.
In the meantime, Community, if you think this feature is worth implementing, feel free to upvote it!

 


Olga Terentieva
SmartBear Assistant Community Manager

View solution in original post

Contributor

Re: How to make it works well if I used project properties in request key?

upvoted

Community Hero

Re: How to make it works well if I used project properties in request key?

@Olga_T 

 

thanks for digging that out - I hadn't had chance - so thank you for doing my work for me! Smiley Happy

 

Cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Moderator

Re: How to make it works well if I used project properties in request key?

@richie , you are welcome Smiley Wink

 


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors