This repository was archived by the owner on Nov 16, 2018. It is now read-only.
forked from cucumber/cucumber-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Wire Protocol
dwhelan edited this page Aug 13, 2010
·
35 revisions
This page documents the details of the low-level \wire protocol that Cucumber uses to list and invoke steps in a remote process.
This protocol is in flux. Please see wire protocol for discussions around this emerging protocol.
{ "command" : "LIST_STEP_DEFINITIONS" }
{ "result" : "OK", "step_definitions": [ { "id": "some id ", "regexp": "regex" } ] }
{ "command" : "INVOKE", "args" : { "id" : "some id", "args" : [ "foo", "bar" ] } }
If the step is invoked successfully then an OK result is returned:
{ “result” : “OK” }OR
If the step throws an exception then a STEP_FAILED result is returned:
{ “result” : “STEP_FAILED”, “details” :
{ “exception” : “some exception type”, “message” : “foo”, “backtrace” : “bar” } }
If the remote process cannot handle a request then it shall return the following response:
{ "result" : "FAILED", "details" :
{ "exception" : "some exception type", "message" : "foo", "backtrace" : "bar" } }