Coder Social home page Coder Social logo

seleniumtesting's Introduction

SELENIUM TESTING

Table of Contents

Selenium Web Driver and FF Browser Compatibilities

Selenium Web Driver Firefox Gecko Driver
v.2.52 v.45.0 x
v.3.0.1 v.45.0 v.0.14.0

Selenium Web Driver and Chrome Browser Compatibilities

Selenium Web Driver Chrome Browser Chrome Driver
v.2.52 v.56.0.2924.87 v.2.27

Selenium Web Driver and IE Browser Compatibilities

x32 version faces less issues than x64

Selenium Web Driver IE Browser IE Driver
v.2.52 v.11.0.9600.18537 v.3.0

Setting up the driver 3.0.1

We must declare "System.setProperty("key", "def")" before declaring FirefoxDriver. If not, it won´t work.

1| WebDriver driver;
2| System.setProperty("webdriver.gecko.driver", "pathtogeckodriver\\geckodriver.exe");
3| driver = new FirefoxDriver();

Firebug and Firepath Installation

Firefox Firebug Firepath
v.45.0 v.2.0.18 v.0.9.7.1.1-signed.1-signed

Setting up Log4j2

All we need is the following two jars.

  • log4j-api-2.x.jar
  • log4j-core-2.x.jar

They can be downloaded from: https://logging.apache.org/log4j/2.0/download.html

Log4j2.xml file is created in a folder and then that folder should be added to the build path of the project.

Setting up TestNG

Advanced Reporting

Jars for Advanced Reporting can be downloaded at: http://extentreports.com/community/

Required Jars are the followings:

  • freemarker-2.3.23.jar
  • jsoup-1.8.3.jar
  • sqlite-jdbc-3.8.11.1.jar
  • extentreports-2.41.2.jar

Data Driven Testing

Jars For Data Driven Testing can be downloaded at: http://poi.apache.org/download.html

Required Jars are the followings:

  • poi-3.16-beta2.jar
  • poi-examples-3.16-beta2.jar
  • poi-excelant-3.16-beta2.jar
  • poi-ooxml-3.16-beta2.jar
  • poi-ooxml-schemas-3.16-beta2.jar
  • poi-scratchpad-3.16-beta2.jar
  • ooxml-lib / xmlbeans-2.6.0.jar
  • commons-codec-1.10.jar
  • commons-logging-1.2.jar
  • junit-4.12.jar

Maven Installation and Setup

Donwload latest Binary zip archive from: http://maven.apache.org/download.cgi

Extract the zip (usually in: C:\apache\apache-maven)

Set environment variables:

$ M2_HOME=C:\Program Files\Apache\apache-maven-3.3.3
$ M2=%M2_HOME%\bin
$ MAVEN_OPTS=-Xms256m -Xmx512m

Append the String ";%M2%" to the system variable.

Go to console and type:

$ mvn --version

It should return informative data.

Cucumber Setup

In Eclipse go to Help > Install New Software > Add:

Cucumber Plugin - http://cucumber.github.com/cucumber-eclipse/update-site

Code Coverage

We will use EclEmma Plugin for Eclipse.

In Eclipse go to Help > Install New Software > Add:

EclEmma - http://update.eclemma.org/

More info at: http://www.eclemma.org/

seleniumtesting's People

Contributors

joudaon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.