testmgr 0.2.0.pre → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0aacd3e9a5b346fa16f03a59a8cbc281ececc21d
4
- data.tar.gz: c48ada551fb44a2490f15efc2b7ec861a214e8f9
3
+ metadata.gz: 7f9530479cbe48581dec9f1f5560504e86d24ecf
4
+ data.tar.gz: 7907c57a9d048e27dcb1c50cc449cdcc3bcd1edf
5
5
  SHA512:
6
- metadata.gz: 2a6195981000659fc6ada8d67afd16680bfc1d75a36bf0f182fd5a28b87d43734563f6124d7ffe4245beb68c9f2560b1b78e080205bfab5fd953b7ebf6a10f1b
7
- data.tar.gz: b280a20d6ceca9a02d1d7d50c10f7dedcb969a58d15cbd92a26a09d34d2c2a07e80c554ccdd5641e21b6166b86080d0bc5cc0de5aa059cea9f806cb96d3c1131
6
+ metadata.gz: 203b5bd3e1086eafaa1c7c743ecd61cd960e320e404af023fb71c527cfa14569801dad3395b88b62d09f507fa796ffb26cea7d19cbb80419d1dcca6433d0aec0
7
+ data.tar.gz: 403cbcd4075d3f203d1e5af2eea720a4ebd01e6cfd50e10b38e485ec1f93c08b4d74a011979374b40fd84142caa5917990e0fe90f12ad143371c81251cfacf72
@@ -26,7 +26,7 @@ module Testmgr
26
26
 
27
27
  def add(rc, desc)
28
28
 
29
- puts __FILE__ + (__LINE__).to_s + " TestCase.add(#{rc}, #{desc})" if Testmgr::TestReport.instance.verbose
29
+ puts __FILE__ + (__LINE__).to_s + " TestCase.add(#{rc}, #{desc})"
30
30
  @assertions << { :rc => rc, :description => desc }
31
31
 
32
32
  if rc.nil?
@@ -8,8 +8,6 @@ module Testmgr
8
8
  class TestReport
9
9
  include Singleton
10
10
 
11
- DEFAULT_REQ='__TBD__'
12
-
13
11
  attr_accessor :webApp
14
12
  attr_accessor :completed
15
13
  attr_accessor :description
@@ -18,20 +16,18 @@ class TestReport
18
16
  attr_accessor :test_list
19
17
  attr_accessor :browser_under_test
20
18
  attr_accessor :data_under_test
19
+ attr_accessor :drugUnderTest
21
20
  attr_accessor :worksheet_under_test
22
21
  attr_accessor :req_list
23
22
  attr_accessor :requirements
24
23
 
25
- attr_accessor :current_rec
26
24
 
27
- attr_accessor :verbose
28
- attr_accessor :generalUser
29
25
 
26
+ attr_accessor :generalUser
30
27
 
31
28
  def initialize()
32
- @verbose=false
29
+ puts 'TestReport.initialize()'
33
30
  @description=""
34
- @current_rec = { :req => DEFAULT_REQ, :tc => DEFAULT_REQ}
35
31
  @test_list = []
36
32
  @req_list = []
37
33
  @requirements=[]
@@ -42,51 +38,8 @@ class TestReport
42
38
 
43
39
  @webApp=nil
44
40
  @generalUser=GeneralUser.new()
45
- @moxywidgets={}
46
- end
47
-
48
- def verbose
49
- @verbose
50
- end
51
-
52
- def enableVerbose
53
- @verbose=true
54
- end
55
-
56
- def disableVerbose
57
- @verbose=false
58
- end
59
-
60
- def setCurrentReq(_r=DEFAULT_REQ)
61
- @current_rec[:req]=_r
62
- end
63
-
64
- def setCurrentRequirement(_r=DEFAULT_REQ)
65
- setReq(_r)
66
- end
67
-
68
- def getCurrentReq()
69
- @current_rec[:req]
70
- end
71
41
 
