GithubHelp home page GithubHelp logo

santteegt / jenkins-automate-testing Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 16 KB

Agile testing using Jenkins, BDD, Maven, JUnit & Selenium

License: Apache License 2.0

Java 100.00%
jenkins java junit selenium serenity jbehave maven bdd agile-testing tdd

jenkins-automate-testing's Introduction

Agile testing: TDD and BDD approaches using Jenkins, Maven, JUnit Selenium, JBehave and Serenity

1. Setup Jenking Server

Jenkins Server is contained in a Docker image. To setup an instance, you need to run the following steps:

  • Having Docker installed and running on your host machine, run the following command under the project folder:
$ docker-compose up jenkins
  • During initialization console will present the following: "Jenkins initial setup is required. An admin user has been created and a password generated". Copy that generated hash password, open http://localhost:8000 and enter it in order to finish the setup.

  • Install Maven Plugin from the Manane Jenkins/Manage Plugins section

  • Set enviroment variable DISPLAY=:0 under Manaje Jenkins/Configure System/Global properties section

2. Enabling Display for chromedriver

  • Login in the Jenkins docker container as root
$ docker exec -u 0 -it <CONTAINER_ID> bash

2.1 Installation requirements

Run the following commands (only the first time)

$ (root)$ apt-get update
$ (root)$ apt-get install libgconf-2-4
$ (root)$ apt-get --no-install-recommends install xvfb xorg

2.2 Start the in-memory display server

$ (root)$ Xvfb :0 -ac -screen 0 1024x768x24 &

3. Create a new item and run the test cases

Open the Jenkins Admin, log in, and follow the steps bellow:

  • Enter an item name
  • Select Maven Project and click in the OK button
  • In the source code management section, select Git
  • Under Repository URL, enter this GIT repository URL https://github.com/santteegt/jenkins-automate-testing.git
  • In order to build the project, go to the project page and select either Build now option or Build periodically under the Configure menu option

4. Happy Hacking :)

Feel free to extend this test cases suite if you want to show up more scenarios that help to implement agile testing in a development team

5. License

See Apache License 2.0

jenkins-automate-testing's People

Contributors

santteegt avatar

Stargazers

 avatar  avatar

Watchers

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