PythonRemoteServer | Robot Framework remote server implemented with Python
kandi X-RAY | PythonRemoteServer Summary
kandi X-RAY | PythonRemoteServer Summary
Robot Framework remote server implemented with Python
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run keyword
- Returns the value of an error attribute
- Get the message for an exception
- Set the error attribute
- Get keyword arguments for a keyword
- Get a keyword
- Start the server
- Activate the server
- Helper function to get the keyword names from the library
- Returns True if item is a function or method
- Get documentation for a keyword
- Get tags for a keyword
- Run a keyword
PythonRemoteServer Key Features
PythonRemoteServer Examples and Code Snippets
Community Discussions
Trending Discussions on PythonRemoteServer
QUESTION
In one of my projects we are using Robot Framework with custom keyword libraries in a complex test environment using assorted ECUs and PCs. One keyword library must be controlled by a python remote server via XML-RPC, as it has to be on a different PC.
Now, all important messages from robot.api.logger calls, like logger.debug()
oder logger.console()
are swallowed due to the XML-RPC. This is a known issue, which also clearly stated in the docs.
For most parts these APIs work exactly like when using with Robot Framework normally. There main limitation is that logging using robot.api.logger or Python's logging module is currently not supported.
It is possible to write a thin wrapper or decorator for robot.api.logger
, so that all debug messages are redirected to a simple txt file, like:
ANSWER
Answered 2020-Sep-27 at 10:21You can patch the write function of the robot.api.logger
so it will write to a log file as well. This patching could be triggered by a library argument.
This would require you to only modify the constructor of your library.
RemoteLib.py
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PythonRemoteServer
You can use PythonRemoteServer like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page