Forum Discussion
It sounds like you're trying to test that forms are built correctly. A form is not part of your problem domain (retail, finance, whatever). If your tests are about technical building blocks rather than business rules in your problem domain, then Cucumber is probably not the right tool for the job.
The main purpose of Cucumber is to build a shared understanding of system behaviour (in business language) between various technical and non-technical stakeholders, and provide living documentation of how the system behaves. If this isn't your goal, it's usually better to use a more low level testing tool, like a unit testing tool.
By using a unit testing tool you have much more control over how a test executes.
Hi, and thanks for the fast reply! 🙂
I apologize but I'm not sure what you mean with "A form is not part of your problem domain (retail, finance, whatever)". I agree that Cucumber Studio is helping us build that shared behavior of the application, and part of that is documenting the details of the form we will be developing and later testing (its label, placeholders, field type for validations, etc.). Maybe in this case the table could be written more business, but as long as the team understands its meaning, I think it will be fine.
Also, isn't Cucumber Studio's goal to also assist on the automation of the testing? That is why I am trying to reduce the complexity of what will eventually be turned into a testing script.
I know there are more verbose ways to do the same thing I'm trying to do with the table, but I was wondering if calling columns from a step datatable was possible. It does seem like a cleaner way to document (see examples below). If it's not possible to do this at the step/action word level it's also ok and we will have to go with the more verbose option or find another way. 🙂
Thanks,
Sergio.
MORE VERBOSE OPTION
....
Then the field "field-1" will be of type "string", with label "Name", placeholder "Enter Name" and will not be mandatory
And the field "field-2" ...
...
And the field "field-10" ...
WITH THE TABLE
...
Then the form "form-1" will have the following fields:
|field-name|type|label|placeholder|
|field-1|string|Name|Enter Name|
|field-2|...|...|...|
...
|field-10|...|...|...|
Related Content
- 2 years ago
- 2 years ago
- 6 years ago