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

To-be-tested front-end page determination method and device, storage medium and electronic equipment

A front-end page and determination method technology, which is applied in software testing/debugging, electrical components, software engineering design, etc., can solve problems such as abnormal page display, manual operation omissions or errors, and inability to cover the front-end page, so as to improve the front-end page range effect

Pending Publication Date: 2021-04-02
BEIJING ZITIAO NETWORK TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the use of componentization improves the efficiency and also introduces the difficulty of testing the front-end page. When any component is modified, the front-end page is involved in a wide range, and the scope is not clear. It is necessary to manually determine the front-end page that needs to be tested. There are omissions or errors in the operation, resulting in the inability to cover all the front-end pages, resulting in abnormal page display or abnormal functions

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
  • To-be-tested front-end page determination method and device, storage medium and electronic equipment
  • To-be-tested front-end page determination method and device, storage medium and electronic equipment
  • To-be-tested front-end page determination method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 It is a flow diagram of a method for determining the front-end page to be tested provided by Embodiment 1 of the present disclosure. The embodiment of the present disclosure is applicable to accurately determining the situation where the branch code affects each front-end page when any branch code is modified. The method can Executed by the device for determining the front-end page to be tested, the device can be implemented in the form of software and / or hardware, optionally, implemented by electronic equipment, and the electronic equipment can be a mobile terminal, PC or server.

[0036] Such as figure 1 , the method of this embodiment includes:

[0037] S110. Acquire the trunk code and the updated branch code.

[0038] S120. For the main code and branch codes, based on the dependencies between files and the file correspondence rules of the front-end page, determine the first mapping relationship between the main code and the front-end page and the branch c...

Embodiment 2

[0065] Figure 4 It is a schematic flowchart of a method for determining a front-end page to be tested provided in Embodiment 2 of the present disclosure. This embodiment is optimized on the basis of the foregoing embodiments, such as Figure 4 As shown, the method includes:

[0066] S210. Acquire the trunk code and the updated branch code.

[0067] S220. For the main code and branch codes, based on the dependencies between files and the file correspondence rules of the front-end page, determine the first mapping relationship between the main code and the front-end page corresponding to the branch codes The second mapping relationship between the file and the front-end page.

[0068]S230. Identify a change file of the branch code relative to the trunk code.

[0069] S240. Determine a front-end page to be tested corresponding to the changed file based on the first mapping relationship and the second mapping relationship.

[0070] S250. Generate a front-end page forecast ra...

Embodiment 3

[0083] Image 6 It is a schematic structural diagram of a device for determining a front-end page to be tested provided in Embodiment 3 of the present disclosure. Such as Image 6 As shown, the device includes: a code acquisition module 310 , a first mapping relationship determination module 320 , a changed file determination module 330 and a front-end page determination module 340 to be tested.

[0084] Wherein, the code acquiring module 310 is used to acquire the trunk code and updated branch codes;

[0085] The first mapping relationship determination module 320 is configured to determine the first mapping relationship between the file corresponding to the main code and the front-end page based on the dependency relationship between the files and the file correspondence rules of the front-end page for the main code and the branch code. The mapping relationship and the second mapping relationship between the file corresponding to the branch code and the front-end page;

...

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

Embodiments of the invention disclose a to-be-tested front-end page determination method and device, a storage medium and electronic equipment. The method comprises the steps of obtaining a main codeand an updated branch code, for the main code and the branch code, determining a first mapping relationship between a file corresponding to the main code and a front-end page and a second mapping relationship between a file corresponding to the branch code and the front-end page based on a dependency relationship between files and a file corresponding rule of the front-end page, identifying a change file of the branch code relative to the main code, and determining a to-be-tested front-end page corresponding to the change file based on the first mapping relationship and the second mapping relationship. According to the method, at least one affected front-end page can be quickly determined when any file is changed, the front-end page range needing to be tested can be conveniently determined, manual screening is not needed, and on the basis that the to-be-tested front-end page range is widened, the manual operation process is replaced.

Description

technical field [0001] The embodiments of the present disclosure relate to the technical field of computer data processing, and in particular to a method, device, storage medium and electronic equipment for determining a front-end page to be tested. Background technique [0002] Today's front-end page interactions are becoming more and more complex and diverse. A page carries a lot of functional interactions, and there are many similar functions and interface parts between different pages. Moreover, the front-end project involves JS, CSS, HTML and other languages, as well as image files in various formats, json configuration files, etc., and the project structure itself is relatively complicated. In order to improve development efficiency and ensure development quality, the idea of ​​componentization has gradually evolved, abstracting many common functions and displays into components, improving the code reuse rate through componentization, and reducing the development and m...

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): G06F8/41G06F8/65G06F8/72G06F8/73G06F11/36H04L29/08
CPCG06F8/427G06F8/73G06F8/65G06F8/72H04L67/02G06F11/3672
Inventor 陈雷杨明
Owner BEIJING ZITIAO NETWORK TECH CO LTD
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