Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page testing method and apparatus

A page test, a technology to be tested, applied in the direction of software testing/debugging, etc., can solve the problems of fragmented test points, inability to achieve exception recovery, depth-first traversal and single-page traversal, etc., to achieve the effect of reducing development

Inactive Publication Date: 2018-01-23
无线生活(杭州)信息科技有限公司
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above-mentioned depth-first traversal scheme has several unsolvable problems: 1. The test execution is irregular. Because of the depth-first traversal, the test points are very fragmented, and it is impossible to concentrate on testing the functions of a certain page
2. It is impossible to do modular testing. Assuming that an app only modifies the function of a certain page, depth-first traversal cannot traverse a single page
3. Abnormal recovery cannot be achieved. When there is a problem with depth-first traversal, such as App Crash, ANR, etc., the existing solutions cannot quickly restore to the problematic page

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 apparatus
  • Page testing method and apparatus
  • Page testing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, but not to limit the present invention.

[0049] figure 1 Shown is a flow chart of a page testing method in an embodiment of the present invention, such as figure 1 As shown, the page testing method includes the following steps S11-S13:

[0050] Step S11, determine all URLSchemes supported by the application to be tested.

[0051] Step S12, enter the designated test page of the application to be tested according to the URLScheme.

[0052] In step S13, the operable controls in the designated test page are determined, and the operable controls are tested.

[0053] Before the test starts, the present invention lists all URL Schemes supported by the application under test by communicating with the developer, and the URL ...

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 present invention discloses a page testing method and apparatus. The method comprises: determining all URLschemes supported by a to-be-tested application, entering a specified test page of the to-be-tested application according to the URLSchemes, determining an operable control in the specified test page, and testing the operable control. According to the technical scheme of the present invention, the development of the UI automated testing business code can be effectively reduced, the UI automated testing return is more targeted, and bugs in the UI presentation layer can be initiatively discovered; and compared with other traversal algorithms, the technical scheme of the present invention solves the problems that the Monkey, depth-first traversal, and other methods are instable, traversal efficiency is low, initiative detection of UI bugs is lacked, the test page cannot be customized, and scripts are instable.

Description

technical field [0001] The present invention is in the technical field of UI automation testing, and in particular, relates to a page testing method and device. Background technique [0002] Automated testing, in a narrow sense, simulates the process of manual testing by means of tool recording or scripting, and executes test cases by playing back or running scripts, thereby replacing manual verification of system functions. Of course, our more general understanding regards "automated testing" as "automated testing based on the UI layer of a product or project". In the process of UI automation testing, because the business changes very rapidly, the maintenance cost of UI automation scripts is very high, and the scripts often cannot be executed continuously for a long time, which cannot bring good regression benefits to testers. At present, the industry has proposed and implemented depth-first traversal algorithms to traverse apps to solve the problem of script maintenance c...

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
Inventor 洪克锋
Owner 无线生活(杭州)信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products