Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2019-11-01
JIANGSU HENGBAO INTELLIGENT SYST TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] a. Test data and scripts are mixed together, which is inconvenient to maintain
[0005] b. The scalability is not strong. With the increase of digital assets, the test script becomes more complicated
[0006] C. Functional functions and algorithmic functions are mixed together. When the algorithm is added, the script needs to be greatly changed, and the maintainability is not strong.
[0007] D. The test script runs from beginning to end, unable to control each test item independently, and lacks configurability

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
  • Script testing method and system
  • Script testing method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

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 discloses a script testing method and system. The script testing method comprises the steps: configuring a test file which comprises at least one test item file, wherein different test item files are independent from each other, and each test item file corresponds to one test item; loading test case data corresponding to the test item; analyzing test data and expected return data from the test case data; establishing communication connection between the analog terminal and the chip according to the communication protocol; running a test script corresponding to the test item to obtain a running result, and synchronously recording a test log; verifying the running result of the corresponding test script by utilizing the expected return data of the test case data; and generatinga test result according to the verification result, and outputting a test report. The test case data and the script of the script testing method are separated, so that the maintainability of the testscript is stronger.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a script testing method and system. Background technique [0002] The cold wallet stores the private key of the digital asset separately in a hardware chip, and uses the hardware device to store core data such as the private key. In the chip test, the test script generally needs to simulate the use of various functions of the chip by the APP terminal, and analyze and check the content returned by the chip. [0003] Such tests usually have the following disadvantages: [0004] a. Test data and scripts are mixed together, which is inconvenient to maintain. [0005] b. The scalability is not strong. With the increase of digital assets, the test script becomes more complicated. [0006] C. Functional functions and algorithmic functions are mixed together. When adding an algorithm, the script needs to be greatly changed, and the maintainability is not strong. [0007] D. The tes...

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/3688G06F11/3692G06F11/3672Y02D10/00
Inventor 刘婷婷孔素红
Owner JIANGSU HENGBAO INTELLIGENT SYST TECH CO LTD