GithubHelp home page GithubHelp logo

testoftiramisu / automationtraining Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 96 KB

Java based framework for E2E UI testing of http://demos.telerik.com/kendo-ui/websushi/ website for educational purposes.

License: Apache License 2.0

Java 100.00%
java e2e-tests ui-automation sauce-labs jbehave gradle travis-ci

automationtraining's Introduction

POC of Java based framework for E2E UI testing of http://demos.telerik.com/kendo-ui/websushi/ website.

This project is meant for educational purposes only.

Travis Status Build Status

Build Status

Dependencies

selenium = "2.49.0"
assertj = "3.6.1"
jbehave = "4.0.5"
junit = "4.11"
jehaveWebSelenium = "3.5.5"
sauceRest = "1.0.35"

System requirements

  • Java 8
  • Gradle
  • Chrome browser

Environment Setup

  1. Make sure Java 8 SDK is installed and configured (path to Java bin folder is added to PATH environment variable on Windows)

  2. Download dependencies:

    For Mac users:

    • Install Gradle with Homebrew (for MacOS)
    $ brew install gradle
    • Install ChromeDriver with Homebrew:
     $ brew install chromedriver
  3. Store Sauce Labs credentials:

    • In the terminal, export your Sauce Labs credentials as environmental variables:
    $ export SAUCE_USERNAME=<your Sauce Labs username>
    $ export SAUCE_ACCESS_KEY=<your Sauce Labs access key>
    • or add two new Environment Variables if you using Windows (restart required).
  4. Local ChromeDriver configuration:

    For running tests locally on Windows based environment:

    • Under 'utils' folder create a new directory, with name that match your ChromeDriver version (e.g. "2.27")
    • Copy ChromeDriver executable to created folder.
    • Update ChromeDriverVersion in test.properties file:
    ChromeDriverVersion = 2.27
    

    On Mac:

    • Feel free to use ChromeDriver installed by Homebrew. However, if you need specific ChromeDriver version, remove Chromedriver installed by Homebrew and follow set-up instruction for Windows.
    $ brew remove chromedriver

Running

$ gradle clean e2e

Use --info flag for observing the test output in console:

$ gradle clean e2e --info

Debug

Use flag --debug-jvm for running gradle task, then attach your IDE to process at address 5005:

$ gradle clean e2e --debug-jvm 

Resources

This code is provided on an "AS-IS” basis without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. Your tests and testing environments may require you to modify this framework. Issues regarding this framework should be submitted through GitHub.

automationtraining's People

Contributors

anatoliihanziuk avatar testoftiramisu avatar

Stargazers

 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.