Skip to content

wizeline/fe-selenium-webdriver-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fe-selenium-webdriver-sample project

Prerequisites

  1. Maven Install manual
  2. Java 8

How to use the project

Firstly, you have to clone the repository to get the project structure.

The project uses TestNG and it is configured to exetcute the tests using the maven test command. You will be able to execute it going to project directory (use promp cmd) and executing there the maven command. If you want to execute a concreted test suite you can do it executing mvn clean test -Dtest.suite=[testSuiteName].xml

Configuring pom.xml parameters

pom.xml is located in the root path of the project. There, there are defined versions of plugins and technologies, parameters for test executions and dependencies.

Parameters for test executions

Important parameters to execute tests:

  1. browser: Browser used to launch tests. Allowed values: Firefox, Chrome
  2. local.OS: OS used to launch tests. Allowed values: Windows , MAcOS
  3. webdriver.chrome.driver: Path in which the Chrome driver is.
  4. webdriver.firefox.driver: Path in which the Firefox driver is.

src/main/resources folder:

  1. files/software: In this folder we store the browser drivers (geckodriver versions , chromedriver versions)
  2. suites: Here you can group sets of tests to run it together.
  3. log4j.properties: This file sets the logging properties, in this case the output to console.
  4. test.properties: In this file we store some common tests properties.

src/main/java folder:

  1. pageObject: Here you have every PageObjects. All PageObjects extends BasePageObject, it has important functions.
  2. testSets: Here you can find the tests classes. @before and @after methods are defined here. All tests classes extends DefaultTestSet.
  3. utils:
  • Inizialization - Contains the main selenium webdriver configuration.
  • DataUtils - Class that contains useful methods to provide to us mock data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages