Script testing method and system
A test method and test system technology, applied in the computer field, can solve problems such as inconvenient maintenance, poor maintainability, and complicated test scripts, and achieve the effects of flexible testing, strong maintainability, and improved maintainability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] The present application provides a script testing system, which is used for testing various functions of a chip. Such as figure 2 As shown, the test system 200 includes a configuration module 210 , a data module 220 , an analysis module 230 , a communication module 240 , a check module 250 , a script module 260 , a log module 270 , an algorithm module 280 and a judgment module 290 .
[0028] The configuration module 210 is used for storing test item files of multiple mutually independent test items and configuration information of the test items, and different test item files and different configuration information are independent of each other. And the configuration module 210 freely configures the corresponding test project file through at least one configuration information during the test.
[0029] As an embodiment, the chip is used as a cold wallet, and the test items include wallet management functions, digital currency functions and other test categories, and w...
Embodiment 2
[0043] The present application also provides a script testing method, which is used for testing various functions of the chip. Such as figure 1 As shown, the test method includes the following steps:
[0044]S110: configure the test file, the test file is configured by the user, the test file for each test includes at least one test item file of the test item and the configuration information of the test item, different test item files and different configuration information in the test file are all Independent.
[0045] In the test file, different test items are independent of each other.
[0046] As an embodiment, the configuration information of the test item may be a flag bit. In the process of free configuration, judge whether the test item is configured in this test by judging whether there is a flag bit of the test item, that is, whether the test needs to call the test item file of the test item.
[0047] This application sets the configuration information of multip...
Embodiment 3
[0066] The present application also provides a storage medium storing a computer program, wherein the computer program executes the testing method of Embodiment 2.
[0067] The present invention has the following beneficial effects:
[0068] 1. The separation of test case data and scripts in this application makes the test scripts more maintainable.
[0069] 2. This application sets the configuration information of multiple independent test items. Users can freely configure the test items, making the test more flexible, and avoiding that the test script runs from beginning to end and cannot independently control each test item.
[0070] 3. The application realizes the separation of functional interface and algorithm interface through the call of the algorithm. When adding an algorithm, there is no need to greatly modify the script, which improves the maintainability of the script. Moreover, the separate call of the algorithm realizes the independent and automatic testing of m...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

