diff --git a/source/src/main/java/org/cerberus/core/engine/gwt/impl/PropertyService.java b/source/src/main/java/org/cerberus/core/engine/gwt/impl/PropertyService.java index 1b94ea248..6a8028a1a 100644 --- a/source/src/main/java/org/cerberus/core/engine/gwt/impl/PropertyService.java +++ b/source/src/main/java/org/cerberus/core/engine/gwt/impl/PropertyService.java @@ -1583,7 +1583,20 @@ else if (xmlToParse == null) { // Else we can try to parse it thanks to the dedicated service try { - String valueFromXml = xmlUnitService.getFromXml(xmlToParse, testCaseExecutionData.getValue1()); + + String valueFromXml = ""; + switch (testCaseExecutionData.getValue3()) { + case TestCaseCountryProperties.VALUE3_VALUE: + valueFromXml = xmlUnitService.getFromXml(xmlToParse, testCaseExecutionData.getValue1()); + break; + case TestCaseCountryProperties.VALUE3_RAW: + valueFromXml = xmlUnitService.getRawFromXml(xmlToParse, testCaseExecutionData.getValue1()); + break; + default: + valueFromXml = xmlUnitService.getFromXml(xmlToParse, testCaseExecutionData.getValue1()); + break; + } + if (valueFromXml != null) { testCaseExecutionData.setValue(valueFromXml); MessageEvent res = new MessageEvent(MessageEventEnum.PROPERTY_SUCCESS_GETFROMXML);