I have prepared a Groovy script in soapUI. Somehow, the Groovy script fails to get XML element value; specifically, I always pick up the default file (i.e., FILE_FOUND_RESP). Whenever there is an exception (for example, document unique ID is ILLEGAL) the default file is still selected but not the ILLEGAL_RESP file. I am seeking help to find out my mistakes. Thank you very much in advance.
Here is my Groovy script in soapUI.
This Groovy script is supposed to read through a XML file (shown below) and get the value of the element <DocumentUniqueId>: