Question

In: Computer Science

I need a paragraph on what the Gherkin language is. What is it used for? How...

I need a paragraph on what the Gherkin language is. What is it used for? How do we use it? What are the good and bad things about it?

Solutions

Expert Solution

what the Gherkin language ?

Gherkin language is a domain-specific language that helps you to explain business behavior without the necessity to travel into detail of implementation. The scripts of gherkin acts as documentation and skeleton of your automated tests. Gherkin relies on TreeTop Grammar which exists in 37+ languages. Therefore you'll be able to write your gherkin scripts in 37+ spoken languages.

What is it used for ?

Since gherkin is structured natural-language,it is utilized by business analysts to specify how they require the system to behave for given scenarios. The Gherkin language is straightforward. It uses about 10 keywords (Given, When, Then, And, But, Scenario, Feature, Background, Scenario Outline, Examples) which permit the language to be read and parsed by an automation tool called Cucumber, which is a testing tool and supports behaviour driven development {BDD} framework.

How do we use it?

Example:

Feature : Login functionality of the social networking site Facebook.
Given: I am a facebook user.
When: I enter the username as a username.
And I enter the password as the password
Then I should be redirected to the home page of

The scenario stated above is of a feature called user-login.

In Example words written in bold are keywords of gherkin

  • Each scenario should execute separately
  • Every feature should ready to be executed along
  • Steps information should be shown independently
  • Connect your Scenario's along with your requirements
  • Keep a whole track of what scenarios should be included in an exceedingly requirement document
  • Create modular and straightforward to grasp steps
  • Try to combine-all of your common scenarios

What are the good and bad things about it?

Good Things:

  • Gherkin is straightforward enough for non-programmers to know about.
  • Programmers can use it as a really solid base to begin their tests
  • It makes User Stories easier to digest
  • Gherkin script can be easily understood by business executives and developers
  • Targets the business requirements
  • You mustn't be an expert to know the little Gherkin command set
  • Gherkin links acceptance tests on to automated tests
  • Style of writing tests cases are easier to reuse code in other tests

Bad Things:

  • High level of business engagement and collaborations are required
  • Might not work well all told scenarios
  • Poorly written tests can easily increase test-maintenance cost and time.

Related Solutions

I need to write paragraph why the people Learn a new language
I need to write paragraph why the people Learn a new language
I need convert this java code to C language. There is no string can be used...
I need convert this java code to C language. There is no string can be used in C. Thank you! import java.util.Scanner; public class Nthword { public static void main( String args[] ) { String line; int word; Scanner stdin = new Scanner(System.in); while ( stdin.hasNextLine() ) { line = stdin.nextLine(); word = stdin.nextInt(); stdin.nextLine(); // get rid of the newline after the int System.out.println( "Read line: \"" + line + "\", extracting word [" + word + "]" );...
I would like a paragraph on what exactly is WordPress? What is it used for? What...
I would like a paragraph on what exactly is WordPress? What is it used for? What are some of its functions? How does work in software engineering? I would like a detailed paragraph based on this.
what are the Future prospects for Rebranding? I need three or four paragraph
what are the Future prospects for Rebranding? I need three or four paragraph
I need a paragraph by paragraph outline of the Federalists paper essay #39
I need a paragraph by paragraph outline of the Federalists paper essay #39
I need about a paragraph or two. I use to work as a cashier Organizations that...
I need about a paragraph or two. I use to work as a cashier Organizations that evolve and continually adapt to their environment will be those that know how to create a culture where their people are passionate about what they do. How passionate are you about your work? What do you feel is the major contributor to your attitude? What types of things does your current boss do or a past boss to help or hinder your passion?
I NEED 2 PARAGRAPHS FOR THIS TYPING SO I CAN COPY IT How are budgets used...
I NEED 2 PARAGRAPHS FOR THIS TYPING SO I CAN COPY IT How are budgets used for performance evaluation? Give details to support your answer.
I need a cause and effect essay , free topic and 5 paragraph.
I need a cause and effect essay , free topic and 5 paragraph.
Note: I need a code and other requirement Note: programming language is c++ If you need...
Note: I need a code and other requirement Note: programming language is c++ If you need more information, please clarify what information you want. consider solving the equation sin(x) - e^(-x) = 0 write a computer program to solve the given equation using: 1- bisection method 2- fixed-point method 3- newton's intervals: {0,1},{1,2},{2,3},{3,4},{4,5},{5,6},{6,7},{7,8},{8,9},{9,10} choose accuracy E = 10^(-5) Make sure you document your program Requirement : 1- Mathematical justification 2- algorithem description 3- code (program) with documentation 4-output: roots ,...
I need to respond to this forum post in 200 words - The language barrier was...
I need to respond to this forum post in 200 words - The language barrier was the most obvious problem, but not the most important. The biggest problem was the cultural barrier. There is a tremendous difference between dealing with the Hmong and dealing with anyone else. An infinite difference" (p. 91). Please explain what you think Dr. Murphy meant by this statement.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT