How LR HTML differs from URL recording

Source: Internet
Author: User

recording Recording Options

Here are two major categories of recordings:

1. html-based script HTML -based Scripts

The scripts recorded in this way are based on html. Generally speaking, if we are the B/S architecture of the standard using ie, we should use a script under Html-base. Containing explicit URLs only the way to record scripts, which are based on URL requests and do not have any Back-and-forth Content.

A Script. Describing user actions (web_link, Web_submit_form)

Based on the script that interprets the User's behavior, it focuses on describing what the user has done similar to qtp, the script is concise, based on the user operation simulation, easy to understand, and itself contains the object inspection process, without verifying

A Script. containing explicit URLs only (web_url, Web_submit_data)

The type of script recording based on the URL request, which does not take into account the User's actions, but only the requests sent by the client, focusing on what the system actually does.

2. url-based script URL -based Scripts

The script that is recorded in this way is based on the URL Request. If we are a Non-ie standard c/s architecture, we recommend using Url-base to record scripts so that we can ensure that no HTTP requests are Missed.

This is the URL request based script recording method, we will record all HTTP requests, resulting in the script contains a large number of Web_url () function use web_custom_request only custom HTTP request rules, More suitable for binary processing in custom HTTP Requests. Generate scripts in this manner all requests are generated by the Web_custom_request () Function.

For functions such as Web_link (), web_submit _form (), You need support for the previous page, which means you must first visit the Http://127.0.0.1:1080/WebTours/page before you can click Sign button, If not http://127.0.0.1:1080/WebTours/this page, is unable to Click on the sign up now button, including Web_submit _form () submit, also must be clicked on the the page after the sign up now button can only be Submitted.

For Web_url (), web_submit _data () functions do not need the support of the previous page, that is, you can directly access the HTTP://127.0.0.1:1080/WEBTOURS/LOGIN/P1 (equivalent to clicking on the sign to now), and can also be submitted on the current Page.

How LR HTML differs from URL recording

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.