Completed

Use variable reference in GET_REST_Value -> Keys/Xpaths

Here I am trying to parse XML response by using keys to retrieve the value.

Set_var HALT Static Var "Agree"

Question: how to write keys/xpath with variable reference.

//*[Name="@Var"]/text() - This returns Null value

0
6 comments
Avatar
Jonathan Hotz

Hi!

For example, your XML response structure is next:

<doc>

<Agree>my_text</Agree>

</doc>

 

In your case you can use simple XML XPath:

//@Var

 

Verify_Rest and Get_Rest takes node text automatically.

 

If it's not your case, could you please provide your XML sample?

0
Comment actions Permalink
Avatar
Jonathan Hotz

Unfortunately, we found a bug in Get_Rest_Value. We will provide 8.4.2 version with fix this Saturday.

If you need just compare values you can continue to use Verify_Rest

0
Comment actions Permalink
Avatar
Anjali Mutha

Could you provide the details about the bug it will be helpful in debugging my rest calls

 

0
Comment actions Permalink
Avatar
Jonathan Hotz

There is an issue with resolving variables in XPath, it’s a simple fix and we have reproduced the issue on our environment. We will have a release this weekend that should have this fix in it.

0
Comment actions Permalink
Avatar
Payam Fard

Please try it now. Our 8.4.2 release should have fixed this issue. Please let us know how it goes.

0
Comment actions Permalink
Avatar
Anjali Mutha

This issue is fixed and working as expected.

0
Comment actions Permalink

Please sign in to leave a comment.