| Times are changing, Internet information technology industry is evolving and improving, more and more applications in daily life are moving in the direction based on the Web, which we usually speak of B/S structure that uses the browser to achieve human-computer interaction directly. Web softwares based on B/S undertake the publication of data, complicated transaction processing and a large number of data processing. In order to meet the needs of different users and give users a good experience, this structure corresponding to the Web application along with Android system and IOS system and so on, which not only gives software developers higher demands, but also means software tester will face great challenges. Traditional manual testing contains such a large number of repeated operations by hand, however, automated testing avoids the disadvantages above, and makes testing more efficient and reduces the burden of manual testing.This paper, deeply studying automated testing for Web and Android system, presents a hybrid automation testing framework which is based on data-driven, modular scripts and keyword-driven through the study of existing automation testing framework to meet the condition of test operation-Web and Android system crossed simultaneously, and verifies the application of the framework through specific project.In this paper, the automated test framework uses Selenium WebDriver and Selendroid, the Web uses Seleniun WebDriver and Android system uses Selendroid (Android’s WebDriver). Selenium is an open and mature source software and it is mainly used to do functional automation test of Web-side applications; Selendroid is a framework based on Instrumentation, and could use the same set of API with Selenium WebDriver because it fully compatible with Webdriver protocols. This framework’s implementation of system is eclipse, the script language used Java, in eclipse, you can build.properties file while can be saved to test required testing data and system configuration data (such as the specified URL). During the test, this framework implement the separation between test data and test scripts, in the development phase of the code, used Firebug to locate Web element which to be tested, and at last used JUnit(unit test framework) to drive the test and generate the test report. |