如何创建设备

配置脚本执行

每个 UserView 设备都包含一个脚本,其中包含使用“每个步骤脚本工具“创建的步骤序列。 您可以创建新脚本、从现有设备将脚本导入每个步骤记录器或从本地计算机上载脚本。

创建并保存 UserView 脚本后,您可以在“脚本”选项卡上配置脚本执行设置。

修改复杂监视脚本(添加新/编辑存在的步骤)的最佳方法是直接在“每个步骤脚本工具”中打开和编辑它。

录制的脚本

该字段显示使用每个步骤记录器录制的脚本。 要编辑脚本,请单击“编辑脚本”按钮,然后使用“每个步骤记录器“修改脚本。 另请参阅:编辑用户视图脚本

脚本模式

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

完成超时(以秒为单位)

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.

模拟返回访问者

If you want to see how a web page performs for a frequent visitor, or someone who already has elements from the page cached, you can turn on the return visitor flag on the task edit screen.

Simulate a Return Visitor immediately revisits the web page a second time and only records the results of the second visit. Results may differ from a first visit (which always starts with an empty cache) based upon how the browser handles certain items, such as the expiry of elements on the page.

每次运行时录制视频

Record Video on Each Run will record a video capture for every single monitoring session. If this option is not turned on, the task will only record a video on the first session of a day that errors or on the first error detected from a location in a given error period.

第一个错误时中止脚本

在某些情况下,监视错误可能会影响后续监视步骤的执行,并导致警报的重大延迟。 要在第一个监视错误时停止脚本执行,请选择”“。

例如,在客户端登录步骤执行上收到的监视错误会导致后续监视步骤失败。 如果脚本中有大量监视步骤,则 Dotcom-Monitor 需要一些时间才能完成脚本执行并发送警报。 为了更快地接收警报,建议激活“中止脚本”选项。

如果不需要在轻微的网络错误上中止脚本,请将返回错误的元素添加到忽略列表

由于处理检测到的错误并中止脚本所需的时间,设备报告可能在错误发生后包含多个步骤的数据。

DNS 选项

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

To specify the mode of resolving hostnames, in the DNS Resolve Mode section, select one of the available modes. For more details on the feature configuration, see DNS Mode Options.

The Custom DNS Hosts section contains the mappings of IP addresses to hostnames.

To specify the mapping, enter the IP address and the host name 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.