Recipe 14Drive Cucumber’s Wire Protocol

Problem

You’re writing Cucumber tests to drive an application that doesn’t provide an easy way to integrate Ruby, such as PHP, ActionScript, or C++.

Ingredients

  • A wire file for driving Cucumber’s wire protocol[91]

Solution

In 2009, the Cucumber team was looking for a way to connect Cucumber to environments that don’t have direct Ruby integration. They came up with the wire protocol, a simple text format through which Cucumber can talk to an external process over TCP and ask it things like, “Do you have any step definitions matching When I withdraw $100?”

Ian says:
Ian says:
Remote Testing

At work, some of our products ...

Get Cucumber Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.