| Arbitrary waveform generator is a type of signal source which is widely used at present.In addition to achieving the function of function signal source,it can also output the real signal required in the actual circuit testing process.The user-machine interface is the information channel between human and machine,and it is a very important part of the arbitrary waveform generator.However,it has many functions and complex logic.Full testing of this software module is the premise to ensure the stability of the arbitrary waveform generator.On the other hand,the driver software of the arbitrary waveform generator connects the man-machine interface and the instrument hardware.Because it is directly connected to the hardware,it causes problems such as high testing cost and low flexibility.This paper improves the design of the man-machine interface and driver program of the arbitrary waveform generator display control software to reduce the coupling between modules and achieve the purpose of improving its testability.The specific content includes the following aspects:1.Aiming at the problem of insufficient testability of the design scheme of the existing arbitrary waveform generator display control software,the MVP(Model-ViewPresent)model,Clean Architecture and other software engineering methods are introduced to propose improvements;this paper analyzes the parts of the display and control software of arbitrary waveform generator that have software testability improvement space,and gives the improvement methods,such as the using of separating Policy from Mechanism,Interface-Oriented Programming,Observer Pattern and other design ideas.2.Summarizing the above methods for improving software testability,and using the above design ideas and methods to improve testability when classifying the arbitrary waveform display and control software according to functional services.At the same time,using the testing plan to design difficulty level and calculate cost,through these to performe software testability analysis on the designed software modules.3.Proposing a detailed testing plan for the core module of the arbitrary waveform generator display and control software.After the test,obtaining the testing result with the coverage rate as the index.Test results show that the test coverage rate is generally more than 90%. |