

# Long duration tests console workflow
<a name="device-advisor-long-duration-console-tutorial"></a>

This tutorial helps you get started with the Long duration tests on Device Advisor using the console. To complete the tutorial, follow the steps at [Setting up](device-advisor-setting-up.md).

1.  In the [AWS IoT console](https://console.aws.amazon.com/iot) navigation pane, expand **Test**, then **Device Advisor**, then **Test suites**. On the page, select **Create long duration test suite**.   
![\[The Create long duration test suite section of the Device Advisor console.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/create-ld-ts.png)

1.  On the **Create test suite** page, select **Long duration test suite** and choose **Next**. 

   For protocol, choose either **MQTT 3.1.1** or **MQTT 5**.  
![\[The Create test suite step of the Device Advisor console.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/choose-ld-ts.png)

1. Do the following on the **Configure test suite** page:

   1. Update the **Test suite name** field.

   1. Update the **Test group name** field.

   1. Choose the **Device operations** the device can perform. This will select the tests to run.

   1. Select the **Settings** option.  
![\[The Create test suite step of the Device Advisor console.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/configure-ld-ts.png)

1. (Optional) Input the maximum amount of time Device Advisor must wait for the basic tests to complete. Select **Save**.  
![\[The "Timeout-optional" box for "Basic tests" of the Device Advisor console.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/timeout-ld-ts.png)

1.  Do the following in the **Advanced tests** and **Additional settings** sections. 

   1. Select or deselect the **Advanced tests** you want to run as part of this test.

   1. **Edit** the configurations for the tests when applicable.

   1. Configure the **Additional execution time** under the **Additional settings** section.

   1. Choose **Next** to do the next step.  
![\[The Device Advisor interface that allows you to configure and run tests on IoT devices.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/additional-ld-ts.png)

1.  In this step, **Create a new role** or **Select an existing role**. See [Create an IAM role to use as your device role](device-advisor-setting-up.md#da-iam-role) for details.   
![\[The device role step where you can create a new role or select an existing role for the device being tested. The role grants permissions for Device Advisor to perform MQTT actions like Connect, Publish, and Subscribe on behalf of the test device.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/devicerole-ld-ts.png)

1.  Review all the configurations created until this step and select **Create test suite**.   
![\[The "Review" page where you can review all the details of the Device Advisor configuration.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/finalconfigure1-ld-ts.png)  
![\[The configuration page where you can view all the details for Device Advisor.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/finalconfigure2-ld-ts.png)

1.  The created test suite is under the **Test suites** section. Select the suite to view details.   
![\[A new test suite named "Long Duration Demo" has been successfully created in the Device Advisor.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/finalts-ld-ts.png)

1.  To run the created test suite, select **Actions** then **Run test suite**.   
![\[The Actions dropdown menu of the new test suite named "Long Duration Demo" in the Device Advisor interface.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/runts-ld-ts.png)

1.  Choose the configuration options in the **Run configuration** page. 

   1. Select the **Things** or **Certificate** to run the test on.

   1. Select either the **Account-level endpoint** or **Device-level endpoint**.

   1. Choose **Run test** to run the test.  
![\[The Run configuration page in the Device Advisor interface. The page shows Select test devices, Things, Test endpoint, and Tags.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/runconfiguration-ld-ts.png)

1.  To view the results of the test suite run, select **Test runs and results** in the left navigation pane. Choose the test suite that ran to view the details of the results.   
![\[The "Long Duration Demo" test case on the Test runs and results page.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/results-ld-ts.png)

1.  The previous step brings up the test summary page. All the details of the test run are displayed in this page. When the console prompts to start the device connection, connect your device to the provided endpoint. The progress of the tests is seen on this page.   
![\[The summary page of the "Long Duration Demo" test that you created.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/summary-ld-ts.png)

1.  The Long duration test provides an additional **Test log summary** on the side panel which displays all the important events occurring between the device and the broker in near real time. To view more in-depth detailed logs, click on **Test case log**.   
![\[The Test log summary section on the page of the "Long Duration Demo" test.\]](http://docs.aws.amazon.com/iot/latest/developerguide/images/log-ld-ts.png)