How do you write automated tests for Dialogue System?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

How do you write automated tests for Dialogue System?

Post by AoF »

I'd like to write some automated tests for the Dialogue System and I'm wondering if it's possible. Ideally, I could write a test like this (pseudo code):

Code: Select all

Variable[areCropsReady] = false;
StartConversation("Field/Eva");
ContinueToNextResponse();
Assert.False(responses.contains("Your crops are ready!"));
Is there a way to write tests like this? Are there any examples?
User avatar
Tony Li
Posts: 21636
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do you write automated tests for Dialogue System?

Post by Tony Li »

I do have an example. I just updated it to make sure it still runs fine in 2.1.7 with the hotfix:

DS_AutomatedTestExample_2019-06-14.unitypackage

You can of course adjust the approach to suit your needs, but this example came out of a question that another customer had a while ago so it fits what he was looking for.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Re: How do you write automated tests for Dialogue System?

Post by AoF »

Great, thank you!
Post Reply