protractor - Is there a way to import common feature file to another feature file in cucumber -
is there way import 1 cucumber feature file another? can move repeated logics/actions/business validations different flow common feature file.
note: using background option few things launching application in every feature file. if consider it, background duplicated. :)
many thanks.
there no way include 1 feature file in another.
if could, gherkin considered programming language. gherkin isn't programming language , lacks features functions or modules.
what can repeated backgrounds then? approach see if move common initialization in background down stack. see if implement helpers perform same steps , either minimize background
given world prepared
in background. or make sure preparation done first in scenarios needed it. maybe hide call done in first step. move background away feature file , hide business stakeholders.
one thing consider tho be, background important business stakeholders? care backgrounds or noise them? if important, don't hide backgrounds. if backgrounds isn't important, hide them as possible.
Comments
Post a Comment