MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / start_server_and_client

Method start_server_and_client

tests/tests_history.py:25–31  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

23
24 @classmethod
25 def start_server_and_client(cls):
26 cls.srv = Server()
27 cls.srv.set_endpoint('opc.tcp://127.0.0.1:{0:d}'.format(port_num1))
28 cls.srv.start()
29
30 cls.clt = Client('opc.tcp://127.0.0.1:{0:d}'.format(port_num1))
31 cls.clt.connect()
32
33 @classmethod
34 def stop_server_and_client(cls):

Callers 2

setUpClassMethod · 0.80
setUpClassMethod · 0.80

Calls 5

ServerClass · 0.90
ClientClass · 0.90
set_endpointMethod · 0.80
connectMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected