Struggling with the implementation of Automation tests

Fortunately I haven’t run into any issues with a simple automation test and will add my example to the git repo soon :slight_smile:

The complex example from the documentation appears to be out of date however the example has been updated in the source code (EditorAutomationTests.cpp Line 180 - 273):



I decided to try write my own complex test to find all enemies on a map and check their max health values depending on their type. I did realise during implementing this that it could probably just be done with a simple test but at least its some experience on a complex test. Unfortunately, after writing the test it wasn’t displaying in the session frontend. As I wasn’t too sure I’d written it correctly I though I would implement the load all maps example exactly as it is in the engine source but this still isn’t displaying in the session front end :frowning:.

Okay I got it showing (the load all maps example) I don’t if I want to admit it but was cause I wasn’t on the right dropdown filter. :slight_smile:

I then decided to comment out the code for that test and add my code in, re-compiled and was no longer visible so I’m assuming my test code isn’t correct.

I was correct I remembered reading that someone’s tests weren’t showing because they weren’t adding anything to the arrays, I tested this but just adding a “test” string to both arrays and it displays in the session frontend. progress :slight_smile: this also now allows me to debug through my code :slight_smile:

Right so the issue is that its not finding my world so then not finding the actor and adding the strings to the arrays.

I should probably mention that in my GetTests function I’m trying to load a map and find all the enemy actors in the map and then adding a string to the arrays based off them. the plan to then check each of those enemies in the run test function to check there health values