Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 719 Bytes

socket_driver_doc.rst

File metadata and controls

26 lines (20 loc) · 719 Bytes

Socket Driver ----

  • 實驗性的功能。
  • Socket Server 主要用來讓其他程式語言也可以使用 AutoControl。
  • 透過底層的 executor 處理接收到字串並進行執行動作。
  • 可以透過遠端來執行測試的動作。
  • 目前有實驗性的 Java 與 C# 支援。
  • 每個段落結束都應該傳輸 Return_Data_Over_JE。
  • 使用 UTF-8 encoding。
  • 傳送 quit_server 將會關閉伺服器。
import sys

from je_web_runner import start_autocontrol_socket_server

try:
    server = start_autocontrol_socket_server()
    while not server.close_flag:
        pass
    sys.exit(0)
except Exception as error:
    print(repr(error))