Font Size: a A A

Research And Application Of Automatic Test System Based On Robot Framework

Posted on:2022-05-16Degree:MasterType:Thesis
Country:ChinaCandidate:J WeiFull Text:PDF
GTID:2518306506463144Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of software technology,the software development cycle is constantly compressed,but the software quality requirements are higher and higher.Software testing,as the guarantee of software product quality,runs through the whole development cycle of software products.Traditional software testing mainly relies on manual testing,but due to the shortening of software development cycle and the increase of software product complexity,manual testing has been difficult to effectively complete the testing work within the specified time,and can not guarantee the quality of software products.The introduction of automated testing can significantly shorten the software development cycle and reduce the human and material resources in the testing process.Now more and more automated testing tends to platform,platform is mainly committed to collaborative work,improve efficiency,let more people participate in the automation of a process.Aiming at the problem that manual testing is difficult to meet the current situation of shortening software development cycle,the research and application of automated testing system based on Robot Framework are carried out.The main research work is as follows:1.To build the model of the test scripts based on keywords.By analyzing the key words of the original system,it is found that the coupling between test data and test script is tight,the reuse rate of key words is low,and the test data is unreasonable.In this paper,an object-oriented method is proposed to design keywords,and the reuse rate of test scripts is improved by inheriting the underlying keywords,and the separation of general keywords and business keywords is realized in the system organization structure.Finally,the Import mechanism of the Robot Framework is used to implement the trial case interface mapping and class inheritance mechanism.2.This thesis proposes a design method of test cases to scripting.The improved genetic algorithm was used to minimize the test cases,and the minimum test set of test cases was realized through the overall planning.The test case scripts are divided into three aspects: test task,data storage and data transmission.The task-divided test case script can mainly realize the intercommunication between the test control module and the test management module.Dividing test case scripts by data store is mainly to achieve the interaction with the database;Dividing test case scripts according to data transmission mainly creates test case scripts according to the type of components under test to achieve instruction interaction.Dynamic construction of test scenarios,according to the created test scenarios,using the script to optimize the sorting of test case scripts,to generate a minimum set of test cases.3.Designed and implemented a distributed automated testing system.From the user rights management,system configuration,system implementation and system test sets and detailed design of system function test data management aspects,developed a distributed automated testing system,test resources unified management,will be a variety of software to be tested/situation generated software/driver software instruction is integrated into a service engine,through the network communication technology,Connect the devices distributed in different geographical locations,realize the remote testing and distributed testing framework,and support the collaborative testing between multiple computers to realize the sharing of testing resources.In addition,the application effect of the test system was analyzed,the test efficiency of manual test and automated test was compared and analyzed,and the practicability of the system was verified.
Keywords/Search Tags:Robot Framework, Automation Testing, Object-oriented keyword driven, Distributed test system
PDF Full Text Request
Related items