cancel
Showing results for 
Search instead for 
Did you mean: 

Property transfer [Missing match for Xpath]

SOLVED
Dear Community, API Masterminds week 4 has started!

Participate in the exciting online event by posting questions or replies and win! During the entire March, we decide top contributors each week and reward them with great gifts . Congratulate the winners of Week 3 here.
Week 4 task: Ask more questions, bring interesting topics and reply to existing ones in the ReadyAPI Community
Topics to participate in:
See All
Week 4 Leaders:
Members with the biggest number of posts
HimanshuTayal 17 posts
nmrao 15 posts
richie 2 posts
pizzaTime 1 posts
PratikshaMehete 1 posts
Highlighted
Occasional Contributor

Property transfer [Missing match for Xpath]

Hi all.

I have promlem with Property transfer

 

My TestCase have 3 steps 

1) Test Reqest (reqest1.txt)

2) Property transfer (reqest1.txt - response1.txt)

3) Test Reqest 2 (reqest1.txt)

 

When I Run Property transfer log message "Missing match for Xpath [//requestID]"

If I check "set null on missing source" - transfer value = null

 

help me find mistake

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Property transfer [Missing match for Xpath]

Bigno!!!

 

it's work!

declare namespace s='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace h='UPRS/Datatypes/Infrastructure';
//s:Envelope[1]/s:Header[1]/h:RequestContext[1]/*[local-name() = 'requestID'][1]/text()

 

 

 

View solution in original post

7 REPLIES 7
Community Hero

Re: Property transfer [Missing match for Xpath]

It appears that there is duplicate namespace defined for an element which is under header.


Regards,
Rao.
Highlighted
Occasional Contributor

Re: Property transfer [Missing match for Xpath]

Highlighted
Community Hero

Re: Property transfer [Missing match for Xpath]

I was talking about the response.


Regards,
Rao.
Highlighted
Occasional Contributor

Re: Property transfer [Missing match for Xpath]

response also have one requestID

 

if I parse xml in notepad++, i have true value

 

Highlighted
Community Hero

Re: Property transfer [Missing match for Xpath]

Have you tried something like below?

//RequestContext/requestID/text()


Regards,
Rao.
Highlighted
Occasional Contributor

Re: Property transfer [Missing match for Xpath]

Yes, it's did not help

Highlighted
Occasional Contributor

Re: Property transfer [Missing match for Xpath]

Bigno!!!

 

it's work!

declare namespace s='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace h='UPRS/Datatypes/Infrastructure';
//s:Envelope[1]/s:Header[1]/h:RequestContext[1]/*[local-name() = 'requestID'][1]/text()

 

 

 

View solution in original post

New Here?
Join us and watch the welcome video:
Join 2020 API Masterminds
We invite all lovers of API testing to participate in the API Masterminds event. Ask questions or help others by giving solutions and get rewarded.
>> Participate Today
Get Your Free Ticket
SBC2020
Top Kudoed Authors