Papers1 provider Ā· 1 record
December 4, 2023Ā· 2023 30th Asia-Pacific Software Engineering Conference (APSEC)
conference-paper

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.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.