| As users’ requirements for software product quality gradually increase,the efficiency of the software development life cycle and the quality of software systems are increasingly valued.Among them,UI automation testing has gradually become a common method of software testing with its advantages of large coverage and high test efficiency.UI automated testing can replace repetitive functional testing and cumbersome regression testing,and can also control the quality of software testing,prevent human testing omissions,and also have the ability to obtain additional test data through UI automation.However,in addition to the above advantages,there are still many shortcomings in UI automation testing: UI automation testing generally has problems such as inefficient testing and poor reusability of test scripts;The basic framework of UI automation has few functions and cannot fully meet the actual business needs;UI automation testing often requires multiple testers to complete together,but due to the gradual increase in the number of collaborators,collaborators do not share the specific completion of the test task,which will lead to the authenticity and validity of the data generated during the testing process can not be guaranteed,resulting in inaccurate test data,greatly reducing the security of automated testing.In this thesis,an automated test platform based on FISCO BCOS consortium chain technology is designed and implemented,and the main research work is as follows:(1)Improve automatic testing process,reduce manual intervention,and improve software testing efficiency.Aimed at the problem that Airtest,the basic framework,lacks the function of test case management and the function of batch execution of multiple use cases,a solution to encapsulate and expand the basic framework is proposed.According to the automated test process,it realizes the business processes of test case generation,test specification,test execution,test report analysis,etc.,and designs and implements a complete automated test platform.At the same time,because elements and steps can be reused,code redundancy is reduced.(2)In view of the existing problems in data security,this thesis first proposes a role-based access control model,assigns user roles and sets permissions,and sets different data access rights for different role visitors to ensure the reliability and security of role access control.Secondly,a data processing scheme for on-chain and off-chain collaboration is proposed to achieve a balance between efficiency and security.(3)The underlying layer of the alliance chain and smart contracts are deployed,and the business process of the automated test platform is detailed and implemented.Finally,according to the software engineering specifications,the functional testing and compatibility tests and performance tests of the automated test platform are carried out,and the functions,performance,and security are compared and analyzed with other existing platforms.This application overcomes the disadvantages of traditional automated testing applications,on the one hand,the function extension on the original test framework realizes a relatively complete automated testing process,thereby releasing a large number of test resources;On the other hand,the security of data access is ensured through role access control,and the authenticity and correctness of information such as personnel information,project information,and use case data are guaranteed by using the alliance blockchain technology.The implementation of this program provides more practical exploration and thinking for the development of consortium chain technology in software testing. |