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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
fa5b0793
Commit
fa5b0793
authored
Sep 04, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5TypeFunctionalTestCase: run on selenium server
parent
17d4bf45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+14
-3
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
fa5b0793
...
...
@@ -171,10 +171,20 @@ class FunctionalTestRunner:
if
firefox_bin
:
geckodriver
=
os
.
path
.
join
(
os
.
path
.
dirname
(
firefox_bin
),
'geckodriver'
)
kw
.
update
(
firefox_binary
=
firefox_bin
,
executable_path
=
geckodriver
)
#browser = webdriver.Firefox(**kw)
from
selenium.webdriver.common.desired_capabilities
import
DesiredCapabilities
dc
=
DesiredCapabilities
.
SAFARI
.
copy
()
dc
=
DesiredCapabilities
.
FIREFOX
.
copy
()
dc
=
DesiredCapabilities
.
CHROME
.
copy
()
browser
=
webdriver
.
Remote
(
command_executor
=
'http://10.0.30.235:4444/wd/hub'
,
desired_capabilities
=
DesiredCapabilities
.
FIREFOX
)
#command_executor='http://192.168.2.1:4444/wd/hub',
command_executor
=
'http://10.0.30.235:4444/wd/hub'
,
desired_capabilities
=
dc
)
start_time
=
time
.
time
()
browser
.
get
(
self
.
_getTestURL
())
...
...
@@ -183,6 +193,7 @@ class FunctionalTestRunner:
)))
# XXX No idea how to wait for the iframe content to be loaded
time
.
sleep
(
5
)
import
pdb
;
pdb
.
set_trace
()
# Count number of test to be executed
test_count
=
browser
.
execute_script
(
"return document.getElementById('testSuiteFrame').contentDocument.querySelector('tbody').children.length"
...
...
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