fastlane-plugin-browserstack 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -4
- data/lib/fastlane/plugin/browserstack/actions/upload_to_browserstack_app_automate_action.rb +1 -1
- data/lib/fastlane/plugin/browserstack/actions/upload_to_browserstack_app_live_action.rb +1 -1
- data/lib/fastlane/plugin/browserstack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 256736837075ee78b9c415aa6a607ec0e3d35e28d83c6dfba19f9f5e3509ae5b
|
4
|
+
data.tar.gz: bbe56add4e10fc050c69cc388cd81785ec83c534279b0dc755c31724363d86e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8836c085d4f690e6c5614ac983209ebff4ca0af524447f5a2e9a52e1a43887476beb6b79479680e406e5f81a99c297a7293ce32e87af0701bc6fde157209a4
|
7
|
+
data.tar.gz: eaade27872a65c70cb26e60ca1406fed8be1acea5e862dda72890a5da37f261bbc12b0ca2e81fdb0e6de0e4137bf5d53b0a0a4e84e395e2e1e123b24d687e0f7
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ fastlane add_plugin browserstack
|
|
12
12
|
|
13
13
|
## About
|
14
14
|
|
15
|
-
Uploads IPA and
|
15
|
+
Uploads IPA, APK and AAB files to BrowserStack for automation and manual testing.
|
16
16
|
|
17
17
|
## Documentation
|
18
18
|
|
@@ -21,9 +21,38 @@ Refer [App Automate](https://www.browserstack.com/app-automate/appium/fastlane)
|
|
21
21
|
|
22
22
|
## Example
|
23
23
|
|
24
|
-
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by including that in your project's Fastfile, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
25
|
-
|
26
24
|
Please refer this [sample android project](https://github.com/browserstack/browserstack-android-sample-app), which demonstrates the use of this plugin.
|
25
|
+
You can easily upload your app using [BrowserStack fastlane Plugin](https://rubygems.org/gems/fastlane-plugin-browserstack) and execute your test on BrowserStack cloud. In order to configure the plugin add below action in your Fastfile. You can also check our [repository](https://github.com/browserstack/browserstack-fastlane-plugin).
|
26
|
+
```
|
27
|
+
upload_to_browserstack_app_automate(
|
28
|
+
browserstack_username: ENV["BROWSERSTACK_USERNAME"],
|
29
|
+
browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"],
|
30
|
+
file_path: "<path_to_your_apk_ipa_or_aab_file>",
|
31
|
+
custom_id: "<custom_id_name>"
|
32
|
+
)
|
33
|
+
```
|
34
|
+
```
|
35
|
+
Note: custom_id is optional. You can upload multiple builds under the same custom_id.
|
36
|
+
Use custom_id in 'app' capability for Appium to always pick the last uploaded build.
|
37
|
+
The file_path parameter is not required if the app was built in the same lane with the help of Gradle or Gym plugin.
|
38
|
+
```
|
39
|
+
|
40
|
+
For uploading your app to AppLive use the following action in the fastfile
|
41
|
+
```
|
42
|
+
upload_to_browserstack_app_live(
|
43
|
+
browserstack_username: ENV["BROWSERSTACK_USERNAME"],
|
44
|
+
browserstack_access_key: ENV["BROWSERSTACK_ACCESS_KEY"],
|
45
|
+
file_path: "<path_to_your_apk_ipa_or_aab_file>"
|
46
|
+
)
|
47
|
+
```
|
48
|
+
Check out the example [Fastfile](https://github.com/browserstack/browserstack-fastlane-plugin/blob/master/fastlane/Fastfile) to see how to use this plugin. Try it by including that in your project's Fastfile, running `fastlane install_plugins` and `bundle exec fastlane test`. Please refer to this [sample android project](https://github.com/browserstack/browserstack-android-sample-app), which demonstrates the use of this plugin.
|
49
|
+
|
50
|
+
Once the app upload is successful, the app id of the app will be stored in an environment variable, "BROWSERSTACK_APP_ID" and it can be accessed in your tests in the following way :
|
51
|
+
```
|
52
|
+
String app = System.getenv("BROWSERSTACK_APP_ID"); // Get app id from environment variable.
|
53
|
+
capabilities.setCapability("app", app); // Add app id to driver capability.
|
54
|
+
```
|
55
|
+
|
27
56
|
|
28
57
|
## Run tests for this plugin
|
29
58
|
|
@@ -44,7 +73,7 @@ For any other issues and feedback about this plugin, please submit it to this re
|
|
44
73
|
|
45
74
|
## Troubleshooting
|
46
75
|
|
47
|
-
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/)
|
76
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting guide](https://docs.fastlane.tools/plugins/plugins-troubleshooting/).
|
48
77
|
|
49
78
|
## Using _fastlane_ Plugins
|
50
79
|
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
BROWSERSTACK_APP_ID ||= :BROWSERSTACK_APP_ID
|
9
9
|
end
|
10
10
|
class UploadToBrowserstackAppAutomateAction < Action
|
11
|
-
SUPPORTED_FILE_EXTENSIONS = ["apk", "ipa"]
|
11
|
+
SUPPORTED_FILE_EXTENSIONS = ["apk", "ipa", "aab"]
|
12
12
|
UPLOAD_API_ENDPOINT = "https://api-cloud.browserstack.com/app-automate/upload"
|
13
13
|
|
14
14
|
def self.run(params)
|
@@ -8,7 +8,7 @@ module Fastlane
|
|
8
8
|
BROWSERSTACK_LIVE_APP_ID ||= :BROWSERSTACK_LIVE_APP_ID
|
9
9
|
end
|
10
10
|
class UploadToBrowserstackAppLiveAction < Action
|
11
|
-
SUPPORTED_FILE_EXTENSIONS = ["apk", "ipa"]
|
11
|
+
SUPPORTED_FILE_EXTENSIONS = ["apk", "ipa", "aab"]
|
12
12
|
UPLOAD_API_ENDPOINT = "https://api-cloud.browserstack.com/app-live/upload"
|
13
13
|
|
14
14
|
def self.run(params)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-browserstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BrowserStack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|