Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
mmerrell-sauce Merge pull request #36 from saucelabs-sample-test-frameworks/joshmgra…
…nt-w3c_example

Merging this, before we rework the W3C code to match the recent changes
Latest commit b85b552 Mar 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/test/java/com/yourcompany
.gitignore Added build_tag support. Dec 14, 2015
.sauce.yml
.travis.yml Other branch (#1) Apr 12, 2018
Jenkinsfile adding Jenkinsfile. thank you halkeye. Jan 4, 2017
README.md Going to https://saucelabs.com/beta/dashboard/ creates a 404 (#24) Nov 30, 2017
pom.xml

README.md

Java-TestNg-Selenium

Travis Status

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. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation at https://wiki.saucelabs.com/. This framework is not maintained by Sauce Labs Support.

Environment Setup

  1. Global Dependencies
    $ brew install maven
    
  2. Sauce 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>
    
  3. Project Dependencies
    • Check that Packages are available
    $ cd Java-TestNg-Selenium
    $ mvn test-compile
    
    • You may also want to run the command below to check for outdated dependencies. Please be sure to verify and review updates before editing your pom.xml file. The updated packages may or may not be compatible with your code.
    $ mvn versions:display-dependency-updates
    

Running Tests

Tests in Parallel: $ mvn test

Sauce Labs Dashboard

Advice/Troubleshooting

  1. It may be useful to use a Java IDE such as IntelliJ or Eclipse to help troubleshoot potential issues.
  2. There may be additional latency when using a remote webdriver to run tests on Sauce Labs. Timeouts or Waits may need to be increased.

Resources

Sauce Labs Documentation
SeleniumHQ Documentation
TestNg Documentation
Java Documentation
Stack Overflow:
You can’t perform that action at this time.