Skip to content

Example documentation improvements (or corrections?) #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HelioGuilherme66 opened this issue Feb 29, 2016 · 1 comment
Closed

Example documentation improvements (or corrections?) #30

HelioGuilherme66 opened this issue Feb 29, 2016 · 1 comment

Comments

@HelioGuilherme66
Copy link
Member

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
@pekkaklarck
Copy link
Member

The example is intended to be executed on a single machine. Probably that could be made more explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants