Skip to content

Commit 6379852

Browse files
agarneha1331francisf
authored andcommitted
corrections
1 parent f008a0c commit 6379852

5 files changed

+32
-48
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
7474
7575
Open `Android` or `iOS` folder :
7676
77-
- If you have uploaded your own app, update the app id or directly upload the path to your app in the `browserstack.yml`
77+
- If you have uploaded your app then add the app id to the `browserstack.yml` config file, or you can directly specify the path to your app in the `browserstack.yml` file.
7878
7979
- Run `browserstack-sdk python browserstack_sample.py`
8080

android/browserstack_sample.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,20 @@
1010
"platformName" : "android",
1111
"platformVersion" : "9.0",
1212
"deviceName" : "Google Pixel 3",
13+
"project" : "BrowserStack Samples",
14+
"build" : "browserstack build",
15+
"name" : "BStack sample python-appium",
16+
17+
# Set your access credentials
18+
"browserstack.user" : "YOUR_USERNAME",
19+
"browserstack.key" : "YOUR_ACCESS_KEY",
1320

1421
# Set URL of the application under test
1522
"app" : "bs://<app-id>",
16-
17-
# Set other BrowserStack capabilities
18-
'bstack:options' : {
19-
"projectName" : "BrowserStack Samples",
20-
"buildName" : "browserstack build",
21-
"sessionName" : "BStack sample python-appium",
22-
23-
# Set your access credentials
24-
"userName" : "YOUR_USERNAME",
25-
"accessKey" : "YOUR_ACCESS_KEY"
26-
}
2723
})
2824

2925
# Initialize the remote Webdriver using BrowserStack remote URL
30-
driver = webdriver.Remote("http://localhost:4444/wd/hub", options=options)
26+
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", options=options)
3127

3228
# Test case for the BrowserStack sample Android app.
3329
# If you have uploaded your app, update the test case here.

android/browserstack_sample_local.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,18 @@
1616
"deviceName": "Google Pixel 3",
1717
"platformName": "android",
1818
"platformVersion": "9.0",
19+
"project" : "BrowserStack Samples",
20+
"build" : "browserstack build",
21+
"name" : "BStack local python-appium",
22+
"browserstack.local" : "true",
1923

20-
# Set other BrowserStack capabilities
21-
"bstack:options": {
22-
"projectName" : "BrowserStack Samples",
23-
"buildName" : "browserstack build",
24-
"sessionName" : "BStack local python-appium",
25-
"local" : "true",
26-
27-
# Set your access credentials
28-
"userName" : "YOUR_USERNAME",
29-
"accessKey" : "YOUR_ACCESS_KEY"
30-
}
24+
# Set your access credentials
25+
"browserstack.user" : "YOUR_USERNAME",
26+
"browserstack.key" : "YOUR_ACCESS_KEY"
3127
})
3228

3329
# Initialize the remote Webdriver using BrowserStack remote URL
34-
driver = webdriver.Remote("http://localhost:4444/wd/hub", options=options)
30+
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", options=options)
3531

3632
# Test case for the BrowserStack sample Android app.
3733
# If you have uploaded your app, update the test case here.

ios/browserstack_sample.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,17 @@
1616
"deviceName": "iPhone 11 Pro",
1717
"platformName": "ios",
1818
"platformVersion": "13",
19+
"project" : "BrowserStack Samples",
20+
"build" : "browserstack build",
21+
"name" : "BStack sample python-appium",
1922

20-
# Set other BrowserStack capabilities
21-
"bstack:options": {
22-
"projectName" : "BrowserStack Samples",
23-
"buildName" : "browserstack build",
24-
"sessionName" : "BStack sample python-appium",
25-
26-
# Set your access credentials
27-
"userName" : "YOUR_USERNAME",
28-
"accessKey" : "YOUR_ACCESS_KEY"
29-
}
23+
# Set your access credentials
24+
"browserstack.user" : "YOUR_USERNAME",
25+
"browserstack.key" : "YOUR_ACCESS_KEY"
3026
})
3127

3228
# Initialize the remote Webdriver using BrowserStack remote URL
33-
driver = webdriver.Remote("http://localhost:4444/wd/hub", options=options)
29+
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", options=options)
3430

3531
# Test case for the BrowserStack sample iOS app.
3632
# If you have uploaded your app, update the test case here.

ios/browserstack_sample_local.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,18 @@
1616
"deviceName": "iPhone XS",
1717
"platformName": "ios",
1818
"platformVersion": "12",
19+
"project" : "BrowserStack Samples",
20+
"build" : "browserstack build",
21+
"name" : "BStack local python-appium",
22+
"browserstack.local" : "true",
1923

20-
# Set other BrowserStack capabilities
21-
"bstack:options": {
22-
"projectName" : "BrowserStack Samples",
23-
"buildName" : "browserstack build",
24-
"sessionName" : "BStack local python-appium",
25-
"local" : "true",
26-
27-
# Set your access credentials
28-
"userName" : "YOUR_USERNAME",
29-
"accessKey" : "YOUR_ACCESS_KEY"
30-
}
24+
# Set your access credentials
25+
"browserstack.user" : "YOUR_USERNAME",
26+
"browserstack.key" : "YOUR_ACCESS_KEY"
3127
})
3228

3329
# Initialize the remote Webdriver using BrowserStack remote URL
34-
driver = webdriver.Remote("http://localhost:4444/wd/hub", options=options)
30+
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", options=options)
3531

3632
# Test case for the BrowserStack sample iOS app.
3733
# If you have uploaded your app, update the test case here.

0 commit comments

Comments
 (0)