Circuit test method and system, electronic equipment, storage medium and program product
Through the separation design of the business logic layer and the computing processing layer, the problems of low circuit test efficiency and poor scalability are solved, efficient circuit testing is achieved, and it adapts to high-speed testing requirements.
Patent Information
- Application Number
- CN202410692706.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-03
AI Technical Summary
Existing circuit testing methods have low efficiency and poor scalability, and cannot meet the needs of high-speed testing.
Adopting a design that separates the business logic layer and the computing processing layer, the business logic layer reads configuration data and sends test task data, and the computing processing layer configures the test module and performs testing, achieving decoupling and scalability of the processing logic.
It improves the testing efficiency and speed, realizes batch configuration and testing, and enhances the scalability and flexibility of the system.
Smart Images

Figure CN118584298A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated testing technology, and in particular to a circuit testing method, system, electronic equipment, storage medium and program product. Background Art
[0002] In the prior art, the functional circuit test (FCT) station mainly relies on hardware equipment and relatively complex test programs. The circuit test process needs to process a large amount of complex data, the processing logic is highly coupled, the scalability is poor, the test efficiency is low, and it cannot meet the high-speed circuit test requirements. Summary of the invention
[0003] The present invention provides a circuit testing method, system, electronic equipment, storage medium and program product to solve the problems of low testing efficiency and poor expansibility during circuit testing.
[0004] According to one aspect of the present invention, a circuit testing method is provided, which is applied to a circuit testing system, wherein the circuit testing system comprises: a business logic layer and a computing processing layer; the method comprises:
[0005] Reading configuration data of the circuit board to be tested through the business logic layer, wherein the configuration data includes at least one set of test task data, and the test task data includes: test modules and test parameters, each of the test modules is used for unit testing or integration testing;
[0006] Sending each of the test task data to the computing processing layer through the business logic layer, configuring each of the test modules through the computing processing layer, and configuring the test modules based on the test parameter configuration;
[0007] The computing processing layer calls each of the test modules to test the circuit board to be tested and determine the test result.
[0008] According to another aspect of the present invention, there is provided a circuit testing system, comprising: a business logic layer and a computing processing layer;
[0009] The business logic layer is used to read the configuration data of the circuit board to be tested, wherein the configuration data includes at least one set of test task data, and the test task data includes: test modules and test parameters, each of which is used for unit testing or integration testing;
[0010] The business logic layer is used to send each of the test task data to the computing processing layer;
[0011] The computing processing layer is used to configure each of the test modules, and the test modules are configured based on the test parameters;
[0012] The calculation processing layer is used to call each of the test modules to test the circuit board to be tested and determine the test result.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor, and a memory communicatively coupled to the at least one processor;
[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the circuit testing method described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the circuit testing method described in any embodiment of the present invention when executed.
[0017] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the circuit testing method according to any embodiment of the present invention is implemented.
[0018] The embodiment of the present invention provides a circuit testing method, which is applied to a circuit testing system, wherein the circuit testing system comprises: a business logic layer and a computing processing layer; the method comprises: reading configuration data of a circuit board to be tested through the business logic layer, wherein the configuration data comprises at least one set of test task data, wherein the test task data comprises: a test module and a test parameter, wherein each test module is used for unit testing or integrated testing; sending each test task data to the computing processing layer through the business logic layer, configuring each test module through the computing processing layer, wherein the test module is configured based on the test parameter; calling each test module through the computing processing layer to test the circuit board to be tested and determine the test result; the problems of low test efficiency and poor scalability during circuit testing are solved, data processing is performed by the business logic layer and the computing processing layer respectively to complete the test, and the entire test process is divided into the business logic layer and the computing processing layer to cooperate and execute to complete, thereby realizing the decoupling of processing logic, and the logic implementation of the business logic layer and the computing processing layer can be modified according to business requirements, and the scalability is strong; the present application can realize batch acquisition of configuration data, and batch configuration and testing of test modules through test parameters, thereby improving test efficiency and speed.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a circuit testing method provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flow chart of a circuit testing method provided according to Embodiment 2 of the present invention;
[0023] Figure 3 This is an example diagram of displaying configuration data provided according to Embodiment 2 of the present invention;
[0024] Figure 4 This is a hardware implementation example diagram of a circuit test provided according to Embodiment 2 of the present invention;
[0025] Figure 5 is a schematic diagram of the structure of a circuit testing system provided according to Embodiment 3 of the present invention;
[0026] Figure 6 It is a structural schematic diagram of an electronic device for implementing the circuit testing method of an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 This is a flow chart of a circuit testing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of testing a circuit. The method can be executed by a circuit testing system. The circuit testing system can be implemented in the form of hardware and / or software. The circuit testing system can be deployed in an electronic device. The circuit testing system includes: a business logic layer and a computing processing layer, such as Figure 1 As shown, the method includes:
[0031] S101. Read configuration data of a circuit board to be tested through a business logic layer. The configuration data includes at least one set of test task data. The test task data includes: test modules and test parameters. Each test module is used for unit testing or integration testing.
[0032] In this embodiment, the circuit test system can be understood as a system for implementing circuit testing, which can be deployed on electronic devices and displayed to users in the form of software or platforms; the business logic layer can realize complex data processing, business logic processing and other functions; the business logic layer can be formed in the form of software development, and the business logic layer in the embodiment of the present application can be developed in C++ language, which can clearly distinguish the business logic from other parts, and can better maintain and upgrade, and reduce the coupling between the codes of each part; C++ itself has strong performance and is suitable for processing heavy calculations or data flow tasks. The calculation processing layer can realize calculation functions such as test processing, and the calculation processing layer in the embodiment of the present application can be developed in Python. Python gives the software powerful scalability, and Python's library is very rich, which can easily realize complex calculations and data processing processes, and provide advanced functions such as machine learning and image recognition.
[0033] In this embodiment, the circuit board to be tested can be understood as a circuit board with test requirements. When testing the circuit board, the embodiment of the present application can test multiple circuit boards of the same type, or multiple circuit boards of different types. Configuration data can be understood as data for configuring the test environment. The configuration data can be configuration data for the hardware environment or configuration data for the software environment, for example, configuring software tools; test task data can be understood as data required for a test task when it is executed; a test module can be understood as a module for executing the test, for example, a test script; test parameters can be understood as parameters required during the test, for example, input data, output data threshold range, and so on.
[0034] Parameters are configured in advance to form configuration data; the configuration data can be manually input by the tester, or determined by parsing the development documents, test documents and other files of the circuit board. After the configuration data is determined, it can be stored in the corresponding files, tables and other documents, and the documents can be named according to certain rules, for example, the files can be named according to the type of circuit board to which the configuration file is applicable. When performing circuit testing, the circuit board to be tested is first determined, each circuit board has a unique identification number, and its type is determined according to the identification number of the circuit board to be tested, and the corresponding configuration data is read according to the type of the circuit board to be tested. The configuration data includes at least one set of test task data, each set of test tasks is used to perform a test task of a corresponding function, and the test task data includes: test module and test parameters; the test module can perform unit testing to test the individual functions of each part of the circuit board to be tested, for example, for GPIO testing, a specific voltage (for example, 12V) is provided to it by a program-controlled power supply, and the actual output is read by a multimeter or oscilloscope, and compared with the expected output, so as to determine whether it can work normally; the test module can also perform integrated testing to perform integrated testing on all functions of the circuit board to be tested to check whether it can run normally when the entire circuit works together.
[0035] S102, sending each test task data to the computing and processing layer through the business logic layer, configuring each test module through the computing and processing layer, and the test module is configured based on the test parameters.
[0036] The test task data is sent to the computing and processing layer through the business logic layer. When sending the test task data, all types of data contained in the test task data can be sent, or only some types of data can be sent according to requirements. This embodiment takes sending the test module and test parameters in the test task data to the computing and processing layer as an example. After receiving the test task data, the computing and processing layer configures the test module based on the test parameters, for example, the initial value, input value, etc. of the test module are configured through the test parameters. The configured test module can directly test the circuit board to be tested.
[0037] S103, calling each test module through the calculation processing layer to test the circuit board to be tested and determine the test result.
[0038] By calling each test module through the calculation processing layer, the calling order of each test module can be pre-set, or the calling rules can be set. Each test module is called in turn according to the set calling order or rules. After each test module is called, the corresponding test logic is executed to test the circuit board to be tested. All test modules can be executed in one test process, or some of the test modules can be selected according to the rules to perform corresponding tests. The circuit board to be tested is tested to determine whether the function of the circuit board to be tested is normal and the test result is determined. Among them, the test result can be normal / abnormal, passed / failed, successful / failed, etc.; the test result can also include the data of the final output of the test. For example, when testing the output voltage of the power supply, the output voltage is 6v, and 6v is output as the test result. If the output voltage range of the set test power supply is 4.5-5.5v, 6v is not within this range, and the test failure is output as the test result.
[0039] The embodiment of the present invention provides a circuit testing method, which is applied to a circuit testing system, wherein the circuit testing system comprises: a business logic layer and a computing processing layer; the method comprises: reading configuration data of a circuit board to be tested through the business logic layer, wherein the configuration data comprises at least one set of test task data, wherein the test task data comprises: a test module and a test parameter, wherein each test module is used for unit testing or integrated testing; sending each test task data to the computing processing layer through the business logic layer, configuring each test module through the computing processing layer, wherein the test module is configured based on the test parameter; calling each test module through the computing processing layer to test the circuit board to be tested and determine the test result; the problems of low test efficiency and poor scalability during circuit testing are solved, data processing is performed by the business logic layer and the computing processing layer respectively to complete the test, and the entire test process is divided into the business logic layer and the computing processing layer to cooperate and execute to complete, thereby realizing the decoupling of processing logic, and the logic implementation of the business logic layer and the computing processing layer can be modified according to business requirements, and the scalability is strong; the present application can realize batch acquisition of configuration data, and batch configuration and testing of test modules through test parameters, thereby improving test efficiency and speed.
[0040] Embodiment 2
[0041] Figure 2 This is a flow chart of a circuit testing method provided by Embodiment 2 of the present invention. This embodiment is refined on the basis of the above embodiment. Figure 2 As shown, the method includes:
[0042] S201. Read configuration data of a circuit board to be tested through a business logic layer. The configuration data includes at least one set of test task data. The test task data includes: test modules and test parameters. Each test module is used for unit testing or integration testing.
[0043] S202, sending each test task data to the computing and processing layer through the business logic layer, configuring each test module through the computing and processing layer, and the test module is configured based on the test parameters.
[0044] Optionally, the test task data also includes: a test name category. As an optional embodiment, this optional embodiment further optimizes the configuration of each test module through the computing processing layer as follows: for each test module, if the test module is determined to meet the configuration conditions based on the test name category, the test module is configured through the computing processing layer.
[0045] In this embodiment, the test name category can be understood as the category determined after classifying the test modules according to the test name. Each test module tests different functions. Different test modules can be named during testing, and the names can be used to distinguish different test modules and describe the functions of the test modules. The test can be divided according to different stages, for example, initialization, test, pass, fail, etc., and different types of functional tests can be performed. Configuration conditions can be understood as conditions for determining whether a test module needs to be configured, for example, whether it has been configured, whether it does not need to be executed, etc.
[0046] Different test modules are classified in advance to determine their corresponding test name categories. Configuration conditions are set in advance. When configuring each test module, the test name category corresponding to each test module is determined. For each test module, the test name category is matched with the configuration conditions to determine whether the test name category meets the configuration conditions. If so, the test module is configured through the computing processing layer; if not, the test module is not configured. At this time, it can be considered that the test module does not need to be executed, so no configuration is required, or it can be considered that the test module has been configured and does not need to be configured again, etc.
[0047] This optional embodiment further determines whether the test module meets the configuration conditions based on the test name category, and is optimized as follows: when the test name category is an initialization process, determine whether the test module has been configured, if so, determine that the configuration conditions are not met, otherwise, determine that the configuration conditions are met; when the test name category is a non-initialization process, determine that the test module meets the configuration conditions.
[0048] For the same type of circuit boards, the initialization process is usually the same during testing. When the test name category is the initialization process, determine whether the test module has been configured. If it has been configured, there is no need to configure it again, and the already configured parameters can be used. At this time, it is determined that the configuration conditions are not met; when the test name category is the non-initialization process, configuration is required at this time to determine that the test module meets the configuration conditions.
[0049] Optionally, the test parameters include: a test threshold and an error repetition count threshold.
[0050] S203: Divide each test module to form a test set, select a current test set from the test set, and the current test set includes at least one test module.
[0051] In this embodiment, the test set can be understood as a data set composed of test modules, and the test set includes one or more test modules; the current test set can be understood as the set currently being tested.
[0052] A classification standard is determined in advance, and each test module is classified according to the classification standard, for example, the test modules are classified according to the test category name. Each test module is classified and divided, and a test set is formed based on the test modules of the same type. One test set is selected from the test sets as the current test set, and the selection can be made according to a certain rule or a certain order. For example, each test module is classified and divided according to the test category name to form a test set, and then each test set is marked with a certain order according to the test category name. When selecting a test set, it can be selected in sequence.
[0053] For example, when selecting the current test set, the test set formed by the test modules whose test name category is initialization flow is first determined. When the test modules in this test set have executed the corresponding tests, it is considered that the initialization has been completed and no initialization is performed. The test is directly performed; the test set formed by the test modules whose test name category is test flow is selected as the current test set, and the test task is performed.
[0054] Optionally, the test task data also includes: test name category and flag information; this optional embodiment further divides each test module to form a test set, which is optimized as follows:
[0055] A1. Determine the flag information corresponding to each test module, and select the test modules whose flag information is a valid flag as the modules to be classified.
[0056] In this embodiment, the flag information can be understood as information used to mark whether the test module is valid or started, and the flag information can be numbers, letters, text, etc.; for example, the flag information N indicates that the test module is invalid / not started, and the flag information Y indicates that the test module is valid / started, etc. The flag information can be configured by the tester in advance according to the test requirements before the test; determine the flag information corresponding to each test module, determine whether each test module is valid or invalid, filter out the test modules with the flag information as a valid flag, and use this part of the test modules as modules to be classified. The number of modules to be classified is usually not limited. In the case of certain requirements for test hardware or time, the tester can also set the number threshold or threshold range by himself. After determining the modules to be classified, if the total number is within the threshold range, continue to execute the test, otherwise, prompt the tester that it does not meet the test requirements so that the tester can reset the flag information.
[0057] A2. Determine the test name category corresponding to each module to be classified.
[0058] The test name category of each test module is determined in advance. After the module to be classified is determined, its test name category can be determined accordingly.
[0059] A3. Classify the modules to be classified according to the test name categories corresponding to the modules to be classified, and classify the modules to be classified of the same test name category into one set to form a test set.
[0060] The modules to be classified are divided according to the test name categories corresponding to the modules to be classified, the modules to be classified with the same test name categories are determined, and these modules to be classified are divided into a set to form a test set.
[0061] S204: Select a test module from the current test set as the current test module.
[0062] In this embodiment, the current test module can be understood as the test module currently executing the test task. A test module is selected from the current test set as the current test module according to a certain rule or randomly. For example, the test modules in the test set are sorted, and during the test, the test modules are selected in order as the current test module.
[0063] S205 , calling the current test module through the calculation processing layer to test the circuit board to be tested, and determining an initial test result according to the test output data combined with the test threshold.
[0064] In this embodiment, the test threshold can be understood as the threshold range of the output result during prediction. For some tests that test specific parameter values (e.g., test output voltage, current, etc.), corresponding test thresholds can be set. For example, the test threshold corresponding to the test output voltage is 4.5v-5.5v, that is, the test passes when the test output voltage is between 4.5v-5.5v; for some tests that test non-specific parameters (e.g., test relay switching channels, control of editable logic controller PLC, etc.), the test threshold can be set to null. The initial test result can be understood as the initial result obtained by the test.
[0065] The current test module is called through the calculation processing layer, and the circuit board to be tested is tested through the current test module to determine the test output data, and the test output data is compared with the test threshold. If it is within the threshold range, the initial test result is determined to be passed, and if it is not within the threshold range, the initial test result is determined to be failed. If the threshold range is empty, the initial test result corresponding to the test output data can be assumed to be passed.
[0066] S206: If the initial test result is failure, the number of tests is accumulated.
[0067] When the test times are accumulated, the cumulative value may be 1, 2, etc. If the initial test result is failure, the test times are accumulated to determine the accumulated test times, that is, the test times are accumulated to record the number of times the current test module is repeatedly executed.
[0068] S207, determine whether the number of tests is greater than the error repetition number threshold, if so, execute S208; otherwise, return to execute S205.
[0069] In this embodiment, the error repetition count threshold can be understood as a threshold range for determining the number of times an error occurs in a test module test, and can be pre-set according to requirements for test accuracy, time, etc.; the error repetition count thresholds corresponding to different test modules may be different. Determine the error repetition count threshold corresponding to the current test module, compare the number of tests and the error repetition count threshold, and if the number of tests is greater than the error repetition count threshold, execute S208; otherwise, execute S205 to repeat the test. That is, the test module of the embodiment of the present application can repeat the test if the test fails. When the number of repeated tests is greater than the error repetition count threshold, the test of the current test module is terminated and no further repetition is performed, thereby avoiding test failures caused by code execution or other reasons due to only one test, and improving the accuracy of the test results.
[0070] S208, determine that the test result is failed, and execute S210;
[0071] S209: If the initial test result is passed, determine that the test result is passed.
[0072] If the initial test result is passed, the test result can be directly determined as passed, that is, during the testing process of the current test module, when the initial test result is passed, the test result is determined to be passed; when the initial test result is failed, the test is repeated. Under the condition that the number of tests is not greater than the error repetition threshold, as long as the initial test result is passed, the test result can be determined to be passed; if the test is repeated until the number of tests is greater than the error repetition threshold, the initial test result is still failed, and the test result is determined to be failed.
[0073] S210, determine whether the test end condition is met, if not, execute S211; otherwise, execute S212.
[0074] In this embodiment, the test end condition can be understood as a condition for determining whether to end the test, for example, whether all test modules have been executed, whether a specified test module has been executed, etc. The test end condition is set in advance, and after determining the test result of the current test module, it is determined whether the test end condition is met. If so, S212 is executed to end the test of the circuit board to be tested; if not, S211 is executed to continue the test.
[0075] S211. Update the current test set and the current test module according to the test result of the current test module, and return to execute S205.
[0076] The test result of the current test module may affect the process of subsequent tests. The impact of different test results on the test process is determined in advance. According to the test result of the current test module, it is determined whether to update the current test set and the current test module. If an update is required, the update is performed based on the unexecuted test module or test set. For example, when the test result is not passed, you can select a specified test set to test or continue testing in a certain order; when the test result is passed, continue testing in a certain order. When the test result is not passed, you can also stop the test directly.
[0077] S212, ending the test of the circuit board to be tested.
[0078] Optionally, the test task data further includes: a test name category; as an optional embodiment, this optional embodiment updates and optimizes the current test set and the current test module according to the test result of the current test module to:
[0079] B1. If the test result of the current test module is failed, a test set formed by test modules whose test name category is failed process is used as a new current test set, and a new current test module is selected from the new current test set.
[0080] If the test result of the current test module is not passed, determine the test set formed by the test modules whose test name category is the failed process, use this test set as the new current test set, and randomly or according to certain rules select a test module from the new current test set as the new current test module. That is, when the test result of the current test module is not passed, directly execute the test module whose test name category is the failed process.
[0081] B2. If the test result of the current test module is passed, determine whether there is an untested test module in the current test set. If so, select a new current test module from the untested test modules; otherwise, use the test set formed by the test modules whose test name category is passed process as the new current test set, and select a new current test module from the new current test set.
[0082] If the test result of the current test module is passed, determine whether there is any untested test module in the current test set. If so, continue to execute the test modules in the current test set for testing, select a new current test module from the test modules that have not been tested, and update the current test module. The current test set is not updated, or it is the same before and after the update. Otherwise, determine that all test modules in the current test set have completed the test and the test results are all passed at this time, determine the test set formed by the test modules whose test name category is passed process, use this test set as the new current test set, and select a new current test module from the new current test set randomly or according to certain rules.
[0083] For example, Figure 3A display example diagram of configuration data is provided, and each test module is directly divided according to the test name type into six types: initialization process, test process, pass process, failure process and end process. Among them, the test process includes: startup process and normal process. Each process may include one or more test modules for implementing the test of corresponding functions. Each test module corresponds to a test task. The task name in the figure is the name of the test task of different test modules. The task name can be program-controlled power supply configuration, MES user verification, relay switching channel, command PLC control SW2, CAN communication test, upload data to MES, relay module reset, notify PLC program has problems, etc. The configuration data can also include task sequence number and task number, which can identify the test task. The number of parameters can be one or more. Taking one as an example in the figure, the corresponding function and role of the parameter are described through parameter description, and the parameter can be output to the test module so that the test module can implement the corresponding function. The parameter may be a pin number (e.g., COM14), an IP address (e.g., 192.168.0.168), a web page address (e.g., http: / / localhost:8000 / ), a channel (e.g., CH1), etc. The configuration data may also include a test threshold, which includes: the maximum value and minimum value of the data, etc. For example, when testing the output of the program-controlled power supply at 12V, the maximum value is 12.5V and the minimum value is 11.5V; when testing the relay switching channel, the maximum value and the minimum value are both NULL, and the unit and the threshold value of the test threshold may also be separately represented and stored separately. The configuration data may also include flag information, display information, error repetition threshold and delay information, wherein the flag information may be a valid flag or an invalid flag, which is used to indicate whether this test module is valid. During the test process, only valid test modules are usually executed. For example, a valid flag may be indicated by Y, an invalid flag may be indicated by N, etc.; the configuration interface display, the test interface display and the manual judgment flag in the display information may be indicated by N and Y to indicate whether they exist. Figure 3 Only several types of data in the configuration data are shown as examples.
[0084] like Figure 3As shown, during the test process, the initialization process can be executed only once when testing a type of circuit board, that is, during the test process, when testing multiple circuit boards of the same type, only the power supply, multimeter and other instruments need to be initialized once. After completing the initialization, the startup process is tested first, and then the normal process is tested. The tests in the embodiments of the present application can be tested in sequence. If the tests are all passed, the pass process (i.e., Pass process) can be tested after completing the tests of the startup process and the normal process; if there is one that fails, or the number of failures exceeds a certain threshold, the failure process (Fail process) test is performed. Usually, after executing the failure process test, since the failure is caused by the circuit board, the circuit board is placed in the defective product box and waits for the next test. Therefore, at this time, it can return to the startup process and wait for the next test. When an error caused by non-test logic is found during the execution of any process, it can jump to the STOP process. The STOP process is mainly used for the program to stop the program from running and inform the operator if an error occurs.
[0085] Optionally, the circuit test system further includes: an interface layer; the test task data further includes: display information, the display information includes at least one of the following: a configuration interface display, a test interface display and a manual judgment mark;
[0086] As an optional embodiment, this optional embodiment is further optimized to include: sending the test results to the business logic layer through the computing processing layer; sending the test results and / or configuration data to the interface layer through the business logic layer, displaying them through the interface layer, and the interface layer displays the test results and / or configuration data according to the display information.
[0087] In this embodiment, the interface layer can be used to display data to the user and interact with the user. The interface layer can be implemented through QML. The interface of the existing test platform is often built with old technology, with low visualization and poor interactivity, which is not convenient for engineers to read and operate. QML provides highly modular interface elements and high-quality user experience, allowing engineers to operate more intuitively and conveniently. Display information can be understood as information indicating how the page is displayed. The configuration interface display is used to indicate whether the configuration interface is displayed. Configuration data can be displayed in the configuration interface. The test interface display can display test results and other test-related data. The manual judgment flag is used to provide whether the tester manually checks the test results, configuration data, etc.
[0088] After determining the test results, the computing and processing layer feeds back the test results to the business logic layer. The business logic layer sends both the test results and the configuration data to the interface layer. The interface layer determines the type of data that needs to be displayed at this time based on the display information and displays it accordingly. For example, if the display information includes a configuration interface display, the configuration data is displayed; if the display information includes a test interface display, the test results are displayed; if the display information includes a manual judgment mark, the display requires manual judgment. The manual judgment can be combined with the configuration data and the test results to provide the tester with what information to judge. After receiving the test results and configuration data, the interface layer can display only one of them or both in combination with the display information.
[0089] The business logic layer can also send the test results and configuration data to the interface layer for display according to the display information. At this time, the business logic layer only needs to determine the type of data to be displayed according to the display information, select the corresponding type of data and send it to the interface layer for display.
[0090] The business logic layer may also send display information to the interface layer while sending the test results and / or configuration data, or send display information to the interface layer before the test results and / or configuration data, or instruct the interface layer how to display when sending the test results and / or configuration data, etc.
[0091] The architecture of the circuit test system provided by the embodiment of the present application integrates three different languages, QML, C++ and Python. The most suitable language can be selected to handle different problems, achieving the effect of "getting what one is good at". By utilizing the environment and characteristics of the QT platform, this architecture has advantages in cross-platform operation, maintenance and expansion, and also makes the development process more convenient. The QT platform is compatible with different codes and is a cross-language development framework. It provides class libraries and components for writing various applications such as networks, GUIs, databases, etc. It is compatible with multiple programming languages such as C++, QML and Python at the beginning of the design. In order to enable the software architecture built on the QT platform to achieve integration and interaction between different programming languages, additional operations are required: 1. First, for the integration of QML and C++, QML is part of QT, and QML and C++ can communicate bidirectionally through signals and slots, as well as QML's "property" and "function"; 2. To realize the interaction between C++ and Python, use the QProcess module. The system realizes layered development and separation of front and back ends.
[0092] Layered development: This architecture is designed with three layers: QML, C++, and Python. Each layer has its own specific functions, which simplifies the development and testing process and improves the interaction efficiency between modules. In this architecture, we can test each layer independently. For example, we can test whether the QML GUI is normal, test whether the business logic of the C++ backend is normal, and test whether the Python algorithm implementation is normal. This method can discover and locate problems in the early stage, improving the efficiency of testing. The traditional testing method usually waits until the entire system is developed before testing. Problems are discovered late and are not easy to correct.
[0093] Separation of front-end and back-end: The front-end is used to display results and receive information, and the back-end is used for data processing and business logic processing. This not only improves the usability of the software, but also facilitates parallel development and testing due to their independence, shortening the development cycle.
[0094] Strong scalability: Due to QT's compatibility and cross-platform features, it is easier to conduct tests in various environments, and even cross-platform tests can be conducted during the development process, which is difficult to achieve in many existing testing processes. Python can be used to expand software functions and performance, and its rich library can provide powerful functions such as complex algorithm operations, data filtering, etc.
[0095] Traditional circuit testing software can usually only run on a specific hardware environment, and the overall design lacks versatility and openness. This leads to compatibility issues of software in different hardware environments, as well as versatility issues of software on different production lines. Existing circuit testing software does not combine the user interface (UI) and the underlying functional processing very well. On the one hand, the user interface is not friendly, and a little carelessness may lead to incorrect operations; on the other hand, the underlying functional processing part often lacks sufficient optimization, making the operating efficiency and stability of the software unsatisfactory. The circuit testing process needs to process a large amount of complex data, and the real-time requirements are high. However, due to the limitations of the design and development methods, the existing test software is often inefficient and cannot meet the high-speed and high-precision circuit testing requirements well. The circuit testing method of the embodiment of the present application uses QT to build and configure the development environment. QT cleverly solves the problems of communication and compatibility between various software tools and programming languages, and provides a unified platform for subsequent development work; QML is used as the front-end design and development language of the software. QML is not only part of the Qt platform, but its powerful object-oriented features allow developers to easily design complex user interfaces, providing a satisfactory user experience for circuit testing; the back end is mainly developed in C++, which is responsible for processing and executing various instructions and requests received at the front end. The high efficiency and powerful underlying operating capabilities of C++ are undoubtedly the best choice for processing complex digital and logical operations. The circuit testing method provided in the embodiment of the present application is built on the QT platform and is developed by combining the three languages of QML, C++ and Python. It solves the problems of traditional circuit testing software in terms of compatibility, versatility, interface friendliness and operating efficiency, and also reduces the difficulty and complexity of software development, and improves the quality and efficiency of circuit testing.
[0096] Optionally, the test task data further includes: delay information, the delay information is used to indicate the delay waiting time for the test module to enter the delayed waiting state after executing the test;
[0097] As an optional embodiment, this optional embodiment is further optimized to include: performing heartbeat detection after entering the delayed waiting state; wherein the heartbeat detection and the test performed by the test module are executed through concurrent threads.
[0098] In this embodiment, the delay information can be 10ms, 2s, 5s, etc., and can be set according to the importance of the test module, the execution time and other requirements; the delay information of different test modules can be different. Taking the delay information as n seconds as an example, the test module enters the delayed waiting state after executing the test, and executes the next test module after the delay wait n seconds. After the test is completed and the test result is determined, the test module enters the delayed waiting state. At this time, the heartbeat detection is performed by the concurrent thread, for example, the test is performed by the main thread, and the heartbeat detection is performed by the child thread. The heartbeat detection can be to detect the connection status of the controller on the circuit board, or to detect the connection status of all controllers during the circuit board test. The controller can be a programmable logic controller PLC. During the circuit board test process, if it is necessary to control the instrument and the PLC to control the electrical part, the heartbeat detection function can be used to determine whether the PLC is connected normally. The heartbeat detection can be performed by the business logic layer, the computing processing layer, or other data processing layers in the circuit test system.
[0099] The QProcess class can be used to control the creation, termination and communication between processes, realize multi-process parallel operation and improve the running efficiency of the program; the QThread and QThreadPool classes in the Qt library can be used to realize the creation, startup and life cycle management of threads. The design of the thread pool can effectively control the number of concurrent threads and avoid excessive consumption of system resources caused by a large number of concurrent threads.
[0100] The embodiment of the present application can also display functional buttons such as a start button and a reset button through the display layer. Start button: After you are ready to start the test sequence, click the "Start" button to start the test sequence. The sequence will be executed in the designed order until it is completed or a stop command is encountered. Reset button: If any problem occurs during the test process that causes the test to be paused, or after running to the "Stop" step, click the "Reset" button to reset the test environment to its original state, thereby restarting the test sequence. The setting of the function buttons allows the operator to control the test process more conveniently and deal with problems in a timely manner to achieve the best test results.
[0101] As an optional embodiment, this optional embodiment is further optimized to include: generating debug logs and test logs, and outputting them to hypertext markup language files for storage; wherein the test logs include at least one of the following types of information: program running errors, script errors, and running result errors.
[0102] After the test is completed, debug logs and test logs are generated to save the test results for subsequent analysis of the test process. Debug logs and test logs can be output to hypertext markup language files for storage. The data of the program running process is saved through debug logs and test logs. The debug log can save the data generated during the program debugging process, which can be used to review and analyze the problems generated during the development process; the test log can save data such as program running errors, script errors, and running result errors during the test process, which is convenient for analyzing the test process. Debug logs and test logs can be generated by the business logic layer, or by other modules or data processing layers in the circuit test system.
[0103] For example, Figure 4 A hardware implementation example diagram of a circuit test is provided, and the circuit test is implemented by the cooperation of an industrial computer 31, an instrument 32, a board 33, and a circuit board 34. Among them, the industrial computer 31 can deploy the circuit test system provided by the embodiment of the present application; the instrument 32 can be used for power supply, voltage, current measurement, etc.; the board 33 is used to control the corresponding modules and functions on the circuit board 34 when testing the corresponding functions of the circuit board 34, and the board 33 can be a control board, a communication board, etc.; the circuit board 34 is the circuit board to be tested. The industrial computer 31, the instrument 32, the board 33, and the circuit board 34 can perform data exchange in the manner shown in the figure.
[0104] The embodiment of the present invention provides a circuit testing method, which solves the problems of low test efficiency and poor scalability during circuit testing. The test is completed by performing data processing in the business logic layer and the calculation processing layer respectively, and the entire test process is divided into the business logic layer and the calculation processing layer for coordinated execution, thereby realizing the decoupling of processing logic. The logic implementation of the business logic layer and the calculation processing layer can be modified according to business needs, and the scalability is strong. The present application can realize batch acquisition of configuration data, and batch configure and test the test modules through test parameters, thereby improving the test efficiency and speed. The calculation processing layer is implemented by Python, which is mainly responsible for the processing and analysis of circuit test data, as well as tasks such as script writing. By utilizing Python's numerous open source libraries and powerful computing power, the accuracy and efficiency of circuit testing can be greatly improved.
[0105] Embodiment 3
[0106] Figure 5 FIG. 1 is a schematic diagram of a circuit testing system provided in Embodiment 3 of the present invention. Figure 5 As shown, the system includes: a business logic layer 41 and a computing processing layer 42.
[0107] The business logic layer 41 is used to read the configuration data of the circuit board to be tested, wherein the configuration data includes at least one set of test task data, and the test task data includes: test modules and test parameters, and each of the test modules is used for unit testing or integration testing;
[0108] The business logic layer 41 is used to send each of the test task data to the calculation processing layer 42;
[0109] The computing processing layer 42 is used to configure each of the test modules, and the test modules are configured based on the test parameters;
[0110] The calculation processing layer 42 is used to call each of the test modules to test the circuit board to be tested and determine the test result.
[0111] The embodiment of the present invention provides a circuit testing system, which solves the problems of low test efficiency and poor scalability during circuit testing. The test is completed by performing data processing separately in the business logic layer and the computing processing layer, and the entire test process is divided into the business logic layer and the computing processing layer for coordinated execution, thereby realizing the decoupling of processing logic. The logical implementation of the business logic layer and the computing processing layer can be modified according to business needs, and the scalability is strong. The present application can realize batch acquisition of configuration data, and batch configure and test test modules through test parameters, thereby improving test efficiency and speed.
[0112] Optionally, the test task data also includes: test name category;
[0113] The computing processing layer 42 is specifically used to: for each test module, if it is determined according to the test name category that the test module meets the configuration condition, configure the test module.
[0114] Optionally, the computing processing layer 42 is also used to: when the test name category is an initialization process, determine whether the test module has been configured, and if so, determine that the configuration conditions are not met; otherwise, determine that the configuration conditions are met; when the test name category is a non-initialization process, determine that the test module meets the configuration conditions.
[0115] Optionally, the test parameters include: a test threshold and an error repetition number threshold;
[0116] The computing processing layer 42 includes:
[0117] A set division module, used for dividing each of the test modules to form a test set, and selecting a current test set from the test set, wherein the current test set includes at least one test module;
[0118] A current test module selection module, used to select a test module from the current test set as a current test module;
[0119] A test module is used to call the current test module to test the circuit board to be tested, and determine the initial test result according to the test output data combined with the test threshold; if the initial test result is not passed, the number of tests is accumulated; it is determined whether the number of tests is greater than the error repetition number threshold, and if so, the test result is determined to be not passed; otherwise, it returns to execute the step of calling the current test module to test the circuit board to be tested; if the initial test result is passed, the test result is determined to be passed;
[0120] The current module update module is used to update the current test set and the current test module according to the test result of the current test module, and return to execute and call the current test module to test the circuit board to be tested until the test end condition is met.
[0121] Optionally, the test task data also includes: test name category and flag information;
[0122] The set division module is specifically used to: determine the flag information corresponding to each of the test modules, and screen out the test modules whose flag information is a valid flag as the modules to be classified; determine the test name category corresponding to each of the modules to be classified; and divide the modules to be classified according to the test name category corresponding to each of the modules to be classified, and divide the modules to be classified of the same test name category into a set to form a test set.
[0123] Optionally, the test task data also includes: test name category;
[0124] The current module update module is specifically used to: if the test result of the current test module is failed, use the test set formed by the test modules whose test name category is failed process as the new current test set, and select a new current test module from the new current test set; if the test result of the current test module is passed, determine whether there are untested test modules in the current test set, and if so, select a new current test module from the untested test modules; otherwise, use the test set formed by the test modules whose test name category is passed process as the new current test set, and select a new current test module from the new current test set.
[0125] Optionally, the circuit test system further includes: an interface layer; the test task data further includes: display information, the display information includes at least one of the following: configuration interface display, test interface display and manual judgment mark;
[0126] The computing processing layer 42 is further used to send the test result to the business logic layer 41;
[0127] The business logic layer 41 is also used to send the test results and / or configuration data to the interface layer;
[0128] The interface layer is used to display the test results and / or configuration data according to display information.
[0129] Optionally, the test task data further includes: delay information, the delay information being used to indicate the delay waiting time for the test module to enter a delayed waiting state after executing the test;
[0130] The business logic layer 41 is also used to: perform heartbeat detection after entering the delayed waiting state;
[0131] Wherein, the tests performed by the heartbeat detection and testing module are executed through concurrent threads.
[0132] Optionally, the business logic layer 41 is further used to: generate a debug log and a test log, and output them to a hypertext markup language file for storage;
[0133] The test log includes at least one of the following types of information: program running error, script error, and running result error.
[0134] The circuit testing system provided in the embodiment of the present invention can execute the circuit testing method provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0135] Embodiment 4
[0136] Figure 6 A schematic diagram of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0137] like Figure 6As shown, the electronic device 50 includes at least one processor 51, and a memory connected to the at least one processor 51 in communication, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 to the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0138] A number of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0139] The processor 51 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 performs the various methods and processes described above, such as a circuit testing method.
[0140] In some embodiments, the circuit testing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the circuit testing method described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to perform the circuit testing method in any other appropriate manner (e.g., by means of firmware).
[0141] An embodiment of the present invention provides a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, the circuit testing method described in any embodiment of the present invention is implemented.
[0142] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0144] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0145] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0146] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0147] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0148] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0149] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A circuit testing method, characterized in that: Applied to a circuit testing system, the circuit testing system comprises: a business logic layer and a computing processing layer; the method comprises: Reading configuration data of the circuit board to be tested through the business logic layer, wherein the configuration data includes at least one set of test task data, and the test task data includes: test modules and test parameters, each of the test modules is used for unit testing or integration testing; Sending each of the test task data to the computing processing layer through the business logic layer, configuring each of the test modules through the computing processing layer, and configuring the test modules based on the test parameter configuration; The computing processing layer calls each of the test modules to test the circuit board to be tested and determine the test result.
2. The method according to claim 1, characterized in that The test task data also includes: test name category; the configuration of each test module through the computing processing layer includes: For each test module, if it is determined according to the test name category that the test module meets the configuration condition, the test module is configured through the computing processing layer.
3. The method according to claim 2, characterized in that Judging whether the test module meets the configuration condition according to the test name category includes: When the test name category is an initialization process, determining whether the test module has been configured, if so, determining that the configuration condition is not met, otherwise, determining that the configuration condition is met; When the test name category is a non-initialization process, it is determined that the test module meets the configuration condition.
4. The method according to claim 1, characterized in that: The test parameters include: a test threshold and an error repetition threshold; The step of calling each of the test modules through the computing processing layer to test the circuit board to be tested and determining the test result includes: Divide each of the test modules to form a test set, and select a current test set from the test set, wherein the current test set includes at least one test module; Selecting a test module from the current test set as a current test module; Calling the current test module through the calculation processing layer to test the circuit board to be tested, and determining an initial test result according to the test output data combined with the test threshold; If the initial test result is failure, the number of tests is accumulated; Determine whether the test number is greater than the error repetition number threshold, if so, determine that the test result is failed; otherwise, return to the step of calling the current test module through the calculation processing layer to test the circuit board to be tested; If the initial test result is passed, determining the test result is passed; The current test set and the current test module are updated according to the test result of the current test module, and the step of calling the current test module through the computing processing layer to test the circuit board to be tested is returned to execution until the test end condition is met.
5. The method according to claim 4, characterized in that The test task data also includes: test name category and flag information; the test modules are divided to form a test set, including: Determine the flag information corresponding to each of the test modules, and select the test modules whose flag information is a valid flag as the modules to be classified; Determine the test name category corresponding to each of the modules to be classified; The modules to be classified are divided according to the test name categories corresponding to the modules to be classified, and the modules to be classified of the same test name category are divided into one set to form a test set.
6. The method according to claim 4, characterized in that The test task data also includes: a test name category; and updating the current test set and the current test module according to the test result of the current test module includes: If the test result of the current test module is failed, a test set formed by test modules whose test name category is failed process is used as a new current test set, and a new current test module is selected from the new current test set; If the test result of the current test module is passed, determine whether there is an untested test module in the current test set. If so, select a new current test module from the untested test modules; otherwise, use the test set formed by the test modules whose test name category is passed process as the new current test set, and select a new current test module from the new current test set.
7. The method according to any one of claims 1 to 6, characterized in that: The circuit test system further includes: an interface layer; the test task data further includes: display information, the display information includes at least one of the following: a configuration interface display, a test interface display and a manual judgment mark; the method further includes: Sending the test result to the business logic layer through the computing processing layer; The test result and / or configuration data are sent to the interface layer through the business logic layer and displayed through the interface layer, and the interface layer displays the test result and / or configuration data according to the display information.
8. The method according to any one of claims 1 to 6, characterized in that: The test task data also includes: delay information, the delay information is used to indicate the delay waiting time for the test module to enter the delayed waiting state after executing the test; The method further comprises: After entering the delayed waiting state, perform heartbeat detection; Wherein, the tests performed by the heartbeat detection and testing module are executed through concurrent threads.
9. The method according to any one of claims 1 to 6, characterized in that: Also includes: Generate debug logs and test logs, and output them to HTML files for saving; The test log includes at least one of the following types of information: program running error, script error, and running result error.
10. A circuit testing system, characterized in that: include: Business logic layer and computing processing layer; The business logic layer is used to read the configuration data of the circuit board to be tested, wherein the configuration data includes at least one set of test task data, and the test task data includes: test modules and test parameters, each of which is used for unit testing or integration testing; The business logic layer is used to send each of the test task data to the computing processing layer; The computing processing layer is used to configure each of the test modules, and the test modules are configured based on the test parameters; The calculation processing layer is used to call each of the test modules to test the circuit board to be tested and determine the test result.
11. An electronic device, characterized in that: The electronic device comprises: at least one processor, and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the circuit testing method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the circuit testing method according to any one of claims 1 to 9 when executed.
13. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the circuit testing method according to any one of claims 1 to 9.
