summaryrefslogtreecommitdiffstats
path: root/test/uscxml/test-expect.scxml
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
committerStefan Radomski <github@mintwerk.de>2016-05-12 13:12:33 (GMT)
commitb62e7979600feee23dc7cdb61042a8fc7673122b (patch)
treef7351372f37979dd2d048e0b68a16a4cd3b2aadb /test/uscxml/test-expect.scxml
parent1b11b310be61e51b3ac5ebb83f7c8a33aef3d6e8 (diff)
downloaduscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.zip
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.gz
uscxml-b62e7979600feee23dc7cdb61042a8fc7673122b.tar.bz2
Major Refactoring v2.0
Diffstat (limited to 'test/uscxml/test-expect.scxml')
-rw-r--r--test/uscxml/test-expect.scxml64
1 files changed, 0 insertions, 64 deletions
diff --git a/test/uscxml/test-expect.scxml b/test/uscxml/test-expect.scxml
deleted file mode 100644
index abd2a58..0000000
--- a/test/uscxml/test-expect.scxml
+++ /dev/null
@@ -1,64 +0,0 @@
-<scxml datamodel="ecmascript">
- <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" />
- <state id="start">
- <state id="spawn">
- <invoke type="expect" id="telnet">
- <param name="debug" expr="false" />
- <param name="timeout" expr="3" />
- <param name="loguser" expr="false" />
- <param name="spawn" expr="'/usr/bin/telnet'" />
- <param name="argument" expr="_ioprocessors.basichttp.host" />
- <param name="argument" expr="_ioprocessors.basichttp.port" />
- <!-- <param name="argument" expr="80" /> -->
- <finalize><script>//print('------------'); dump(_event);</script></finalize>
- </invoke>
-
- <state id="idle">
- <onentry><log expr="'Waiting'"/></onentry>
- <transition event="spawn.success" target="spawned" />
- <transition event="spawn.failed" target="exit">
- <script>print('FAIL: '); dump(_event);</script>
- </transition>
- </state>
-
- <state id="spawned">
- <onentry>
- <log expr="'Spawned'"/>
- <send target="#_telnet" event="expect.match">
- <param name="exact:refused" expr="'Connection refused'" />
- <!-- last line of a telnet connect -->
- <param name="exact:connected" expr="'Escape character is \'^]\'.'" />
- </send>
- </onentry>
- <transition event="expect.match.connected" target="established" />
- </state>
-
- <state id="established">
- <onentry>
- <log expr="'Established'"/>
- <send target="#_telnet" event="expect.send">
- <content>GET /${_name} HTTP/1.1\n\n</content>
- </send>
- <send target="#_telnet" event="expect.match">
- <param name="exact:answered" expr="'Some arbitrary content'" />
- </send>
- </onentry>
-
- <!-- Answer the telnet request -->
- <transition event="http.get" type="internal">
- <respond to="_event.origin">
- <header name="Content-Type" value="text/plain" />
- <content>Some arbitrary content</content>
- </respond>
- </transition>
-
- <transition event="expect.match.answered" target="start" type="external" />
-
- </state>
-
- </state>
- </state>
-
-
- <final id="exit" />
-</scxml> \ No newline at end of file