a_condition.setServiceContextId(serviceContextId);
}
-void TestStepWait::setCondition(bool fromEntity, const std::string ®exp) throw() {
+void TestStepWait::setConditionRegexpHex(bool fromEntity, const std::string ®exp) throw() {
+ a_condition.setReceivedFromEntity(fromEntity);
+ a_condition.setRegexpHex(regexp);
+}
+void TestStepWait::setConditionRegexpXml(bool fromEntity, const std::string ®exp) throw() {
a_condition.setReceivedFromEntity(fromEntity);
- a_condition.setRegexp(regexp);
+ a_condition.setRegexpXml(regexp);
}
anna::xml::Node* TestStepWait::asXML(anna::xml::Node* parent)
}
}
- if (decodeMessage()) {
- xmlmsg = "\n";
- xmlmsg += a_messageCodec->asXMLString();
- xmlmsg += "\n";
+ if (a_message.isEmpty()) {
+ xmlmsg = "<empty>";
}
else {
- xmlmsg = "<unable to decode, check traces>";
+ if (decodeMessage()) {
+ xmlmsg = "\n";
+ xmlmsg += a_messageCodec->asXMLString();
+ xmlmsg += "\n";
+ }
+ else {
+ xmlmsg = "<unable to decode, check traces>";
+ }
}
if (msg != "") result->createAttribute("MatchedMessage", msg);