Font Size: a A A

Design And Implementation Of Mobile Automated Testing Platform Based On Keyword Driven

Posted on:2020-05-05Degree:MasterType:Thesis
Country:ChinaCandidate:X X KangFull Text:PDF
GTID:2428330623956301Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of science and technology,mobile applications are developing rapidly,application types are rich and colorful,agile development speeds up iteration,application complexity is increasing,software market competition is fierce,software quality is very important,software testing is facing challenges.At present,most companies are still at the stage of manual testing.However,there are many drawbacks in this testing method,which requires high energy of testers.Most automated testing tools also have certain technical threshold,which is difficult for testers with limited programming ability.Therefore,it is of great practical significance for testers to study a low threshold automated testing platform,which is also a key research direction in the field of testing at this stage.In view of the above situation,through the comprehensive analysis of the existing mobile terminal testing framework and tools,this paper proposes a mobile terminal automated testing scheme based on keyword-driven idea,realizes an automated testing platform,and visualizes the basic testing process and keyword-related operations.The purpose is to reduce the cost of writing and maintaining test cases,and to complete automated testing with lower threshold and higher efficiency.This platform has been used in the company's actual testing work,and achieved the desired results.The main work and innovation of this paper are as follows:(1)The requirement analysis of the platform is carried out,and the automatic testing platform KKeyTest with keyword-driven idea is designed and implemented.Flask framework is adopted in the platform,and front-end technologies such as Bootstrap and jQuery are used to complete the development.The platform pages the testing process,making it more convenient and efficient for testers to complete the test.(2)Summarize and analyze the existing mobile testing framework,using Appium automation framework,in-depth understanding and use of keyword-driven ideas.The core test idea of the platform is to use both of them together.Appium breaks the restriction of the system under test.The use of keyword-driven idea can reduce the technical threshold,the difficulty of writing use cases and the cost of maintenance.(3)The design and implementation of keyword-related functions: abstracting basic operations and defining them as simple and easy-to-understand keywords intokeyword database;designing keyword use case structure and storing and managing them in Excel file form;transforming complicated test code writing into simple keyword selection and parameter filling;implementing keyword-driven parser according to the relevant requirements.Keyword to drive test case execution.(4)Introducing the idea of image similarity comparison into the testing of UI application interface,summarizing and analyzing the practical problems of UI application testing,combining feature matching and RGB comparison,improving the matching constraints and key region matching,and improving the accuracy.(5)Through Jenkins,the platform code and all test projects are centralized and continuously integrated to control the automatic trigger execution of test projects,and complete the automatic sending of test reports and mails.
Keywords/Search Tags:Automated testing, Keyword driven, Appium, Image similarity comparison, Jenkins
PDF Full Text Request
Related items