Philippe_Lebacq
15 years agoContributor
Xpath match with custom property
I have a project custom property I'm using in the endpoint and that I want to verify in xpath match assertion.
This works OK when my property contains an integer, but not with a letter:
( ${#Project#testenv} = A ... ) ==> always returns false when property = A, I tried = A, = 'A', = "A" and also the string function.
Any idea for this to work?
property:
testenv=A
assertion:
declare namespace cwsgl="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd";
( ${#Project#testenv} = 1 and //cwsgl:errorNumber[1]/text()="W004" )
or ( ${#Project#testenv} = 8 and //cwsgl:AssessmentStatusAR[1]/text()="RE" )
or ( ${#Project#testenv} = A and //cwsgl:AssessmentStatusAR[1]/text()="RE" )
Kinds
Philippe.
This works OK when my property contains an integer, but not with a letter:
( ${#Project#testenv} = A ... ) ==> always returns false when property = A, I tried = A, = 'A', = "A" and also the string function.
Any idea for this to work?
property:
testenv=A
assertion:
declare namespace cwsgl="https://cwssoap.toyota-europe.com/cws/services/cws_global/1.xsd";
( ${#Project#testenv} = 1 and //cwsgl:errorNumber[1]/text()="W004" )
or ( ${#Project#testenv} = 8 and //cwsgl:AssessmentStatusAR[1]/text()="RE" )
or ( ${#Project#testenv} = A and //cwsgl:AssessmentStatusAR[1]/text()="RE" )
Kinds
Philippe.