Page testing method and page testing device

A page testing and page technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problem of increasing the complexity of testing software, increasing the complexity of using testing software, increasing the complexity of testing software development, etc. problems, to achieve the effect of reducing development complexity and use complexity

Inactive Publication Date: 2012-06-27
HUAWEI TECH CO LTD
View PDF2 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is not difficult to find that testers need to base on the action type (such as "left mouse button click") and the type of the page element to be tested for the action to be tested (for example, the type of "login button" is "button", "gender The type of "drop-down box" is "drop-down box") to select the corresponding action name (for example, "click the button with the left mouse button" or "click the drop-down box with the left mouse button") to determine the corresponding action function, instead of selecting the corresponding action name only based on the action type, because for different types of page elements, even if the action type is the same, the action events triggered after the action is executed are likely to be different (for example, the left mouse button click The "login button" may cause the login result interface to

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Page testing method and page testing device
  • Page testing method and page testing device
  • Page testing method and page testing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] figure 1 It is an exemplary flowchart of the page testing method 100 according to an embodiment of the present invention. The page testing method 100 is used to test a page, where the page may be a web page (Web Page) written based on HTML, or a software interface.

[0023] Step 102, read test statements used to indicate page elements and test actions.

[0024] Step 104, searching for the position of the page element on the page according to the source code of the page.

[0025] Step 106, execute the test action at the location.

[0026] Step 108, verify the execution result of the test action to obtain a test result.

[0027] The technical solution provided by the embodiment of the present invention reads the test statement used to indicate the page element and the test action, finds the position of the page element on the page according to the source code of the page, and executes the test action at the position , and then verify the execution result of the test a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a page testing method and a page testing device, wherein the page testing method is used for testing a page. The method comprises the following steps of: reading a testing statement for indicating a page element and a testing action; searching the position of the page element on the page according to the source code of the page; executing the testing action at the position; and verifying the execution result of the testing action to obtain a testing result. The invention further provides the page testing device. According to the embodiment, an action function is not necessary to be used; an appointed testing action is directly triggered; and therefore, the development complexity and the usage complexity of testing software are both reduced.

Description

technical field [0001] The invention relates to page testing technology, in particular to a page testing method and a page testing device. Background technique [0002] The third-generation software testing technology with Action Word (AW) as its main feature has achieved great success once it was launched because of its ease of use. [0003] In this software testing technique, the test software manufacturer pre-tests each standard action (such as "mouse left button click" Click the button" or "click the drop-down box with the left mouse button", etc.) to define the corresponding action function. This kind of action function is identified by the corresponding action name (such as "click the button with the left mouse button" or "click the drop-down box with the left mouse button", etc.), and its function is not to trigger the corresponding action, but to trigger the action A direct result produced after execution, which may be called an action event. An action list is mai...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
CPCG06F11/36G06F11/3688G06F11/3668
Inventor 王峰缪伟
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products