Robot Framework Integrated Development Environment (RIDE)
robotide.contrib.testrunner.TestRunnerAgent Namespace Reference

Classes

class  DecodeError
 This exception is raised when there is a problem decoding an object, such as a security violation. More...
 
class  EncodeError
 This exception is raised when an unencodable object is passed to the dump() method or function. More...
 
class  RobotDebugger
 
class  RobotKillerHandler
 
class  RobotKillerServer
 
class  StreamError
 Base class for EncodeError and DecodeError. More...
 
class  StreamHandler
 This class provides a common streaming approach for the purpose of reliably sending data over a socket interface. More...
 
class  TestRunnerAgent
 Pass all listener events to a remote listener. More...
 

Functions

def _is_logged (level)
 
def dump (obj, fp)
 
def dumps (obj)
 Similar method to json dumps, prepending data with message length header. More...
 
def load (fp)
 
def loads (s)
 Reads in json message or pickle message prepended with message length header from a string. More...
 

Variables

bool _JSONAVAIL
 
 encoding = None
 
string HOST = "localhost"
 
 PLATFORM = platform.python_implementation()
 

Function Documentation

◆ _is_logged()

def robotide.contrib.testrunner.TestRunnerAgent._is_logged (   level)
private

Definition at line 123 of file TestRunnerAgent.py.

◆ dump()

def robotide.contrib.testrunner.TestRunnerAgent.dump (   obj,
  fp 
)

Definition at line 399 of file TestRunnerAgent.py.

◆ dumps()

def robotide.contrib.testrunner.TestRunnerAgent.dumps (   obj)

Similar method to json dumps, prepending data with message length header.

Replaces pickle.dumps, so can be used in place without the memory leaks on receiving side in pickle.loads (related to memoization of data)

NOTE: Protocol is ignored when json representation is used

Definition at line 415 of file TestRunnerAgent.py.

◆ load()

def robotide.contrib.testrunner.TestRunnerAgent.load (   fp)

Definition at line 403 of file TestRunnerAgent.py.

◆ loads()

def robotide.contrib.testrunner.TestRunnerAgent.loads (   s)

Reads in json message or pickle message prepended with message length header from a string.

Message is expected to be encoded by this class as well, to have same message length header type.

Specifically replaces pickle.loads as that function/method has serious memory leak issues with long term use of same Unpickler object for encoding data to send, specifically related to memoization of data to encode.

Definition at line 431 of file TestRunnerAgent.py.

Variable Documentation

◆ _JSONAVAIL

bool robotide.contrib.testrunner.TestRunnerAgent._JSONAVAIL
private

Definition at line 100 of file TestRunnerAgent.py.

◆ encoding

robotide.contrib.testrunner.TestRunnerAgent.encoding = None

Definition at line 92 of file TestRunnerAgent.py.

◆ HOST

string robotide.contrib.testrunner.TestRunnerAgent.HOST = "localhost"

Definition at line 112 of file TestRunnerAgent.py.

◆ PLATFORM

robotide.contrib.testrunner.TestRunnerAgent.PLATFORM = platform.python_implementation()

Definition at line 76 of file TestRunnerAgent.py.