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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
step-definitions × 6cucumber × 5
automated-testing × 4
bdd × 4
gherkin × 2
manual-testing × 1
testcase × 1
katalon × 1