Skip to content

BrowserStackCE/browserstack-demo-testng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrowserStack Demo TestNG BrowserStack Java Selenium

Test execution using TestNG on BrowserStack.

Using Maven

Setup

Running your tests

Automate

  • To start a locally hosted website.
    mvn -P start-server compile exec:java
    
    Website will open on localhost:8000.

Desktop browsers

  • Run a single test.
    mvn -P desktop-single test
    
  • Run parallel tests.
    mvn -P desktop-parallel test
    
  • Run a failed test.
    mvn -P desktop-fail test
    
  • Run a local test.
    mvn -P desktop-local test
    
  • Run parallel local tests.
    mvn -P desktop-local-parallel test
    

Mobile browsers

  • Run a single test.
    mvn -P mobile-single test
    
  • Run parallel tests.
    mvn -P mobile-parallel test
    
  • Run a failed test.
    mvn -P mobile-fail test
    
  • Run a local test.
    mvn -P mobile-local test
    
  • Run parallel local tests.
    mvn -P mobile-local-parallel test
    

App-Automate

Android devices

  • Run a single test.
    mvn -P android-single test
    
  • Run parallel tests.
    mvn -P android-parallel test
    
  • Run a failed test.
    mvn -P android-fail test
    
  • Run a local test.
    mvn -P android-local test
    
  • Run parallel local tests.
    mvn -P android-local-parallel test
    

iOS devices

  • Run a single test.
    mvn -P ios-single test
    
  • Run parallel tests.
    mvn -P ios-parallel test
    
  • Run a failed test.
    mvn -P ios-fail test
    
  • Run a local test.
    mvn -P ios-local test
    
  • Run parallel local tests.
    mvn -P ios-local-parallel test
    

Espresso tests

  • Run an Espresso test.
    mvn -P espresso test
    

XCUI tests

  • Run a XCUI test.
    mvn -P xcuitest test
    

Using Gradle

Setup

Running your tests

Automate

  • To start a locally hosted website.
    ./gradlew run
    
    Website will open on localhost:8000.

Desktop browsers

  • Run a single test
    ./gradlew clean desktop-single
    
  • Run parallel tests
    ./gradlew clean desktop-parallel
    
  • Run a failed test
    ./gradlew clean desktop-fail
    
  • Run a local test
    ./gradlew clean desktop-local
    
  • Run parallel local tests
    ./gradlew clean desktop-local-parallel
    

Mobile browsers

  • Run a single test
    ./gradlew clean mobile-single
    
  • Run parallel tests
    ./gradlew clean mobile-parallel
    
  • Run a failed test
    ./gradlew clean mobile-fail
    
  • Run a local test
    ./gradlew clean mobile-local
    
  • Run parallel local tests
    ./gradlew clean mobile-local-parallel
    

App-Automate

Android devices

  • Run a single test
    ./gradlew clean android-single
    
  • Run parallel tests
    ./gradlew clean android-parallel
    
  • Run a failed test
    ./gradlew clean android-fail
    
  • Run a local test
    ./gradlew clean android-local
    
  • Run parallel local tests
    ./gradlew clean android-local-parallel
    

iOS devices

  • Run a single test
    ./gradlew clean ios-single
    
  • Run parallel tests
    ./gradlew clean ios-parallel
    
  • Run a failed test
    ./gradlew clean ios-fail
    
  • Run a local test
    ./gradlew clean ios-local
    
  • Run parallel local tests
    ./gradlew clean ios-local-parallel
    

Espresso tests

  • Run an Espresso test
    ./gradlew clean espresso
    

XCUI tests

  • Run a XCUI test
    ./gradlew clean xcuitest
    

Notes

About

BrowserStack demo across products using Java TestNG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •