I’m having a hard time figuring out how to write this particular automation test. The basic flow is:
Store map of actors in TMap X
Travel to Map 2
Travel back to Map 1
Store map of actors in TMap Y
Compare TMap X & TMap Y
My problem is that to travel to system Y/X I am using a latent automation command:
ADD_LATENT_AUTOMATION_COMMAND(FWarpToSystem(FString("/Game/Maps/System2")));
The problem is that once I run one latent command, I can’t run anything else besides latent commands in the test (because subsequent code executes before the latent command finishes). Because the latent commands don’t allow TestTrue/TestEqual I can’t encapsulate the final testing in a latent command.
I’m working on something similar right now and realized my original answer doesn’t help. You should be able to pass the FAutomationTestBase* to your latent command so you can use the TestTrue/TestEqual() functions. E.g.