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:
- Go to Cases > Performance Testing > Objects > Scripts.
- Click + Create New to display the configuration page.
- 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.
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.