GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - browserstack/nightwatch-browserstack: Selenium examples for Nightwatch and BrowserStack Automate

BranchesTags
Open more actions menu

Latest commit

 

History

125 Commits
125 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
environments.js
environments.js
 
 
nightwatch.conf.js
nightwatch.conf.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

nightwatch-browserstack

Nightwatch Integration with BrowserStack.

BrowserStack Logo

Setup

  • Clone the repo

  • Install dependencies npm install

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

    export BROWSERSTACK_USERNAME=<browserstack-username> &&
    export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
    

Running your tests

  • To run tests, run npm run sample-test
  • To run local tests, run npm run sample-local-test

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
  • To test on a different set of browsers, check out our capabilities generator

Connecting to BrowserStack via a proxy server

You can specify proxy settings in Nightwatch by adding the proxy key in your *.conf.js

  test_settings: {
    default: {
      desiredCapabilities: {
        // Your capabilities
      },
      proxy: {
        "host": "",     // "127.0.0.1"
        "port": "",     // "8081"
        "protocol": ""  // "http"
      }
    }
  }

Additional Resources

  • Documentation for writing automate test scripts in Node
  • Customizing your tests on BrowserStack
  • Browsers & mobile devices for selenium testing on BrowserStack
  • Using REST API to access information about your tests via the command-line interface
  • Example to update the Browserstack session status based on the test results

About

Selenium examples for Nightwatch and BrowserStack Automate

www.browserstack.com

Resources

Readme
Activity
Custom properties

Stars

79 stars

Watchers

19 watching

Forks

63 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.