Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
telecom
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Roque
telecom
Commits
bdb719a8
Commit
bdb719a8
authored
May 24, 2018
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scalability: test suite gives run scalability command
parent
7f02b530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
6 deletions
+41
-6
scalability_test/__init__.py
scalability_test/__init__.py
+41
-6
No files found.
scalability_test/__init__.py
View file @
bdb719a8
...
...
@@ -10,18 +10,23 @@ BT5 = os.path.join(os.path.split(HERE)[0],'bt5')
ZOPE_USER_FAMILY
=
"user"
ZOPE_ACTIVITIES_FAMILIY
=
"activities"
PERSON_KEY
=
"person_per_hour"
PERFORMANCE_RUNNER_SCRIPT
=
"performance_tester_erp5"
SCALABILITY_RUNNER_SCRIPT
=
"runScalabilityTestSuite"
class
WendelinERP5_scalability
():
def
getTestList
(
self
):
component_re
=
re
.
compile
(
".*/([^/]+)/TestTemplateItem/portal_components"
"/test
\
.[^.]+
\
.([^.]+).py$"
)
return
[
'%s:%s'
%
(
x
.
group
(
1
),
x
.
group
(
2
))
\
for
x
in
[
component_re
.
match
(
y
)
for
y
in
glob
.
glob
(
os
.
path
.
join
(
BT5
,
'*'
,
'*'
,
'*'
,
'test.erp5.test*.py'
))]]
return
[
'createPerson'
]
def
getTestPath
(
self
):
return
'/'
return
'example/'
# def getTestList(self):
# component_re = re.compile(".*/([^/]+)/TestTemplateItem/portal_components"
# "/test\.[^.]+\.([^.]+).py$")
# return ['%s:%s' % (x.group(1), x.group(2)) \
# for x in [component_re.match(y) for y in glob.glob(os.path.join(
# BT5, '*', '*', '*', 'test.erp5.test*.py'))]]
def
getUsersFilePath
(
self
):
return
'example/scalabilityUsers'
...
...
@@ -78,3 +83,33 @@ class WendelinERP5_scalability():
if
metric_json
[
PERSON_KEY
]
>
output_json
[
PERSON_KEY
]:
output_json
[
PERSON_KEY
]
=
metric_json
[
PERSON_KEY
]
return
"Person: %s doc/hour"
%
str
(
output_json
[
PERSON_KEY
])
def
getScalabilityRunCommand
(
self
,
software_bin_directory
,
instance_url
,
bootstrap_password
,
test_result_path
,
revision
,
current_test_data
,
test_node_title
,
test_suite_master_url
,
test_suite
,
repo_location
,
log_path
,
metric_url
):
runner
=
software_bin_directory
+
PERFORMANCE_RUNNER_SCRIPT
scalabilityRunner
=
software_bin_directory
+
SCALABILITY_RUNNER_SCRIPT
return
[
scalabilityRunner
,
"--instance-url"
,
instance_url
,
"--bootstrap-password"
,
bootstrap_password
,
"--test-result-path"
,
test_result_path
,
"--revision"
,
revision
,
"--current-test-data"
,
current_test_data
,
"--node-title"
,
test_node_title
,
"--test-suite-master-url"
,
test_suite_master_url
,
"--test-suite"
,
test_suite
,
"--runner-path"
,
runner
,
"--repo-location"
,
repo_location
,
"--log-path"
,
log_path
,
"--metric-url"
,
metric_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