Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Dmitry Blinov
slapos
Commits
7842c41e
Commit
7842c41e
authored
Feb 21, 2017
by
Romain Courteaud
Committed by
Kazuhiko Shiozaki
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/jstestnode: Webdriver now uses geckodriver
parent
54d95d6a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
17 deletions
+8
-17
software/jstestnode/instance.cfg.in
software/jstestnode/instance.cfg.in
+0
-9
software/jstestnode/runTestSuite.in
software/jstestnode/runTestSuite.in
+6
-6
software/jstestnode/software.cfg
software/jstestnode/software.cfg
+2
-2
No files found.
software/jstestnode/instance.cfg.in
View file @
7842c41e
...
@@ -38,15 +38,6 @@ output = $${directory:bin}/runTestSuite
...
@@ -38,15 +38,6 @@ output = $${directory:bin}/runTestSuite
buildout-directory = $${buildout:directory}
buildout-directory = $${buildout:directory}
mode = 0700
mode = 0700
[firefox-instance]
recipe = slapos.cookbook:firefox
executable = firefox
runner-path = $${directory:bin}/$${:executable}
firefox-path = ${firefox:location}/firefox-slapos
prefsjs-path = $${directory:etc}/prefs.js
shell-path = ${dash:location}/bin/dash
tmp-path = $${xvfb-instance:tmp-path}
[xvfb-instance]
[xvfb-instance]
recipe = slapos.cookbook:xvfb
recipe = slapos.cookbook:xvfb
runner-path = $${directory:services}/xvfb
runner-path = $${directory:services}/xvfb
...
...
software/jstestnode/runTestSuite.in
View file @
7842c41e
...
@@ -13,11 +13,9 @@ from selenium.webdriver.common.by import By
...
@@ -13,11 +13,9 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support import expected_conditions as EC
# Put a 'firefox' executable in the path
os.environ['TMPDIR'] = '$${xvfb-instance:tmp-path}'
# otherwise, WebDriver refuses to start
os.environ['DISPLAY'] = ':0'
os.environ['PATH'] = '$${directory:bin}' + os.pathsep + os.environ['PATH']
FIREFOX_EXECUTABLE = '$${firefox-instance:executable}'
BASE_URL = 'http://[$${nginx-configuration:ip}]:$${nginx-configuration:port}/'
BASE_URL = 'http://[$${nginx-configuration:ip}]:$${nginx-configuration:port}/'
def main():
def main():
...
@@ -91,8 +89,10 @@ def main():
...
@@ -91,8 +89,10 @@ def main():
is_appium = False
is_appium = False
if args.target == 'firefox':
if args.target == 'firefox':
firefox_binary = webdriver.firefox.firefox_binary.FirefoxBinary(firefox_path=FIREFOX_EXECUTABLE)
firefox_capabilities = webdriver.common.desired_capabilities.DesiredCapabilities.FIREFOX
browser = webdriver.Firefox(firefox_binary=firefox_binary,
firefox_capabilities['marionette'] = True
firefox_capabilities['binary'] = '${firefox:location}/firefox-slapos'
browser = webdriver.Firefox(capabilities=firefox_capabilities,
executable_path='${firefox:location}/geckodriver')
executable_path='${firefox:location}/geckodriver')
elif args.target in ['iOS', 'Android']:
elif args.target in ['iOS', 'Android']:
# parameters for mobile emulators have different names then parameters for
# parameters for mobile emulators have different names then parameters for
...
...
software/jstestnode/software.cfg
View file @
7842c41e
...
@@ -25,7 +25,7 @@ parts =
...
@@ -25,7 +25,7 @@ parts =
[instance]
[instance]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
md5sum =
929a2b6cf6bb16e22e49984563547ca
9
md5sum =
7c907db5f803b03a218b49888a3a379
9
url = ${:_profile_base_location_}/instance.cfg.in
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
output = ${buildout:directory}/instance.cfg
mode = 0644
mode = 0644
...
@@ -107,7 +107,7 @@ mode = 0644
...
@@ -107,7 +107,7 @@ mode = 0644
[template-runTestSuite]
[template-runTestSuite]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/runTestSuite.in
url = ${:_profile_base_location_}/runTestSuite.in
md5sum =
86f557c39d865a2b2a16e31fcf41d69c
md5sum =
fcf15b2a90340e0afe8f8b9921a4ffae
output = ${buildout:directory}/runTestSuite.in
output = ${buildout:directory}/runTestSuite.in
mode = 0644
mode = 0644
...
...
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