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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d43f4157e21e7fbb2715f2f8ffcf0801afdc455
4
- data.tar.gz: 38a93e0c20727f796c2cdc788149958c41b9409e
3
+ metadata.gz: e81507b836573d87c410e421d006a607cbafdac8
4
+ data.tar.gz: c06b80194e01373a3a8b752a944e4f4f41c028f6
5
5
  SHA512:
6
- metadata.gz: 63db5be91712d44bb0f53646a9b2463f1a91571d860e11f20d750dab6d8d811da190746178b32841c54d379bc580495d1fe55a4722bd194520d0b111ede624ba
7
- data.tar.gz: 9dcb2cb9035f12bfadf58bcdb63a8ef1ce1711e225128f4b12cba995c86b3a32916fad74a30fda07c930e25f411cbb3ad26445ddb2571040e4b526eb4b82bc54
6
+ metadata.gz: 980ba486684d79a88647f73d8666fb6ee08798b313e68d4721372af6bbe9e3464d9c87ff770fcfdbc53feb5fcb23c843cafc76ea12c7fb1cae71ff9f6a7259e8
7
+ data.tar.gz: fad28dd2096ef286d319810d372c9bb953ce12583c634f96900782d1b19f1bae03d9807405dcc41df975a8620cb4b26f3b1b6c9d6233a4ae4641d586cdcd6b08
@@ -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 = "./screenshots/FAILED_#{self.name}_#{time}.png"
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
 
@@ -1,3 +1,3 @@
1
1
  module Actir
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
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.3
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-25 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit