Skip to content

Update BrowserStackSample.js #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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: 8 additions & 14 deletions android/BrowserStackSample.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
let wd = require('wd');
let assert = require('assert');
let asserters = wd.asserters;

desiredCaps = {
// Set your BrowserStack access credentials
'browserstack.user' : 'YOUR_USERNAME',
'browserstack.key' : 'YOUR_ACCESS_KEY',

// Set URL of the application under test
'app' : 'bs://<app-id>',

'browserstack.user' : 'bayurizkhy_snQWko',
'browserstack.key' : 'WZ4xpkZvnNREsUkUH8Wt',
// Set app_url of the application under test
'app' : 'bs://df7671264546324fac5df2c770de1cfb6a3c1418',
// Specify device and os_version for testing
'device' : 'Google Pixel 3',
'os_version' : '9.0',

'device' : 'Samsung Galaxy A11',
'os_version' : '10.0',
// Set other BrowserStack capabilities
'project' : 'First NodeJS project',
'build' : 'Node Android',
'build' : 'browserstack-build-1',
'name': 'first_test'
};

// Initialize the remote Webdriver using BrowserStack remote URL
// and desired capabilities defined above
driver = wd.promiseRemote("http://hub-cloud.browserstack.com/wd/hub");

// Test case for the BrowserStack sample Android app.
// If you have uploaded your app, update the test case here.
driver.init(desiredCaps)
Expand Down Expand Up @@ -53,4 +47,4 @@ driver.init(desiredCaps)
// Invoke driver.quit() after the test is done to indicate that the test is completed.
return driver.quit();
})
.done();
.done();
12 changes: 6 additions & 6 deletions android/BrowserStackSampleLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ let Q = wd.Q;
let browserstack = require('browserstack-local');

// Set your BrowserStack access credentials
let userName = 'YOUR_USERNAME'
let accessKey = "YOUR_ACCESS_KEY"
let userName = 'tes_V5MvsqYpr5c'
let accessKey = "YpovK4rcJa8LndL4NUXE"

desiredCaps = {
'browserstack.user' : userName,
'browserstack.key' : accessKey,
'browserstack.user' : bayurizkhy_snQWko,
'browserstack.key' : WZ4xpkZvnNREsUkUH8Wt,

// Set URL of the application under test
'app' : 'bs://<app-id>',
'app' : 'bs://df7671264546324fac5df2c770de1cfb6a3c1418',

// Specify device and os_version for testing
'device' : 'Google Pixel 3',
'device' : 'Samsung Galaxy A10',
'os_version' : '9.0',

//Set browserstack.local capability as true
Expand Down
Loading