# Test Mode

Test Mode is a sandbox where you can test agent settings with the Wayfound Supervisor to ensure the settings meet your expectations.

The Wayfound Supervisor takes into account your agent’s role, goal, and guidelines when analyzing sessions.  Test Mode enables you to test your agent settings with the Wayfound Supervisor before publishing the settings to your production environment.

### **Setup Overview**

#### 1. Select test sessions

These are sessions that are the primary content of your test runs.  Test sessions can be uploaded via the [Test Session API](https://wayfound-api.readme.io/reference/create-test-session) to facilitate testing before your agent is in production.  You can also copy production sessions to become test sessions when you are managing an agent already released to production.

#### **2. Set expected outcomes on test sessions**

Specify for each guideline what your expected compliance status is for that guideline.  It’s important to select sessions that have both compliant and non-compliant expected values to ensure the guideline language works for both cases.

#### **3. Start test run**

Select the sessions you want to test and specify the number of iterations to run each session.

The more iterations you select the longer the analysis will take but you will also be able to test the stability of the guideline.  Stability is important because the Wayfound Supervisor is conducting a probabilistic analysis of the guideline and you want to ensure that the analysis of the test sessions/guideline is converging to your expected outcome.

### **Select Test Sessions**

When reviewing sessions the session drawer has a “Copy session for evaluation” button which will make a copy of this session and place it into the agent’s sandbox

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FC2zleW6DyJrMhbxIykHn%2Funknown.png?alt=media&#x26;token=123ed2df-e62b-45f2-b4b4-5094de3caba0" alt=""><figcaption></figcaption></figure>

The session is now listed as a “Test Session” in the Agent’s Test Mode pane after clicking on "Run Test from the Test Mode menu.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FKSFahI0ieo8RRIrSveM2%2Fimage.png?alt=media&#x26;token=e5ef49f8-661d-4d42-b659-811063ae59cd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FFLJf6VQFypH2katY347W%2Fimage.png?alt=media&#x26;token=74c21085-35a1-4f83-a76b-b90398fe9851" alt=""><figcaption></figcaption></figure>

Clicking **View** to review the test sessions

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FmNpETTqJA8mUeItbnsQ3%2Funknown.png?alt=media&#x26;token=4561de6f-a4c6-46bf-9868-1f720858348d" alt=""><figcaption></figcaption></figure>

### **Set Expected Outcomes**

For each guideline and test session you can set the expected outcome by clicking on the ‘Test guideline’ button next to the guideline.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2F6YX83PuhuVcyJDkzifqG%2Fimage.png?alt=media&#x26;token=0c396e75-6eb7-4735-83fb-247f498f5aaf" alt=""><figcaption></figcaption></figure>

This will open a “Guideline Expectations” modal where you can set the expected outcome for each test session for the given guideline.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FUsSQwbiNQdHhgZBhPh5d%2Funknown.png?alt=media&#x26;token=208d8fc9-4e35-49b3-9b93-adcc0ccab567" alt=""><figcaption></figcaption></figure>

Repeat this process for each guideline and each test session.

### **Start Test Run**

Select the sessions to test as well as the number of iterations to run. It is suggested to start with a lower number of iterations as you make guideline changes and gradually increase the iterations as the results are aligning with your expectations.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2F2tvqxU4twk6fsBUNzFrx%2Fimage.png?alt=media&#x26;token=077ff0e5-2255-4c93-822a-c6d41b6d2afc" alt=""><figcaption></figcaption></figure>

Click “Test Selected” and wait for processing to complete.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2F5RpebiwIXBuzuk2e90HD%2Fimage.png?alt=media&#x26;token=f3021100-aeda-4dac-a09d-f88f017c2b77" alt=""><figcaption></figcaption></figure>

When processing is complete you can review the test results.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FTsECYSdn0mvqqdCtTN9V%2Fimage.png?alt=media&#x26;token=0992d3a9-762f-481e-a680-edd7ea508289" alt=""><figcaption></figcaption></figure>
