JS code testing method, storage medium, device and system
A technology of JS code and test method, applied in the field of human-machine identification, can solve the problems of inconvenient use and cumbersome process, and achieve the effects of good test performance, fast running speed and high test efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0033] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
[0034] see figure 1 As shown, the embodiment of the present invention provides a test method of JS code, which is used to test whether the JS code is correct. In the embodiment of the present invention, the JS code to be detected is automatically generated JavaScript code to realize the addition function. Take the JavaScript code as an example, the JavaScript code is as follows:
[0035] function AddFunc(a,b)
[0036] {
[0037] return a+b;
[0038]}
[0039] Var result1 = AddFunc(2,3);
[0040] Var result2 = AddFunc(-5,3);
[0041] Var result3 = AddFunc(-5,-3);
[0042] Var result4 = AddFunc(0,0);
[0043] Var result5 = AddFunc(4294967295,2);
[0044] The above auto-generated JavaScript code is an addition function, which is used to calculate the result of adding two variables.
[0045] A kind of testing method of JS code in the embo...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap