JOURNAL ARTICLE

Test Case Generation for Cross-Blockchain Smart Contract

Abstract

With the development of blockchain technology, an increasing number of users are adopting cross-blockchain smart contracts, which necessitates effective testing methods due to digital asset security concerns. However, few work specifically tailored for cross-chain smart contracts. In this paper, we propose a test case generation method for cross-chain contracts based on the ant colony algorithm. This method conducts data flow analysis on the cross-chain smart contract to identify the critical information related statements. These statements are then subjected to mutation operations to create mutants. Subsequently, test cases are generated with an improved ant colony algorithm to kill as many mutants as possible. Theoretically, this method can effectively detect faults in critical information related handling in cross-chain smart contracts.

Keywords:
Blockchain Smart contract Test (biology) Computer science Computer security Geology

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
7
Refs
0.34
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

FinTech, Crowdfunding, Digital Finance
Social Sciences →  Business, Management and Accounting →  Management Information Systems
Blockchain Technology Applications and Security
Physical Sciences →  Computer Science →  Information Systems
© 2026 ScienceGate Book Chapters — All rights reserved.