fastlane-plugin-lambdatest 0.1.1 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 603520ec324583e3ea5588648f364c60c3ac34d05bebc5b369e86d6c8f7c7333
4
- data.tar.gz: bbb4f99203e78d0f93c92e96d8d7da4966cfd3cb81460601db6995dcbf9904f6
3
+ metadata.gz: c0820213456b0a834ee874c54bdad4b98758ff5ae52943bf82dd14ad3fb86d83
4
+ data.tar.gz: 8b788abac827cfb8c488e66bf34acc183ec9ff60dde6c41dec0b3bd936b4bfab
5
5
  SHA512:
6
- metadata.gz: 69ee3af8c53a29ca2ecca3500f5b91957be29b3ac19bde0e462d5d614075722eef4a9c38d1890adc66ba7a16f06ce294d39b4e18bba8deb1faaf1ff45cfc9a64
7
- data.tar.gz: 71f9007d3e2f51044e0dc6e13953db9ad99f499011a4adb8e967d280d62127ea26d2ee78e56a5d740a95f49e27d7b180d598ffb00a60079fa97f0c557166e627
6
+ metadata.gz: ee73db67bb89db27f4573d3b553335eac53d93231468e6538c0fbe2e1b24bc55f1e5337f587883d290c78225ae710bcc6f0c23d6420c5cbcbca6ba3e4a0d2d09
7
+ data.tar.gz: 2733158773c44769f062dd6d6175c8c5c94733ec1fc4380c4da252ba1c756f22bef3b478090c19bba3dffc726cc98aceefa4c5c2226bac2f39f977ce2ff0cb95
data/README.md CHANGED
@@ -1,25 +1,19 @@
1
1
  ![LambdaTest Logo](https://www.lambdatest.com/resources/images/logos/logo.svg)
2
2
 
3
- # lambdatest plugin
3
+ # LambdaTest fastlane plugin
4
4
 
5
5
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-lambdatest)
6
6
 
7
7
  ## Getting Started
8
8
 
9
- This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-lambdatest`, add it to your project by running:
9
+ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin to upload app to LambdaTest. To get started with `fastlane-plugin-lambdatest`, add it to your project by running:
10
10
 
11
11
  ```bash
12
12
  fastlane add_plugin lambdatest
13
13
  ```
14
14
 
15
- ## About lambdatest
16
-
17
- Upload apps to lambdatest for testing.
18
-
19
- **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
20
-
21
15
  ## Example
22
- In order to configure the plugin add below action in your Fastfile.
16
+ In order to use this plugin first obtain your `LT_USERNAME` and `LT_ACCESS_KEY` from your [_account_](https://accounts.lambdatest.com/security),configure the plugin add below action in your Fastfile.
23
17
 
24
18
  ```
