Cucumber
Cucumber
com/database-testing-using-selenium-webdriver/
http://learn-automation.com/integration-of-cucumber-with-selenium-webdriver/
https://www.youtube.com/watch?v=Vv7hHrVX_Zg&list=PL6flErFppaj1Ogn82-
OINRkPwoieZ2dEX&index=1
https://sukesh15.gitbooks.io/cucumber-jvm-test-framework-/content/test_framework_-
_driver_abstratction/driver_instance_-_with_hooks.html
http://www.seleniumframework.com/cucumber-jvm-3/data-driven-framework-with-excel/
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
https://mindmajix.com/ruby-cucumber-interview-questions
---------------------------------------------------------
1) What is Cucumber and what are the advantages of Cucumber?
We can run particular scenario from a feature file by giving the scenario line
number
Cucumber dry run is used to compile cucumber feature files and step Definitions. If
there is any compilations errors it will show when we use dry run
Feature
Scenario
Scenario Outline
Given
When
Then
4) Give an example of behaviour driven test in plain text?
Feature: Visit XYZ page in abc.com
Scenario : Visit abc.com
Given: I am on abc.com
When: I click on XYZ page
Then: I should see ABC page
Benefits of cucumber in selenium:
-Cucumber-JVM allows developers, QA, and non-technical or business participants to
write features and scenarios
in a plain text file using Gherkin language with minimal restrictions about grammar
in a typical Given, When, and Then structure.
-The feature file is then supported by a step definition file, which implements
automated steps to execute
the scenarios written in a feature file. Apart from testing APIs with Cucumber-JVM,
we can also test UI level tests by combining Selenium WebDriver.
5) Explain what is Scenario Outline in feature file?
Scenario Outline: Same scenario can be executed for multiple sets of data using
scenario outline. The data is provided by a tabular structure separated by (I
I).
For example to make visitor visit the site �Yahoo� the command we use for given
Given (/^ I am on www.yahoo.com$/) do
Browser.goto �http://www.yahoo.com�
Although Cucumber and Jbehave are meant for the same purpose, acceptance tests are
completely different frameworks
A test harness for cucumber and rspec allows for separating responsibility between
setting up the context and interacting with the browser and cleaning up the step
definition files
Gherkin language is used to express scenario in feature files and ruby files
containing unobtrusive automation for the steps in scenarios
Features/ support file contains supporting ruby code. Files in support load before
those in step_definitions, which can be useful for environment configuration