[robotframework-seleniumlibrary] 4 new revisions pushed by pekka.klarck on 2012-05-04 11:42 GMT

1 view
Skip to first unread message

robotframework-...@googlecode.com

unread,
May 4, 2012, 7:43:25 AM5/4/12
to robotframework-se...@googlegroups.com
4 new revisions:

Revision: a7845294a129
Author: Pekka Klärck
Date: Fri May 4 04:35:58 2012
Log: Added default value for argument that can be None.
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=a7845294a129

Revision: c7f0ebed42d7
Author: Pekka Klärck
Date: Fri May 4 04:36:34 2012
Log: Proper sentense.
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=c7f0ebed42d7

Revision: f47a3e9a42fa
Author: Pekka Klärck
Date: Fri May 4 04:38:06 2012
Log: Better error if `Start Selenium Server` fails when Java is not
install...
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=f47a3e9a42fa

Revision: 349ea7ef8def
Author: Pekka Klärck
Date: Fri May 4 04:41:55 2012
Log: Automated merge with
https://robotframework-seleniumlibrary.googlecode...
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=349ea7ef8def

==============================================================================
Revision: a7845294a129
Author: Pekka Klärck
Date: Fri May 4 04:35:58 2012
Log: Added default value for argument that can be None.
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=a7845294a129

Modified:
/src/SeleniumLibrary/__init__.py

=======================================
--- /src/SeleniumLibrary/__init__.py Sun Aug 7 21:54:15 2011
+++ /src/SeleniumLibrary/__init__.py Fri May 4 04:35:58 2012
@@ -49,7 +49,7 @@
FIREFOX_TEMPLATE_ARG = '-firefoxProfileTemplate'


-def start_selenium_server(logfile, jarpath=None, *params):
+def start_selenium_server(logfile=None, jarpath=None, *params):
"""A hook to start the Selenium Server provided with SeleniumLibrary.

`logfile` must be either an opened file (or file-like object) or None.
If

==============================================================================
Revision: c7f0ebed42d7
Author: Pekka Klärck
Date: Fri May 4 04:36:34 2012
Log: Proper sentense.
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=c7f0ebed42d7

Modified:
/src/SeleniumLibrary/__init__.py

=======================================
--- /src/SeleniumLibrary/__init__.py Fri May 4 04:35:58 2012
+++ /src/SeleniumLibrary/__init__.py Fri May 4 04:36:34 2012
@@ -73,7 +73,7 @@
"""
if not subprocess:
raise RuntimeError('This function requires `subprocess` module
which '
- 'is available on Python/Jython 2.5 or newer')
+ 'is available on Python/Jython 2.5 or newer.')
cmd = _server_startup_command(jarpath, *params)
subprocess.Popen(cmd, stdout=logfile, stderr=subprocess.STDOUT)
print 'Selenium Server started with command "%s" ' % ' '.join(cmd)

==============================================================================
Revision: f47a3e9a42fa
Author: Pekka Klärck
Date: Fri May 4 04:38:06 2012
Log: Better error if `Start Selenium Server` fails when Java is not
installed.

Update issue 231
Status: Done
Owner: pekka.klarck
Cc: janne.t.harkonen
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=f47a3e9a42fa

Modified:
/src/SeleniumLibrary/__init__.py

=======================================
--- /src/SeleniumLibrary/__init__.py Fri May 4 04:36:34 2012
+++ /src/SeleniumLibrary/__init__.py Fri May 4 04:38:06 2012
@@ -75,7 +75,12 @@
raise RuntimeError('This function requires `subprocess` module
which '
'is available on Python/Jython 2.5 or newer.')
cmd = _server_startup_command(jarpath, *params)
- subprocess.Popen(cmd, stdout=logfile, stderr=subprocess.STDOUT)
+ try:
+ subprocess.Popen(cmd, stdout=logfile, stderr=subprocess.STDOUT)
+ except OSError:
+ raise RuntimeError('Starting Selenium Server failed. Check that
you '
+ 'have Java 1.5 or newer installed by running '
+ '`java -version` on the command prompt.')
print 'Selenium Server started with command "%s" ' % ' '.join(cmd)

def _server_startup_command(jarpath, *params):

==============================================================================
Revision: 349ea7ef8def
Author: Pekka Klärck
Date: Fri May 4 04:41:55 2012
Log: Automated merge with
https://robotframework-seleniumlibrary.googlecode.com/hg/
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=349ea7ef8def


Reply all
Reply to author
Forward
0 new messages