25
19
  upload_to_lambdatest(
@@ -28,18 +22,25 @@ upload_to_lambdatest(
28
22
  file_path: "app_file_path"
29
23
  )
30
24
  ```
25
+ OR you can also use custom_id
26
+ ```
27
+ upload_to_lambdatest(
28
+ lt_username: ENV["LT_USERNAME"],
29
+ lt_access_key: ENV["LT_ACCESS_KEY"],
30
+ file_path: "app_file_path",
31
+ custom_id:"984792"
32
+ )
33
+ ```
31
34
 
32
35
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
33
36
 
34
- Once the app is uploaded , the app_url of the app will be stored in an environment variable, "APP_URL" and it can be accessed in your tests in the following way :
37
+ Once the app is uploaded , the app_url of the app will be stored in an environment variable, "APP_URL" and it can be accessed in your tests in same lane in the following way :
35
38
 
36
39
  ```
37
40
  String app = System.getenv("APP_URL"); // Get app url from environment variable.
38
41
  capabilities.setCapability("app", app); // Add app url to driver capability.
39
42
  ```
40
43
 
41
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
42
-
43
44
  ## Run tests for this plugin
44
45
 
45
46
  To run both the tests, and code style validation, run
@@ -61,10 +62,7 @@ For any other issues and feedback about this plugin, please submit it to this re
61
62
 
62
63
  If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
63
64
 
64
- ## Using _fastlane_ Plugins
65
-
66
- For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
67
65
 
68
- ## About _fastlane_
66
+ ## About LambdaTest
69
67
 
70
- _fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
68
+ [LambdaTest](https://www.lambdatest.com/) is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your [selenium automation testing](https://www.lambdatest.com/selenium-automation) to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.
@@ -17,12 +17,14 @@ module Fastlane
17
17
  lt_access_key = params[:lt_access_key] # Required
18
18
  file_path = params[:file_path].to_s # Required
19
19
  custom_id = params[:custom_id] # Optional
20
+ app_name = params[:app_name] #Optional
21
+ visibility = params[:visibility] #Optional
20
22
 
21
23
  validate_file_path(file_path)
22
24
 
23
25
  UI.message("Started Uploading app to Lambdatest...")
24
26
 
25
- lt_app_url = Helper::LambdatestHelper.upload_file(lt_username, lt_access_key, file_path, API_ENDPOINT,custom_id)
27
+ lt_app_url = Helper::LambdatestHelper.upload_file(lt_username, lt_access_key, file_path, API_ENDPOINT, custom_id, app_name, visibility)
26
28
 
27
29
  # Set 'APP_URL' environment variable, if app upload was successful.
28
30
  ENV['APP_URL'] = lt_app_url
@@ -85,14 +87,25 @@ module Fastlane
85
87
  UI.user_error!("No lt_access_key given.") if value.to_s.empty?
86
88
  end),
87
89
  FastlaneCore::ConfigItem.new(key: :file_path,
88
- description: "app file path",
90
+ description: "App file path",
89
91
  optional: true,
90
92
  is_string: true,
91
93
  default_value: default_file_path),
92
94
  FastlaneCore::ConfigItem.new(key: :custom_id,
93
95
  description: "Custom ID",
94
96
  optional: true,
95
- is_string: false)
97
+ is_string: false,
98
+ default_value: nil),
99
+ FastlaneCore::ConfigItem.new(key: :app_name,
100
+ description: "App name",
101
+ optional: true,
102
+ is_string: true,
103
+ default_value: "app"),
104
+ FastlaneCore::ConfigItem.new(key: :visibility,
105
+ description: "Visibility",
106
+ optional: true,
107
+ is_string: true,
108
+ default_value: "individual")
96
109
  ]
97
110
  end
98
111
 
@@ -112,7 +125,15 @@ module Fastlane
112
125
  'upload_to_lambdatest(
113
126
  lt_username: ENV["LT_USERNAME"],
114
127
  lt_access_key: ENV["LT_ACCESS_KEY"],
115
- file_path: "path_to_app_file"
128
+ file_path: "path_to_app_file",
129
+ app_name: "android_app"
130
+ )',
131
+ 'upload_to_lambdatest(
132
+ lt_username: ENV["LT_USERNAME"],
133
+ lt_access_key: ENV["LT_ACCESS_KEY"],
134
+ file_path: "path_to_app_file",
135
+ app_name: "android_app",
136
+ visibility: "team",
116
137
  )'
117
138
  ]
118
139
  end
@@ -20,10 +20,11 @@ module Fastlane
20
20
  # +custom_id+:: Custom id for app upload.
21
21
  # +file_path+:: Path to the file to be uploaded.
22
22
  # +url+:: Lambdatest's app upload endpoint.
23
- def self.upload_file(lt_username, lt_access_key, file_path, url, custom_id = nil)
23
+ def self.upload_file(lt_username, lt_access_key, file_path, url, custom_id,app_name, visibility)
24
24
  payload = {
25
- name: "app",
26
- appFile: File.new(file_path, 'rb')
25
+ name: app_name,
26
+ appFile: File.new(file_path, 'rb'),
27
+ visibility: visibility
27
28
  }
28
29
 
29
30
  unless custom_id.nil?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Lambdatest
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-lambdatest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LambdaTest
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-16 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.0.3.1
190
+ rubygems_version: 3.1.2
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: fastlane plugin to upload app to lambdatest