Articles Tagged with


Home / gherkin
Test Automation

Benefits of using screen recordings/videos to share information between business and dev teams

  1. Visual Clarity: Screen recordings can capture visual information, such as software interfaces, user interactions, and workflows. This visual clarity can help business users convey their requirements with precision.
  2. Step-by-Step Demonstration: Screen recordings can be used to provide step-by-step demonstrations of specific tasks or processes. This is particularly valuable when explaining complex software functionalities.
  3. Visual Documentation: Visual documentation through screen recordings can serve as a reference point for developers. It allows them to see exactly how a particular feature or process should work, reducing ambiguity.
  4. Bug Reporting: Screen recordings are effective for reporting and demonstrating software bugs or issues. Developers can view the recording to understand the problem and work on resolving it more efficiently.
  5. Training and Onboarding: Screen recordings can be used for training purposes, especially for onboarding new team members. They provide a visual guide for understanding software features and usage.
  6. User Experience Feedback: Business users can record their interactions with software to provide feedback on the user experience. This can help developers identify areas for improvement.
  7. Efficient Communication: Visual demonstrations often lead to more efficient communication, as developers can see exactly what the business users are referring to, reducing the need for lengthy explanations.
  8. Quality Assurance: Screen recordings can be used in quality assurance processes to ensure that the software meets the specified requirements and functions correctly.
  9. Visual Validation: Business users can visually validate that their requirements have been implemented correctly through screen recordings, reducing the risk of misunderstandings.
  10. Collaboration: Screen recordings facilitate collaboration between business users and developers, allowing them to visually review and discuss specific elements of the software.
  11. Accessibility: Team members who were not part of the initial conversation can access screen recordings to gain insights into the project and contribute effectively.
  12. Accountability: Screen recordings help establish accountability by showing how specific user interactions or functionalities were requested and should be implemented.

While screen recordings offer several advantages for visual communication, it’s important to remember that they may not always be suitable for conveying certain types of information, and they should be used in conjunction with other communication and documentation methods as needed.

Please try the free Nimbal User Journey Chrome/Edge plugin (Only Windows OS supported for now) to capture the videos of your user journeys to experience the above benefits. It will download the screen recordings in your Downloads folder with an additional feature text file with the details of the steps taken during the video.

Test Automation

Mastering the Art: Imperative and Declarative Ways of Writing Gherkin Tests

Imperative Gherkin Tests: The Step-by-Step Approach

Imperative Gherkin tests are centered around a step-by-step approach, providing explicit instructions on how to perform each action and validate the expected outcome. This style can be ideal for complex scenarios that require detailed scripting. Here’s an example:

 Scenario: User Login Given the user is on the login page 
When the user enters valid credentials 
And clicks the login button 
Then the user should be redirected to the dashboard

In this example, every action and its expected outcome are explicitly defined, guiding the automation tool or tester through each step. Imperative Gherkin tests are ideal for precise execution and debugging, as each step can be isolated and analyzed individually.

Declarative Gherkin Tests: The What, Not the How

Declarative Gherkin tests, on the other hand, focus on describing the intended behavior without explicitly defining the implementation details. They express the “what” rather than the “how” of a scenario, allowing for a more high-level, business-focused approach. Let’s see an example:

Scenario: User Login Given the user has valid credentials 
When the user attempts to log in 
Then the user should be granted access to the dashboard

Notice how the declarative style emphasizes the desired outcome rather than the specific actions. This approach promotes collaboration between business stakeholders and testers, as it abstracts away technical complexities and keeps the focus on business requirements. Declarative Gherkin tests also tend to be more resilient to changes in the user interface or underlying implementation, making them easier to maintain in the long run.

Choosing the Right Approach

Now that we’ve explored both imperative and declarative styles, you might be wondering which one to choose. Well, it depends on your testing goals, the complexity of your scenarios, and the collaboration dynamics within your team.

Imperative Gherkin tests shine when you require precise control over each step, want to isolate issues quickly, or have complex workflows that demand explicit scripting. On the other hand, declarative Gherkin tests excel in scenarios where collaboration and maintainability are crucial, such as when involving non-technical stakeholders or when the system’s implementation details are subject to change.

A hybrid approach can also be effective, blending both styles to strike a balance between clarity and maintainability. You can choose declarative statements for high-level scenarios and introduce imperative steps for specific critical actions that require detailed control.

In Conclusion

Gherkin tests offer a powerful way to document and automate behavior-driven scenarios, and understanding the imperative and declarative styles allows you to leverage their full potential. Each approach has its strengths, so choose wisely based on your testing goals and collaboration requirements.

Remember, testing is an iterative process, and the best approach might vary from project to project. So keep experimenting, learning, and adapting your testing strategies to ensure robust and efficient test automation.