cucumber - does if else concept available in feature file (gherkin language)? -


is there anyway can use if/else concept in feature file? example:

  scenario: user should able check login page   given on login page   when click on signin button    should in home page    if yes   create new profile   else   logout page  

not aware of. gherkin (and cucumber) best used when specify discreet business cases though, , should repeatable, else hard follow , test. looks have 2 stories here @ least:

scenario: new user should asked sign in   given new user   , navigate login page   when click on signin button   should not able home page  scenario: existing user should able log in   given existing user   , navigate login page   , submit valid credentials   when click on signin button   should taken home page 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -