Alexis Navarro
unread,Nov 16, 2022, 7:16:38 AM11/16/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AltTester - UI test automation tool for gaming, alex....@altom.com, AltTester - UI test automation tool for gaming, Alexis Navarro
I tried changing to the new input system and now the keypresses work, but I'm observing another problem: the tests are running asynchronously and in parallel. Meaning that all tests run at the same time, and each test runs through all the lines of code at once, without waiting for input simulation to finish. For example
api.PressKey(AltKeyCode.UpArrow, 1, 3, true) should wait for 3 seconds before moving to the next line, correct? That's not happening. As a result, the Assert is called before the player object even starts moving in response to the keypress. I explicitly set
api.SetDelayAfterCommand(3) and the results are the same. Any idea why?
The curious part is that the test runner only finishes after the movement completes.