Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
slapos-mynij-dev
Commits
bff74b2e
Commit
bff74b2e
authored
Oct 31, 2019
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/erp5: fix test count incorrect issue
parent
73e93d60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+1
-1
stack/erp5/run-zelenium-test.py.in
stack/erp5/run-zelenium-test.py.in
+9
-16
No files found.
stack/erp5/buildout.hash.cfg
View file @
bff74b2e
...
...
@@ -66,7 +66,7 @@ md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
[template-run-zelenium]
filename = run-zelenium-test.py.in
md5sum =
99004d9571b2574bb05058140d170013
md5sum =
cc19560b9400cecbd23064d55c501eec
[template]
filename = instance.cfg.in
...
...
stack/erp5/run-zelenium-test.py.in
View file @
bff74b2e
...
...
@@ -155,28 +155,21 @@ def main():
'command': url,
'stdout': agent,
'stderr': '',
'html_test_result': 'Not Executed due to s
aucelabs
related error'
'html_test_result': 'Not Executed due to s
elenium server
related error'
}
else:
skip_count =
success_count =
error_count = 0
skip_count = error_count = 0
test_table = tr[1].xpath('.//table')[0]
test_tbody = tr[1].xpath('.//tbody')[0]
tr_count = len(test_tbody)
for tr in test_tbody:
# print etree.tostring(tr).split('\n')[0]
status = tr.attrib.get('class')
if status is None or 'status_done' in status:
skip_count += 1
elif 'status_passed' in status:
success_count += 1
elif 'status_failed' in status:
error_count += 1
status = tr.attrib.get('class')
if status is None or 'status_done' in status:
skip_count = 1
elif 'status_failed' in status:
error_count = 1
test_line_dict[test_name] = {
'test_count':
tr_count
,
'test_count':
1
,
'error_count': error_count,
'failure_count':
tr_count - (skip_count + success_count + error_count)
,
'failure_count':
0
,
'skip_count': skip_count,
'duration': test_execution_duration,
'command': url,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment