Ejemplo n.º 1
0
 def __init__(self, base_url, case, last_case, update, timeout=1):
     self.case = case
     self.last_case = last_case
     self.base_url = base_url
     self.update = update
     WebSocketClientFactory.__init__(self,
                                     self.base_url + "runCase?case=%d&agent=%s" \
                                                     % (case, AGENT)
                                     )
Ejemplo n.º 2
0
 def __init__(self, url, *args, **kwargs):
     WebSocketClientFactory.__init__(self, url, *args, **kwargs)
     self.connectionEstablishedDeferred = defer.Deferred()
     self.closeReceivedDeferred = defer.Deferred()
     self.dataErrorDeferred = defer.Deferred()
     self.handshakeErrorDeferred = defer.Deferred()
     self.connectionLostDeferred = defer.Deferred()
     self.responses = 0
     self.expectedResponses = 0
     self.expectedPongs = 0
     self.frames = []
     self.fragments = []
     self.pongs = []
Ejemplo n.º 3
0
 def __init__(self, base_url):
     host = urlparse(base_url).hostname
     print("Updating report (check result at: http://%s:9090/reports/clients/index.html): "
                             % host, end="")
     WebSocketClientFactory.__init__(self,
                                     base_url + "updateReports?agent=%s" % AGENT)
Ejemplo n.º 4
0
 def __init__(self, base_url, update):
     self.base_url = base_url
     self.update = update
     WebSocketClientFactory.__init__(self,
                                     self.base_url + "getCaseCount")