Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@ var bs_local_args = { 'key': '<browserstack-accesskey>' };
// starts the Local instance with the required arguments
bs_local.start(bs_local_args, function() {
console.log("Started BrowserStackLocal");
});

// check if BrowserStack local instance is running
console.log(bs_local.isRunning());
// check if running
if(bs_local.isRunning()){

// run your test here
yourTest().then(function(){
bs_local.stop(function(){
console.log("Stopped BrowserStackLocal");
});

}
else{

// Error
console.log("BrowserStack Local didn't run properly");
}


// stop the Local instance
bs_local.stop(function() {
console.log("Stopped BrowserStackLocal");
});

```
Expand Down