在任务配置期间,系统将提示您调整以下基本设置。

URL(必需)

Enter the URL that you wish to test. The address should be formed exactly as you would use it in a browser, such as http://www.example.com. You must include the http:// or https:// at the beginning of the address.  You may include any GET parameters at the end of your URL.

完成超时(以秒为单位)

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

浏览器类型

Select the desired browser platform from the following choices: Edge, Firefox, Chrome, or a mobile device.

Depending upon which browser type you selected above, the Browser Version field will appear. Here you can specify a specific version of the browser you wish to use in the test.

响应时间计算

响应时间通常被视为在页面加载过程中从真实浏览器中的最终用户请求传递到特定事件的时间。

从以下选项中进行选择,以计算以下的响应时间:

  • 整页加载。 当网站访问者启动请求并在浏览器窗口中显示整个页面的内容时(加载微调器已停止旋转)时,将开始计算全页加载时间。 换个方法,时间包括服务器响应时间和所有子资源的下载时间,如映像和 CSS(加载完成结束事件)。
  • 仅限网络时间。 如果您对纯服务器响应和页面元素的下载时间感兴趣,而不是对任意最终用户计算机呈现页面所需的时间感兴趣,则仅选择”网络时间”非常有用。 它仍然发送上述类型的浏览器代理 , 服务器可以根据指定的代理发送不同的响应。 网络请求之间的时间(例如,JavaScript 正在执行)在网络时间计算过程中不考虑,因此完成超时验证应用于纯响应时间。
  • 导航计时事件。 此选项在页面加载过程中提供特定时间点的选择。 有些对应于 DOM 事件,另一些则描述发生感兴趣的内部浏览器操作的时间。 有关特定事件参数的说明,请参阅https://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface

内容验证

Content Validation Keywords are used to ensure that the expected content was loaded onto a web page. In the Keyword fields, you can specify one or more words or phrases that you wish to search for in the web page content.  If the expected keywords are not found, the task will return an error.

You can enter multiple strings into the keyword fields.  The values you enter can be separated by logical expressions as follows:

{[("keyword1"&"keyword2")|!"keyword3"]}

Where:
{[ – keyword expression start;
]} – keyword expression end;
() – grouping brackets;
& – logical AND;
| – logical OR;
! – logical NOT;
“string” – a keyword.

A successful keyword expression must include the start and end brackets as follows:

{["keyword"]}

基本身份验证

The Basic Authentication scheme s used to allow users to access content on some websites. Once provided login credentials will be passed along with the request header to the web server.

  • Username: contains a username for HTTP/S basic or digest access authentication.
  • User Password: contains a password for HTTP/S basic or digest access authentication.

Do not confuse Basic Authentication with other authentication schemes such as Bearer Authentication that involves bearer tokens and OAuth 2.0 that uses access tokens.

Read the articles on Basic Authentication Username and Password and Monitoring OAuth 2.0-based APIs for more information.

下载过滤器

Expand the network element filter section and add a filter rule to ignore certain elements, such as images, Flash, or CSS, so they are not downloaded. You can use this to filter out elements that return an error. For example, you could ignore files that end in .js, .css, or .png. Or you could ignore files that contain google or jquery, etc.

There are two types of rules:

  • Ignore elements corresponding to the mask.
  • Download only the elements that correspond to the mask.

Each “Download” and “Ignore” field has three possible values:

  • Start With. Each referenced object which starts with this string will be filtered.
  • Contain. Each referenced object which contains this string will be filtered.
  • End With. Each referenced object which ends with this string will be filtered.
  • Equals. Each referenced object which is equivalent to this string will be filtered.

Before applying, be sure that your root HTML element isn’t filtered.

创建脚本后,必须配置压力测试方案