A webkit unit testing method and device
A unit test, a technology to be tested, applied in software testing/debugging, etc., can solve problems such as inconvenient viewing of test results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 The implementation flow of the webkit unit testing method provided by Embodiment 1 of the present invention is shown, and the details are as follows:
[0025] In step S101, the unit test framework module is started, and a test case based on the unit test framework is written using an interface language in a preset directory.
[0026] In this embodiment, the unit testing framework module is an open source unit testing framework of JavaScript, including a jsunit module. The preset directory is a directory preset for saving test cases. The interface language is used to specify the behavior of the access object. Preferably, the interface language includes an Interface Description Language (Interface Description Language, IDL), where the Interface Description Language is a language defined by the World Wide Web Consortium (W3C). Interface Definition Language. The said startup unit test framework module uses the interface language to write the test case based on t...
Embodiment 2
[0067] Figure 4 A specific structural block diagram of the webkit unit testing device provided by Embodiment 2 of the present invention is shown, and for convenience of description, only parts related to the embodiment of the present invention are shown. In this embodiment, the webkit unit testing device includes: a use case writing unit 41 , a binding unit 42 , a compiling unit 43 and a testing unit 44 .
[0068] Wherein, the use case writing unit 41 is used to start the unit test framework module, and uses the interface language to write test cases based on the unit test framework in the preset directory;
[0069] The binding unit 42 is used to set the Javascript binding between the module to be tested and the test case in the compilation configuration file of the module to be tested;
[0070] A compiling unit 43, configured to compile the module to be tested and generate a test case object;
[0071] The test unit 44 is used to set up a wed server, deploy and access the t...
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