Fortinet white logo
Fortinet white logo

Administration Guide

Scripts

Scripts

FortiTester allows you to give shell commands to the device under test (DUT) before running a test. To simplify the configuration, you can create a script object template and then import it when you configure test case settings.

To create a script object template:
  1. Go to Cases > Performance Testing or Security Testing > Objects > Scripts.
  2. Click + Create New to display the configuration page.
  3. Configure the following settings:
  • Name—The name of your script object template
  • Username—The account of FortiGate
  • Password—The login password of FortiGate
  • DUT IP—The IP of FortiGate
  • Pre Test RESTful API URL & Content—The RESTful API command that runs before the test.
  • Post Test RESTful API URL & Content—The RESTful API command that runs after the test.
  • Click Test Script to avoid using a failed script object.
  • Click Save to save the configuration.
  • After you have created a script object template, you can clone or export it as a zip file. This template can now be selected from the Script Config option on the popup dialogue when running a test.

    Scripts

    Scripts

    FortiTester allows you to give shell commands to the device under test (DUT) before running a test. To simplify the configuration, you can create a script object template and then import it when you configure test case settings.

    To create a script object template:
    1. Go to Cases > Performance Testing or Security Testing > Objects > Scripts.
    2. Click + Create New to display the configuration page.
    3. Configure the following settings:
    • Name—The name of your script object template
    • Username—The account of FortiGate
    • Password—The login password of FortiGate
    • DUT IP—The IP of FortiGate
    • Pre Test RESTful API URL & Content—The RESTful API command that runs before the test.
    • Post Test RESTful API URL & Content—The RESTful API command that runs after the test.
  • Click Test Script to avoid using a failed script object.
  • Click Save to save the configuration.
  • After you have created a script object template, you can clone or export it as a zip file. This template can now be selected from the Script Config option on the popup dialogue when running a test.