Forum Discussion
11 years ago
I have a similar problem, but when using an assertion in a JDBC request.
I am testing a PUT service which contains multiple fields that I'm wanting to check the results in the database after the update. Some of the fields contain a null value.
In my assertion I have got the following in my XPath Expression:
//Results[1]/ResultSet[1]/Row[1]/SECOND_SURNAME[1]
and the following in my Expected Result:
${DataSource#secondSurname} - the values for all of the fields are coming from a Datasource that links to an excel spreadsheet and in Excel the value for the field secondSurname is null
all of which have been populated using the relevant drop downs in SOAPUI Pro.
My problem is that I get the following result against my assertion:
XPathContains comparison failed for path [//Results[1]/ResultSet[1]/Row[1]/SECOND_SURNAME[1]], expecting [], actual was [null]
So how do I do something similar to the above solution within a JDBC request?
I am testing a PUT service which contains multiple fields that I'm wanting to check the results in the database after the update. Some of the fields contain a null value.
In my assertion I have got the following in my XPath Expression:
//Results[1]/ResultSet[1]/Row[1]/SECOND_SURNAME[1]
and the following in my Expected Result:
${DataSource#secondSurname} - the values for all of the fields are coming from a Datasource that links to an excel spreadsheet and in Excel the value for the field secondSurname is null
all of which have been populated using the relevant drop downs in SOAPUI Pro.
My problem is that I get the following result against my assertion:
XPathContains comparison failed for path [//Results[1]/ResultSet[1]/Row[1]/SECOND_SURNAME[1]], expecting [], actual was [null]
So how do I do something similar to the above solution within a JDBC request?
Related Content
- 6 years ago
- 5 years ago
- 2 years ago
- 2 years ago
Recent Discussions
- 16 minutes ago
- 16 days ago