Font Size: a A A

Improvement And Implementation Of TDD Automated Test Framework Based On JUnit

Posted on:2016-07-24Degree:MasterType:Thesis
Country:ChinaCandidate:Y H ZhouFull Text:PDF
GTID:2308330461978258Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The advent of the Mobile Internet Era led to the rapid development of mobile APPs. However, corresponding test technology did not catch up with this development. At present, test frameworks for mobile APPs with client/server architecture are extremely rare. Most frameworks have poor pertinence, rarely consider the particular test requirements of mobile clients, and test cases are hard to be applicable to multiple environments. That leads to low codes’reusability, high test cost and poor portability. Based on the factors listed above, this paper researches and implements TDD Automated Test Framework, applied in automated test for the interface level of mobile APPs with client/server architecture. The framework adopts the test idea of modular test framework and data-driven test framework, considered the APPs’ actual test requirements, analyzes and improves the new annotation mechanism of JUnit4.x, defines comments, rewrites Runner and implements parameter configurator and data generator. It can filter test cases and prepare data based on parameters such like environment, time, priority etc. It adopts Maven project builder and Hudson continuous integration, and implements alarm system which can alarm failure test cases based on the alarm rule. Also a Java Web architecture test platform is implemented, based on Webx framework, for displaying and analyzing the test results.Currently, TDD Automated Test Framework has been widely applied in the daily test of TDD(a catering service 020 APP) and shows good practicality and stability. It plays different effects in different environments. Online environment runs regularly as a monitor to ensure stability of its interfaces. Pre-release environment runs manually for regression testing of main scenarios before releasing. Daily environment as the basis case of interface testing reduces the proportion of manual testing. It greatly improves the test efficiency, simplifies the writing of test cases, expands the test cases covering, ensures the quality of productions and has great practical value.
Keywords/Search Tags:Test Framework, Automation, JUnit, Environment Configuration
PDF Full Text Request
Related items