Struggling with the implementation of Automation tests

I think I forgot to mention for the win and lose test I had to set the “Log Error Handling” to “Output Ignored” as I was experiencing errors that I believe were related to the input, this probably is not advised but the errors where the only reason the test was failing and was unrelated to what I was testing.

I’ve added some more tests to the sample project this time testing the job assigning functionality.

For these tests I had to create a separate map to ensure the resource was near the villager and that the villager didn’t have time to unload their resources, in the map I added the resource source for the job I was testing, a villager and a townhall. I also had to include the navmesh so the villager was able to walk around. I started with a parent class and created a child for each job/resource.

I started by finding the villager and assigning the new job, then there’s a delay for the amount of time it takes to gather the resource and an extra 4 second to account for walking to the resource. Once the resource had been gathered I checked the resources held by the villager match the expected resource and if so passes otherwise fails.