Skip to content

Commit 38503e9

Browse files
committed
Added sessionName and timeout fix
1 parent 5545e64 commit 38503e9

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* @browserstack/app-automate-public-repos
2+
* @browserstack/automate-public-repos

android/browserstack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ accessKey: BROWSERSTACK_ACCESS_KEY
1212
# The following capabilities are used to set up reporting on BrowserStack:
1313
# Set 'projectName' to the name of your project. Example, Marketing Website
1414
projectName: BrowserStack Samples
15+
# Set `name` to set the session name
16+
name: BStack android test
1517
# Set `buildName` as the name of the job / testsuite being run
1618
buildName: browserstack build
1719
# `buildIdentifier` is a unique id to differentiate every execution that gets appended to

android/test/sample_local_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ async function bstackLocalTest () {
1515
By.xpath(
1616
'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout[2]/android.view.ViewGroup/android.widget.Button'
1717
)
18-
), 3000
18+
), 30000
1919
).click();
2020

2121
var textElement = await driver.wait(
2222
until.elementLocated(
2323
By.xpath(
2424
'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.view.ViewGroup/android.widget.FrameLayout[2]/android.view.ViewGroup/android.widget.TextView'
25-
), 3000
25+
), 30000
2626
)
2727
).getText();
2828

android/test/sample_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ async function bstackSampleTest () {
1515
By.xpath(
1616
'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.view.ViewGroup/android.support.v4.view.ViewPager/android.view.ViewGroup/android.widget.FrameLayout/android.support.v7.widget.RecyclerView/android.widget.FrameLayout[1]/android.widget.LinearLayout/android.widget.TextView'
1717
)
18-
), 3000
18+
), 30000
1919
).click();
2020

2121
var insertTextSelector = await driver.wait(
2222
until.elementLocated(
2323
By.xpath(
2424
'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.view.ViewGroup/android.widget.LinearLayout/android.support.v7.widget.LinearLayoutCompat/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.AutoCompleteTextView'
25-
), 3000
25+
), 30000
2626
)
2727
);
2828
await insertTextSelector.sendKeys('BrowserStack');

ios/browserstack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ accessKey: BROWSERSTACK_ACCESS_KEY
1212
# The following capabilities are used to set up reporting on BrowserStack:
1313
# Set 'projectName' to the name of your project. Example, Marketing Website
1414
projectName: BrowserStack Samples
15+
# Set `name` to set the session name
16+
name: BStack android test
1517
# Set `buildName` as the name of the job / testsuite being run
1618
buildName: browserstack build
1719
# `buildIdentifier` is a unique id to differentiate every execution that gets appended to

ios/test/sample_local_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function bstackLocalTest () {
1515
By.xpath(
1616
'/XCUIElementTypeApplication/XCUIElementTypeWindow/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeButton/XCUIElementTypeStaticText'
1717
)
18-
), 3000
18+
), 30000
1919
).click();
2020

2121
var textElement = await driver.findElement(

ios/test/sample_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ async function bstackSampleTest () {
1515
By.xpath(
1616
'/XCUIElementTypeApplication/XCUIElementTypeWindow/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeButton[1]'
1717
)
18-
), 3000
18+
), 30000
1919
).click();
2020

2121
var textInput = await driver.wait(
2222
until.elementLocated(
2323
By.xpath(
2424
'/XCUIElementTypeApplication/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeTextField'
25-
), 3000
25+
), 30000
2626
)
2727
);
2828
await textInput.sendKeys('[email protected]\n');

0 commit comments

Comments
 (0)