sapphire 0.7.17 → 0.7.18
Sign up to get free protection for your applications and to get access to all the features.
data/bin/sapphire
CHANGED
@@ -23,7 +23,6 @@ ARGV.each do |arg|
|
|
23
23
|
|
24
24
|
require arg
|
25
25
|
|
26
|
-
Runner.instance.last_scenario.file_name = arg if Runner.instance.last_scenario and Runner.instance.last_scenario.file_name == ""
|
27
26
|
end
|
28
27
|
|
29
28
|
def Report(&block)
|
@@ -43,8 +42,16 @@ def Process()
|
|
43
42
|
end
|
44
43
|
|
45
44
|
if Runner.instance.test_plans.count > 0
|
46
|
-
|
45
|
+
Report do |x| x.BeginTesting end
|
46
|
+
|
47
|
+
Runner.instance.test_plans.each do |t|
|
48
|
+
t.execute
|
49
|
+
end
|
50
|
+
|
51
|
+
Report do |x| x.TestingComplete end
|
52
|
+
Report do |x| x.OutputResults end
|
47
53
|
else
|
54
|
+
|
48
55
|
Report do |x| x.BeginTesting end
|
49
56
|
|
50
57
|
Runner.instance.scenarios.each do |scenario|
|
@@ -10,8 +10,8 @@ module Sapphire
|
|
10
10
|
file = File.expand_path(File.dirname(__FILE__) + item) if !File.exists?(file)
|
11
11
|
raise "File Not Found: " + item if !File.exists?(file)
|
12
12
|
load file if File.exists?(file)
|
13
|
-
Runner.instance.last_scenario.file_name = item
|
14
|
-
Runner.instance.last_scenario.execute
|
13
|
+
Runner.instance.last_scenario.file_name = item if Runner.instance.last_scenario and Runner.instance.last_scenario.file_name == ""
|
14
|
+
#Runner.instance.last_scenario.execute
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -23,6 +23,7 @@ module Sapphire
|
|
23
23
|
|
24
24
|
AddHandler :file => FileHandler.new
|
25
25
|
AddHandler :path => PathHandler.new
|
26
|
+
|
26
27
|
end
|
27
28
|
|
28
29
|
def Cover(item)
|
@@ -46,15 +47,15 @@ module Sapphire
|
|
46
47
|
end
|
47
48
|
|
48
49
|
def execute
|
49
|
-
Report do |x| x.BeginTesting end
|
50
|
-
|
51
|
-
begin
|
52
|
-
|
53
|
-
rescue => e
|
54
|
-
|
55
|
-
end
|
56
|
-
Report do |x| x.TestingComplete end
|
57
|
-
Report do |x| x.OutputResults end
|
50
|
+
#Report do |x| x.BeginTesting end
|
51
|
+
#$stdout.puts ""
|
52
|
+
#begin
|
53
|
+
@block.call
|
54
|
+
#rescue => e
|
55
|
+
# Report do |x| x.TestFailed TestPlanResult.new('fail', self, e.message, e.backtrace, 0) end
|
56
|
+
#end
|
57
|
+
#Report do |x| x.TestingComplete end
|
58
|
+
#Report do |x| x.OutputResults end
|
58
59
|
end
|
59
60
|
|
60
61
|
def Report(&block)
|
data/lib/sapphire/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sapphire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-23 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|
16
|
-
requirement: &
|
16
|
+
requirement: &9899472 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *9899472
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: colorize
|
27
|
-
requirement: &
|
27
|
+
requirement: &9899220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *9899220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: Platform
|
38
|
-
requirement: &
|
38
|
+
requirement: &9898968 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *9898968
|
47
47
|
description: An automated web acceptance test framework for non-technical resources
|
48
48
|
using selenium-wedriver.
|
49
49
|
email:
|