cancel
Showing results for 
Search instead for 
Did you mean: 

Strip Property Transfer

SOLVED
Highlighted
New Contributor

Strip Property Transfer

Hello I have one Question I want wo use Property Transfer to Transfer Id from XML Response to Request.

 

In the Source Response I read the XML Value like:

 

//*:xxx/*:ID

 

The result is for example: item#13,3,8

 

For the Target I select //*:ID where The ID is transfered to.

 

But from the result.id I only want the second number behind the first comma, in my example: item#13,3,8

 

Is there a solution to do it?

1 ACCEPTED SOLUTION

Accepted Solutions
New Contributor

Re: Strip Property Transfer

I have to change your solution to:

 

substring-before(substring-after(//*:xxx/*:ID, ','), ',')

This works!

 

Thank you!

2 REPLIES 2
Community Hero

Re: Strip Property Transfer

Hi,

Give this a try:

substring-before(substring-after(//*:xxx/*:ID, '#'), ',')

 

New Contributor

Re: Strip Property Transfer

I have to change your solution to:

 

substring-before(substring-after(//*:xxx/*:ID, ','), ',')

This works!

 

Thank you!

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors