actir 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actir.rb +3 -3
- data/lib/actir/parallel_tests/report/html_reporter.rb +3 -3
- data/lib/actir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e81507b836573d87c410e421d006a607cbafdac8
|
4
|
+
data.tar.gz: c06b80194e01373a3a8b752a944e4f4f41c028f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 980ba486684d79a88647f73d8666fb6ee08798b313e68d4721372af6bbe9e3464d9c87ff770fcfdbc53feb5fcb23c843cafc76ea12c7fb1cae71ff9f6a7259e8
|
7
|
+
data.tar.gz: fad28dd2096ef286d319810d372c9bb953ce12583c634f96900782d1b19f1bae03d9807405dcc41df975a8620cb4b26f3b1b6c9d6233a4ae4641d586cdcd6b08
|
data/lib/actir.rb
CHANGED
@@ -47,9 +47,9 @@ module Actir
|
|
47
47
|
#若用例执行失败则进行截图,在每个用例的teardown方法中直接调用,传入浏览器对象实例
|
48
48
|
def screenshot_if_failed(browser)
|
49
49
|
unless self.passed?
|
50
|
-
Dir::mkdir('screenshots') if not File.directory?('screenshots')
|
51
|
-
time = Time.now.strftime('%Y%m%d-%H%M%S')
|
52
|
-
screenshot = "
|
50
|
+
Dir::mkdir('../screenshots') if not File.directory?('../screenshots')
|
51
|
+
#time = Time.now.strftime('%Y%m%d-%H%M%S')
|
52
|
+
screenshot = "../screenshots/FAILED_#{self.name}.png"
|
53
53
|
browser.screenshot.save screenshot
|
54
54
|
end
|
55
55
|
end
|
@@ -43,7 +43,7 @@ module Actir
|
|
43
43
|
if(testcase[:success] == true)
|
44
44
|
testcase_passed_print(testcase[:testcase_name])
|
45
45
|
else
|
46
|
-
testcase_failed_print(testcase[:testcase_name], testcase[:detail])
|
46
|
+
testcase_failed_print(testsuite[:testsuite_name], testcase[:testcase_name], testcase[:detail])
|
47
47
|
end
|
48
48
|
end
|
49
49
|
@formatter.print_testsuite_end
|
@@ -56,7 +56,7 @@ module Actir
|
|
56
56
|
@formatter.flush
|
57
57
|
end
|
58
58
|
|
59
|
-
def testcase_failed_print(testcase_name, details)
|
59
|
+
def testcase_failed_print(testsuit_name, testcase_name, details)
|
60
60
|
@testcase_number += 1
|
61
61
|
@failure_number += 1
|
62
62
|
|
@@ -65,7 +65,7 @@ module Actir
|
|
65
65
|
@formatter.make_testsuite_header_red(@testsuite_number)
|
66
66
|
end
|
67
67
|
|
68
|
-
@formatter.print_testcase_failed(testcase_name, details, @failure_number)
|
68
|
+
@formatter.print_testcase_failed(testsuit_name, testcase_name, details, @failure_number)
|
69
69
|
@formatter.flush
|
70
70
|
end
|
71
71
|
|
data/lib/actir/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|