Thangarajtk / selenium-automation-framework

Framework to automate web applications using selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selenium - Web Automation Framework

Test automation framework for web applications using Selenium 4 and Java

WebDriver-W3C-Protocol-1

πŸš€ Quick Start

  1. Install Java JDK11
  2. Download IntelliJ IDEA
  3. Download Docker Desktop

πŸ“Œ Tech stack

java selenium testng jenkins docker

πŸ“Œ Running tests through testng xml

πŸ‘‰ Create or Select the required testng xml -> Right click and select Run

πŸ“Œ Running tests through Maven

πŸ‘‰ Run test using command mvn test -Dsurefire.suiteXmlFile=<provide the testng xml to execute>

πŸ“Œ Key Features

πŸ‘‰ Supports cross browser testing in local and remote.

πŸ‘‰ Ability to execute tests in Selenium Grid or Selenoid using Docker.

πŸ‘‰ Page object model design.

πŸ‘‰ Supports parallel and sequential execution of tests.

πŸ‘‰ Supports capturing screenshots for passed/failed/skipped steps which is configurable through config.properties

πŸ‘‰ Ability to retry failed tests which is configurable through config.properties

πŸ‘‰ Customised exception handling to provide the exceptions in a meaningful way.

πŸ‘‰ Custom framework annotation to provide author name and category for each test.

πŸ‘‰ Supports utilities to read test data from excel workbook and provides data to each test based on the test name.

πŸ‘‰ Ability to configure and schedule jenkins job to build triggers automatically

πŸš€ Selenoid Quick Start Guide

Click here for Selenoid Quick Start Guide

Docker commands

To Run Elasticsearch

docker run -p 9200:9200 -p 9300:9300 --name elasticsearch -e "discovery.type=single-node"  docker.elastic.co/elasticsearch/elasticsearch:7.11.1

To Run Kibana

docker run -p 5601:5601 --name kibana --link elasticsearch:elasticsearch docker.elastic.co/kibana/kibana:7.11.1

Credits

This framework is built by following Testing Mini Bytes YouTube channel.

About

Framework to automate web applications using selenium

License:MIT License


Languages

Language:Java 100.0%