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
1=== modified file 'src/sst/browsers.py'
2--- src/sst/browsers.py 2013-08-14 13:26:05 +0000
3+++ src/sst/browsers.py 2014-11-17 10:39:42 +0000
4@@ -69,13 +69,13 @@
5
6 webdriver_class = webdriver.Remote
7
8- def __init__(self, capabilities, remote_url):
9+ def __init__(self, remote_url, capabilities):
10 super(RemoteBrowserFactory, self).__init__()
11 self.capabilities = capabilities
12 self.remote_url = remote_url
13
14 def browser(self):
15- return self.webdriver_class(self.capabilities, self.remote_url)
16+ return self.webdriver_class(self.remote_url, self.capabilities)
17
18
19 # MISSINGTEST: Exercise this class -- vila 2013-04-11
20
21=== modified file 'src/sst/scripts/remote.py'
22--- src/sst/scripts/remote.py 2013-08-14 13:26:05 +0000
23+++ src/sst/scripts/remote.py 2014-11-17 10:39:42 +0000
24@@ -39,16 +39,18 @@
25 command.reset_directory(results_directory)
26
27 browser_factory = browsers.RemoteBrowserFactory(
28+ cmd_opts.webdriver_remote_url,
29 {
30 "browserName": cmd_opts.browser_type.lower(),
31 "platform": cmd_opts.browser_platform.upper(),
32 "version": cmd_opts.browser_version,
33- "name": cmd_opts.session_name},
34- cmd_opts.webdriver_remote_url)
35+ "name": cmd_opts.session_name
36+ }
37+ )
38 runtests.runtests(
39 args, results_directory, sys.stdout,
40 test_dir=cmd_opts.dir_name,
41- count_only=cmd_opts.count_only,
42+ collect_only=cmd_opts.collect_only,
43 report_format=cmd_opts.report_format,
44 browser_factory=browser_factory,
45 shared_directory=cmd_opts.shared_directory,

Subscribers

People subscribed via source and target branches