Supercharge Your Innovation With Domain-Expert AI Agents!

JS file testing method and device

A JS file and file technology, applied in the field of JS file testing methods and devices, can solve the problems of low test efficiency, excessive effort of coders, low test efficiency, etc., and achieve the effect of improving test efficiency

Pending Publication Date: 2022-04-19
ZHEJIANG SUPCON TECH +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the testing method for front-end JS files is usually manual testing, which is inefficient, or uses selenium to identify interface elements for comparison, but there are too many page elements and the front-end code is easy to change during the development stage, making coders spend too much time It takes a lot of effort to modify the code, and the test efficiency is low

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
  • JS file testing method and device
  • JS file testing method and device
  • JS file testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] 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 making creative efforts belong to the protection scope of the present invention.

[0051] In this application, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes none. other elements specifically listed, or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "com...

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 provides a JS file testing method and device. The method comprises the steps of obtaining a pre-constructed testing tool; compiling the test tool to obtain an execution file corresponding to the test tool; calling the execution file to obtain a JS file to be tested, and writing each key value pair in the JS file into a preset intermediate file to obtain a test result file; each key value pair comprises a page element identifier of the JS file and description information corresponding to the page element identifier; the description information comprises at least one of first language description data and second language description data. By applying the test method of the JS file provided by the invention, the description information in each key value pair of the JS file can be quickly obtained, so that the test efficiency of the JS file can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for testing a JS file. Background technique [0002] With the rapid development of network technology, the information provided on the Internet is becoming more and more abundant. More and more users obtain information from the Internet through the front-end. The front-end can provide information to users through the display page. In the process, it is usually necessary to test the JS files of the front end to ensure the functional realization of each functional module of the front end. [0003] At present, the testing methods for front-end JS files are usually manual testing, which is inefficient, or uses selenium to identify interface elements for comparison, but there are too many page elements and the front-end code is easy to change during the development stage, making coders spend too much time It takes a lot of energy to modify the code, and the test...

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
CPCG06F11/3684G06F11/3688
Inventor 吕启运马楠桦井毅孔伟阳
Owner ZHEJIANG SUPCON TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More