From: Eduardo Ramos Testillano Date: Fri, 5 Feb 2016 01:53:56 +0000 (+0100) Subject: Dont check validation on write log for sendxml operation X-Git-Tag: REFACTORING_TESTING_LIBRARY~39 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=786b2fe6e2363dc5af619526208583c61f18f70b;p=anna.git Dont check validation on write log for sendxml operation --- diff --git a/example/diameter/launcher/testing/TestStep.cpp b/example/diameter/launcher/testing/TestStep.cpp index 810565b..d02d9b6 100644 --- a/example/diameter/launcher/testing/TestStep.cpp +++ b/example/diameter/launcher/testing/TestStep.cpp @@ -413,10 +413,12 @@ bool TestStepSendxml::do_execute() throw() { // Detailed log: if(a_originHost->logEnabled()) { - if (decodeMessage()) { + //if (decodeMessage()) { + // here we decode what we encoded on programming, then we could have a validation problem but not a decoding one: + decodeMessage(); std::string detail = usedClientSession ? usedClientSession->asString() : ""; // shouldn't happen a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2e" : "send2eError"), detail); - } + //} } } else if (getType() == Type::Sendxml2c) { @@ -447,10 +449,12 @@ bool TestStepSendxml::do_execute() throw() { // Detailed log: if(a_originHost->logEnabled()) { - if (decodeMessage()) { + //if (decodeMessage()) { + // here we decode what we encoded on programming, then we could have a validation problem but not a decoding one: + decodeMessage(); std::string detail = usedServerSession ? usedServerSession->asString() : ""; // shouldn't happen a_originHost->writeLogFile(*a_messageCodec, (success ? "sent2c" : "send2cError"), detail); - } + //} } }