GUI Test Repair Based on Test-Extension
GUI test repair is important to detect and repair obsolete test events to enhance the reliability of the software. From an interaction design perspective, designers usually design different routes to facilitate users to reach the same functional entry point. Based on this, we propose a novel test repair method to find paths with similar functions based on the feature coverage, to get as close as possible to the test target point during the repairing process, and to improve the effectiveness of the test fixing. A test extension algorithm is proposed to search for alternative event branches with similar features to the test script. Then, the sequence transduction probability is used to calculate the feature coverage of the mapping event paths in the updated version and guide the repair. Experiments conducted on popular applications demonstrate that the method can achieve a success rate of 79.63% in repairing tests, which significantly outperforms current approaches. The test-extension approach displays immense potential for optimizing test repairs.