要配置 Web 应用程序的多步骤测试,您需要使用 每个步骤脚本工具记录测试脚本。 您可以创建新脚本、从现有测试将脚本导入“每个步骤脚本工具记录器”或从本地计算机上载脚本。

录制的脚本

该字段显示使用每个步骤脚本工具录制的脚本。 要编辑脚本,请单击“编辑脚本”按钮,然后修改脚本

脚本模式

此字段显示在脚本、设备类型和录制分辨率中选择的浏览器类型。

时间验证阈值 (以秒为单位)

Enter the time in seconds you expect your script should be completed in case you would like to receive an error if this threshold is exceeded. 

There are several default system timeouts:

Navigation timeout 120 seconds By default, the system will wait for 120 seconds to complete navigation to a web page. If navigation isn’t completed in 120 seconds the action is aborted and error is generated.  The script execution will continue.
User Action timeout 50 second The system will wait for 50 seconds to complete a user action (click, select, etc.). If the user action isn’t completed in 50 seconds the action is aborted and error is generated. The script execution will continue.
Script Execution timeout 15 minutes By default, the system will wait for script execution result fro 15 minutes. If the script execution is not finished in 15 minutes it will be aborted. Script execution is fully aborted either on a successful run or in case of reaching the timeout.

浏览器模式

Dotcom-Monitor 可以通过代理或直接发送负载测试请求。默认情况下,所有请求都将直接从 Load Injector 发送。 Browser Mode 选项允许快速激活代理以在 Tunnel 模式下发送请求。

DNS 选项

The DNS Options feature allows users to choose how domain name server (DNS) requests are conducted during a test.

The Custom DNS Hosts section allows setting up the mapping of IP addresses to hostnames. IPv6 and IPv4 DNS resolutions are supported.

To specify the mapping, enter the IP address and the hostname in the corresponding fields.

Examples:

192.168.107.246   example.com user.example.com userauth.example.com tools.example.com
192.168.107.246   example.com
192.168.107.246   user.example.com
192.168.107.246   userauth.example.com

See also: DNS Mode Options.

创建脚本后,必须配置负载测试方案