[Hardware automated testing - design and implementation of test software] Test framework design and implementation!

      How to design and implement an automation framework?

        First of all, we need to understand our products and what tests need to be done. For example, in the testing of many hardware products, a series of instruments such as oscilloscopes, spectrum analyzers, signal sources, etc. are needed. The models of the instruments are also different, so when designing Before framing, you must understand our products.

        So, taking a server as an example, the test of the baseband part includes items that need to be detected such as CPU, FPGA, clock, etc. After we know what needs to be tested, we can start designing the framework. Use QT is responsible for the design of the framework. For QT learning materials, you can refer to the official website to learn, or you can click on my homepage, which contains use cases for some QT modules.

 

1. The test items are designed as follows:


The code for label and button is as follows:

self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(10, 50, 91, 21))  
self.label.setObjectName("label")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
se

Guess you like

Origin blog.csdn.net/pengneng123/article/details/131435367