summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-02-10 19:50:07 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-02-10 19:50:07 (GMT)
commit7c779099b3acd1fa969dde718299484ebe0d2775 (patch)
tree79abec37c8a92264b7d157533a21df53057757c7 /test/src
parent71a3ca4fd78d7a9cca844e81f29f48b9c36bd4c7 (diff)
downloaduscxml-7c779099b3acd1fa969dde718299484ebe0d2775.zip
uscxml-7c779099b3acd1fa969dde718299484ebe0d2775.tar.gz
uscxml-7c779099b3acd1fa969dde718299484ebe0d2775.tar.bz2
Various bug fixes
Diffstat (limited to 'test/src')
-rw-r--r--test/src/scxml-test-framework-client.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/src/scxml-test-framework-client.cpp b/test/src/scxml-test-framework-client.cpp
index 1505988..841df0f 100644
--- a/test/src/scxml-test-framework-client.cpp
+++ b/test/src/scxml-test-framework-client.cpp
@@ -36,11 +36,12 @@ public:
reply.compound["sessionToken"] = uscxml::Data(interpreter->getName());
std::string seperator;
for (size_t i = 0; i < configuration.size(); i++) {
- reply.compound["nextConfiguration"].array.push_back(uscxml::Data(ATTR(configuration[i], "id"), uscxml::Data::VERBATIM));
+ if (uscxml::Interpreter::isAtomic(configuration[i]))
+ reply.compound["nextConfiguration"].array.push_back(uscxml::Data(ATTR(configuration[i], "id"), uscxml::Data::VERBATIM));
}
-// std::cout << "---- reply:" << std::endl;
-// std::cout << reply << std::endl;
+ std::cout << "---- reply:" << std::endl;
+ std::cout << reply << std::endl;
std::stringstream replyString;
replyString << reply;
@@ -72,6 +73,11 @@ public:
std::cout << std::endl;
}
virtual void beforeExitingStates(uscxml::Interpreter* interpreter, const Arabica::XPath::NodeSet<std::string>& statesToExit) {
+ std::cout << "Configuration: ";
+ for (int i = 0; i < interpreter->getConfiguration().size(); i++) {
+ std::cout << ATTR(interpreter->getConfiguration()[i], "id") << ", ";
+ }
+ std::cout << std::endl;
std::cout << "Exiting states: ";
for (int i = 0; i < statesToExit.size(); i++) {
std::cout << ATTR(statesToExit[i], "id") << ", ";
@@ -88,7 +94,7 @@ public:
virtual void httpRecvReq(struct evhttp_request *req) {
-// std::cout << "---- received:" << std::endl;
+ std::cout << "---- received:" << std::endl;
if (evhttp_request_get_command(req) != EVHTTP_REQ_POST)
return;
@@ -117,7 +123,7 @@ public:
}
uscxml::Data jsonReq = uscxml::Data::fromJSON(content);
-// std::cout << jsonReq << std::endl;
+ std::cout << jsonReq << std::endl;
// is this a load request?