Giter Site home page Giter Site logo

selenium-cucumber's Introduction

Selenium-Cucumber

Selenium Webdriver 3.5.3 integration with Cucumber.

_______________________________________

1. Requirements:

  • Firefox Version: 55.0.3 -> You need to update into this version!
  • Gekodriver Version: 0.19.0 (included on this project!)
  • Selenium Webdriver Version: 3.5.3 (included on this project!)

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

selenium-cucumber's People

Contributors

estefafdez avatar

Watchers

 avatar  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.