Skip to content

RohanImmanuel/bs-rerun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrowserStack ReRun

This library re-runs sessions on BrowserStack by parsing Raw Logs

Install

Create project folder

mkdir rerun
cd rerun

Initialize npm and install bs-rerun

npm init -y
npm i bs-rerun

Set environment variables

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

Using BS RERUN

Create a js file example.js with the contents:

const BSRerun = require('bs-rerun');

// BSRerun.runSession(capabilities, link-for-raw-logs);
BSRerun.runSession({
    "browserName" : "Chrome",
    "browser_version" : "80.0"
  }, "http://link-to-raw-logs");
  
// Above Raw Log URL is for session created on June 1st 2020

(Re)Run the session

node example.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published