qase-robotframework 3.2.2__tar.gz → 3.2.4__tar.gz

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 (18) hide show
  1. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/PKG-INFO +3 -3
  2. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/pyproject.toml +2 -2
  3. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/listener.py +11 -2
  4. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/method.py +1 -1
  5. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase_robotframework.egg-info/PKG-INFO +3 -3
  6. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/LICENSE +0 -0
  7. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/README.md +0 -0
  8. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/setup.cfg +0 -0
  9. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/__init__.py +0 -0
  10. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/filter.py +0 -0
  11. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/models.py +0 -0
  12. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/plugin.py +0 -0
  13. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/tag_parser.py +0 -0
  14. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase/robotframework/types.py +0 -0
  15. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase_robotframework.egg-info/SOURCES.txt +0 -0
  16. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase_robotframework.egg-info/dependency_links.txt +0 -0
  17. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase_robotframework.egg-info/requires.txt +0 -0
  18. {qase_robotframework-3.2.2 → qase_robotframework-3.2.4}/src/qase_robotframework.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: qase-robotframework
3
- Version: 3.2.2
3
+ Version: 3.2.4
4
4
  Summary: Qase Robot Framework Plugin
5
5
  Author-email: Qase Team <support@qase.io>
6
6
  License: Apache License
@@ -205,7 +205,7 @@ License: Apache License
205
205
  See the License for the specific language governing permissions and
206
206
  limitations under the License.
207
207
 
208
- Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-robotframework
208
+ Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/main/qase-robotframework
209
209
  Classifier: Development Status :: 5 - Production/Stable
210
210
  Classifier: Framework :: Robot Framework
211
211
  Classifier: Programming Language :: Python
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qase-robotframework"
7
- version = "3.2.2"
7
+ version = "3.2.4"
8
8
  description = "Qase Robot Framework Plugin"
9
9
  readme = "README.md"
10
10
  authors = [{name = "Qase Team", email = "support@qase.io"}]
@@ -14,7 +14,7 @@ classifiers = [
14
14
  "Framework :: Robot Framework",
15
15
  "Programming Language :: Python",
16
16
  ]
17
- urls = {"Homepage" = "https://github.com/qase-tms/qase-python/tree/master/qase-robotframework"}
17
+ urls = {"Homepage" = "https://github.com/qase-tms/qase-python/tree/main/qase-robotframework"}
18
18
  requires-python = ">=3.7"
19
19
  dependencies = [
20
20
  "qase-python-commons~=3.2.1",
@@ -23,6 +23,10 @@ def get_pool_id():
23
23
  return BuiltIn().get_variable_value('${PABOTQUEUEINDEX}', None)
24
24
 
25
25
 
26
+ def get_last_level_flag():
27
+ return BuiltIn().get_variable_value('${PABOTISLASTEXECUTIONINPOOL}', None)
28
+
29
+
26
30
  class Listener:
27
31
  ROBOT_LISTENER_API_VERSION = 3
28
32
 
@@ -34,6 +38,7 @@ class Listener:
34
38
  self.runtime = QaseRuntimeSingleton.get_instance()
35
39
  self.tests = {}
36
40
  self.pabot_index = None
41
+ self.last_level_flag = None
37
42
 
38
43
  if config.config.debug:
39
44
  logger.setLevel(logging.DEBUG)
@@ -46,6 +51,7 @@ class Listener:
46
51
 
47
52
  def start_suite(self, suite, result):
48
53
  self.pabot_index = get_pool_id()
54
+ self.last_level_flag = get_last_level_flag()
49
55
  if self.pabot_index is not None:
50
56
  try:
51
57
  if int(self.pabot_index) == 0:
@@ -134,8 +140,8 @@ class Listener:
134
140
  )
135
141
 
136
142
  def close(self):
137
- if self.pabot_index is not None:
138
- if int(self.pabot_index) == 0:
143
+ if self.last_level_flag is not None:
144
+ if int(self.last_level_flag) == 1:
139
145
  Listener.drop_run_id()
140
146
  else:
141
147
  self.reporter.complete_worker()
@@ -167,6 +173,9 @@ class Listener:
167
173
  steps = []
168
174
 
169
175
  for i in range(len(result.body)):
176
+ if hasattr(result.body[i], "type") and result.body[i].type == "MESSAGE":
177
+ continue
178
+
170
179
  if hasattr(result.body[i], "type") and result.body[i].type == "IF/ELSE ROOT":
171
180
  condition_steps = self.__parse_condition_steps(result.body[i])
172
181
  for step in condition_steps:
@@ -11,7 +11,7 @@ class qase:
11
11
 
12
12
  @staticmethod
13
13
  def attach(
14
- self, *files: Union[str, Tuple[str, str], Tuple[bytes, str, str]]
14
+ *files: Union[str, Tuple[str, str], Tuple[bytes, str, str]]
15
15
  ):
16
16
  """
17
17
  Attach files to test results
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: qase-robotframework
3
- Version: 3.2.2
3
+ Version: 3.2.4
4
4
  Summary: Qase Robot Framework Plugin
5
5
  Author-email: Qase Team <support@qase.io>
6
6
  License: Apache License
@@ -205,7 +205,7 @@ License: Apache License
205
205
  See the License for the specific language governing permissions and
206
206
  limitations under the License.
207
207
 
208
- Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-robotframework
208
+ Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/main/qase-robotframework
209
209
  Classifier: Development Status :: 5 - Production/Stable
210
210
  Classifier: Framework :: Robot Framework
211
211
  Classifier: Programming Language :: Python