Method and device for generating smart contract test cases
A test case, smart contract technology, applied in the blockchain field, can solve problems such as difficult test cases
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0077] As mentioned earlier, in order to ensure the correctness of the smart contract deployed in the blockchain system, the smart contract needs to be tested before deploying the smart contract on the blockchain system. The basic idea of testing smart contracts is to generate a series of test cases that simulate the actual use of smart contracts as input. After inputting the generated test cases into smart contracts, the execution actions or output results of smart contracts are obtained, and then according to the input The match between the test case and the obtained execution actions or output results is used to determine whether there is an error in the smart contract.
[0078] However, the interface parameters of smart contracts are usually designed as serializable complex data structures to facilitate data transmission between different nodes in the blockchain system. The test case used to test the smart contract includes one or more structured parameters. When the tes...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


