cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot pass transfered property (REST)

SOLVED
Highlighted
New Contributor

Cannot pass transfered property (REST)

Hi all,

 

we managed to transfer the value from the response of a REST call intro a property but we are not able to place it into the next RESt call.

 

So we have the following structure:

 

- TestSuite 1

- - TTS

--- Test Steps

---- createTTS (Property)

----- uid (Property)

 

So we passed the value from the first call into the uid but we cannot use it in the second rest call.

 

In the second rest call we just placed it in the params and tried

${#createTTS#uid}

${#TestCase#createTTS#uid}

${#TTS#createTTS#uid}

and similair combination but none worked.

 

We would be happy for any idea.

 

Thank you!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Cannot pass transfered property (REST)

hi @Binary ,

 

It should work, just keep in mind that you must use:

 

1. ${#TestCase#yourProperty} or ${#TestSuite#yourProperty} and so on - if you reffer to the level your property exists

2. ${NameOfAStepOrTestCase#yourProperty} - when you reffer to a specific test step or test case.



If my answer helped please click on the 'Accept as Solution' button.

View solution in original post

3 REPLIES 3
Community Hero

Re: Cannot pass transfered property (REST)

hi @Binary ,

 

It should work, just keep in mind that you must use:

 

1. ${#TestCase#yourProperty} or ${#TestSuite#yourProperty} and so on - if you reffer to the level your property exists

2. ${NameOfAStepOrTestCase#yourProperty} - when you reffer to a specific test step or test case.



If my answer helped please click on the 'Accept as Solution' button.

View solution in original post

New Contributor

Re: Cannot pass transfered property (REST)

Thanks a lot. In my case removing the "#" at the first item was the solution.

So it was ${createTTS#uid}

Community Hero

Re: Cannot pass transfered property (REST)

Glad I could help. It is a pretty common mistake. I did it a couple of times as well... Smiley Tongue



If my answer helped please click on the 'Accept as Solution' button.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors