projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvs. Initial version for tinyTestcase creation
[anna.git]
/
example
/
diameter
/
launcher
/
testing
/
TestStep.cpp
diff --git
a/example/diameter/launcher/testing/TestStep.cpp
b/example/diameter/launcher/testing/TestStep.cpp
index
524e0bd
..
e58bb0b
100644
(file)
--- a/
example/diameter/launcher/testing/TestStep.cpp
+++ b/
example/diameter/launcher/testing/TestStep.cpp
@@
-33,7
+33,7
@@
#include <anna/diameter/helpers/base/functions.hpp>
// Process
#include <anna/diameter/helpers/base/functions.hpp>
// Process
-#include <
RealmNode
.hpp>
+#include <
OriginHost
.hpp>
#include <MyDiameterEntity.hpp>
#include <MyLocalServer.hpp>
#include <TestStep.hpp>
#include <MyDiameterEntity.hpp>
#include <MyLocalServer.hpp>
#include <TestStep.hpp>
@@
-347,12
+347,12
@@
throw() {
bool TestStepSendxml::do_execute() throw() {
bool success = false;
std::string failReason, s_warn;
bool TestStepSendxml::do_execute() throw() {
bool success = false;
std::string failReason, s_warn;
- MyDiameterEntity *entity = a_
realmNode
->getEntity(); // by default
- MyLocalServer *localServer = a_
realmNode
->getDiameterServer(); // by default
+ MyDiameterEntity *entity = a_
originHost
->getEntity(); // by default
+ MyLocalServer *localServer = a_
originHost
->getDiameterServer(); // by default
const TestStepWait *tsw = NULL;
// Create comm message:
const TestStepWait *tsw = NULL;
// Create comm message:
- anna::diameter::comm::Message *msg = a_
realmNode
->createCommMessage();
+ anna::diameter::comm::Message *msg = a_
originHost
->createCommMessage();
//msg->clearBody();
msg->setBody(a_message);
//msg->clearBody();
msg->setBody(a_message);
@@
-409,10
+409,10
@@
bool TestStepSendxml::do_execute() throw() {
} // else (normal sending)
// Detailed log:
} // else (normal sending)
// Detailed log:
- if(a_
realmNode
->logEnabled()) {
+ if(a_
originHost
->logEnabled()) {
if (decodeMessage()) {
std::string detail = usedClientSession ? usedClientSession->asString() : "<null client session>"; // shouldn't happen
if (decodeMessage()) {
std::string detail = usedClientSession ? usedClientSession->asString() : "<null client session>"; // shouldn't happen
- a_
realmNode
->writeLogFile(*a_messageCodec, (success ? "sent2e" : "send2eError"), detail);
+ a_
originHost
->writeLogFile(*a_messageCodec, (success ? "sent2e" : "send2eError"), detail);
}
}
}
}
}
}
@@
-443,10
+443,10
@@
bool TestStepSendxml::do_execute() throw() {
} // else (normal sending)
// Detailed log:
} // else (normal sending)
// Detailed log:
- if(a_
realmNode
->logEnabled()) {
+ if(a_
originHost
->logEnabled()) {
if (decodeMessage()) {
std::string detail = usedServerSession ? usedServerSession->asString() : "<null server session>"; // shouldn't happen
if (decodeMessage()) {
std::string detail = usedServerSession ? usedServerSession->asString() : "<null server session>"; // shouldn't happen
- a_
realmNode
->writeLogFile(*a_messageCodec, (success ? "sent2c" : "send2cError"), detail);
+ a_
originHost
->writeLogFile(*a_messageCodec, (success ? "sent2c" : "send2cError"), detail);
}
}
}
}
}
}
@@
-456,7
+456,7
@@
bool TestStepSendxml::do_execute() throw() {
}
// release msg
}
// release msg
- a_
realmNode
->releaseCommMessage(msg);
+ a_
originHost
->releaseCommMessage(msg);
if (!success) {
a_testCase->addDebugSummaryHint(failReason); // before report (when set Failed state);
if (!success) {
a_testCase->addDebugSummaryHint(failReason); // before report (when set Failed state);