sapphire 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sapphire/Adapters/Selenium/RubySeleniumWebDriver.rb +190 -190
- data/lib/sapphire/DSL/Browser/ExecuteAgainstControl.rb +34 -45
- data/lib/sapphire/DSL/Browser/Extensions/Class.rb +29 -0
- data/lib/sapphire/DSL/Browser/Extensions/Hash.rb +11 -0
- data/lib/sapphire/DSL/Browser/Extensions/Numeric.rb +7 -0
- data/lib/sapphire/DSL/Browser/Extensions/Symbol.rb +37 -0
- data/lib/sapphire/DSL/Browser/{By.rb → Fluff/By.rb} +10 -10
- data/lib/sapphire/DSL/Browser/{To.rb → Fluff/To.rb} +10 -10
- data/lib/sapphire/DSL/Browser/{With.rb → Fluff/With.rb} +10 -10
- data/lib/sapphire/DSL/Browser/For.rb +10 -10
- data/lib/sapphire/DSL/Browser/{AlertBox.rb → Nouns/AlertBox.rb} +14 -14
- data/lib/sapphire/DSL/Browser/{Browser.rb → Nouns/Browser.rb} +17 -17
- data/lib/sapphire/DSL/Browser/{Day.rb → Nouns/Day.rb} +24 -24
- data/lib/sapphire/DSL/Browser/{Keys → Nouns}/Enter.rb +10 -10
- data/lib/sapphire/DSL/Browser/{Month.rb → Nouns/Month.rb} +24 -24
- data/lib/sapphire/DSL/Browser/{Popup.rb → Nouns/Popup.rb} +0 -0
- data/lib/sapphire/DSL/Browser/Should.rb +42 -42
- data/lib/sapphire/DSL/Browser/Tracker.rb +15 -15
- data/lib/sapphire/DSL/Browser/{Accept.rb → Verbs/Accept.rb} +9 -9
- data/lib/sapphire/DSL/Browser/Verbs/Check.rb +11 -0
- data/lib/sapphire/DSL/Browser/{IsHidden.rb → Verbs/Clear.rb} +9 -10
- data/lib/sapphire/DSL/Browser/Verbs/Click.rb +11 -0
- data/lib/sapphire/DSL/Browser/{Close.rb → Verbs/Close.rb} +11 -12
- data/lib/sapphire/DSL/Browser/{Compare.rb → Verbs/Compare.rb} +18 -18
- data/lib/sapphire/DSL/Browser/Verbs/Complete.rb +10 -0
- data/lib/sapphire/DSL/Browser/{Differ.rb → Verbs/Differ.rb} +18 -18
- data/lib/sapphire/DSL/Browser/{Disable.rb → Verbs/Disable.rb} +0 -0
- data/lib/sapphire/DSL/Browser/{Error.rb → Verbs/Error.rb} +25 -26
- data/lib/sapphire/DSL/Browser/{Exists.rb → Verbs/Exists.rb} +22 -22
- data/lib/sapphire/DSL/Browser/{Hide.rb → Verbs/Hide.rb} +25 -26
- data/lib/sapphire/DSL/Browser/Verbs/MouseOver.rb +11 -0
- data/lib/sapphire/DSL/Browser/{Navigate.rb → Verbs/Navigate.rb} +11 -11
- data/lib/sapphire/DSL/Browser/{Press.rb → Verbs/Press.rb} +8 -10
- data/lib/sapphire/DSL/Browser/{Reload.rb → Verbs/Reload.rb} +11 -11
- data/lib/sapphire/DSL/Browser/Verbs/Set.rb +10 -0
- data/lib/sapphire/DSL/Browser/{Show.rb → Verbs/Show.rb} +25 -26
- data/lib/sapphire/DSL/Browser/{Start.rb → Verbs/Start.rb} +16 -16
- data/lib/sapphire/DSL/Browser/{Switch.rb → Verbs/Switch.rb} +0 -0
- data/lib/sapphire/DSL/Browser/{Transition.rb → Verbs/Transition.rb} +25 -26
- data/lib/sapphire/DSL/Browser/Verbs/Uncheck.rb +11 -0
- data/lib/sapphire/DSL/Browser/{Virtually.rb → Verbs/Virtually.rb} +0 -0
- data/lib/sapphire/DSL/Browser/{Wait.rb → Verbs/Wait.rb} +2 -2
- data/lib/sapphire/DSL/Configuration/ConfiguredBrowser.rb +12 -12
- data/lib/sapphire/DSL/Configuration/ConfiguredUser.rb +10 -10
- data/lib/sapphire/DSL/Configuration/Use.rb +15 -15
- data/lib/sapphire/DSL/Data/Exist.rb +27 -27
- data/lib/sapphire/DSL/Data/Find.rb +10 -10
- data/lib/sapphire/DSL/Data/GetPageField.rb +17 -17
- data/lib/sapphire/DSL/Data/Underscore.rb +8 -8
- data/lib/sapphire/DSL/Data/Validate.rb +26 -26
- data/lib/sapphire/DSL/Data/Verify.rb +10 -10
- data/lib/sapphire/DSL/Scenarios/Is.rb +9 -9
- data/lib/sapphire/DSL/Scenarios/Pending.rb +28 -28
- data/lib/sapphire/DSL/Scenarios/and.rb +25 -25
- data/lib/sapphire/DSL/Scenarios/background.rb +33 -33
- data/lib/sapphire/DSL/Scenarios/dsl.rb +59 -59
- data/lib/sapphire/DSL/Scenarios/finally.rb +33 -33
- data/lib/sapphire/DSL/Scenarios/given.rb +57 -57
- data/lib/sapphire/DSL/Scenarios/runner.rb +40 -40
- data/lib/sapphire/DSL/Scenarios/scenario.rb +53 -53
- data/lib/sapphire/DSL/Scenarios/then.rb +34 -34
- data/lib/sapphire/DSL/Scenarios/when.rb +47 -47
- data/lib/sapphire/DSL.rb +10 -6
- data/lib/sapphire/Data.rb +1 -1
- data/lib/sapphire/DataAbstractions/Database.rb +57 -57
- data/lib/sapphire/DataAbstractions/Query.rb +19 -19
- data/lib/sapphire/JobAbstractions/Job.rb +32 -32
- data/lib/sapphire/Strategies/ClassStrategy.rb +1 -1
- data/lib/sapphire/Strategies/Strategy.rb +1 -2
- data/lib/sapphire/Strategies.rb +1 -1
- data/lib/sapphire/TeamCity.rb +8 -8
- data/lib/sapphire/Testing/Executable.rb +30 -30
- data/lib/sapphire/Testing/RakeTask.rb +108 -108
- data/lib/sapphire/Testing/ResultList.rb +18 -18
- data/lib/sapphire/Testing/ResultTree.rb +44 -44
- data/lib/sapphire/Testing/ScenarioResult.rb +36 -36
- data/lib/sapphire/Testing/TestResult.rb +21 -21
- data/lib/sapphire/Testing/TestRunnerAdapter.rb +69 -69
- data/lib/sapphire/Testing.rb +2 -2
- data/lib/sapphire/Virtualization.rb +7 -7
- data/lib/sapphire/Web.rb +2 -2
- data/lib/sapphire/WebAbstractions/Browsers/Chrome.rb +21 -21
- data/lib/sapphire/WebAbstractions/Browsers/FireFox.rb +22 -22
- data/lib/sapphire/WebAbstractions/Browsers/InternetExplorer.rb +21 -21
- data/lib/sapphire/WebAbstractions/Controls/Base/Control.rb +58 -59
- data/lib/sapphire/WebAbstractions/Controls/Base/Page.rb +61 -62
- data/lib/sapphire/WebAbstractions/Controls/Button.rb +7 -9
- data/lib/sapphire/WebAbstractions/Controls/CheckBox.rb +28 -28
- data/lib/sapphire/WebAbstractions/Controls/Date.rb +11 -11
- data/lib/sapphire/WebAbstractions/Controls/DropDown.rb +26 -26
- data/lib/sapphire/WebAbstractions/Controls/Hyperlink.rb +8 -8
- data/lib/sapphire/WebAbstractions/Controls/Image.rb +9 -9
- data/lib/sapphire/WebAbstractions/Controls/Label.rb +8 -8
- data/lib/sapphire/WebAbstractions/Controls/RadioButton.rb +18 -18
- data/lib/sapphire/WebAbstractions/Controls/TextBox.rb +31 -31
- data/lib/sapphire/WebAbstractions/Controls/Title.rb +12 -12
- data/lib/sapphire/version.rb +3 -3
- data/lib/sapphire.rb +38 -38
- metadata +46 -45
- data/lib/sapphire/DSL/Browser/Check.rb +0 -12
- data/lib/sapphire/DSL/Browser/Clear.rb +0 -13
- data/lib/sapphire/DSL/Browser/Click.rb +0 -12
- data/lib/sapphire/DSL/Browser/Complete.rb +0 -15
- data/lib/sapphire/DSL/Browser/CurrentUrl.rb +0 -11
- data/lib/sapphire/DSL/Browser/IsVisible.rb +0 -33
- data/lib/sapphire/DSL/Browser/MouseOver.rb +0 -12
- data/lib/sapphire/DSL/Browser/Set.rb +0 -18
- data/lib/sapphire/DSL/Browser/Uncheck.rb +0 -12
@@ -1,62 +1,61 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Page
|
4
|
-
|
5
|
-
def AlternateUrls
|
6
|
-
[]
|
7
|
-
end
|
8
|
-
|
9
|
-
attr_reader :fields
|
10
|
-
|
11
|
-
def initialize(
|
12
|
-
@
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
end
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Page
|
4
|
+
|
5
|
+
def AlternateUrls
|
6
|
+
[]
|
7
|
+
end
|
8
|
+
|
9
|
+
attr_reader :fields
|
10
|
+
|
11
|
+
def initialize()
|
12
|
+
@fields = []
|
13
|
+
end
|
14
|
+
|
15
|
+
def DropDown(*args)
|
16
|
+
@fields << { args.first => DropDown.new(args[1..args.length]) }
|
17
|
+
end
|
18
|
+
|
19
|
+
def TextBox(*args)
|
20
|
+
@fields << { args.first => TextBox.new(args[1..args.length]) }
|
21
|
+
end
|
22
|
+
|
23
|
+
def RadioButton(*args)
|
24
|
+
@fields << { args.first => RadioButton.new(args[1..args.length]) }
|
25
|
+
end
|
26
|
+
|
27
|
+
def CheckBox(*args)
|
28
|
+
@fields << { args.first => CheckBox.new(args[1..args.length]) }
|
29
|
+
end
|
30
|
+
|
31
|
+
def Button(*args)
|
32
|
+
@fields << { args.first => Button.new(args[1..args.length]) }
|
33
|
+
end
|
34
|
+
|
35
|
+
def Label(*args)
|
36
|
+
@fields << { args.first => Label.new(args[1..args.length]) }
|
37
|
+
end
|
38
|
+
|
39
|
+
def Image(*args)
|
40
|
+
@fields << { args.first => Image.new(args[1..args.length]) }
|
41
|
+
end
|
42
|
+
|
43
|
+
def Hyperlink(*args)
|
44
|
+
@fields << { args.first => Hyperlink.new(args[1..args.length]) }
|
45
|
+
end
|
46
|
+
|
47
|
+
def List(*args)
|
48
|
+
@fields << { args.first => List.new(args[1..args.length]) }
|
49
|
+
end
|
50
|
+
|
51
|
+
def Date(*args)
|
52
|
+
@fields << { args.first => Date.new(args[1..args.length]) }
|
53
|
+
end
|
54
|
+
|
55
|
+
def Date(*args)
|
56
|
+
@fields << { args.first => Date.new(args[1]) }
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -1,9 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
end
|
9
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Button < Control
|
4
|
+
end
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
@@ -1,28 +1,28 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class CheckBox < Control
|
4
|
-
def Check (value)
|
5
|
-
|
6
|
-
if value && self.IsChecked
|
7
|
-
return;
|
8
|
-
end
|
9
|
-
|
10
|
-
if !value && !self.IsChecked
|
11
|
-
return;
|
12
|
-
end
|
13
|
-
|
14
|
-
radio = self.Find
|
15
|
-
radio.click
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
def IsChecked
|
20
|
-
|
21
|
-
radio = self.Find
|
22
|
-
radio.attribute("checked")
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class CheckBox < Control
|
4
|
+
def Check (value)
|
5
|
+
|
6
|
+
if value && self.IsChecked
|
7
|
+
return;
|
8
|
+
end
|
9
|
+
|
10
|
+
if !value && !self.IsChecked
|
11
|
+
return;
|
12
|
+
end
|
13
|
+
|
14
|
+
radio = self.Find
|
15
|
+
radio.click
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
def IsChecked
|
20
|
+
|
21
|
+
radio = self.Find
|
22
|
+
radio.attribute("checked")
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Date < Control
|
4
|
-
|
5
|
-
def Text
|
6
|
-
control = self.Find
|
7
|
-
return DateTime.strptime(control.text, "%m/%d/%Y %H:%M:%S %p").to_date
|
8
|
-
end
|
9
|
-
|
10
|
-
end
|
11
|
-
end
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Date < Control
|
4
|
+
|
5
|
+
def Text
|
6
|
+
control = self.Find
|
7
|
+
return DateTime.strptime(control.text, "%m/%d/%Y %H:%M:%S %p").to_date
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
12
12
|
end
|
@@ -1,27 +1,27 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class DropDown < Control
|
4
|
-
def Selected= (value)
|
5
|
-
Set(value)
|
6
|
-
end
|
7
|
-
|
8
|
-
def Selected
|
9
|
-
text = self.Find
|
10
|
-
text.value
|
11
|
-
end
|
12
|
-
|
13
|
-
def Text
|
14
|
-
text = self.Find
|
15
|
-
text.attribute("value")
|
16
|
-
end
|
17
|
-
|
18
|
-
def Set(value)
|
19
|
-
text = self.Find
|
20
|
-
options = text.find_elements(:tag_name, "option")
|
21
|
-
selection = options.find{|o| o.text == value.to_s}
|
22
|
-
raise "could not find the value " + value.to_s if selection.nil?
|
23
|
-
selection.click
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class DropDown < Control
|
4
|
+
def Selected= (value)
|
5
|
+
Set(value)
|
6
|
+
end
|
7
|
+
|
8
|
+
def Selected
|
9
|
+
text = self.Find
|
10
|
+
text.value
|
11
|
+
end
|
12
|
+
|
13
|
+
def Text
|
14
|
+
text = self.Find
|
15
|
+
text.attribute("value")
|
16
|
+
end
|
17
|
+
|
18
|
+
def Set(value)
|
19
|
+
text = self.Find
|
20
|
+
options = text.find_elements(:tag_name, "option")
|
21
|
+
selection = options.find{|o| o.text == value.to_s}
|
22
|
+
raise "could not find the value " + value.to_s if selection.nil?
|
23
|
+
selection.click
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
27
|
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Hyperlink < Control
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Hyperlink < Control
|
4
|
+
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
@@ -1,9 +1,9 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Image < Control
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Image < Control
|
4
|
+
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
|
@@ -1,8 +1,8 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Label < Control
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Label < Control
|
4
|
+
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
@@ -1,18 +1,18 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class RadioButton < Control
|
4
|
-
|
5
|
-
def Text
|
6
|
-
self.Find().text
|
7
|
-
end
|
8
|
-
|
9
|
-
def Check (value)
|
10
|
-
|
11
|
-
radio = self.Find
|
12
|
-
radio.click
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class RadioButton < Control
|
4
|
+
|
5
|
+
def Text
|
6
|
+
self.Find().text
|
7
|
+
end
|
8
|
+
|
9
|
+
def Check (value)
|
10
|
+
|
11
|
+
radio = self.Find
|
12
|
+
radio.click
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
@@ -1,31 +1,31 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class TextBox < Control
|
4
|
-
|
5
|
-
def Text= (value)
|
6
|
-
text = self.Find
|
7
|
-
text.send_keys value
|
8
|
-
end
|
9
|
-
|
10
|
-
def Text
|
11
|
-
text = self.Find
|
12
|
-
text.attribute("value")
|
13
|
-
end
|
14
|
-
|
15
|
-
def Set(value)
|
16
|
-
if(value == "")
|
17
|
-
self.Clear
|
18
|
-
else
|
19
|
-
text = self.Find
|
20
|
-
text.send_keys value
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def Clear
|
25
|
-
text = self.Find
|
26
|
-
text.clear
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class TextBox < Control
|
4
|
+
|
5
|
+
def Text= (value)
|
6
|
+
text = self.Find
|
7
|
+
text.send_keys value
|
8
|
+
end
|
9
|
+
|
10
|
+
def Text
|
11
|
+
text = self.Find
|
12
|
+
text.attribute("value")
|
13
|
+
end
|
14
|
+
|
15
|
+
def Set(value)
|
16
|
+
if(value == "")
|
17
|
+
self.Clear
|
18
|
+
else
|
19
|
+
text = self.Find
|
20
|
+
text.send_keys value
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def Clear
|
25
|
+
text = self.Find
|
26
|
+
text.clear
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Sapphire
|
2
|
-
module WebAbstractions
|
3
|
-
class Title < Control
|
4
|
-
|
5
|
-
def Text
|
6
|
-
|
7
|
-
end
|
8
|
-
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
1
|
+
module Sapphire
|
2
|
+
module WebAbstractions
|
3
|
+
class Title < Control
|
4
|
+
|
5
|
+
def Text
|
6
|
+
$browser.title
|
7
|
+
end
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
data/lib/sapphire/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module Sapphire
|
2
|
-
VERSION = "0.5.
|
3
|
-
end
|
1
|
+
module Sapphire
|
2
|
+
VERSION = "0.5.4"
|
3
|
+
end
|
data/lib/sapphire.rb
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
$:.unshift File.expand_path("..", __FILE__)
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'Platform'
|
5
|
-
require 'yaml'
|
6
|
-
require 'selenium-webdriver'
|
7
|
-
require 'delegate'
|
8
|
-
require 'Forwardable'
|
9
|
-
require 'colorize'
|
10
|
-
|
11
|
-
require 'sapphire/Adapters'
|
12
|
-
require 'sapphire/Strategies'
|
13
|
-
require 'sapphire/Testing'
|
14
|
-
require 'sapphire/Web'
|
15
|
-
require 'sapphire/DSL'
|
16
|
-
require 'sapphire/CommandLine'
|
17
|
-
require 'sapphire/Configuration'
|
18
|
-
require 'sapphire/Data'
|
19
|
-
require 'sapphire/Virtualization'
|
20
|
-
require 'sapphire/TeamCity'
|
21
|
-
|
22
|
-
module Sapphire
|
23
|
-
module Sapphire
|
24
|
-
include DSL::Strategies
|
25
|
-
include DSL::Scenarios
|
26
|
-
include DSL::Browser
|
27
|
-
include DSL::Configuration
|
28
|
-
include DSL::Data
|
29
|
-
include DSL::TestPlans
|
30
|
-
include Configuration::AttrMethods
|
31
|
-
include Configuration
|
32
|
-
include DataAbstractions
|
33
|
-
include JobAbstractions
|
34
|
-
include WebAbstractions
|
35
|
-
include Testing
|
36
|
-
include Testing::TeamCity
|
37
|
-
include UI
|
38
|
-
end
|
1
|
+
$:.unshift File.expand_path("..", __FILE__)
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'Platform'
|
5
|
+
require 'yaml'
|
6
|
+
require 'selenium-webdriver'
|
7
|
+
require 'delegate'
|
8
|
+
require 'Forwardable'
|
9
|
+
require 'colorize'
|
10
|
+
|
11
|
+
require 'sapphire/Adapters'
|
12
|
+
require 'sapphire/Strategies'
|
13
|
+
require 'sapphire/Testing'
|
14
|
+
require 'sapphire/Web'
|
15
|
+
require 'sapphire/DSL'
|
16
|
+
require 'sapphire/CommandLine'
|
17
|
+
require 'sapphire/Configuration'
|
18
|
+
require 'sapphire/Data'
|
19
|
+
require 'sapphire/Virtualization'
|
20
|
+
require 'sapphire/TeamCity'
|
21
|
+
|
22
|
+
module Sapphire
|
23
|
+
module Sapphire
|
24
|
+
include DSL::Strategies
|
25
|
+
include DSL::Scenarios
|
26
|
+
include DSL::Browser
|
27
|
+
include DSL::Configuration
|
28
|
+
include DSL::Data
|
29
|
+
include DSL::TestPlans
|
30
|
+
include Configuration::AttrMethods
|
31
|
+
include Configuration
|
32
|
+
include DataAbstractions
|
33
|
+
include JobAbstractions
|
34
|
+
include WebAbstractions
|
35
|
+
include Testing
|
36
|
+
include Testing::TeamCity
|
37
|
+
include UI
|
38
|
+
end
|
39
39
|
end
|