Skip to content

Frond end testing framework using Cucumber and Selenium

Notifications You must be signed in to change notification settings

anupamr48/cucumber-test-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated test example in Java with Cucumber and Selenium WebDriver

This project is an example of UI automated functional test for a borrowing calculator using Selenium and Cucumber.

Test scenarios are described in the feature file located here .cucumber-test-sample/features/Calculator.feature.

Installation

You need to have Java 8 JDK installed along with maven.

This test runs in Chrome browser.

Change location of 'chromedriver' as per your file system in below file:

cucumber-test-sample/src/test/java/stepDefinition/TestScenario.java

This line : System.setProperty("webdriver.chrome.driver", "/Users/anupam/Desktop/Automation Framework/chromedriver");

To run the tests locally with Firefox, install GeckoDriver from here and add its location to your system PATH.

To install all dependencies, run

$ mvn clean install

Running tests

$ mvn test

After tests are run, reports are generated at : /target/cucumber-reports/index.html

About

Frond end testing framework using Cucumber and Selenium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published