Skip to content

sauceaaron/erroredtests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erroredtests

To build a jar file, type mvn clean package

To execute the jar file, type cd target; java -jar errored-tests-1.0.jar

To just execute from source, type mvn exec:java -Dexec.mainClass="com.saucelabs.api.GetErroredTests"

You can pass the following options as properties:

  • USERNAME (your Sauce Labs username) default will check for environment variable SAUCE_USERNAME
  • ACCESS_KEY (your Sauce Labs access key) default will check for environment variable SAUCE_ACCESS_KEY
  • TIME_RANGE (-1d, -1h, -1m, -1s; maximum -29d) default is "1d"
  • SCOPE (me, organization, single) default is "me"
  • STATUS (errored, complete, passed, failed) default is "errored"
  • DISPLAY_TESTS (false, true) default is "false"
  • ERROR_MESSAGES default is "Test did not see a new command,Internal Server Error,Infrastructure Error"

By default, It checks for the following error strings:

  • "Test did not see a new command"
  • "Internal Server Error"
  • "Infrastructure Error"

Probably what you want to do is something like this:

mvn clean package
cd target
java -DTIME_RANGE=29d -DSCOPE=organization -DSTATUS=errored -DUSERNAME=myusername -DACCESS_KEY=myaccesskey -jar errored-tests-1.0-jar-with-dependencies.jar
java -DERROR_MESSAGES="Infrastructure Error,Internal Server Error" -DSHOW_TESTS=true -DTIME_RANGE=1h -jar errored-tests-1.0-jar-with-dependencies.jar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages