plone / plone.app.robotframework

Provides Robot Framework compatible resources and tools for writing functional Selenium tests (including acceptance tests) for Plone CMS and its add-ons.
https://docs.plone.org/external/plone.app.robotframework/docs/source/index.html
11 stars 17 forks source link

Print ZServer and XMRPC URLs on server startup (Plone 5). #106

Closed jone closed 5 years ago

jone commented 5 years ago

When starting the robot server, the ports for the ZServer and for the XMLRPC-server can be configured to 0 in order to let the operating system choose a random open port.

When the ports are randomly chosen, it is helpful that the server prints out the chosen ports in form of URLs, so that a caller may read the URLs in order to connect to the servers.

Back ported to Plone 4: #105

mister-roboto commented 5 years ago

@jone thanks for creating this Pull Request and help improve Plone!

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass.

Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:

@jenkins-plone-org please run jobs

With this simple comment all the jobs will be started automatically.

Happy hacking!

ale-rt commented 5 years ago

It would be nice to also add this to the start_reload function and decorate the message like the other ones. See:

[ale@emily plone.app.robotframework]$ ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING 
09:07:07 [ wait ] Starting Zope robot server
Could not install product Products.CMFPlacefulWorkflow
Could not install product plone.app.folder
09:07:14 [ wait ] Watchdog is watching for changes in src
09:07:14 [ wait ] Fork loop now starting on parent process 8163
09:07:14 [ wait ] Fork loop forked a new child process 8190
09:07:14 [ ready ] Zope robot server started
XMLRPC: http://127.0.0.1:49999

Anyway this can be done later.