Font Size: a A A

A Keyword-driven Java Api For Automated Testing Framework

Posted on:2012-03-11Degree:MasterType:Thesis
Country:ChinaCandidate:Q J GaoFull Text:PDF
GTID:2208330335979958Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Software Testing is a key process in software development and it is directly related to the quality of software. API testing is an essential part of software testing. The traditional testing process of API is trivial and the testers should have proficiently coding ability. In addition, when test data and test logic is changed, the test script must be modified, and the execution programs must be recompiled. So the test scripts aren't reusable. Keyword-driven testing is an automated software testing technology. It separate test logic and data from test scripts. Test script is only an abstract description of the testing process, and the real test logic is in the test data file. The method can improve the reusability of test scripts.This paper designed and implemented a automatic test framework(JAPITest), Based on the keyword-driven automation theory,This framework is mainly used for Java interfaces test. The framework mainly consists of API information extraction, keywords automatic generator, keywords library, test cases library and test drive execution components. API information extraction module extracts API information from the tested program; According to the API information keywords automatic generator module automatically generates function keywords; Keywords library storages the definition and relevantly real actions of the keywords; Test cases library is used to store user-written test cases. Test drive execution module is responsible to interpret and execute the testing case, and its main function is to analysis different keywords to find the relevantly real actions of the keywords, then to perform these actions, and complete the test.Finally, the JAPITest framework is compared with popular Junit testing framework by a case. The experimental results show that JAPITest framework effectively reduces the number of the test scripts, and enhance the reusability of test scripts. The test script, test logic, and application is separated from each other, which enhances the maintainability of test cases. Not only that, it implements the API's automatic extraction, automatic keyword generation, test case management and execution automation, which significantly improves the efficiency and quality of Java API testing.
Keywords/Search Tags:software test, keyword-driven, API test, test automation, test framework
PDF Full Text Request
Related items