taf 0.2.4 → 0.2.5

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: 7708523ab29d3c19ee1d77c632c8059b22bd5f0bc53c4f1c44cdcaad3bdde2de
4
- data.tar.gz: b37e08f02f1e1898e1bbd0c1acdd1c7d66d654885ec3dff5f8fe63a366236be2
3
+ metadata.gz: a80f7340cca5705ee5dcc7bf4c18a68d021385968999ac7aa02fb09624449822
4
+ data.tar.gz: ba179749dfd4b6c74ca1d8bf872f11bfbdc563259174a62e7574d935b424410f
5
5
  SHA512:
6
- metadata.gz: 69bfe9f27d479f1bbc0cdf409ff6b86c134a49ad5f74cba6c0e28e8dd0b2389447645bfaa2de6c329eecc415106451e6c6a4e79e701f29508ed34cc4716ed1ad
7
- data.tar.gz: b8fe981921bab3a1f71cb354b64a4a140dc5a30d16872e54f7029f51758d23b9f785443dae70c643535cc6f5697ca2a3af97d805b3616990d438adcaaf914a0b
6
+ metadata.gz: 267a05594871c7d98a59431ffe34e786cfce670b84cf97791a803fb2c89a6bdd0c940e493e4716d747be2118955dee927064246690066a13215c86cb8e654665
7
+ data.tar.gz: 9d9d594a563722e220827fa26150fed7be12ea7cda1963c801deef8c9cae5dadeba412914a24e31d96b998580cc1b29d6cfe73521a0c6ac89c0aee11a56aa6fb
@@ -18,9 +18,6 @@ module TestSteps
18
18
  rescue StandardError
19
19
  MyLog.log.warn("Dropdown item: #{value2} has NOT been selected")
20
20
  false
21
- rescue StandardError
22
- MyLog.log.warn("the dropdown: #{dropdown} does not exist")
23
- false
24
21
  end
25
22
  end
26
23
  end
data/lib/report/report.rb CHANGED
@@ -17,7 +17,7 @@ module Report
17
17
 
18
18
  # print the test Step info to the test results file
19
19
  def self.print_test_step_header(test_file_name, test_step_index)
20
- MyLog.log.info "Test start time: #{current_time}"
20
+ @test_start_time = current_time
21
21
  MyLog.log.info "Test step: #{$test_step} : #{$test_step_des}"
22
22
 
23
23
  step = {
@@ -79,7 +79,12 @@ module Report
79
79
  $skiptestStep_xml[test_file_name] ||= []
80
80
  $skiptestStep_xml[test_file_name][test_step_index] = skipstep
81
81
  end
82
- MyLog.log.info "Test end time: #{current_time}"
82
+ test_end_time = current_time
83
+
84
+ test_duration = TimeDifference.between(
85
+ test_end_time, @test_start_time
86
+ ).humanize || 0
87
+ MyLog.log.info "Test step duration: #{test_duration}"
83
88
  end
84
89
 
85
90
  # check if the test failure threshold has been reached for total failures or consecutive failures.
@@ -17,8 +17,6 @@ module ReportSummary
17
17
  Test file executed: #{test_file_name}
18
18
  Browser type used: #{$browserType}
19
19
  Browser version: #{Browser.browser_version}
20
- Started at: #{$test_case_start_time}
21
- Finished at: #{$test_case_end_time}
22
20
  There are: #{$testStepPasses} Passes
23
21
  There are: #{$testStepFailures} Failures
24
22
  There are: #{$testStepNotrun} Skipped Tests \n
@@ -38,10 +36,13 @@ module ReportSummary
38
36
  end
39
37
  end
40
38
 
39
+ duration = TimeDifference.between(
40
+ $test_end_time, $test_start_time
41
+ ).humanize || 0
42
+
41
43
  MyLog.log.info "Total Tests started at: #{$test_start_time}"
42
44
  MyLog.log.info "Total Tests finished at: #{$test_end_time}"
43
- MyLog.log.info 'Total Tests duration: ' \
44
- + TimeDifference.between($test_end_time, $test_start_time).humanize
45
+ MyLog.log.info "Total Tests duration: #{duration}"
45
46
  MyLog.log.info "Total Tests Passed: #{$totalTestPasses}".green
46
47
  MyLog.log.info "Total Tests Failed: #{$totalTestFailures}".red
47
48
  MyLog.log.info "Total Tests Skipped: #{$totalTestNotrun}".blue
data/lib/version.rb CHANGED
@@ -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.4'
6
+ STRING = '0.2.5'
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.4
4
+ version: 0.2.5
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-04-10 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler