3 new revisions:

Revision: 8d00d181b176
Branch:   default
Author:   Pekka Klärck
Date:     Wed Dec 11 18:49:51 2013 UTC
Log: Remote: Use 127.0.0.1 instead of potentially slow-to-resolve localhost...
http://code.google.com/p/robotframework/source/detail?r=8d00d181b176

Revision: d7c07f3ca507
Branch:   default
Author:   Pekka Klärck
Date:     Wed Dec 11 18:50:47 2013 UTC
Log:      UG: small enhancement to java library docs
http://code.google.com/p/robotframework/source/detail?r=d7c07f3ca507

Revision: 21726d4df77c
Branch:   default
Author:   Pekka Klärck
Date:     Wed Dec 11 18:52:29 2013 UTC
Log: changed remote tests to start/stop servers on running side to avoid us...
http://code.google.com/p/robotframework/source/detail?r=21726d4df77c

==============================================================================
Revision: 8d00d181b176
Branch:   default
Author:   Pekka Klärck
Date:     Wed Dec 11 18:49:51 2013 UTC
Log: Remote: Use 127.0.0.1 instead of potentially slow-to-resolve localhost.

Update issue 1607
Status: Started
Changed code and also test servers. Need to still check what UG says about this.
http://code.google.com/p/robotframework/source/detail?r=8d00d181b176

Modified:
 /atest/testdata/standard_libraries/remote/argcounts.py
 /atest/testdata/standard_libraries/remote/simpleserver.py
 /src/robot/libraries/Remote.py
 /tools/remoteserver/robotremoteserver.py

=======================================
--- /atest/testdata/standard_libraries/remote/argcounts.py Wed Dec 11 12:33:17 2013 UTC +++ /atest/testdata/standard_libraries/remote/argcounts.py Wed Dec 11 18:49:51 2013 UTC
@@ -6,7 +6,7 @@
 class RemoteServer(SimpleXMLRPCServer):

     def __init__(self, library, port=8270):
-        SimpleXMLRPCServer.__init__(self, ('localhost', int(port)))
+        SimpleXMLRPCServer.__init__(self, ('127.0.0.1', int(port)))
         self.library = library
         self.register_function(self.get_keyword_names)
         self.register_function(self.get_keyword_arguments)
=======================================
--- /atest/testdata/standard_libraries/remote/simpleserver.py Wed Dec 11 12:33:17 2013 UTC +++ /atest/testdata/standard_libraries/remote/simpleserver.py Wed Dec 11 18:49:51 2013 UTC
@@ -5,7 +5,7 @@
 class SimpleServer(SimpleXMLRPCServer):

     def __init__(self, port=8270):
-        SimpleXMLRPCServer.__init__(self, ('localhost', int(port)))
+        SimpleXMLRPCServer.__init__(self, ('127.0.0.1', int(port)))
         self.register_function(self.get_keyword_names)
         self.register_function(self.run_keyword)
         self.serve_forever()
=======================================
--- /src/robot/libraries/Remote.py      Fri Nov 29 13:33:49 2013 UTC
+++ /src/robot/libraries/Remote.py      Wed Dec 11 18:49:51 2013 UTC
@@ -29,7 +29,7 @@
 class Remote(object):
     ROBOT_LIBRARY_SCOPE = 'TEST SUITE'

-    def __init__(self, uri='http://localhost:8270'):
+    def __init__(self, uri='http://127.0.0.1:8270'):
         if '://' not in uri:
             uri = 'http://' + uri
         self._uri = uri
=======================================
--- /tools/remoteserver/robotremoteserver.py    Fri Nov 29 13:33:49 2013 UTC
+++ /tools/remoteserver/robotremoteserver.py    Wed Dec 11 18:49:51 2013 UTC
@@ -30,7 +30,7 @@
 class RobotRemoteServer(SimpleXMLRPCServer):
     allow_reuse_address = True

- def __init__(self, library, host='localhost', port=8270, allow_stop=True): + def __init__(self, library, host='127.0.0.1', port=8270, allow_stop=True): SimpleXMLRPCServer.__init__(self, (host, int(port)), logRequests=False)
         self._library = library
         self._allow_stop = allow_stop

==============================================================================
Revision: d7c07f3ca507
Branch:   default
Author:   Pekka Klärck
Date:     Wed Dec 11 18:50:47 2013 UTC
Log:      UG: small enhancement to java library docs
http://code.google.com/p/robotframework/source/detail?r=d7c07f3ca507

Modified:
 /doc/userguide/src/ExtendingRobotFramework/CreatingTestLibraries.rst

=======================================
--- /doc/userguide/src/ExtendingRobotFramework/CreatingTestLibraries.rst Tue Dec 3 00:59:10 2013 UTC +++ /doc/userguide/src/ExtendingRobotFramework/CreatingTestLibraries.rst Wed Dec 11 18:50:47 2013 UTC
@@ -1980,7 +1980,7 @@
    }

.. note:: In addition to using :code:`List`, it is possible to use also arrays
-          like :code:`String[]`.
+          like :code:`Object[]` or :code:`String[]`.

 A good example of using the dynamic API is Robot Framework's own
 `Remote library`_.

==============================================================================
Revision: 21726d4df77c
Branch:   default
Author:   Pekka Klärck
Date:     Wed Dec 11 18:52:29 2013 UTC
Log: changed remote tests to start/stop servers on running side to avoid using Python/Jython 2.5 that lack Popen.terminate
http://code.google.com/p/robotframework/source/detail?r=21726d4df77c

Added:
 /atest/robot/standard_libraries/remote/remote_resource.txt
Deleted:
 /atest/testdata/standard_libraries/remote/resource.txt
Modified:
 /atest/robot/standard_libraries/remote/argument_counts.txt
 /atest/robot/standard_libraries/remote/simple_server.txt
 /atest/testdata/standard_libraries/remote/argument_counts.txt
 /atest/testdata/standard_libraries/remote/simple_server.txt

=======================================
--- /dev/null
+++ /atest/robot/standard_libraries/remote/remote_resource.txt Wed Dec 11 18:52:29 2013 UTC
@@ -0,0 +1,19 @@
+*** Settings ***
+Resource          atest_resource.txt
+
+*** Keywords ***
+Run Remote Tests
+    [Arguments]    ${server}    ${options}    ${tests}
+    Start Remote Server    ${server}
+    Run Tests    ${options}    standard_libraries/remote/${tests}
+    Stop Remote Server    ${server}
+
+Start Remote Server
+    [Arguments]    ${server}
+ ${path} = Normalize Path ${DATADIR}/standard_libraries/remote/${server}
+    Start Process    python    ${path}    alias=${server}    stderr=STDOUT
+
+Stop Remote Server
+    [Arguments]    ${server}
+    ${result} =    Terminate Process    handle=${server}
+    Log    ${result.stdout}
=======================================
--- /atest/testdata/standard_libraries/remote/resource.txt Wed Dec 11 12:33:17 2013 UTC
+++ /dev/null
@@ -1,14 +0,0 @@
-*** Settings ***
-Library           Process
-
-*** Keywords ***
-Start And Import Remote
-    [Arguments]    ${name}
- Start Process python ${CURDIR}${/}${name}.py alias=${name} stderr=STDOUT
-    Import Library    Remote    http://localhost:8270
-    Set Log Level    DEBUG
-
-Stop Remote
-    [Arguments]    ${name}
-    ${result} =    Terminate Process    handle=${name}
-    Log    ${result.stdout}
=======================================
--- /atest/robot/standard_libraries/remote/argument_counts.txt Wed Dec 11 12:33:17 2013 UTC +++ /atest/robot/standard_libraries/remote/argument_counts.txt Wed Dec 11 18:52:29 2013 UTC
@@ -1,7 +1,7 @@
 *** Settings ***
-Suite Setup Run Tests ${EMPTY} standard_libraries/remote/argument_counts.txt +Suite Setup Run Remote Tests argcounts.py ${EMPTY} argument_counts.txt
 Force Tags       regression    pybot    jybot
-Resource         atest_resource.txt
+Resource         remote_resource.txt

 *** Test Cases ***
 No Arguments
=======================================
--- /atest/robot/standard_libraries/remote/simple_server.txt Wed Dec 11 12:33:17 2013 UTC +++ /atest/robot/standard_libraries/remote/simple_server.txt Wed Dec 11 18:52:29 2013 UTC
@@ -1,7 +1,7 @@
 *** Settings ***
-Suite Setup Run Tests ${EMPTY} standard_libraries/remote/simple_server.txt +Suite Setup Run Remote Tests simpleserver.py ${EMPTY} simple_server.txt
 Force Tags       regression    pybot    jybot
-Resource         atest_resource.txt
+Resource         remote_resource.txt

 *** Test Cases ***
 Passing
=======================================
--- /atest/testdata/standard_libraries/remote/argument_counts.txt Wed Dec 11 12:33:17 2013 UTC +++ /atest/testdata/standard_libraries/remote/argument_counts.txt Wed Dec 11 18:52:29 2013 UTC
@@ -1,7 +1,6 @@
 *** Settings ***
-Suite Setup       Start And Import Remote    argcounts
-Suite Teardown    Stop Remote    argcounts
-Resource          resource.txt
+Library           Remote    http://127.0.0.1:8270
+Suite Setup       Set Log Level    DEBUG

 *** Test Cases ***
 No Arguments
@@ -63,7 +62,3 @@
     [Arguments]    ${expected}    ${keyword}    @{arguments}
     ${actual} =    Run Keyword    ${keyword}    @{arguments}
     Should Be Equal    ${actual}    ${expected}
-
-Arguments Should Not Be Accepted
-    [Arguments]    ${error}    ${keyword}    @{arguments}
-    Run Keyword And Expect Error    ${error}    ${keyword}    @{arguments}
=======================================
--- /atest/testdata/standard_libraries/remote/simple_server.txt Wed Dec 11 12:33:17 2013 UTC +++ /atest/testdata/standard_libraries/remote/simple_server.txt Wed Dec 11 18:52:29 2013 UTC
@@ -1,8 +1,6 @@
 *** Settings ***
Documentation Server has only get_kw_names and run_kw methods and returns minimal result dictionary.
-Suite Setup       Start And Import Remote    simpleserver
-Suite Teardown    Stop Remote    simpleserver
-Resource          resource.txt
+Library           Remote

 *** Test Cases ***
 Passing

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to