当前位置:网站首页>Secondary development of robotframework -- socket push real-time log

Secondary development of robotframework -- socket push real-time log

2022-06-22 13:12:00 Diandian Hanbin

background

Last chapter Say RobotFramework Execution monitoring of , It's through Socket Services to achieve , Now let's implement a simple Socket service

Ideas

Socket The service has a client End and a server End ,Listener.py We can think of it as a Client, Because when executing , We need to Listener To send real-time data , therefore , We need to write another piece of code for the server .

reform Listener.py

First , To open, you need a Socket service

	def __init__(self):
		self.sock = socket.socket(
原网站

版权声明
本文为[Diandian Hanbin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221227038134.html