Skip to content

estefafdez/selenium-cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium-Cucumber

Build Status Selenium Webdriver integration with Cucumber.

_______________________________________

1. Latest changes:

  • Selenium Webdriver Version: 3.141.59 (latest version of Selenium!).
  • Gekodriver, ChromeDriver and InternetExplorerDriver updated on this project.
  • Updated several libraries on the POM.
  • Added TravisCI.

2. Download the project.

In order to start using the project you need to create your own Fork on Github and then clone the project:

git clone https://github.com/XXXX/selenium-cucumber

3. Choose your OS, Browser and Log Level on the POM.

On the pom.xml file you can choose between:

  • Several OS: Windows, Mac, Linux.
  • Several Browsers: Chrome, Firefox, IE.
  • Several log level configuration: All, Debug, Info, Warn, Error, Fatal, Off.

You just need to change the following lines:

<!-- Test Browser -->
<!-- This Parameters select where run the test 
[Remote ,Firefox ,Chrome ,Internet Explorer] -->
<browser>YOUR_BROWSER</browser>

<!-- Test Operative System [linux, mac, windows]-->
<os>YOUR_OS</os>

<!-- Log Mode Section -->
<!-- Parameter for logger level use in this order to include the right information 
[ALL > DEBUG > INFO > WARN > ERROR > FATAL > OFF]-->
<log.level>YOUR_LOG_MODE</log.level>

4. Step Definition By Action.

On this project you can find the following set of predefined steps ordered by action already done for you. The types of actions are:

  • Assertion Steps
  • Click Steps
  • Configuration Steps
  • Input Steps
  • JavaScript Handling Steps
  • Keyboard Steps
  • Navigation Steps
  • Progress Steps
  • Screenshot Steps

If you want more information or more predefined steps to add into your project you can visit:

https://github.com/selenium-cucumber/selenium-cucumber-java/blob/master/doc/canned_steps.md

5. SonarQube included.

In order to maintain the quality of your code and your project, we include SonarQube on this repository. You can install in two minutes using the SonarQube tutorial available here: https://docs.sonarqube.org/display/SONAR/Get+Started+in+Two+Minutes

Once the SonarQube platform has been installed, you're ready to install and analyse your project. First, run your local server: http://localhost:9000/about

And then, run the project in order to check the code quality:

mvn clean verify sonar:sonar

6. Run SonarQube on a Docker easily.

In case you don't want to install SonarQube on your local machine, you can run sonar remotely using Docker.

You have two choices to create your own Docker:

  1. Create a new instance on: http://labs.play-with-docker.com/. It's free, easy to use and you don't need to install anything on your computer.

  2. Download Docker from its official Website: https://www.docker.com/ Download, install Docker and run everything you need.

Once you have Docker, you need to run the followings lines:

docker pull sonarqube
docker run -d --name sonarqube -p 9000:9000 sonarqube

And then, you are ready to run SonarQube:

mvn clean install sonar:sonar