liveBook · Manning

Test step

As explained in Effective Behavior-Driven Development

An individual action or instruction within a software test procedure.

A test step is one line in a scenario. Automation tools process steps one at a time, using each step’s wording to choose which automation code to call. section 1.3.4

[Given("the customer's order has been collected")]
public void GivenTheCustomersOrderHasBeenCollected()
{
  var orderRequest = 
    new PlaceOrderRequestObjectMother().Build();
  var placedOrder = backdoorApiDriver    
    .PrepareOrder(orderRequest, OrderStatus.Collected)
    .Execute();
}

A customer-order step is connected to automation code that prepares the order. section 1.3.4

How Effective Behavior-Driven Development covers it

How deep it goes
Defines a step and describes text-based dispatch, then begins a C# implementation example.
Examples
Shows a customer-order collection step automated with C# and Reqnroll.
What you can do after
Apply it via Reqnroll by associating scenario step wording with automation code.
How it connects
Links test steps to BDD scenarios, scenario automation, and living documentation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Behavior-Driven Development. The section links point to the parts of the book it draws on.