GithubHelp home page GithubHelp logo

kamal-kaur04 / java-playwright-browserstack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from browserstack/java-playwright-browserstack

0.0 0.0 0.0 59 KB

Creating a sample repo for different Playwright languages and runners

Java 100.00%

java-playwright-browserstack's Introduction

java-playwright-browserstack

Setup

  • Clone the repo
  • Install dependencies mvn install
  • Update credentials in the /src/test/resources/*.conf.json file with your BrowserStack Username and Access Key.
  • For parallel testing, control the concurrency by setting the value for parallel.count. Junit 5 uses the following properties for parallelism:
    junit.jupiter.execution.parallel.enabled = true
    junit.jupiter.execution.parallel.mode.default = concurrent
    junit.jupiter.execution.parallel.config.strategy=fixed
    junit.jupiter.execution.parallel.config.fixed.parallelism=${parallel.count}
    

Running your tests

  • To run a sample tests, run mvn test -P sample-test
  • To run sample tests with local, run mvn test -P sample-local-test
  • Update <parallel.count> in pom.xml to set the number of parallel threads

Understand how many parallel sessions you need by using our Parallel Test Calculator

Notes

  • You can view your test results on the BrowserStack Automate dashboard

  • You can export the environment variables for the Username and Access Key of your BrowserStack account.

    • For Unix-like or Mac machines:
    export BROWSERSTACK_USERNAME=<browserstack-username> &&
    export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
    
    • For Windows:
    set BROWSERSTACK_USERNAME=<browserstack-username>
    set BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
    

java-playwright-browserstack's People

Contributors

rohanimmanuel avatar bstack-security-github avatar agrawalsaurabhs avatar kamal-kaur04 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.