3.9.1.1. steps_addition

Module

steps_addition

Filename

features/steps/steps_addition.py

3.9.1.1.1. Step Overview

Step Definition

Given

When

Then

Step

Given I have ‘{num1:d}’ and ‘{num2:d}’

x

When I add them

x

Then The result must be ‘{value:d}’

x

3.9.1.1.2. Step Definitions

3.9.1.1.2.1. Step: Given I have ‘{num1:d}’ and ‘{num2:d}’

We store num1 and num2 to context.math

Inputs:
  • num1 : Any number

  • num2 : Any number

3.9.1.1.2.2. Step: When I add them

We add num1 and num2 of context.math

3.9.1.1.2.3. Step: Then The result must be ‘{value:d}’

We ensure expected value matches in context.math