72
- def getCurrentRequirement()
73
- getReq()
74
- end
75
-
76
- def getCurrentTC()
77
- @current_rec[:tc]
78
- end
79
-
80
- def getCurrentTestCase()
81
- getTC()
82
- end
83
-
84
- def setCurrentTC(_t=DEFAULT_REQ)
85
- @current_rec[:tc]=_t
86
- end
87
-
88
- def setCurrentTestCase(_t=DEFAULT_REQ)
89
- setTC(_t)
42
+ @moxywidgets={}
90
43
  end
91
44
 
92
45
  def setDescription(s)
@@ -107,6 +60,22 @@ class TestReport
107
60
 
108
61
  @tStart=Time.now()
109
62
  @completed=false
63
+
64
+ # options=TestUtils.parseOptions()
65
+
66
+
67
+
68
+ # TestReport.instance.setEnvironment(options[:env].to_sym, options[:url])
69
+ # TestReport.instance.setBrowserUnderTest(options[:browser].to_sym)
70
+ # TestReport.instance.setDataUnderTest(options[:dut])
71
+ # TestReport.instance.setWorkSheet(options[:worksheet])
72
+ #TestReport.instance.setPatientWorkSheet(options[:patient_worksheet])
73
+ # @id_under_test=options[:id]
74
+ # GeneralUser
75
+ # TestReport.instance.setLoginPassword(options[:password])
76
+ # TestReport.instance.setLoginId(options[:userid])
77
+
78
+ # TestReport.instance.setPatientClassFile(options[:patient_class_file])
110
79
  end
111
80
 
112
81
  ##
@@ -118,6 +87,7 @@ class TestReport
118
87
 
119
88
 
120
89
  def setWebApp(w)
90
+ puts __FILE__ + (__LINE__).to_s + " setWebApp(#{w.class.to_s})"
121
91
  @webApp=w
122
92
  end
123
93
 
@@ -153,7 +123,11 @@ class TestReport
153
123
  end
154
124
 
155
125
 
126
+
127
+
128
+
156
129
  def setLoginId(s=nil)
130
+ puts __FILE__ + (__LINE__).to_s + " setLoginId(#{s.to_s})"
157
131
  @generalUser.setLoginId(s)
158
132
  end
159
133
 
@@ -260,7 +234,7 @@ class TestReport
260
234
  TestUtils.hitKey(__FILE__ + (__LINE__).to_s + " Test Fail : #{description.to_s}- HIT KEY")
261
235
  end
262
236
 
263
- puts __FILE__ + (__LINE__).to_s + " #{description.to_s} : #{rc.to_s}" if @verbose
237
+ puts __FILE__ + (__LINE__).to_s + " #{description.to_s} : #{rc.to_s}"
264
238
  @test_list.push({ :rc => rc, :description => description})
265
239
  rc
266
240
  end
@@ -278,12 +252,12 @@ class TestReport
278
252
  def execute(procs)
279
253
 
280
254
  begin
281
- puts __FILE__ + (__LINE__).to_s + " == execute() ==" if @verbose
255
+ puts __FILE__ + (__LINE__).to_s + " == execute() =="
282
256
 
283
257
  if procs.has_key?(:setup)
284
258
  procs[:setup].call
285
259
  else
286
- puts __FILE__ + (__LINE__).to_s + " | execute default setup()" if @verbose
260
+ puts __FILE__ + (__LINE__).to_s + " | execute default setup()"
287
261
  TestReport.instance.setup
288
262
  end
289
263
 
@@ -307,7 +281,7 @@ class TestReport
307
281
 
308
282
  end
309
283
 
310
- puts __FILE__ + (__LINE__).to_s + " == exit execute() ==" if @verbose
284
+ puts __FILE__ + (__LINE__).to_s + " == exit execute() =="
311
285
  end
312
286
 
313
287
 
@@ -1,3 +1,3 @@
1
1
  module Testmgr
2
- VERSION = "0.2.0.pre"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testmgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - h20dragon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-17 00:00:00.000000000 Z
11
+ date: 2016-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,12 +109,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>'
112
+ - - '>='
113
113
  - !ruby/object:Gem::Version
114
- version: 1.3.1
114
+ version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.6.2
117
+ rubygems_version: 2.4.7
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: General purpose test manager.