oats 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. data/.gitignore +1 -0
  2. data/lib/oats/commandline_options.rb +8 -3
  3. data/lib/oats/user_api.rb +2 -2
  4. data/lib/oats/version.rb +1 -1
  5. data/oats_tests/examples/keywords/keywordsTestlist.yml +2 -2
  6. metadata +3 -57
  7. data/Gemfile.lock +0 -60
  8. data/doc/classes/ApplicationLogs.html +0 -239
  9. data/doc/classes/Campaign.html +0 -843
  10. data/doc/classes/CommandlineOptions.html +0 -131
  11. data/doc/classes/Driver.html +0 -182
  12. data/doc/classes/Hash.html +0 -137
  13. data/doc/classes/Ide.html +0 -194
  14. data/doc/classes/MapSelenium.html +0 -197
  15. data/doc/classes/Net.html +0 -107
  16. data/doc/classes/Oats/OatsFilterError.html +0 -119
  17. data/doc/classes/Oats.html +0 -998
  18. data/doc/classes/OatsAssertError.html +0 -119
  19. data/doc/classes/OatsBadInput.html +0 -119
  20. data/doc/classes/OatsData.html +0 -290
  21. data/doc/classes/OatsError.html +0 -117
  22. data/doc/classes/OatsExit.html +0 -117
  23. data/doc/classes/OatsLock.html +0 -254
  24. data/doc/classes/OatsMain.html +0 -182
  25. data/doc/classes/OatsMysqlError.html +0 -113
  26. data/doc/classes/OatsMysqlMissingInput.html +0 -113
  27. data/doc/classes/OatsReportError.html +0 -113
  28. data/doc/classes/OatsSetupError.html +0 -119
  29. data/doc/classes/OatsTestError.html +0 -119
  30. data/doc/classes/OatsTestExit.html +0 -119
  31. data/doc/classes/OatsTestLocateError.html +0 -120
  32. data/doc/classes/OatsVerifyError.html +0 -119
  33. data/doc/classes/Ragent.html +0 -397
  34. data/doc/classes/Rclient.html +0 -236
  35. data/doc/classes/Report.html +0 -368
  36. data/doc/classes/Reports.html +0 -244
  37. data/doc/classes/RestApi.html +0 -333
  38. data/doc/classes/RhttpClient.html +0 -236
  39. data/doc/classes/Rimap.html +0 -170
  40. data/doc/classes/Rmysql.html +0 -176
  41. data/doc/classes/Roptions.html +0 -131
  42. data/doc/classes/Rselenium.html +0 -233
  43. data/doc/classes/Rssh.html +0 -138
  44. data/doc/classes/Runnable.html +0 -174
  45. data/doc/classes/SFTriggers.html +0 -206
  46. data/doc/classes/Selenium/Client/Driver.html +0 -211
  47. data/doc/classes/Selenium/Client.html +0 -107
  48. data/doc/classes/Selenium.html +0 -107
  49. data/doc/classes/SystemCapture.html +0 -304
  50. data/doc/classes/TestCase.html +0 -418
  51. data/doc/classes/TestData.html +0 -235
  52. data/doc/classes/TestList.html +0 -264
  53. data/doc/classes/Tools.html +0 -244
  54. data/doc/classes/Util.html +0 -201
  55. data/doc/classes/Variation.html +0 -206
  56. data/doc/fr_class_index.html +0 -92
  57. data/doc/fr_method_index.html +0 -465
  58. data/doc/index.html +0 -23
  59. data/doc/rdoc-style.css +0 -208
  60. data/oats_tests/examples/core/ok_verify.rb_ok/rats_test.log +0 -2
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  pkg/*
4
4
  /nbproject/private/
5
5
  .DS_Store
6
+ Gemfile.lock
@@ -61,17 +61,22 @@ module Oats
61
61
  options['_:quiet'] = true
62
62
  end
63
63
 
64
+ # AGENT OPTIONS ONLY
64
65
  opts.on( '-a', '--agent',
65
66
  'Invokes background agent handling.' ) do |t|
66
67
  options['_:agent'] = true
67
68
  end
68
69
  opts.on( '-u', '--oats_user OATS_USER',
69
- 'Sets OATS_USER for agent, in conjunction with -a.' ) do |t|
70
+ 'Sets OATS_USER for agent, used in conjunction with -a.' ) do |t|
70
71
  options['_:oats_user'] = t
71
72
  end
72
73
  opts.on( '-k', '--kill_agent',
73
- 'Kill the agent.' ) do |t|
74
- options['_:kill_agent, in conjunction with -a'] = true
74
+ 'Kills the agent, used in conjunction with -a.' ) do |t|
75
+ options['_:kill_agent'] = true
76
+ end
77
+ opts.on( '-r', '--repository',
78
+ 'Sets REPOSITORY for agent, used in conjunction with -a.' ) do |t|
79
+ options['_:repository'] = true
75
80
  end
76
81
 
77
82
 
data/lib/oats/user_api.rb CHANGED
@@ -196,9 +196,9 @@ module Oats
196
196
  return oats_data['result_archive_dir']
197
197
  end
198
198
 
199
- # Returns input or ''. Used to force ruby eval of Oat.data YML values
199
+ # Returns input. Used to force ruby eval of Oat.data YML values
200
200
  def Oats.eval(input=nil)
201
- return input || ''
201
+ return input
202
202
  end
203
203
  # Returns hash object containing info about persistent oats internal variables
204
204
  # for the complete oats execution. Contents of Oats.context are also persisted into
data/lib/oats/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oats
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  execution:
3
- yml_handler: xl/keywordsDriver.rb
3
+ yml_handler: examples/gui/keywords/keywordsDriver.rb
4
4
 
5
5
  test_files:
6
- - xl/keywordsTC1.yml
6
+ - examples/gui/keywords/keywordsTC1.yml
7
7
 
8
8
  keywords:
9
9
  class: SampleXlLists # Class file containing methods for each keyword
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oats
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 0.0.9
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Levent Atasoy
@@ -87,7 +87,6 @@ files:
87
87
  - .gitignore
88
88
  - .rvmrc
89
89
  - Gemfile
90
- - Gemfile.lock
91
90
  - README.txt
92
91
  - Rakefile
93
92
  - bin/agent
@@ -97,60 +96,8 @@ files:
97
96
  - doc/COPYING
98
97
  - doc/LICENSE
99
98
  - doc/OATS_Framework.doc
100
- - doc/classes/ApplicationLogs.html
101
- - doc/classes/Campaign.html
102
- - doc/classes/CommandlineOptions.html
103
- - doc/classes/Driver.html
104
- - doc/classes/Hash.html
105
- - doc/classes/Ide.html
106
- - doc/classes/MapSelenium.html
107
- - doc/classes/Net.html
108
- - doc/classes/Oats.html
109
- - doc/classes/Oats/OatsFilterError.html
110
- - doc/classes/OatsAssertError.html
111
- - doc/classes/OatsBadInput.html
112
- - doc/classes/OatsData.html
113
- - doc/classes/OatsError.html
114
- - doc/classes/OatsExit.html
115
- - doc/classes/OatsLock.html
116
- - doc/classes/OatsMain.html
117
- - doc/classes/OatsMysqlError.html
118
- - doc/classes/OatsMysqlMissingInput.html
119
- - doc/classes/OatsReportError.html
120
- - doc/classes/OatsSetupError.html
121
- - doc/classes/OatsTestError.html
122
- - doc/classes/OatsTestExit.html
123
- - doc/classes/OatsTestLocateError.html
124
- - doc/classes/OatsVerifyError.html
125
- - doc/classes/Ragent.html
126
- - doc/classes/Rclient.html
127
- - doc/classes/Report.html
128
- - doc/classes/Reports.html
129
- - doc/classes/RestApi.html
130
- - doc/classes/RhttpClient.html
131
- - doc/classes/Rimap.html
132
- - doc/classes/Rmysql.html
133
- - doc/classes/Roptions.html
134
- - doc/classes/Rselenium.html
135
- - doc/classes/Rssh.html
136
- - doc/classes/Runnable.html
137
- - doc/classes/SFTriggers.html
138
- - doc/classes/Selenium.html
139
- - doc/classes/Selenium/Client.html
140
- - doc/classes/Selenium/Client/Driver.html
141
- - doc/classes/SystemCapture.html
142
- - doc/classes/TestCase.html
143
- - doc/classes/TestData.html
144
- - doc/classes/TestList.html
145
- - doc/classes/Tools.html
146
- - doc/classes/Util.html
147
- - doc/classes/Variation.html
148
- - doc/fr_class_index.html
149
- - doc/fr_method_index.html
150
- - doc/index.html
151
99
  - doc/oats_httpd.conf
152
100
  - doc/oats_user.yml
153
- - doc/rdoc-style.css
154
101
  - lib/deep_merge/.gitignore
155
102
  - lib/deep_merge/core.rb
156
103
  - lib/deep_merge/deep_merge.rb
@@ -201,7 +148,6 @@ files:
201
148
  - oats_tests/examples/core/ok_verify.rb
202
149
  - oats_tests/examples/core/ok_verify.rb_ok/out/myfile.txt
203
150
  - oats_tests/examples/core/ok_verify.rb_ok/out/myfile2.txt
204
- - oats_tests/examples/core/ok_verify.rb_ok/rats_test.log
205
151
  - oats_tests/examples/core/unexpectedException.rb
206
152
  - oats_tests/examples/examples.yml
207
153
  - oats_tests/examples/gui/guiExamples.yml
data/Gemfile.lock DELETED
@@ -1,60 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- oats (0.0.7)
5
- em-http-request
6
- json
7
- log4r
8
- net-http-persistent
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- remote: http://rubygems.org/
13
- specs:
14
- addressable (2.2.8)
15
- childprocess (0.3.2)
16
- ffi (~> 1.0.6)
17
- cookiejar (0.3.0)
18
- em-http-request (1.0.2)
19
- addressable (>= 2.2.3)
20
- cookiejar
21
- em-socksify
22
- eventmachine (>= 1.0.0.beta.4)
23
- http_parser.rb (>= 0.5.3)
24
- em-socksify (0.2.0)
25
- eventmachine (>= 1.0.0.beta.4)
26
- eventmachine (1.0.0.beta.4)
27
- ffi (1.0.11)
28
- http_parser.rb (0.5.3)
29
- json (1.7.3)
30
- libwebsocket (0.1.3)
31
- addressable
32
- log4r (1.1.10)
33
- mime-types (1.18)
34
- multi_json (1.3.5)
35
- net-http-persistent (2.6)
36
- nokogiri (1.5.2)
37
- rest-client (1.6.7)
38
- mime-types (>= 1.16)
39
- ruby-ole (1.2.11.3)
40
- rubyzip (0.9.8)
41
- selenium-webdriver (2.21.2)
42
- childprocess (>= 0.2.5)
43
- ffi (~> 1.0)
44
- libwebsocket (~> 0.1.3)
45
- multi_json (~> 1.0)
46
- rubyzip
47
- spreadsheet (0.7.1)
48
- ruby-ole (>= 1.0)
49
- watir-webdriver (0.5.8)
50
- selenium-webdriver (>= 2.18.0)
51
-
52
- PLATFORMS
53
- ruby
54
-
55
- DEPENDENCIES
56
- nokogiri
57
- oats!
58
- rest-client
59
- spreadsheet
60
- watir-webdriver
@@ -1,239 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: ApplicationLogs</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">ApplicationLogs</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/application_logs_rb.html">
59
- lib/application_logs.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- Returns all the matching IPs from the listed logs
84
- </p>
85
-
86
- </div>
87
-
88
-
89
- </div>
90
-
91
- <div id="method-list">
92
- <h3 class="section-bar">Methods</h3>
93
-
94
- <div class="name-list">
95
- <a href="#M000103">new</a>&nbsp;&nbsp;
96
- <a href="#M000102">new_errors</a>&nbsp;&nbsp;
97
- <a href="#M000104">new_errors</a>&nbsp;&nbsp;
98
- <a href="#M000107">set_ip</a>&nbsp;&nbsp;
99
- <a href="#M000106">set_plink_cmd_params</a>&nbsp;&nbsp;
100
- <a href="#M000105">tail_errors</a>&nbsp;&nbsp;
101
- </div>
102
- </div>
103
-
104
- </div>
105
-
106
-
107
- <!-- if includes -->
108
-
109
- <div id="section">
110
-
111
-
112
- <div id="constants-list">
113
- <h3 class="section-bar">Constants</h3>
114
-
115
- <div class="name-list">
116
- <table summary="Constants">
117
- <tr class="top-aligned-row context-row">
118
- <td class="context-item-name">PLINK_TIMEOUT</td>
119
- <td>=</td>
120
- <td class="context-item-value">5</td>
121
- </tr>
122
- </table>
123
- </div>
124
- </div>
125
-
126
-
127
-
128
-
129
-
130
-
131
- <!-- if method_list -->
132
- <div id="methods">
133
- <h3 class="section-bar">Public Class methods</h3>
134
-
135
- <div id="method-M000103" class="method-detail">
136
- <a name="M000103"></a>
137
-
138
- <div class="method-heading">
139
- <a href="ApplicationLogs.src/M000103.html" target="Code" class="method-signature"
140
- onclick="popupCode('ApplicationLogs.src/M000103.html');return false;">
141
- <span class="method-name">new</span><span class="method-args">(host,logs)</span>
142
- </a>
143
- </div>
144
-
145
- <div class="method-description">
146
- </div>
147
- </div>
148
-
149
- <div id="method-M000102" class="method-detail">
150
- <a name="M000102"></a>
151
-
152
- <div class="method-heading">
153
- <a href="ApplicationLogs.src/M000102.html" target="Code" class="method-signature"
154
- onclick="popupCode('ApplicationLogs.src/M000102.html');return false;">
155
- <span class="method-name">new_errors</span><span class="method-args">(initial = false)</span>
156
- </a>
157
- </div>
158
-
159
- <div class="method-description">
160
- <p>
161
- Call returns only errors occurring after the previous call.
162
- </p>
163
- </div>
164
- </div>
165
-
166
- <div id="method-M000107" class="method-detail">
167
- <a name="M000107"></a>
168
-
169
- <div class="method-heading">
170
- <a href="ApplicationLogs.src/M000107.html" target="Code" class="method-signature"
171
- onclick="popupCode('ApplicationLogs.src/M000107.html');return false;">
172
- <span class="method-name">set_ip</span><span class="method-args">()</span>
173
- </a>
174
- </div>
175
-
176
- <div class="method-description">
177
- </div>
178
- </div>
179
-
180
- <div id="method-M000106" class="method-detail">
181
- <a name="M000106"></a>
182
-
183
- <div class="method-heading">
184
- <a href="ApplicationLogs.src/M000106.html" target="Code" class="method-signature"
185
- onclick="popupCode('ApplicationLogs.src/M000106.html');return false;">
186
- <span class="method-name">set_plink_cmd_params</span><span class="method-args">(from_tail = nil)</span>
187
- </a>
188
- </div>
189
-
190
- <div class="method-description">
191
- </div>
192
- </div>
193
-
194
- <div id="method-M000105" class="method-detail">
195
- <a name="M000105"></a>
196
-
197
- <div class="method-heading">
198
- <a href="ApplicationLogs.src/M000105.html" target="Code" class="method-signature"
199
- onclick="popupCode('ApplicationLogs.src/M000105.html');return false;">
200
- <span class="method-name">tail_errors</span><span class="method-args">()</span>
201
- </a>
202
- </div>
203
-
204
- <div class="method-description">
205
- <p>
206
- Tails logs continuously.
207
- </p>
208
- </div>
209
- </div>
210
-
211
- <h3 class="section-bar">Public Instance methods</h3>
212
-
213
- <div id="method-M000104" class="method-detail">
214
- <a name="M000104"></a>
215
-
216
- <div class="method-heading">
217
- <a href="ApplicationLogs.src/M000104.html" target="Code" class="method-signature"
218
- onclick="popupCode('ApplicationLogs.src/M000104.html');return false;">
219
- <span class="method-name">new_errors</span><span class="method-args">()</span>
220
- </a>
221
- </div>
222
-
223
- <div class="method-description">
224
- </div>
225
- </div>
226
-
227
-
228
- </div>
229
-
230
-
231
- </div>
232
-
233
-
234
- <div id="validator-badges">
235
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
236
- </div>
237
-
238
- </body>
239
- </html>