taf 0.2.8 → 0.2.9

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: 94881157aa5b02823bfc4f494545d70074193616c9b00144545abdc0a85245d6
4
- data.tar.gz: bba87713f355f46b5306ec041b61fcfc6db8b46a93881a3286631d606c83fe41
3
+ metadata.gz: a7ee33e27841a60600a1f1287ef9637edd4d21f32229a2cc034e7101e7f2812f
4
+ data.tar.gz: aa791f1fc23256d0cb2bd779d01a9102177944228d8d26b3065c501bf367d2b8
5
5
  SHA512:
6
- metadata.gz: b84b075a41ac5c29522adfdb9acaa743fbf51de798659547c5674c6fd4b8dfedbb16f1ebcf0f0f2a1644ee5c9a9aaa73862e2bf5517549777a4d87f6b7d06e71
7
- data.tar.gz: 2d6d5d56f6e561e2b326a35c1c6a0d454939129ba3615e035cf52153c1a2663cd1d57e0fcea1cf5760eb16eddac85135f7926a7aac16ce31440f22539c1e27b5
6
+ metadata.gz: ec853637cdbbabb3a6c99995a490627e2906b416f59a562316084b05f39ef40c14d257cc27f3eb8fca80fb71df8fbb1912eabde79c0e52e2443069d73ffbc59e
7
+ data.tar.gz: c3d07ab4d5d89a1da63a51548b107a1593d74b928082d7de81875443b555b813d618d681532617a326eb6f633e8f46ae5f74bf65fee3ae2ef6cce57377120576
@@ -90,7 +90,8 @@ module Report
90
90
  # check if the test failure threshold has been reached for total failures
91
91
  # or consecutive failures.
92
92
  # If a certain number of consecutive tests fail then throw an exception
93
- def self.check_failure_threshold(test_file_name, _test_step_index)
93
+ def self.check_failure_threshold(test_file_name, _test_step_index,
94
+ _step_attributes)
94
95
  consecutive_fail_threshold = 5
95
96
  if $previousTestFail && $currentTestFail
96
97
  @consecutive_test_fail += 1
@@ -104,7 +105,7 @@ module Report
104
105
  MyLog.log.warn "Terminating the current test case: #{test_file_name} as" \
105
106
  " the test failure threshold (#{consecutive_fail_threshold}) has been " \
106
107
  ' reached.'
107
- MyLog.log.warn '...continuing with the next test case (if there is one)'
108
+ MyLog.log.warn '...continuing with the next test spec (if there is one)'
108
109
 
109
110
  raise FailureThresholdExceeded,
110
111
  "#{consecutive_fail_threshold} Test Steps Failed."
@@ -1,10 +1,10 @@
1
- # Created on 02 Aug 2018
1
+ # Created on 07 May 2019
2
2
  # @author: Andy Perrett
3
3
  #
4
4
  # Versions:
5
5
  # 1.0 - Baseline
6
6
  #
7
- # browser_setup.rb - a browser functions
7
+ # screenshot.rb - a screenshot save function
8
8
  module Screenshot
9
9
  require_relative '../taf_config.rb'
10
10
 
@@ -28,7 +28,8 @@ module TestSteps
28
28
  func = handler.perform(step_attributes) if runtest == false
29
29
  Report.test_pass_fail(func, test_file_name, test_step_index,
30
30
  step_attributes)
31
- Report.check_failure_threshold(test_file_name, test_step_index)
31
+ Report.check_failure_threshold(test_file_name, test_step_index,
32
+ step_attributes)
32
33
  return true
33
34
  else
34
35
  MyLog.log.warn "\nUnable to match function: #{step_function}"
@@ -3,7 +3,7 @@
3
3
  module Taf
4
4
  # This module holds the TAF version information.
5
5
  module Version
6
- STRING = '0.2.8'
6
+ STRING = '0.2.9'
7
7
 
8
8
  MSG = '%<version>s (using Parser %<parser_version>s, running on ' \
9
9
  '%<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Perrett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler