У меня была эта проблема Сценарии с огурцом для очень длительного рабочего процесса
И теперь я писал отдельные сценарии для каждого из длинных серий этапов, состоящих из нескольких частей. . У меня есть раздел Фон
, который настраивает каждый сценарий
. Но теперь, когда я запускаю всю функцию, cucumber хочет повторить Фон
для каждого Сценария
. Я хочу протестировать сценарий
, основанный на всех предыдущих.
Вот краткое описание того, как выглядит моя функция:
Feature: Submit a manuscript
In order to complete a manuscript submission
As a corresponding author
I want to complete the to-do list
Background:
Given I am logged in as "Steve"
And an article_submission "Testing Web Apps" exists
And "Steve" is a "Corresponding Author" for "Testing Web Apps"
And I am on the manuscript to-do list page for "Testing Web Apps"
Scenario: Steve suggests reviewers for his manuscript
...
Scenario: Steve completes the manuscript fees to-do item
...
Scenario: Steve wants to add Barbara as a co-author
...
Scenario: Steve uploads necessary files
...
Scenario: Steve edits the fees page and general information page
...
Scenario: Steve re-uploads the manuscript file
...
Scenario: Steve completes the Copyright Transfer
...
Scenario: Steve completes Author Responsibilities & Agreement
...
# These scenarios depend on all the previous ones having run
Scenario: Steve Completes submission
...
Scenario: Steve goes back and make changes
...
Scenario: Steve fills out payment page
Есть ли способ потребовать выполнения предыдущих сценариев? И есть ли способ запустить Фон
только один раз?