Test method and storage medium for Web engineering automatic verification
A test method and engineering technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as the judgment of the scope of influence that cannot be solved, and achieve the effects of improving test efficiency, reducing test scope, and reducing test time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] Please refer to figure 1 , the present embodiment provides a test method for automatic verification of web engineering, including:
[0069] First, the project files to be released are traversed, classified and stored according to different file types, and the file name, path and type of each type of file are recorded. File type classification includes: java, CSS, JS, html, etc.;
[0070] Secondly, match the corresponding rules according to different file types, use regular matching to scan and divide, and then store them in the corresponding database table. The basis for formulating the specific rules is: specified according to the writing format of different languages and the calling relationship between different files.
[0071] Rules corresponding to different file types:
example 1
[0072] Example 1: The JavaScript file type defines functions using the keyword function. The syntax is: "functionfunctionName(parameters) {executed code}", then for the JS file (abbreviation of JavaScript file), the rules for this syntax will be used to match, and then functionName (function name), parameters (parameters), execution The code (function body) is saved to the database.
example 2
[0073] Example 2: The html file type is the main calling file of JavaScript functions, and the calling methods are divided into event calling and default loading calling.
[0074] Event call: For example, onclick (mouse click) event, the format is onclick="functionName(parameters)", and the above call events can be collected through regular matching.
[0075] Default load call: the format of the default call is functionName(parameters), in ** Between scopes, the matching rule is to get the first ** Code block, and then do regular matching to collect the corresponding functions.
[0076] Comparing the results of Example 1 and Example 2, you can know whether a function in a JS file is called in an HTML file.
[0077] Match the corresponding rules: For example, the JS file uses regular rules to filter fields such as "function function name (parameter) {function body}", and saves the generated data including the function name, parameters and function body to the database. Then,...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com