LoadView 使用真实浏览器来模拟用户与网站的交互,从而提供与真实场景非常相似的准确性能数据。您可以毫不费力地编写复杂的用户交互脚本,从而允许您在网站上执行详细且有针对性的测试场景,而无需高级编码技能。定义测试方案并创建脚本后,LoadView 会生成在真实浏览器窗口中执行测试方案的虚拟用户。测试开始后,每个虚拟用户都会重复执行测试场景定义的 Web 事务。事务完成后,虚拟用户将重新启动进程并继续,直到测试持续时间结束。

每次虚拟用户运行事务时,LoadView 都会启动一个新的浏览器会话。

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

例如,您可以使用 EveryStep Web Recorder 来记录和测试电子商务网站的购物车结帐流程。

录制的脚本

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

脚本模式

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

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

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.

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