SoapUI XPath assertion - wildcard string with Excel dataSource -


i want use assertion "expected result" uses both form of "contains" function or wildcard , gets text test against excel datasource. soapui 'contains' function has no way use datasource i've found, , cannot figure out how use xpath function contains datasource. can please explain how works?

--

i've been asked more detail.

in soapui, if add assertion , choose request/response source, have choice of assertions. 1 of them "xpath match". can use designate specific field in response, in case, value want test.

having chosen "xpath expression" in top half of "xpath match configuration", can choose excel datasource content lower half "expected result". have used test error code against error code excel spreadsheet.

what don't know how determine, in assertion, error message returned contains value in excel. figure special goes "expected result" in "xpath match configuration" box, don't know what.

xpath match dialog

the expected result of xpath assertion "dumb" string. best can in field property expansion ... not cause.

instead need use top portion, can enter xpath expression, provides logic looking for. xpath expression need like:

contains(//*:some/*:node, '${data_source#property}') 

and expected value simply:

true 

convenient reference, in case need it.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -