-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Description
First time I am using this library/server, and I had difficulties in running the example. If I start with default values, then I can only test using 127.0.0.1:8270, not from other machines in my network.
Now if I start using the IP address of my server machine, I can run the example as intended. See below:
robot@linux-techno:~/test> python examplelibrary.py 192.168.2.10 &
robot@linux-techno:~/test> python -m robotremoteserver test 192.168.2.10:8270
Remote server running at http://192.168.2.10:8270.
robot@linux-techno:~/test> python -m robotremoteserver test 127.0.0.1:8270
No remote server running at http://127.0.0.1:8270.
robot@linux-techno:~/test> python -m robotremoteserver test 127.0.0.1
No remote server running at http://127.0.0.1.
robot@linux-techno:~/test> python -m robotremoteserver test localhost
No remote server running at http://localhost.
On client machines:
[helio@localhost remote]$ python -m robotremoteserver test 192.168.2.10:8270
Remote server running at http://192.168.2.10:8270.
[helio@localhost remote]$ python -m robotremoteserver test techno:8270
Remote server running at http://techno:8270.
[robot@candy-house test]$ python -m robotremoteserver test 192.168.2.10:8270
Remote server running at http://192.168.2.10:8270.
[robot@candy-house test]$ python -m robotremoteserver test techno:8270
Remote server running at http://techno:8270.
Running the tests (in the test file the positive test is using ${CURDIR}
, this is always at client's side, is this the desired behavior?):
a) I had to create at server "techno" a same path from client @CANDY-HOUSE.
[robot@candy-house test]$ robot -v ADDRESS:techno -v PORT:8270 example_tests.robot
==============================================================================
Example Tests
==============================================================================
Count Items in Directory | PASS |
------------------------------------------------------------------------------
Failing Example | FAIL |
Given strings are not equal.
------------------------------------------------------------------------------
Example Tests | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
==============================================================================
Output: /home/robot/test/output.xml
Log: /home/robot/test/log.html
Report: /home/robot/test/report.html
b) I did not have a matching path at server, so first test fails
[helio@localhost remote]$ robot -v ADDRESS:techno -v PORT:8270 example_tests.robot
==============================================================================
Example Tests
==============================================================================
Count Items in Directory | FAIL |
OSError: [Errno 2] No such file or directory: '/home/helio/Test/Robot/remote'
------------------------------------------------------------------------------
Failing Example | FAIL |
Given strings are not equal.
------------------------------------------------------------------------------
Example Tests | FAIL |
2 critical tests, 0 passed, 2 failed
2 tests total, 0 passed, 2 failed
==============================================================================
Output: /home/helio/Test/Robot/remote/output.xml
Log: /home/helio/Test/Robot/remote/log.html
Report: /home/helio/Test/Robot/remote/report.html
Metadata
Metadata
Assignees
Labels
No labels