mini_autobot 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +31 -0
- data/config/mini_autobot/google_drive_config.sample.json +4 -0
- data/lib/mini_autobot/google_sheets.rb +0 -2
- data/lib/mini_autobot/parallel.rb +3 -0
- data/lib/mini_autobot/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6417d99fd4a102db43c41453567b9ed7cc4ef823
|
4
|
+
data.tar.gz: e9da097f1bd3cae4b2ce9750b74919f6e1b1ba6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9fd9501edf5e4d2c6d9c22d4133e922a2b341fcb10a7b30e9661d3bc940f4a7baa6e6b104e295e01d8d34edf9065ccd5969685f260d80b3db2c784ccfd0713
|
7
|
+
data.tar.gz: 2e28a8e77cfd5af9ec18af2f5654aa05883122b6f463590b8747e667d7d98c3064278584961352c316ba713730887e5ee002fbebc280443a98713b5727fb4bc5
|
data/README.md
CHANGED
@@ -301,6 +301,37 @@ To make it part of integration in addition to regression, add tag :integration;
|
|
301
301
|
To exclude it from regression, add tag :non_regression (by default),
|
302
302
|
or find the appropriate tag_to_exclude in config/mini_autobot/test_suite.yml
|
303
303
|
|
304
|
+
#### Google Sheets
|
305
|
+
|
306
|
+
As of v1.1, mini_autobot now supports automatically updating test plans stored in Google Sheets.
|
307
|
+
|
308
|
+
To make this work, you will first need to set up OAuth2 access by setting up a project in the Google
|
309
|
+
Developers Console and obtaining a client ID and client Secret.
|
310
|
+
More information can be found here: https://developers.google.com/identity/protocols/OAuth2
|
311
|
+
|
312
|
+
Place your client ID and client Secret in a new file at the following location:
|
313
|
+
config/mini_autobot/google_drive_config.json
|
314
|
+
(See config/mini_autobot/google_drive_config.sample.json for an example)
|
315
|
+
|
316
|
+
At the end of each test, you will need to place the following line:
|
317
|
+
MiniAutobot.google_sheets.update_cells('Test_Result', 'Test_ID') if MiniAutobot.settings.google_sheets?
|
318
|
+
- Replace Test_Result with the text that you would like to be printed to the sheet after your test
|
319
|
+
has passed
|
320
|
+
- Replace Test_ID with the unique identifier for the test - this must match what is in your sheet
|
321
|
+
|
322
|
+
In your Google Sheets spreadsheet, add a column with 'Automation Serial Key' in the top cell
|
323
|
+
For each test, add the unique identifier that corresponds to Test_ID above in this column for the
|
324
|
+
applicable row
|
325
|
+
|
326
|
+
When running a test, use the -g or --google_sheets parameter followed by the ID of your spreadheet.
|
327
|
+
Ex: -g 5xFshUc5kdXcHwKSIE4idIKOW-jdk5c5x5ed4XkhX4kl
|
328
|
+
You can find the ID in the URL for your google sheet spreadsheet before the '/edit':
|
329
|
+
https://docs.google.com/spreadsheets/d/5xFshUc5kdXcHwKSIE4idIKOW-jdk5c5x5ed4XkhX4kl/edit#gid=198261705
|
330
|
+
|
331
|
+
The first time you run a test with a google sheet update, you will be prompted to go to a URL and
|
332
|
+
enter the string found there. After this, there will be additional information added to your
|
333
|
+
google_drive_config.json that will include a refresh token - if the refresh token expires, you will
|
334
|
+
need to repeat this step.
|
304
335
|
|
305
336
|
## Executing Tests
|
306
337
|
|
@@ -37,12 +37,10 @@ module MiniAutobot
|
|
37
37
|
|
38
38
|
def session
|
39
39
|
GoogleDrive.saved_session(@args[:session])
|
40
|
-
#GoogleDrive.saved_session(MiniAutobot.root.join('config/mini_autobot', 'google_drive_config.json'))
|
41
40
|
end
|
42
41
|
|
43
42
|
def spreadsheet
|
44
43
|
@session.spreadsheet_by_key(@args[:spreadsheet])
|
45
|
-
#@session.spreadsheet_by_key(MiniAutobot.settings.google_sheet)
|
46
44
|
end
|
47
45
|
|
48
46
|
def worksheet
|
@@ -21,6 +21,9 @@ module MiniAutobot
|
|
21
21
|
if MiniAutobot.settings.rerun_failure
|
22
22
|
@static_run_command += " -R #{MiniAutobot.settings.rerun_failure}"
|
23
23
|
end
|
24
|
+
if MiniAutobot.settings.google_sheets?
|
25
|
+
@static_run_command += " -g #{MiniAutobot.settings.google_sheet}"
|
26
|
+
end
|
24
27
|
tap_reporter_path = MiniAutobot.gem_root.join('lib/tapout/custom_reporters/fancy_tap_reporter.rb')
|
25
28
|
@pipe_tap = "--tapy | tapout --no-color -r #{tap_reporter_path.to_s} fancytap"
|
26
29
|
end
|
data/lib/mini_autobot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_autobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ripta Pasay
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-02-
|
14
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- README.md
|
200
200
|
- Rakefile
|
201
201
|
- bin/mini_autobot
|
202
|
+
- config/mini_autobot/google_drive_config.sample.json
|
202
203
|
- lib/mini_autobot.rb
|
203
204
|
- lib/mini_autobot/connector.rb
|
204
205
|
- lib/mini_autobot/console.rb
|