Skip to main content
4 votes

Can one step on test case contain more than one expected result?

It's totally okay to write a combined expected result for all the steps of a test case. It's also normal to write single expected result for each individual step. Taking your example, your case can ...
IAmMilinPatel's user avatar
4 votes

Actual Steps in Step Definition or Call Test Cases in Step Definition, What's the Best Practice?

Katalon has an example project on github: https://github.com/katalon-studio-samples/katalon-bdd-cucumber-tests Although I find the directory structure hard to navigate the feature example does follow ...
Niels van Reijmersdal's user avatar
4 votes

Actual Steps in Step Definition or Call Test Cases in Step Definition, What's the Best Practice?

I personally divide the logic into three levels: feature file (Cucumber), step definition (Cucumber + Java), page objects (Selenium and Java). Cucumber separates business logic from the ...
Mate Mrše's user avatar
  • 4,119
4 votes

What is the purpose of splitting a cucumber Step Definition file

Same reason why you would split large modules in your regular code base: maintainability & navigability. Over time as your step definitions grow you will have steps that are closely related to ...
jpjwolli's user avatar
  • 487
2 votes

Can one step on test case contain more than one expected result?

A test case is just a document regarding your testing. If it communicates the necessary information for the target audience, then it is fulfilling its goal.
João Farias's user avatar
  • 10.9k
1 vote

Can one step on test case contain more than one expected result?

It depends on who is the audience. For which purpose you are writing the test cases and who is going to read and use your test cases. If it's only for documentation purposes for manual testing - it's ...
Vishal Aggarwal's user avatar
1 vote

Behavioural Gherkin Steps requiring complex Step Definitions when Automating

Gherkin should also be devoid of technical details. The fact the notification setting is saved to the database does not belong in a scenario. The fact notifications are turned "on" does belong. I ...
Greg Burghardt's user avatar
1 vote

Cucumber feature file steps not requiring a step def

You can simply add a commented line if it's better for understanding the scenario. Otherwise you can alway add an empty step, even a generic one like "Business Context:...." to reuse that empty step ...
Mykola Gurov's user avatar
1 vote

What is the purpose of splitting a cucumber Step Definition file

To cope with the complexity and ease of maintenance. Once we reach a size where it becomes difficult to maintain a single step definition file, then we split generally based on per page object ...
Vishal Aggarwal's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible