Page model as well as user interface automated test method and device

A technology of automated testing and page models, applied in the field of testing, can solve problems such as difficult to accept by testers, unsuitable for application, and huge workload, and achieve the effects of improving efficiency and maintainability, reducing implementation costs, and simplifying the setting process

Active Publication Date: 2016-05-25
BEIJING SEEYON INTERNET SOFTWARE CORP
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The inventor found in the process of realizing the present invention: since the existing UI automation testing technology based on the page model uses all the HTML page elements contained in the page to set the page model, therefore, the work of setting the page model for the tested business The amount is closely related to the number of pages involved in the tested business and the number of HTML page elements contained in the page; when the number of pages involved in the tested business is not large, and the number of HTML page elements contained in the page is not large , the workload of setting the page model for the business under test is easier to be accepted by the testers; and when the number of pages involved in the business under test is large and the number of HTML page elements contained in the page is large, setting the page model for the business under test The workload of the model will become very large, making it difficult to be accepted by testers
In addition, because the existing UI automation testing technology based on the page model uses all the HTML page elements contained in the actual HTML page to set the page model, therefore, the designed page model usually has strong pertinence, and its Poor versatility, for example, the page model designed for a certain business under test is usually only applicable to the UI test process of the business under test, and usually cannot be applied to the UI test process of other business under test

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 model as well as user interface automated test method and device
  • Page model as well as user interface automated test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0018] Embodiment 1. An object-oriented page model for user interface automation testing. That is, the page model in this embodiment is set based on the object-oriented principle, and the page model in this embodiment is mainly applicable to the process of user interface automation testing.

[0019] The page model in this embodiment is provided with attributes and methods, wherein the attributes of the page model are the features of the abstracted page model, and the methods of the page model are operations performed by the abstracted page model. The page model in this embodiment is mainly used for that the instantiated page model can be called after it is instantiated, such as the instantiated page model is called by the user interface automation test program, and the user interface automation test program The method of the instantiated page model can be called according to the specific test requirements, and the called instantiated page model can complete the corresponding p...

Embodiment 2

[0041] Embodiment 2, user interface automation testing method.

[0042] figure 1 It is a flow chart of the user interface automation testing method of the present embodiment, figure 1 The shown method mainly includes: step S100 , step S110 , step S120 and step 130 . The method described in this embodiment is usually run on smart electronic devices. Preferably, the method described in this embodiment can be run on user devices such as desktop computers, notebook computers, tablet computers, and smart mobile phones. next to figure 1 Each step in is explained separately.

[0043] S100. Determine a predetermined business process corresponding to the tested business.

[0044] Specifically, the reservation business process in this embodiment can usually be a general business process for a specific business function. The business process of the ticket booking business is basically the same, therefore, the reservation business process in this embodiment can be a general business ...

Embodiment 3

[0052] Embodiment 3, user interface automatic testing device.

[0053] figure 2 It is a schematic diagram of the user interface automation testing device of the present embodiment, figure 2 The shown device mainly includes: a first determination module 200 , a second determination module 210 , an instantiation module 220 and a test module 230 . The device described in this embodiment can usually be set in an intelligent electronic device, preferably, the device can be set in a user device such as a desktop computer, a notebook computer, a tablet computer, and a smart mobile phone. next to figure 2 Each module in is explained separately.

[0054] The first determination module 200 is mainly adapted to determine a predetermined business process corresponding to the tested business.

[0055] Specifically, the predetermined business process determined by the first determination module 200 can usually be a general business process for a specific business function, such as wh...

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 invention relates to a page model as well as a user interface automated test method and device. The page model is provided with attributes and methods. The page model comprises a first set provided with attributes and methods and / or a second set provided with attributes and methods, wherein the first set is formed by packaging a plurality of page elements, and the methods of the first set are used for the methods of the page model or the methods of the second set to call; each page element packaged in the first set is provided with an attribute and a method, and the method of each page element is used for the methods of the first set to call; the second set is formed by packaging a plurality of first sets, and the methods of the second set are used for the methods of the page model to call; and when the page model is instantiated and called, corresponding page functions are finished by executing the methods of the page model. According to the page model as well as the user interface automated test method and device, the efficiency and maintainability of user interface automated testing are improved and the realization cost of user interface automated testing is reduced.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a user interface automatic testing method and a user interface automatic testing device. Background technique [0002] One of the testing purposes of UI testing (User interface testing, user interface testing) is to ensure that the user interface of the service under test can provide users with corresponding access or browsing functions. [0003] In the development process of UI testing, the UI automation testing technology based on the object-oriented page model was proposed. Because this testing technology has the characteristics of low difficulty in development and maintenance, it has been widely used in the field of UI testing. Promote apps. [0004] The existing UI automation testing technology based on the page model mainly abstracts each HTML (HyperTextMarkupLanguage, hypertext markup language) page involved in the tested business into attributes and methods (such as usin...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F9/44
CPCG06F9/451G06F11/3672
Inventor 韦伟康艳
Owner BEIJING SEEYON INTERNET SOFTWARE CORP
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