Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Frederic Thoma
erp5
Commits
fd014995
Commit
fd014995
authored
Aug 13, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability: runScalabilityTestSuite: remove failed docs counting
parent
ddc2048e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+0
-21
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
fd014995
...
...
@@ -296,20 +296,6 @@ class ScalabilityLauncher(object):
for
file_path
in
file_path_list
:
number
=
number
+
sum
(
1
for
line
in
open
(
file_path
))
return
number
def
getFailedDocumentNumber
(
self
):
number
=
0
complete_scheme
=
os
.
path
.
join
(
self
.
__argumentNamespace
.
log_path
,
"%s*.csv"
%
LOG_FILE_PREFIX
)
file_path_list
=
glob
.
glob
(
complete_scheme
)
for
file_path
in
file_path_list
:
opened_file
=
open
(
file_path
,
'r'
)
lines
=
opened_file
.
readlines
()
for
line
in
lines
:
if
'-1'
in
line
:
number
=
number
+
1
opened_file
.
close
()
return
number
def
run
(
self
):
self
.
log
(
"Scalability Launcher started, with:"
)
...
...
@@ -396,8 +382,6 @@ class ScalabilityLauncher(object):
self
.
log
(
"Test Case %s is finish"
%
(
current_test
.
title
))
self
.
log
(
"Going to count the number of created documents"
)
time
.
sleep
(
120
)
# failed_document_number = self.getFailedDocumentNumber()
# created_document_number = self.getCreatedDocumentNumber() - failed_document_number
current_document_number
=
getCreatedDocumentNumberFromERP5
(
self
.
__argumentNamespace
.
erp5_url
,
self
.
log
)
created_document_number
=
current_document_number
-
previous_document_number
...
...
@@ -405,8 +389,6 @@ class ScalabilityLauncher(object):
self
.
log
(
"current_document_number: %d"
%
current_document_number
)
self
.
log
(
"created_document_number: %d"
%
created_document_number
)
failed_document_number
=
0
created_document_per_hour_number
=
(
(
float
(
created_document_number
)
*
60
*
60
)
/
float
(
test_duration
)
)
#log_contents = self.returnLogList()
...
...
@@ -426,12 +408,10 @@ class ScalabilityLauncher(object):
results
=
"created docs=%d
\
n
"
\
"failed docs=%d
\
n
"
\
"duration=%d
\
n
"
\
"number of tests=%d
\
n
"
\
%
(
created_document_number
,
failed_document_number
,
test_duration
,
len
(
test_suites
)
)
...
...
@@ -441,7 +421,6 @@ class ScalabilityLauncher(object):
self
.
log
(
"%s doc in %s secs = %s docs per hour"
%
(
created_document_number
,
test_duration
,
created_document_per_hour_number
))
test_result_line_test
.
stop
(
stdout
=
results
,
test_count
=
created_document_number
,
failure_count
=
failed_document_number
,
error_count
=
error_count
,
duration
=
test_duration
)
self
.
log
(
"Test Case Stopped"
)
...
...
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