// Message
if (TestManager::instantiate().getDumpHex()) {
if (a_message.isEmpty()) {
- msg = "<empty>";
+ msg = "[empty]";
}
else {
msg = "\n"; msg += a_message.asString(); msg += "\n";
xmlmsg += "\n";
}
else {
- xmlmsg = "<unable to decode, check traces>";
+ xmlmsg = "[unable to decode, check traces]";
}
if (msg != "") result->createAttribute("Message", msg);
// Detailed log:
if(a_originHost->logEnabled()) {
if (decodeMessage(true /* trust */)) {
- std::string detail = usedClientSession ? usedClientSession->asString() : "<null client session>"; // shouldn't happen
+ std::string detail = usedClientSession ? usedClientSession->asString() : "[null client session]"; // shouldn't happen
a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2e" : "send2eError"), detail);
}
}
// Detailed log:
if(a_originHost->logEnabled()) {
if (decodeMessage(true /* trust */)) {
- std::string detail = usedServerSession ? usedServerSession->asString() : "<null server session>"; // shouldn't happen
+ std::string detail = usedServerSession ? usedServerSession->asString() : "[null server session]"; // shouldn't happen
a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2c" : "send2cError"), detail);
}
}
// Message
if (TestManager::instantiate().getDumpHex()) {
if (a_message.isEmpty()) {
- msg = "<empty>";
+ msg = "[empty]";
}
else {
msg = "\n"; msg += a_message.asString(); msg += "\n";
}
if (a_message.isEmpty()) {
- xmlmsg = "<empty>";
+ xmlmsg = "[empty]";
}
else {
if (decodeMessage()) {
xmlmsg += "\n";
}
else {
- xmlmsg = "<unable to decode, check traces>";
+ xmlmsg = "[unable to decode, check traces]";
}
}
anna::xml::Node* result = TestStep::asXML(parent);
//parent->createChild("TestStepCmd");
- result->createAttribute("Script", (a_script != "") ? a_script:"<no script>");
+ result->createAttribute("Script", (a_script != "") ? a_script:"[no script]");
if (a_errorMsg != "") result->createAttribute("ErrorMessage", a_errorMsg);
if (a_threadRunning) {
if (a_childPid != -1)
anna::xml::Node* TestStepIpLimit::asXML(anna::xml::Node* parent)
throw() {
anna::xml::Node* result = TestStep::asXML(parent);
- std::string limit = (a_ipLimit != UINT_MAX) ? anna::functions::asString(a_ipLimit) : "<no limit>";
+ std::string limit = (a_ipLimit != UINT_MAX) ? anna::functions::asString(a_ipLimit) : "[no limit]";
result->createAttribute("IpLimit", limit);
return result;
void TestStepIpLimit::do_complete() throw() {
if (TestManager::instantiate().getDumpStdout()) {
- std::string limit = (a_ipLimit != UINT_MAX) ? anna::functions::asString(a_ipLimit) : "<no limit>";
+ std::string limit = (a_ipLimit != UINT_MAX) ? anna::functions::asString(a_ipLimit) : "[no limit]";
std::cout << "Executed IpLimit Test Step (value = " << limit << ")" << std::endl;
}
}