Wednesday, August 31, 2016

Cucumber Automation - Chapter 2

Cucumber Options

As mentioned in earlier chapter, @CucumberOptions are like property file or settings. If we are using IDE like eclipse to execute our project then @CucumberOptions is very helpful and important. 

Runner Class

----
package cucumber;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

public class RunnerClass {
   
    @RunWith(Cucumber.class)
    @CucumberOptions (features = "src/featureFiles/")
    public class RunFeatures {
    }   
}
----

In the above example we have only used option 'features' but what are the other options available in cucumber?


Tuesday, August 30, 2016

Cucumber Automation - Chapter 1


  NOTE: Aim of this page is to get familiar with building a framework from scratch

 

About

Cucumber is an automated tool for running automated tests, mostly used in Behaviour-Driven Development (BDD). Cucumber brings test documentation and specifications together. Hence it is always considered as an up to date document for reference of application under development.

NOTE: Cucumber supports different software platforms.

Cucumber Environment Setup

In this section I will guide you with basic details required for setting up eclipse with cucumber, by which one should be able to start practicing from scratch.

Downloads

1. Download latest version of eclipse or the version you are familiar with from here i.e. https://eclipse.org/

2. Download required JAR's. Below are links and name of the JAR files which we will download and save in a folder .

http://repo1.maven.org/maven2/info/cukes/