Introduce complete test coverage for the ARTEMIS platform across multiple layers: Unit tests: Add tests for agent nodes (Planner, Operator, Validator, Diagnoser, FlashRunner, Explorer), tools, utils (OCR/XML fusion, UI hierarchy), and data engine. Integration tests: Add live tool verification, reactive runner, IME, and standalone workflow tests. E2E tests: Add end-to-end scenario tests for media playback and failure recovery flows. Fixtures & mocks: Add mock inputs (audio, video, screenshot) and test utilities.
22 lines
501 B
Python
22 lines
501 B
Python
import time
|
|
import uiautomator2 as u2
|
|
|
|
|
|
def test():
|
|
device = u2.connect("emulator-5554")
|
|
print("Testing send_keys with immediate IME switch off")
|
|
device.set_fastinput_ime(True)
|
|
device.send_keys("Test 1")
|
|
device.set_fastinput_ime(False)
|
|
|
|
time.sleep(2)
|
|
print("Testing send_keys with delay before IME switch off")
|
|
device.set_fastinput_ime(True)
|
|
device.send_keys("Test 2")
|
|
time.sleep(1.0)
|
|
device.set_fastinput_ime(False)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
test()
|