Font Size: a A A

The Design And Implementation Of Automation Test Tool For REST Product

Posted on:2015-06-30Degree:MasterType:Thesis
Country:ChinaCandidate:Y ShiFull Text:PDF
GTID:2308330461456656Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet, web service is becoming increasingly popular, and it greatly facilitates the development of web applications and Internet technology. RESTful web service is being widely used nowadays because of the simplicity and fastness brought by its abstraction of resources. Intel Corporation has developed a cloud service platform providing a series of REST APIs, such as user management and message transfer. Third-party application developers can use these APIs to easily build their own applications. Besides, it provides a web-based portal for visual management. However, with the increasing number of product functions, manual test can no longer meet the testing requirement. Besides, existing automation test tools can not fully meet the test requirements of the REST product. To improve the testing quality and testing efficiency, an automation test tool is needed to achieve automated testing of this REST product.There are a lot of excellent test automation frameworks and automated testing tools. After studying these frameworks and tools, we analyzed the product features and testing requirements, and an automated testing solution is proposed. The automation test tool uses NUnit as basic testing framework for test case management and test drive. Test contents of the REST product include API test and Portal test, we encapsulate and implement API test and Portal test respectively, then organize and call them in test cases, thus to achieve a complete test logic. SoapUl is used in API test for test management, and later integrate this part to automation test tool; Selenium framework is used in Portal test to test web pages automatically. This automation test tool provides a series of functions, such as project configuration, test data management, test log record and test result record, thus this tool is with high practicality. Besides, during the design and implementation of this automation test tool, we separated test logic with test data, and separated interface control names with internal objects. In this way, this automation test tool is with high extensibility, and it can be easily extended when new features are added.This automation test tool is completed by my colleague and me. To be concrete, project configuration management, test data management, REST API encapsulation and test cases implementation are finished by myself, and all the other parts are finished by both of us.This automation test tool has been applied in daily testing work and has acquired anticipated effects. This test tool has greatly improved the automation rate of REST product test and has greatly reduced manual test time. Testers can view test results clearly and they can reproduce and debug failed cases by viewing logs and recorded videos. As a word, this automation test tool is a great help for discovering and solving bugs.
Keywords/Search Tags:RESTful web service, Automation test, NUnit framework, Selenium, SoapUI
PDF Full Text Request
Related items