GithubHelp home page GithubHelp logo

isabella232 / sauce-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sauce-archives/sauce-gradle-plugin

0.0 0.0 0.0 12 KB

A plugin for Gradle that provides helper logic to integrate with Sauce

Java 100.00%

sauce-gradle-plugin's Introduction

DEPRECATED

This project includes the source files for the Sauce Gradle helper library.

To include the helper as part of your build, add the following to your build.gradle file:

import com.saucelabs.gradle.SauceListener

buildscript {
    repositories {
        maven {
            url "https://repository-saucelabs.forge.cloudbees.com/release"
        }
    }
    dependencies {
        classpath group: 'com.saucelabs', name: 'saucerest', version: '1.0.2'
        classpath group: 'com.saucelabs', name: 'sauce_java_common', version: '1.0.14'
        classpath group: 'com.saucelabs.gradle', name: 'sauce-gradle-plugin', version: '0.0.1'
    }
}


gradle.addListener(new SauceListener("YOUR_SAUCE_USERNAME", "YOUR_SAUCE_ACCESS_KEY"))

You will also need to output the Selenium session id for each test, so that the SauceListener can associate the Sauce Job with the pass/fail status. To do this, include the following output:

SauceOnDemandSessionID=SELENIUM_SESSION_ID

The SauceListener will be invoked when tests have finished executing, and will parse the test XML output to find the session ids to associate with the pass/fail status.

A simple example demonstrating how to use the helper is located in the example directory.

sauce-gradle-plugin's People

Contributors

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