Coder Social home page Coder Social logo

leaptest-plugin's Introduction

leaptest-plugin

This is Leaptest plugin for Jenkins (version 1.635 or later)

More Details

Leaptest is a mighty automation testing system and now it can be used for running [smoke, functional, acceptance] tests, generating reports and a lot more in Jenkins. You can easily configure integration directly in Jenkins enjoying UI friendly configuration page with easy connection and test suites selection.

Features:

  • Setup and test Leaptest connection in few clicks
  • Run automated tests in your Jenkins build tasks
  • Automatically receive test results
  • Build status based tests results
  • Generate a xml report file in JUnit format
  • Write tests trace to build output log
  • Smart UI

Installing

  • Use maven
  • Command: mvn package
  • Or simply install hpi-file from the "target" folder: Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin -> Choose that hpi-file -> Press Upload

Instruction

  1. Add Build "Leaptest for Jenkins" to your job.
  2. Enter your Leaptest server address something like "http://win10-agent20:9000" or "http://localhost:9000".
  3. Enter JUnit report file name. This file will be created at your job's working directory. If there is an xml file with the same name, it will be overwritten. By default it is "report.xml".
  4. Enter time delay in seconds. When schedule is run, plugin will wait this time before trying to get schedule state. If schedule is still running, plugin will wait this time again. By default this value is 1 second.
  5. Select how plugin should set "Done" status value: to Success or Failed.
  6. Press button "Select Schedules" to get a list of all available schedules grouped by projects. Select schedules you want to run.
  7. If your workspace folder path is not default (JENKINS_HOME\workspace),enter your full path here like {Your path to workspace folder}\workspace. Otherwise DO NOT enter anything!
  8. Add Post-Build "Publish JUnit test result report" to your job. Enter JUnit report file name. It MUST be the same you've entered before!
  9. Run your job and get results. Enjoy!

Screenshots

ScreenShot ScreenShot ScreenShot ScreenShot ScreenShot ScreenShot ScreenShot ScreenShot ScreenShot

Pipeline

This is an example script for pipeline:

node
{
   stage "Leaptest-Jenkins"

   step([$class: 'LeaptestJenkinsBridgeBuilder',
   version:"1.1.0",
   address:"http://win10-agent2:9000",
   delay:"5",
   doneStatusAs:"Success", //"Failed"
   report:"report.xml",
   schIds:"",//"9c3fa950-d1e8-4e12-bf17-ebc945defad5\ndb5c3a25-8eec-434c-8526-c1b2ef9c56f2",   // splitters: "\n" "," ", " 
   schNames:"Problem schedule, Open Applications"
   ]);
  step([$class: 'JUnitResultArchiver',
  testResults: 'report.xml']);
  
   if(currentBuild.result!="FAILURE")
   {
   echo "RESULT: ${currentBuild.result}  SUCCESS INFO"
   // do something else  
   }
   else
   {   stage("FAIL Stage")
       echo "RESULT: ${currentBuild.result}  FAIL INFO"
        // do something else
   }  
}

leaptest-plugin's People

Contributors

romanchetto avatar helmut-hoffer-von-ankershoffen avatar

Watchers

James Cloos avatar  avatar Tammo Behrends 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.