June 2017
Intermediate to advanced
256 pages
5h 38m
English
Generally, while testing, we might have a bunch of scenarios that need a set of common steps. For example, any test steps that are after the log-in screen will require log in to be a common step. In that case, we can move log in to a section called Background in a feature file, thereby telling Cucumber to run it before each and every scenario in that file. Consider a feature file (testing the used car search scenario), as shown:
Feature: Used Car search feature Scenario: Search for a used Honda City car in Bangalore city When I launch Quikr app And I choose "Bangalore" as my city And I search for "Honda City" under Used Cars Then I should see the first car search result with "Honda" Scenario: Search for a used Honda City car in ...
Read now
Unlock full access