omniture_test 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniture_test/version.rb +1 -1
- data/omniture_test.gemspec +1 -0
- data/spec/spec_helper.rb +9 -2
- data/targets.json.sample +22 -0
- data/{targets.sample.yml → targets.yml.sample} +2 -2
- metadata +19 -2
data/omniture_test.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
require 'watir-webdriver'
|
2
2
|
require 'yaml'
|
3
3
|
|
4
|
-
abort "Defina el targets.yml
|
4
|
+
abort "Defina el ./targets.yml o el ./targets.json
|
5
5
|
|
6
|
-
|
6
|
+
Ejemplo YAML:
|
7
|
+
#{File.read("#{ENV['OMNITURE_TEST_PATH']}/targets.yml.sample")}
|
8
|
+
|
9
|
+
Ejemplo JSON:
|
10
|
+
#{File.read("#{ENV['OMNITURE_TEST_PATH']}/targets.json.sample")}
|
11
|
+
" if !File.exists?('targets.yml') && !File.exists?('targets.json')
|
12
|
+
|
13
|
+
$targets = File.exists?('targets.yml') ? YAML.load_file('targets.yml')['targets'] : JSON.parse(File.read('targets.json'))
|
data/targets.json.sample
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"targets": [
|
3
|
+
{
|
4
|
+
"cookies": {
|
5
|
+
"X-COOKIE-KEY": "VALUE"
|
6
|
+
},
|
7
|
+
"url": "http://example.com/something_here",
|
8
|
+
"omniture_variables": {
|
9
|
+
"EXPECTED_VARIABLE_NAME": "VARIABLE_EXPECTED_VALUE"
|
10
|
+
}
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"cookies": {
|
14
|
+
"X-COOKIE-KEY": "VALUE"
|
15
|
+
},
|
16
|
+
"url": "http://example.com/something_here",
|
17
|
+
"omniture_variables": {
|
18
|
+
"EXPECTED_VARIABLE_NAME": "VARIABLE_EXPECTED_VALUE"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
]
|
22
|
+
}
|
@@ -3,9 +3,9 @@ targets:
|
|
3
3
|
"X-COOKIE-KEY": "VALUE"
|
4
4
|
url: "http://example.com/something_here"
|
5
5
|
omniture_variables:
|
6
|
-
"
|
6
|
+
"EXPECTED_VARIABLE_NAME": "VARIABLE_EXPECTED_VALUE"
|
7
7
|
- cookies:
|
8
8
|
"X-COOKIE-KEY": "VALUE"
|
9
9
|
url: "http://example.com/something_here"
|
10
10
|
omniture_variables:
|
11
|
-
"
|
11
|
+
"EXPECTED_VARIABLE_NAME": "VARIABLE_EXPECTED_VALUE"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniture_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: json
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: watir-webdriver
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,7 +94,8 @@ files:
|
|
78
94
|
- omniture_test.gemspec
|
79
95
|
- spec/omniture_spec.rb
|
80
96
|
- spec/spec_helper.rb
|
81
|
-
- targets.sample
|
97
|
+
- targets.json.sample
|
98
|
+
- targets.yml.sample
|
82
99
|
homepage: ''
|
83
100
|
licenses: []
|
84
101
|
post_install_message:
|