| With the gradual development of computer and communication technology,the Automatic Test System(ATS)in the field of testing is also evolving towards networked and distributed.In order to adapt to this change,researchers in the industry have started to explore how to network and extend the resources of automatic test software and test instruments in ATS.The test sequence execution platform,as the core component of the software layer in ATS,must also face the same transformation needs.In this thesis,I design and implement a test sequence execution platform for distributed applications based on users’ needs for a cross-platform,cross-device and cross-territory test sequence execution platform.The platform is based on the idea of "cloud service" and uses the development model of "software as a service",and adopts the form of web application to present the test sequence running platform,which will make the platform easier to access and use,and also can reduce the maintenance cost and update difficulty.In the process of design and implementation,the main research work of this thesis is as follows.1.Based on the need to realize the user can easily and seamlessly conduct test operations between different platforms,devices and regions,this thesis adopts web development technology to build the front-end and back-end of the test sequence running platform,and designs and implements several interfaces with simple operation,minimalist style and user-friendly interaction to enhance the user experience.2.According to the characteristics of the test sequence execution platform,this thesis studies its design idea and constructs a mathematical model based on the characteristics of the test sequence.The contents mainly include data types of abstract test steps,directed graphs storing test steps and their logical relationships,and nodes encapsulated in the directed graphs.3.Analyze the resource competition relationship among test sequences,resource scheduling deadlocks and test task starvation.Using thread deadlock avoidance,mutually exclusive control and task priority control,test tasks are scheduled and managed to ensure that tasks with mutually exclusive resource requirements run concurrently and tasks with conflicting resources wait sequentially.4.Analysing the execution flow of test tasks and building an abstract executor to ensure that preparatory work is done before execution,execution is done in the order of the directed graph,and data processing and storage is done after execution.5.Build a test resource server based on the RPC(Remote Procedure Call)communication mechanism and test resource invocation.By providing RPC services on the test resource server side,it realises remote access and invocation of test resources by clients using network protocols,thus realising remote control of test resources.6.The feasibility of the software design is verified by testing the test sequence execution platform.The test sequence execution platform for distributed applications presented in this thesis can meet the needs of users to access services and share data anytime and anywhere.The platform also allows users to collaborate and communicate across different devices and locations.The design and implementation of this platform provides a solution for the network-oriented transformation of traditional test software in ATS. |