Font Size: a A A

Design And Implementation Of Integrated Automation Testing Framework Based On Selenium And TestNG

Posted on:2019-04-03Degree:MasterType:Thesis
Country:ChinaCandidate:J LiangFull Text:PDF
GTID:2428330578972709Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The automated test architecture is the fundamental guarantee of automated testing.A properly designed automated test architecture can reduce the cost of executing test and post-maintenance scripts and improve test efficiency.This article designs and implements an automated testing framework that supports continuous integration according to the automated testing process.The main research work of the dissertation is as follows:First,Through the analysis of several automated testing tools,it was decided to use the lightweight and free open source tool Selenium to encapsulate and extend the framework,implement the browser control function.It was integrated the TestNG unit testing framework to define test annotations and return the failed tests.It also was integrated the version control tool git and the continuous integration tool Jenkins.When the code was updated,the test script was automatically triggered and the test report was sent to the tester in the form of email.Second,Based on this,I had designed and implemented a ST automated test framework that supported continuous integration.This framework had introduced keyword-driven and data-driven ideas to separate business logic from page elements and test data,made the framework more flexible and reduced late-stage Maintenance costs.Third,Based on the ST automated testing framework,an Excel report plugin had been designed and implemented.Through this plugin,the time,number,result,and pass rate of each function module use case execution of the system under test can be intuitively understood,and can quickly link function module to generate logs and screenshots,locate the specific location of failure,and achieve automatic feedback,storage and reporting of test results.Forth,In order to solve the problem of log inconsistency in the parallel execution of tests,this thesis had proposed a way to write logs to files instead of the mature and stable logging component log4j.Fifth,The ST automated test framework had integrated Jenkins tools and introduces multi-machine testing methods.It had detailed design for the processes of continuous integration,and had achieved continuous construction,continuous concurrent execution of tests,and automatic transmission of test reports.It facilitated testers to know the test execution status in a timely manner..The framework had been applied in the test of“Beautiful Rural Standardization Construction Management and Evaluation System".The application results showed that this testing framework can replace manual testing to some extent,saving manpower and time for testing and improving testing efficiency.At the same time,the results of this thesis had some reference and reference value for the construction of automated testing framework for other software systems.
Keywords/Search Tags:Automated testing, framework, Report Plugin, Continuous integration, Multi-machine testing
PDF Full Text Request
Related items