Fortinet black logo

Handbook

Using script object templates

Copy Link
Copy Doc ID 0fc7455d-2de0-11eb-96b9-00505692583a:840640
Download PDF

Using script object templates

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 > 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.

    Using script object templates

    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 > 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.