r/softwaretesting • u/Hagisman • 14d ago
Why aren't there Gherkin standards for writing basic UI test cases?
I've been looking to take ownership of a new automation push at my company. The BDD/Gherkin syntax of Given/When/Then feels like it should have been standardized at the very least for basic functionality tests.
For instance, if I look for examples of gherkin steps I'll get a plethora of options to choose from:
- When the user clicks the register button
- When the operator clicks the register button
- When I click the register button
- When user clicks <button>
- And clicks the login button
So far, the only explicit standards I've found are "given in past tense" and "when and then in present tense". Are there standards somewhere that can help me in this regard for the initial design of automated test cases from the ground up?
Sidebar:
If I write a step with "^user clicks the <object>" does the "^user" mean that I can that the step can be written as "And click the <object>"?