elgeorsk / elgeorsk-test-cucumberFramework

Project : Framework to Test the Swiggy Application in Different Environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Instructions

Project : Framework to Test the Swiggy Application in Different Environment

A maven project using BDD with Cucumber Framework to perform the Regression Testing for Swiggy application and to generate various reports.

The following requirements should be met:

  • Create a Maven Project for Swiggy application.
  • Create a TestNG class.
  • Create an xml file to enable test cases.
  • Create test classes for writing the test methods.
  • Create a page object design pattern class to store the web elements of web pages.
  • Create an excel file to store the test data.
  • Create a class to read/write data from excel file.
  • Create Gherkin keyword (Scenario, Given, When, Then and And).
  • Create cucumber hooks (Two types of hooks: Before and After).
  • Create cucumber integration with extent report.
  • Run the project in different environments by using selenium grid.
  • Create and build Jenkins job for the project.
  • Run the project in Jenkins and Extent report will be generated.
  • Push the code to your GitHub repositories.

Introduction

This project is part of Simplilearn - Automation Testing Masters Program and it has to deal with functional testing, Test Driven Development (TDD) and DevOps integration.

Setting up the project

Using vanilla starter kit framework and configure accordingly on the project needs.

Dependencies

Getting Started

How to execute the tests

mvn clean test

Change testing choices

In order to change testing configuration, should:

Edit file main > resources > choices.conf

APP_ENV: valid choices are: "app.env.develop", "app.env.staging"

HOST: valid choices are: "host.localhost", "host.docker.selenium.grid"

BROWSER: valid choices are: "chrome"

HEADLESS: browser run mode. Valid choices are: "true", "false"

Execute tests locally

Firstly edit file main > resources > choices.conf and set:

HOST="host.localhost"

and secondly run the following command:

mvn clean test

About Docker container and Docker selenium grid

First should Docker software to be installed.

Then edit file main > resources > choices.conf and set:

HOST="host.docker.selenium.grid"

Go to the project folder and run the following command:

docker-compose -f docker-compose-v3.yml up

and then run the following command:

mvn clean test

About Docker Jenkins

From the previous sector Docker should be available and the following command to be executed:

docker-compose -f docker-compose-v3.yml up

After follow the nice tutorial for Jenkins Maven configuration.

About

Project : Framework to Test the Swiggy Application in Different Environment


Languages

Language:Java 99.0%Language:Gherkin 1.0%