Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 6530

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 60k
Author
Asked: November 27, 20242024-11-27T07:24:08+00:00 2024-11-27T07:24:08+00:00

How the Gherkin Language Can Help Customers and Developers Communicate

  • 60k

Especially when businesspeople lack the knowledge and technical vocabulary, communicating with software developers can often be a burdensome task. This is why we make use of user stories and the versatile system metaphor.
To streamline communication even further, however, we use a very clever piece of technology that can make this process even smoother — like a cucumber, one might say.

The Cucumber Framework

Cucumber is a BDD (or Behavior-Driven Development) framework that enables the creation of automated software tests — in an easy-to-write, and perfectly understandable way. But while many developers may not yet be well acquainted with this software tool, nearly all of them have dabbled with its popular child language.

What is the Gherkin language?

Cucumber uses Gherkin as a means to define use cases. At SPG, however, we primarily use it to generate unambiguous project requirements. The example below should serve to illustrate exactly what is meant by this:

Feature: The Current Account Holder withdraws money

Scenario: The account in question is not lacking in funds
Given the fact that the account balance is £200
And the debit card is valid
And the cash machine contains enough money
When the Current Account Holder requests £50
Then the cash machine should dispense £50
And the account balance should be £150
And the debit card should be returned
What are Gherkin keywords?
So to break it down into simpler terms, the Gherkin syntax makes use of five indispensable statements that together describe the actions which will be needed to perform a task:

Feature — denotes a high-level description of any given software function
Scenario — describes a concrete example
Given — explains the initial context of the system
When — specifies an event or action
Then — describes an expected outcome, or a result
And (or but) — increases text fluidity

By making use of these simple keywords, customers, analysts, testers and software programmers are empowered to exchange ideas with terminology recognisable by all.

Executable requirements & automated testing

Even better, Gherkin requirements are also executable. This is done by mapping each and every keyword to its intended (and clearly stated) functionality. So to keep with the example above, anything already implemented could automatically be displayed in green:

When the Current Account Holder requests £50
Then the cash machine should dispense £50
And the account balance should be £150
And the debit card should be returned

By extension, Gherkin enables developers to translate requirements into testable code. So in practice, you can use specific phrases to check in on your software solutions! If your current code isn’t working properly or a new change has accidentally caused a software error (or two or three), you can easily pinpoint problems before proceeding to repair them in a breeze.

Conclusion

Thanks to the Gherkin syntax, far from keeping our customers in a pickle, we can bridge the divide between businesses and developers and deliver outstanding products with greater confidence than ever before.

gherkinproductivitytutorialwebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 2k
  • Popular
  • Answers
  • Author

    ES6 - A beginners guide - Template Literals

    • 0 Answers
  • Author

    Understanding Higher Order Functions in JavaScript.

    • 0 Answers
  • Author

    Build a custom video chat app with Daily and Vue.js

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.