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
Highlighted
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
Highlighted
Moderator

@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
Highlighted
Super Contributor

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

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! 🙂

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 Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Contributor

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

Highlighted
Contributor

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

Highlighted
Moderator

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

Highlighted
Moderator

@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

Highlighted
Contributor

upvoted

Highlighted
Community Hero

@Olga_T 

 

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

 

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 Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Moderator

@richie , you are welcome Smiley Wink

 


Olga Terentieva
SmartBear Assistant Community Manager

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

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors