The present invention discloses a test
system and method for updating test information in real time. The
system is designed with a layered architecture, which includes, from bottom to top, a
data access layer, a
business logic layer, and a
presentation layer. The
data access layer is used to initialize a
data interface board and provide a
data input and output interface for the
data interface board; the
business logic layer is used to encapsulate
business logic according to the technical requirements of a single
machine, and to perform data interaction with a single
machine under test through the
data access layer to implement testing of the single
machine under test; the
presentation layer belongs to the main thread, and is used to create a test tree and a test thread according to the user's test configuration input; the business logic layer belongs to the test thread, and is used to
traverse and execute test items through a test class, and to send the test
process information and the test result information to the main thread through a blocking message mechanism for storage and display. The present invention can solve the problem in the prior art that multiple threads simultaneously operate test information, causing illegal memory access, thereby causing
system crashes.