The module as a script with test argument and an optional URI: $ python -m robotremoteserver test Starting from the version 1.0.1, the robotremoteserver module supports Calling the stop method of the running server instance.Uses the stop_remote_server XML-RPC function internally and Robotremoteserver module similarly as when testing is server running. Using the stop_remote_server function provided by the.Running python -m robotremoteserver stop which uses theĪforementioned stop_remote_server XML-RPC function internally.Using the stop_remote_server function in the XML-RPC interface.Ĭan be disabled with the allow_remote_stop=False initialization parameter.Can be disabled by usingĪllow_remote_stop=False when initializing the server. Using the``Stop Remote Server`` keyword.Work on Windows and not supported if the server is started on a background Sending the process SIGINT, SIGTERM, or SIGHUP signal.Not supportedĪutomatically if the server is started on a background thread. Hitting Ctrl-C on the console where the server is running.The remote server can be gracefully stopped using several different methods: There is also server_port attribute that contains just the port as A started or actived server instance has server_address attribute thatĬontains the address and the port as a tuple.The port that the server binds and also sets it available via the attributes Starting from the version 1.1, the server has activate method that canīe called to activate the server without starting it.Remote server version 1.1, the server removes the port file automatically Specified file where other tools can easily read it. If port_file argument is used, the server writes the port into the.Address and port that are used are printed into the console where the server. Selects a free port automatically, but there are various ways how to find If the server uses the default port 8270 or some other port is givenĮxplicitly when configuring the server, you obviously know which port Import signal import threading from examplelibrary import ExampleLibrary from robotremoteserver import RobotRemoteServer server = RobotRemoteServer( ExampleLibrary(), port = 0, serve = False) The remote server can be started simply by creating an instance of the serverĪnd passing a test library instance or module to it: New in version 1.1.Īllow/disallow stopping the server remotely using Stop Remote Server keyword and stop_remote_server XML-RPC method. If False, server can be started using the serve method. If True, start the server automatically and wait for it to be stopped. None (default) means no such file is written.ĭeprecated since version 1.1. The default port 8270 is registered by IANA for remote server usage.įile to write the port that is used. Can be given as an integer or as a string. Use 0 to select a free port automatically. Use '0.0.0.0' to listen to all available IPv4 interfaces. The remote server is implemented as a class RobotRemoteServer and itĪccepts the following configuration parameters when it is initialized: Argument The easiest installation approach is using pip: pip install robotremoteserverĪlternatively you can download the source distribution from PyPI, extract itĪnd install the remote server using: python setup.py install Python's logging module is currently not supported. The main limitation is that logging using or This includes settingĬustom name and tags for keywords using the .Įarlier remote server versions support only the static and hybridĪPIs and do not support the keyword decorator at all.įor most parts these APIs work exactly like when using with Robot Framework Hybrid and dynamic library APIs are all supported. Starting from the remote server version 1.1, Robot Framework's static, Remote server version 1.1.1 supports Python 3.10 and 3.11 Remote server version 1.1 supports Python 2.6,Ģ.7 and 3.3-3.9. This remote server is implemented with Python and supports also Jython (JVM),
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |