8import isystem.connect
as ic
14def test_hotAttachDetach():
15 connMgr = ic.ConnectionMgr()
16 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
18 execCtrl = ic.CExecutionController(connMgr)
20 sess_ctrl = ic.CSessionCtrl(connMgr)
21 sess_ctrl.begin_prepare()
23 if execCtrl.hotDetach() == 0:
24 print(f
"Hot detach succeeded, winIDEA is in `detached` state.")
26 if execCtrl.hotAttach() == 0:
27 print(f
"Hot attach succeeded, winIDEA is connected.")
32if __name__ ==
"__main__":
33 test_hotAttachDetach()