X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Ftesting%2FTestManager.cpp;h=8c0ea81586e83bb22154ba0324a2b37bf84a6bf3;hp=8f1a72812a1c8c8a5e344ea80fffebba7469d14a;hb=9fa68da11c56250017da9735e4a5dd3fd3b2021b;hpb=d30d9e082885e16f0098a699a3b79f53fb28910b diff --git a/source/testing/TestManager.cpp b/source/testing/TestManager.cpp index 8f1a728..8c0ea81 100644 --- a/source/testing/TestManager.cpp +++ b/source/testing/TestManager.cpp @@ -427,18 +427,19 @@ void TestManager::receiveMessage(const anna::DataBlock &message, const anna::dia // Work with Test case: TestStepWait *tsw = tc->searchNextWaitConditionFulfilled(message, true /* comes from entity */); if (!tsw) { // store as 'uncovered' - std::string hint = "Uncovered condition for received message from entity over Session-Id '"; hint += sessionId; hint += "':"; + std::string hint = "Uncovered condition for received message from entity over Session-Id '"; hint += sessionId; hint += "'; "; try { static anna::diameter::codec::Message codecMsg; codecMsg.decode(message); - hint += "\n"; hint += codecMsg.asXMLString(); + hint += "HEX Message: '"; hint += anna::functions::asHexString(message); + hint += "'; XML Message:\n"; hint += codecMsg.asXMLString(); } catch (anna::RuntimeException &ex) { ex.trace(); - hint += "\n"; hint += ex.asString(); + hint += ex.asString(); } - hint += "\n"; hint += clientSession->asString(); + hint += "\nClient Session: "; hint += clientSession->asString(); tc->addDebugSummaryHint(hint); } @@ -467,18 +468,19 @@ void TestManager::receiveMessage(const anna::DataBlock &message, const anna::dia // Work with Test case: TestStepWait *tsw = tc->searchNextWaitConditionFulfilled(message, false /* comes from client */); if (!tsw) { // store as 'uncovered' - std::string hint = "Uncovered condition for received message from client over Session-Id '"; hint += sessionId; hint += "':"; + std::string hint = "Uncovered condition for received message from client over Session-Id '"; hint += sessionId; hint += "'; "; try { static anna::diameter::codec::Message codecMsg; codecMsg.decode(message); - hint += "\n"; hint += codecMsg.asXMLString(); + hint += "HEX Message: '"; hint += anna::functions::asHexString(message); + hint += "'; XML Message:\n"; hint += codecMsg.asXMLString(); } catch (anna::RuntimeException &ex) { ex.trace(); - hint += "\n"; hint += ex.asString(); + hint += ex.asString(); } - hint += "\n"; hint += serverSession->asString(); + hint += "\nServer Session: "; hint += serverSession->asString(); tc->addDebugSummaryHint(hint); }