A Semantic Web Enabled Approach to Automate Test Script Generation for Web Applications

Software testing is one of the most important activities for ensuring quality of software products. It is a complex and knowledge-intensive activity which can be improved by reusing tester knowledge. Generally, testing web applications involves writing manual test scripts which is a tedious and labor-intensive process. Manually written test scripts are valuable assets encapsulating the knowledge of the testers. Reusing these scripts to automatically generate new test scripts can improve the effectiveness of software testing and reduce the cost of required manual interventions. In this paper, a semantic web enabled approach is proposed for automatically adapting and generating test scripts. It reduces the cost of human intervention across multiple scripts by accumulating the human knowledge as semantic annotations on test scripts. This is supported by designing an ontology which defines the concepts and relationships required for test script annotation. The proposed approach is based on novel algorithms for adapting and generating new test scripts. The initial experiments show that the proposed approach is promising as it successfully increases the level of test automation.