Skip to content

Latest commit

 

History

History
121 lines (79 loc) · 5.15 KB

get_started.md

File metadata and controls

121 lines (79 loc) · 5.15 KB

Testrun logo

Get started

This page covers the following topics:

Prerequisites

We recommend that you run Testrun on a stand-alone machine that has a fresh install of Ubuntu 20.04, 22.04, or 24.04 LTS (laptop or desktop).

Hardware

Before you start, ensure you have the following hardware:

  • PC running Ubuntu LTS (laptop or desktop)
  • 2x USB Ethernet adapter (one may be a built-in Ethernet port)
  • Internet connection

Required hardware for Testrun

Note: If you're using Testrun in a virtual machine, follow the steps on the Virtual machine page.

Software

Install Docker on your Ubuntu LTS PC using the installation guide. The following system dependencies install automatically when you install Testrun:

  • Python3-dev
  • Python3-venv
  • Openvswitch Common
  • Openvswitch Switch
  • Build Essential
  • Net Tools
  • Ethtool

Device

You can test any device with an Ethernet connection and support for IPv4 DHCP. However, to achieve a compliant test outcome, you must configure your device correctly and implement the required security features. The Application Security Requirements for IoT Devices outlines these standards. Additional details are available on the Test modules page.

Installation

Follow these steps to install Testrun:

  1. Download the latest version of the Testrun installer from the Releases page.
  2. Open a terminal and navigate to the location of the Testrun installer (most likely your Downloads folder).
  3. Install the package using sudo apt install ./testrun*.deb

Testrun installs under the /usr/local/testrun directory. Testing data is available in the local/devices/{device}/reports folders.

Note: Local CA certificates should be uploaded within Testrun to run TLS server testing.

Terminal during install

Testing

Start Testrun

Follow these steps to start Testrun:

  1. Attach the network interfaces.
    • Connect one USB Ethernet adapter to the internet source (e.g., router or switch) using an Ethernet cable.
    • Connect the other USB Ethernet adapter directly to the IoT device you want to test using an Ethernet cable.

Notes:

  • Disable both adapters in the host system (IPv4, IPv6, and general) by opening Settings, then Network.
  • Keep the DUT powered off until prompted.
  1. Start Testrun with the command sudo testrun
    • To run Testrun in network-only mode (without running any tests), use the --net-only option.
    • To run Testrun with just one interface (connected to the device), use the --single-intf option.

Test your device

Follow these steps to test your IoT device:

  1. Open Testrun by navigating to http://localhost:8080 in your browser.

  2. Select the Settings menu in the top-right corner, then select your network interfaces. You can change the settings at any time.
    Settings menu button

  3. Select the device repository icon on the left panel to add a new device for testing.
    Device repository button

  4. Select the Add Device button.

  5. Enter the MAC address, manufacturer name, and model number.

  6. Select the test modules you want to enable for this device.
    Note: For qualification purposes, you must select all.

  7. Select Save.

  8. Select the Testrun progress icon, then select the Testing button.Testing button

  9. Select the device you want to test.

  10. Enter the version number of the firmware running on the device.

  11. Select Start Testrun.

  • If you need to stop Testrun during testing, select Stop next to the test name.
  1. Once the Waiting for Device notification appears, power on the device under test. A report appears under the Reports icon once the test sequence is complete.
    Reports button

Troubleshooting

If you encounter any issues, try the following:

  • Ensure that your computer meets all hardware and software prerequisites.
  • Verify that the network interfaces are connected correctly.
  • Check the configuration settings.
  • Refer to the Testrun documentation.

If you still need assistance, ask a question on the Issues page.

Review the report

Once you complete a test attempt, you can review the test report provided by Testrun. For more information on Testrun requirements and outputs, refer to the Testing documentation.

Uninstall

To uninstall Testrun correctly, use the built-in dpkg uninstall command: sudo apt-get remove testrun