lopata 0.1.29 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lopata/observers/web_logger.rb +1 -1
- data/lib/lopata/scenario.rb +5 -3
- data/lib/lopata/step.rb +11 -1
- data/lib/lopata/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd10597360d256e8248ba8899505bb816253d71168673eb307d7fa36755746dd
|
4
|
+
data.tar.gz: 44b27e90f46875960b284b5375b38025ed6eebf763840db706fac0d88c336d2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb233b912d322c8ac39f61afb51fa2401bf5cfd8d50c09fee0680044698287693096daf58f6301d32063ca1a213e4600e972d8a61bafcf4c4b08e24f0043c45c
|
7
|
+
data.tar.gz: 466c0fd57affc0d748932d632d36c0c7728dfadd228ccf599db581d52f25be9672f6e3f27b918899206c01a5fd564f30aa40e8ed19d1c69a532e07e10f794da3
|
@@ -58,7 +58,7 @@ module Lopata
|
|
58
58
|
request = { status: status, steps: steps, launch: { id: @launch_id, finished: finished } }
|
59
59
|
test = test_id(scenario)
|
60
60
|
post("/tests/#{test}/attempts.json", body: request)
|
61
|
-
rescue SocketError => e
|
61
|
+
rescue SocketError, Timeout::Error => e
|
62
62
|
# Ignore network problems. Continue with next scenario when cannot log results.
|
63
63
|
puts e.message
|
64
64
|
puts e.backtrace
|
data/lib/lopata/scenario.rb
CHANGED
@@ -68,6 +68,7 @@ class Lopata::Scenario
|
|
68
68
|
def initialize(title, metadata = {})
|
69
69
|
@title = title
|
70
70
|
@base_metadata = metadata
|
71
|
+
@top = Lopata::GroupExecution.new(Lopata::TopStep.new(title, metadata: base_metadata), nil, steps: [])
|
71
72
|
setup
|
72
73
|
end
|
73
74
|
|
@@ -82,7 +83,10 @@ class Lopata::Scenario
|
|
82
83
|
end
|
83
84
|
|
84
85
|
def run
|
85
|
-
|
86
|
+
unless @scenario # for second run if need
|
87
|
+
setup
|
88
|
+
top.reset_status
|
89
|
+
end
|
86
90
|
world.notify_observers(:scenario_started, self)
|
87
91
|
run_step(top)
|
88
92
|
world.notify_observers(:scenario_finished, self)
|
@@ -91,7 +95,6 @@ class Lopata::Scenario
|
|
91
95
|
|
92
96
|
def setup
|
93
97
|
@scenario = Lopata::Scenario.new(self)
|
94
|
-
@top = Lopata::GroupExecution.new(Lopata::TopStep.new(title, metadata: base_metadata), nil, steps: [])
|
95
98
|
@current_step = @top
|
96
99
|
end
|
97
100
|
|
@@ -164,7 +167,6 @@ class Lopata::Scenario
|
|
164
167
|
|
165
168
|
def cleanup
|
166
169
|
@scenario = nil
|
167
|
-
@top = nil
|
168
170
|
@current_step = nil
|
169
171
|
end
|
170
172
|
end
|
data/lib/lopata/step.rb
CHANGED
@@ -113,8 +113,12 @@ module Lopata
|
|
113
113
|
def initialize(step, parent, condition: nil)
|
114
114
|
@step = step
|
115
115
|
@parent = parent
|
116
|
-
@status = :not_runned
|
117
116
|
@condition = condition
|
117
|
+
reset_status
|
118
|
+
end
|
119
|
+
|
120
|
+
def reset_status
|
121
|
+
@status = :not_runned
|
118
122
|
end
|
119
123
|
|
120
124
|
def group?
|
@@ -205,6 +209,12 @@ module Lopata
|
|
205
209
|
@let_methods = {}
|
206
210
|
end
|
207
211
|
|
212
|
+
def reset_status
|
213
|
+
super
|
214
|
+
return unless @steps
|
215
|
+
@steps.each(&:reset_status)
|
216
|
+
end
|
217
|
+
|
208
218
|
def group?
|
209
219
|
true
|
210
220
|
end
|
data/lib/lopata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lopata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Volochnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '9.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '9.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: aruba
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.2'
|
83
83
|
description: Functional acceptance testing
|
84
84
|
email: alexey.volochnev@gmail.com
|
85
85
|
executables:
|
@@ -138,5 +138,5 @@ requirements: []
|
|
138
138
|
rubygems_version: 3.2.15
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
|
-
summary: lopata-0.1.
|
141
|
+
summary: lopata-0.1.31
|
142
142
|
test_files: []
|