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

Test-based webpage component extracting and reusing method

A technology of test cases and components, applied in the direction of software reuse, creation/generation of source code, etc., can solve the problems of restricting the freedom of design of developers, aggravating the homogeneity of web application, and pushing up the cost of early design, so as to achieve the development cost and The effect of lowering the threshold and improving development efficiency

Inactive Publication Date: 2018-06-15
SUN YAT SEN UNIV
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although this technology reduces the development cost to a certain extent and realizes the reuse of components, it limits the scope of optional components to a predefined component library, which greatly limits the freedom of developers to design. Exacerbated the homogenization of web applications
However, if a large number of component libraries are to be developed to meet the free creation needs of developers, the initial design cost will be greatly increased.

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
  • Test-based webpage component extracting and reusing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0027] figure 1 It is a schematic flow chart of a test-based method for extracting and reusing web page components according to an embodiment of the present invention, as shown in figure 1 As shown, the method includes:

[0028] S1, generate a dependency graph based on the source code of the web page, JavaScript / CSS and other related resources, and extract components based on the entry provided by the user;

[0029] S2. Reconstruct the extracted components accord...

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 test-based webpage component extracting and reusing method. The method comprises the following steps of: generating a system dependency graph for a webpage through using a static code analysis technology; extracting a to-be-reused component from the dependency graph by taking an access predefined by a user in a webpage source code; and reconstructing the component by using a test-driven development method, so as to ensure that the extracted component can be transplanted into a target software system and become a component which can be reused in instancewebpages. According to the method, the development costs and thresholds of webpage applications, webpage game engines and scenes are greatly reduced, the development efficiency is improved, and the vigor of the developers can be liberated from repeated and fussy work.

Description

technical field [0001] The invention relates to the technical field of software engineering software development, in particular to a test-based method for extracting and reusing web application components. Background technique [0002] In the past ten years, due to the rapid development of mobile devices and desktop devices, people's digital devices have become more and more diverse, and the cost of developing applications for different devices has been increasing. At the same time, the development of web applications has also been extremely rapid. Development tools emerge in endlessly, and there are countless excellent web applications. [0003] Most web applications are based on modular development, where web pages are composed of visual or functional components. These widgets are often the main components of a web page. However, the huge number of web applications, coupled with the homogeneity of functions and purposes of web pages to a certain extent, means that many o...

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): G06F8/36
CPCG06F8/36
Inventor 臧之豪陈湘萍龙永浩陈小燕
Owner SUN YAT SEN UNIV
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