Forum Discussion

MarkusReiser's avatar
MarkusReiser
Occasional Contributor
10 years ago

Validate Rest-Service Response with assertion, SoapUI hangs up

I use the latest Maintenance Builds Ready! API 1.5.0

When I call a Rest-Service with the following response (see attached file).
I want die validate a text string. So I add a new assertion with xpath

declare namespace ns1='http://www.w3.org/1999/xhtml';
//ns1:html[1]/ns1:div[4]/ns1:div[1]/ns1:h2[1]

the expected result is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<h2 style="margin-top: 0" xmlns="http://www.w3.org/1999/xhtml">HTTP-Code: 500: Ein unerwarteter Serverfehler ist aufgetreten</h2>

But if I want to close the dialog "XPATH MATCH CONFIGURATION" with the "save" Button, the program hangs. The dialog is still open, but I can do nothing. The dialog don't closes and I had to kill SoapUI via the task manager.