Merge lp:~kamyanskiy/selenium-simple-test/selenium-grid-on-jenkinds into lp:selenium-simple-test

Proposed by Alexander Kamyanskiy
Status: Needs review
Proposed branch: lp:~kamyanskiy/selenium-simple-test/selenium-grid-on-jenkinds
Merge into: lp:selenium-simple-test
Diff against target: 45 lines (+7/-5)
2 files modified
src/sst/browsers.py (+2/-2)
src/sst/scripts/remote.py (+5/-3)
To merge this branch: bzr merge lp:~kamyanskiy/selenium-simple-test/selenium-grid-on-jenkinds
Reviewer Review Type Date Requested Status
Vincent Ladeuil (community) Approve
Leo Arias Pending
Review via email: mp+241935@code.launchpad.net

Commit message

Fix sst-remote runner, bug #1289990

To post a comment you must log in.
441. By Alexander Kamyanskiy

fix misstype iself to self

Revision history for this message
Vincent Ladeuil (vila) wrote :

Thanks for working on this !

I think the deeper issue here is that we have no regression tests for that code.

Since this improves the current situation though, we should land this fix anyway and address the testing issue in https://code.launchpad.net/~canonical-platform-qa/selenium-simple-test/fix1394741-remote_browser_init/+merge/242428

review: Approve
Revision history for this message
skuli.arnlaugsson (skuli-arnlaugsson) wrote :

Are there any updates to this Pull Request?

I am trying to make Selenium Simple Test work with PhantomJS and this appears to be a problem for that to work. Interested in bumping this.

Unmerged revisions

441. By Alexander Kamyanskiy

fix misstype iself to self

440. By Alexander Kamyanskiy

add changes to fix sst-remote

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/sst/browsers.py'
--- src/sst/browsers.py 2013-08-14 13:26:05 +0000
+++ src/sst/browsers.py 2014-11-17 10:39:42 +0000
@@ -69,13 +69,13 @@
6969
70 webdriver_class = webdriver.Remote70 webdriver_class = webdriver.Remote
7171
72 def __init__(self, capabilities, remote_url):72 def __init__(self, remote_url, capabilities):
73 super(RemoteBrowserFactory, self).__init__()73 super(RemoteBrowserFactory, self).__init__()
74 self.capabilities = capabilities74 self.capabilities = capabilities
75 self.remote_url = remote_url75 self.remote_url = remote_url
7676
77 def browser(self):77 def browser(self):
78 return self.webdriver_class(self.capabilities, self.remote_url)78 return self.webdriver_class(self.remote_url, self.capabilities)
7979
8080
81# MISSINGTEST: Exercise this class -- vila 2013-04-1181# MISSINGTEST: Exercise this class -- vila 2013-04-11
8282
=== modified file 'src/sst/scripts/remote.py'
--- src/sst/scripts/remote.py 2013-08-14 13:26:05 +0000
+++ src/sst/scripts/remote.py 2014-11-17 10:39:42 +0000
@@ -39,16 +39,18 @@
39 command.reset_directory(results_directory)39 command.reset_directory(results_directory)
4040
41 browser_factory = browsers.RemoteBrowserFactory(41 browser_factory = browsers.RemoteBrowserFactory(
42 cmd_opts.webdriver_remote_url,
42 {43 {
43 "browserName": cmd_opts.browser_type.lower(),44 "browserName": cmd_opts.browser_type.lower(),
44 "platform": cmd_opts.browser_platform.upper(),45 "platform": cmd_opts.browser_platform.upper(),
45 "version": cmd_opts.browser_version,46 "version": cmd_opts.browser_version,
46 "name": cmd_opts.session_name},47 "name": cmd_opts.session_name
47 cmd_opts.webdriver_remote_url)48 }
49 )
48 runtests.runtests(50 runtests.runtests(
49 args, results_directory, sys.stdout,51 args, results_directory, sys.stdout,
50 test_dir=cmd_opts.dir_name,52 test_dir=cmd_opts.dir_name,
51 count_only=cmd_opts.count_only,53 collect_only=cmd_opts.collect_only,
52 report_format=cmd_opts.report_format,54 report_format=cmd_opts.report_format,
53 browser_factory=browser_factory,55 browser_factory=browser_factory,
54 shared_directory=cmd_opts.shared_directory,56 shared_directory=cmd_opts.shared_directory,

Subscribers

People subscribed via source and target branches