An automated testing method and system based on intelligent fast sensing module
By designing an automated testing method based on intelligent fast perception module, using the collaborative work of the upper computer, intelligent perception module and test tooling, the problems of long test time, low accuracy and low automation level in the existing technology are solved, and efficient and accurate automated testing is achieved.
Patent Information
- Application Number
- CN201911217048.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-03
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2039-12-03
AI Technical Summary
The existing intelligent fast perception module equipment testing methods require a lot of manual operation, resulting in long test time, low accuracy, and low automation level.
An automated testing method based on intelligent fast perception module is designed. Through the collaborative work of the upper computer, intelligent perception module and test tooling, it realizes automatic testing of the basic information of the equipment, remote control settings, remote signal query and data forwarding functions.
It greatly reduces the testing workload, improves product development efficiency, and realizes the automation of production line product testing, improving production efficiency.
Smart Images

Figure CN111122996B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an automatic testing method and system based on an intelligent rapid sensing module, belonging to the technical field of automatic testing. Background Art
[0002] The intelligent fast perception module is a hardware product currently developed by Wangneng Technology Development Co., Ltd.; the intelligent fast perception module includes: LED indicator module, remote control setting module, remote signal query module; the intelligent fast perception module is connected to the test tooling through the LEDIO port, remote signal IO port and remote control IO port, and is connected to the host computer through the serial port; the remote control setting module in the intelligent fast perception module is connected to the remote signal query module and the LED indicator module, and when the information in the remote control setting module and the remote signal query module changes, the LED indicator changes accordingly; the current test method for the intelligent fast perception module equipment is to manually organize the test plan according to the data items specified in the power protocol; according to the requirements of each data item, manually send a data request frame through the serial port module tool on the PC side, and when the intelligent fast perception module receives the request frame, it returns a response frame. After receiving the response frame, the PC-side serial port tool uses the tool for parsing the corresponding frame to analyze the obtained data frame, and combines the human eye to observe the LED indicator status of the intelligent fast perception module, so as to comprehensively judge whether the functional items of the intelligent fast perception module are realized;
[0003] Under the existing technical solutions, operators need to spend a lot of energy and time to complete the test of the internal parameters of the intelligent rapid sensing module equipment, and the accuracy is not ideal; there are problems such as slow hardware parameter testing, lower accuracy than expected, cumbersome operation, low level of automation, and the need for manual participation in testing. Summary of the invention
[0004] The present invention provides an automated testing method based on an intelligent rapid sensing module, comprising a host computer, an intelligent sensing module and a testing tool; the automated testing method comprises the following steps:
[0005] S11, query and compare the basic information of the device to be tested, and output the result of whether the basic information of the device to be tested is consistent;
[0006] S12. Setting basic information of the device to be tested in the device testing program; outputting the updated basic information of the device to the device to be tested.
[0007] S13, performing a state change event test on the remote control setting of the device to be tested, and outputting a remote control state result;
[0008] S14, perform state change event test judgment on the remote signal query of the device to be tested, and output the signal position state result;
[0009] S15, testing and judging the data forwarding function of the device to be tested, and outputting the data forwarding result;
[0010] S16, output module test results and summarize the test results of each module in steps S11 to S15, and then form an automated test report.
[0011] Furthermore, in the automated testing method based on the intelligent fast perception module, the basic information query and comparison of the device to be tested includes the following steps:
[0012] S21. Obtain basic information of the device to be tested;
[0013] S22, sending request frame information data from the host computer to the intelligent fast perception module in sequence;
[0014] S23, reading response frame information data from the intelligent fast perception module;
[0015] S24, comparing the response frame information data with the data in the pre-read configuration file to see if they are consistent;
[0016] S25. Output the test result of whether the data is consistent to the host computer.
[0017] Furthermore, the automated testing method based on the intelligent fast sensing module, wherein the basic information of the device to be tested is set, comprises the following steps:
[0018] S31, the host computer pre-sets three valid numerical parameters and two invalid numerical parameters according to the device data item to be tested; the valid numerical parameters include one common valid numerical parameter and two critical valid numerical parameters; the invalid numerical parameters are critical invalid numerical parameters, and the common value and critical value of the device to be tested are set and tested in turn;
[0019] S32, the host computer reads the numerical parameters of the equipment data items to be tested and saves them in the test software;
[0020] S33, the upper computer can sequentially send the request frames of the device data item parameters that need to be tested to the intelligent fast perception module;
[0021] S34, the intelligent fast sensing module sends a response frame parameter back to the host computer;
[0022] S35, the host computer determines whether the numerical parameters of the device to be tested are set correctly according to the response frame parameters;
[0023] S36. Output the device numerical parameter setting test results.
[0024] Furthermore, in the automated testing method based on the intelligent fast sensing module, the test and judgment of the displacement event of the remote control setting of the device to be tested comprises the following steps:
[0025] S41, the host computer reads the remote control position status to be tested of the intelligent fast sensing module;
[0026] S42, sending a data frame that changes the current remote control state and sending it to the intelligent fast perception module;
[0027] S43, the host computer obtains the remote control response frame of the intelligent fast sensing module, and then determines whether the response is normal;
[0028] S44, obtaining the current state of the remote control position through the test tool, and determining whether the current remote control state is correct;
[0029] S45, obtaining the state of the LED indicator corresponding to the current remote control position state change through the test tool, and judging whether the state change of the LED indicator is correct;
[0030] S46, the host computer determines whether the current remote control position setting is successful based on the results of S43 to S45;
[0031] S47, reading the latest 10 records of the remote control event records of the current remote control setting;
[0032] S48, determine whether there is an error in the remote control event record, determine whether there is an error in the remote control event record, test each remote control position in turn, if the final remote control position change test number is less than 20, increase the cycle to increase the setting number, and then output the remote control setting test result.
[0033] Furthermore, in the automated testing method based on the intelligent fast sensing module, the state change event test judgment of the remote signaling bit of the device to be tested includes the following steps:
[0034] S51, setting a random remote signaling bit state on the intelligent fast sensing module through a test tool;
[0035] S52, sending a request frame from the host computer to obtain the set remote signaling bit state; the set remote signaling bit state is bit state 1;
[0036] S53, the host computer reads the response frame of the intelligent fast sensing module, obtains the corresponding remote signaling bit state on the current intelligent sensing module, and calls the corresponding remote signaling bit state state 2;
[0037] S54, comparing the state 1 and the state 2 in the host computer;
[0038] S55, the host computer determines whether the remote signal position query is successful;
[0039] S56, changing the state 1 to the state 1' by testing the tool;
[0040] S57, repeat steps S52 to S53 to obtain state 2';
[0041] S57, compare 1' and 2' to determine whether the state of the remote signaling bit has changed and whether the changed state is reflected by the LED indicator light;
[0042] S58, read the latest 10 records of the remote signal event record of the current remote signal change;
[0043] S59. Determine whether there is any error in the remote signal event record, test each remote signal position in turn, if the final number of remote signal position change tests is less than 20, increase the number of cycles to increase the setting times, and then output the remote signal position status test result.
[0044] Furthermore, in the automated testing method based on the intelligent fast sensing module, the testing and judging of the data forwarding function of the device to be tested comprises the following steps:
[0045] S61, sending a complete data frame to be forwarded to the intelligent fast perception module;
[0046] S62, the host computer receives the forwarding frame sent by the intelligent fast perception module through the test tooling;
[0047] S63, comparing whether the forwarded frame is legal in the software of the host computer;
[0048] S64, sending the damaged data frame to be forwarded to the intelligent fast perception module; if the data to be forwarded is incomplete or damaged, it will be discarded by the perception module and will not be forwarded;
[0049] S65, judging whether the timeout waiting can pass the tooling; the host computer will judge whether the damaged frame is discarded through the timer;
[0050] S66. Output the test data forwarding result.
[0051] Furthermore, an automated testing method based on an intelligent fast sensing module is provided, wherein the upper computer can test each module at a time, output the corresponding module test results after completing the test of each module, and summarize all module test results to form an automated testing report.
[0052] An automated test system based on an intelligent and fast sensing module comprises an intelligent and fast sensing module, a test fixture and a host computer; the host computer has a serial port module, which is electrically connected to the intelligent and fast sensing module and the uplink serial port of the test fixture, and can send test data to the intelligent and fast sensing module and receive its response frame; when the test request involves remote control setting detection, remote signaling status detection, and data forwarding, the test fixture is used to detect the corresponding interface, and the uplink serial port of the test fixture is reported to the host computer test software, so as to confirm whether the hardware status of the intelligent and fast sensing module is consistent with the status description of the response frame of the intelligent and fast sensing module;
[0053] The intelligent fast sensing module with test module includes: an LED indicator module, a remote control setting module, and a remote signal query module; the remote control setting module is connected to the remote signal query module and the LED indicator module, and when the information in the remote control setting module and the remote signal query module changes, the LED indicator changes accordingly;
[0054] The test fixture includes: an LED indicator change detection module, a remote control setting detection module, and a remote signal displacement detection module; the LED indicator change detection is judged by LED IO; the remote signal displacement is judged by the remote signal IO; the remote control setting detection is judged by the remote control IO status; the test fixture module is electrically connected to the LED indicator and the downstream serial port of the intelligent and quick sensing module through a signal line, and is electrically connected to the serial port of the host computer; the test fixture module supplies power to the intelligent and quick sensing module.
[0055] Furthermore, the automated testing system based on the intelligent rapid perception module comprises a data forwarding module, a device basic information query module and a device basic information setting module; wherein the device basic information query module can query device information including: device address, device current time, device production time, device manufacturer code information, device firmware version information, device hardware version information, device protocol version number and device number; the device basic information query module can read a pre-prepared device information configuration file to compare whether the read device information is consistent; wherein the device basic information setting module can set the device information including: device address, current device time, production time, centralized address, alarm time, baud rate, remote change time and asset management code; the device basic information setting module can perform setting tests on the basic information in the rapid perception door module; the setting test includes a normal value test and a critical value setting test.
[0056] Furthermore, in the automated testing system based on an intelligent rapid sensing module, the remote control setting module has the functions of testing the remote control setting function and recording the remote control position change events generated after the remote control setting; the remote signal position change detection module can read the remote signal state and record the remote signal state position change events; and can judge the status of the recording of the remote signal position change events by changing the state of the remote signal position through the test tooling.
[0057] The present invention has the following gain effects:
[0058] 1) Reduce testing workload and improve product development efficiency;
[0059] 2) Realize the automation of product testing on the production line and improve production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 System workflow diagram of the present invention;
[0061] Figure 2 Basic information query and comparison workflow diagram of the test equipment of the present invention;
[0062] Figure 3 The workflow diagram of setting the basic information of the device to be tested of the present invention;
[0063] Figure 4 A schematic diagram of the workflow of the present invention for testing the displacement event of the remote control setting of the device to be tested;
[0064] Figure 5 A schematic diagram of the workflow of the present invention for testing and judging the state change event of the remote signal query of the device to be tested;
[0065] Figure 6 Schematic diagram of data forwarding workflow of the present invention;
[0066] Figure 7 System module diagram. DETAILED DESCRIPTION
[0067] An automated testing method based on an intelligent rapid sensing module includes a host computer, an intelligent sensing module and a testing tool; the automated testing method includes the following steps:
[0068] S11, query and compare the basic information of the device to be tested, and output the result of whether the basic information of the device to be tested is consistent;
[0069] S12. Setting basic information of the device to be tested in the device testing program; outputting the updated basic information of the device to the device to be tested.
[0070] S13, performing a state change event test on the remote control setting of the device to be tested, and outputting a remote control state result;
[0071] S14, perform state change event test judgment on the remote signal query of the device to be tested, and output the signal position state result;
[0072] S15, testing and judging the data forwarding function of the device to be tested, and outputting the data forwarding result;
[0073] S16, output module test results and summarize the test results of each module in steps S11 to S15, and then form an automated test report.
[0074] The basic information query of the device to be tested is compared with the pre-prepared device information configuration file to check whether the read device information is correct. Figure 2 , including the following steps:
[0075] S21. Obtain basic information of the device to be tested;
[0076] S22, sending request frame information data from the host computer to the intelligent fast perception module in sequence;
[0077] S23, reading response frame information data from the intelligent fast perception module;
[0078] S24, comparing the response frame information data with the data in the pre-read configuration file to see if they are consistent; when the read configuration file is consistent with the response frame result, it indicates that the reading is successful;
[0079] S25. The test software in the host computer will determine whether there is any test currently. Regardless of whether the reading is successful or not, the obtained test results will be output to the host computer.
[0080] The automatic testing method based on the intelligent fast sensing module, the basic information of the device to be tested is set, referring to Figure 3 , including the following steps:
[0081] S31, the host computer pre-sets 3 valid numerical parameters and 2 invalid numerical parameters according to the device data item to be tested; the valid numerical parameters include 1 common valid numerical parameter and two critical valid numerical parameters; the invalid numerical parameters are critical invalid numerical parameters; the common value and critical value of the device to be tested are set and tested in sequence; when the device data item to be tested falls within the critical valid numerical range, the device data item is legal; when the device data item to be tested falls outside the critical invalid range, the device data item is illegal;
[0082] S32, the host computer reads the numerical parameters of the equipment data items to be tested and saves them in the test software;
[0083] S33, the upper computer can sequentially send the request frames of the device data item parameters that need to be tested to the intelligent fast perception module;
[0084] S34, the intelligent fast sensing module sends a response frame parameter back to the host computer;
[0085] S35, the host computer determines whether the numerical parameters of the device to be tested are set correctly according to the response frame parameters;
[0086] S36, output the device numerical parameter setting test result. When the device numerical parameter setting is correct, it indicates that the device data item has been successfully set, and then the test result is output; then it is determined whether there are other device data items that need to be tested (if it fails, it is necessary to directly determine whether there are other device data items that need to be tested). If there is no need, the test result can be output.
[0087] The automated testing method based on the intelligent fast sensing module, the remote control setting of the tested device is tested for position change event judgment, referring to Figure 4 , including the following steps:
[0088] S41, the host computer can only quickly sense the remote control bit status of the module to be tested;
[0089] S42, sending a data frame that changes the current remote control state to the intelligent fast sensing module;
[0090] S43, the host computer obtains the remote control response frame of the intelligent fast sensing module, and then determines whether the response is normal;
[0091] S44, obtaining the current state of the remote control position through the test tool, and determining whether the current remote control state is correct;
[0092] S45, obtaining the state of the LED indicator corresponding to the current remote control position state change through the test tool, and judging whether the state change of the LED indicator is correct;
[0093] S46, the host computer determines whether the current remote control position setting is successful based on the results of S43 to S45;
[0094] S47, read the latest 10 records of the remote control event record of the current remote control setting; judge whether the record writing is normal 10 times;
[0095] S48, determine whether there is an error in the remote control event record, determine whether there is an error in the remote control event record, test each remote control position in turn, if the final remote control position change test number is less than 20, increase the cycle to increase the setting number, and then output the remote control setting test result.
[0096] The automated testing method based on the intelligent fast sensing module, the remote signal query of the tested device is used to test and judge the state change event, referring to Figure 5 , including the following steps:
[0097] S51, setting a random remote signaling bit state on the intelligent fast sensing module by means of a test tool; the set remote signaling bit state is state 1, and the test tool transmits state 1 to the host computer through the serial port; S52, sending a request frame from the host computer to obtain the remote signaling bit state set by the test tool;
[0098] S53, the host computer reads the response frame of the intelligent fast sensing module, obtains the corresponding remote signaling bit state on the current intelligent sensing module, and calls the corresponding remote signaling bit state state 2;
[0099] S54, comparing the state 1 and the state 2 in the host computer;
[0100] S55, the host computer determines whether the remote signal position query is successful;
[0101] S56, changing the state 1 to the state 1' by testing the tool;
[0102] S57, repeat steps S52 to S53 to obtain state 2';
[0103] S57, compare 1' and 2' to determine whether the state of the remote signaling bit has changed and whether the changed state is reflected by the LED indicator light;
[0104] S58, read the latest 10 records of the remote signaling event records of the current remote signaling query;
[0105] S59. Determine whether there is any error in the remote signal event record, test each remote signal position in turn, if the final number of remote signal position change tests is less than 20, increase the number of cycles to increase the setting times, and then output the remote signal position status test result.
[0106] The automated testing method based on the intelligent fast sensing module, data forwarding needs to test whether the intelligent fast sensing module can completely forward the data to its downstream serial port after the data to be forwarded is sent from the host computer to the intelligent fast sensing module; refer to Figure 6 The test of the data forwarding function of the device to be tested comprises the following steps:
[0107] S61, sending a complete data frame to be forwarded to the intelligent fast perception module;
[0108] S62, the host computer receives the forwarding frame sent by the intelligent fast perception module through the test tooling;
[0109] S63, comparing whether the forwarded frame is legal in the software of the host computer;
[0110] S64, sending the damaged data frame to be forwarded to the intelligent fast perception module; if the data to be forwarded is incomplete or damaged, it will be discarded by the perception module and will not be forwarded;
[0111] S65, judging whether the timeout waiting can pass the tooling; the host computer will judge whether the damaged frame is discarded through the timer;
[0112] S66. Output data forwarding test results.
[0113] The automated testing method based on the intelligent fast sensing module, wherein the upper computer can test each module at a time, output the corresponding module test results after completing the test of each module, and summarize all module test results to form an automated testing report.
[0114] An automated test system based on an intelligent and fast sensing module comprises an intelligent and fast sensing module, a test fixture and a host computer; the host computer has a serial port module, which is electrically connected to the intelligent and fast sensing module and the uplink serial port of the test fixture, and can send test data to the intelligent and fast sensing module and receive its response frame; when the test request involves remote control setting detection, remote signaling status detection, and data forwarding, the test fixture is used to detect the corresponding interface, and the uplink serial port of the test fixture is reported to the test software in the host computer, so as to confirm whether the hardware status of the intelligent and fast sensing module is consistent with the status description of the response frame of the intelligent and fast sensing module;
[0115] The intelligent fast sensing module with test module includes: an LED indicator module, a remote control setting module, and a remote signal query module; the remote control setting module is connected to the remote signal query module and the LED indicator module, and when the information in the remote control setting module and the remote signal query module changes, the LED indicator changes accordingly;
[0116] The test fixture includes: an LED indicator change detection module, a remote control setting detection module, and a remote signal displacement detection module; the LED indicator change detection is judged by LED IO; the remote signal displacement is judged by the remote signal IO; the remote control setting detection is judged by the remote control IO state; the test fixture is electrically connected to the LED indicator and the downstream serial port of the intelligent fast sensing module through a signal line, and is electrically connected to the serial port of the host computer; the test fixture supplies power to the intelligent fast sensing module;
[0117] The automated testing system based on intelligent rapid perception module comprises a data forwarding module, a basic equipment information query module and a basic equipment information setting module; wherein the basic equipment information query module can query the equipment information including: equipment address, current equipment time, equipment production time, equipment manufacturer code information, equipment firmware version information, equipment hardware version information, equipment protocol version number and equipment number; the basic equipment information query module can read the pre-prepared equipment information configuration file to compare whether the read equipment information is consistent; wherein the basic equipment information setting module can set the equipment information including: equipment address, current equipment time, production time, unified address, alarm time, baud rate, remote change time and asset management code; the basic equipment information setting module can set the basic information in the rapid perception door module and test it; the setting test includes a normal value test and a critical value setting test;
[0118] The automated testing system based on an intelligent rapid sensing module, wherein the remote control setting module has the functions of testing the remote control setting function and recording the remote control position change events generated after the remote control setting; the remote signal position change detection module has the functions of reading the remote signal state and recording the remote signal state position change events; and can judge the status of the recording of the remote signal position change events by changing the state of the remote signal position through the test tooling.
[0119] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any effective structural or effective process changes made using the contents of the present invention's specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An automated testing method based on an intelligent rapid sensing module, comprising a host computer, an intelligent rapid sensing module and a testing tool; characterized in that: The automated testing method comprises the following steps: S11, query and compare the basic information of the device to be tested, and output the result of whether the basic information of the device to be tested is consistent; S12, setting basic information of the device to be tested in the device test program; outputting the updated basic information of the device to the device to be tested; S13, performing a state change event test on the remote control setting of the device to be tested, and outputting a remote control state result; S14, perform state change event test judgment on the remote signal query of the device to be tested, and output the signal position state result; S15, testing and judging the data forwarding function of the device to be tested, and outputting the data forwarding result; S16, output module test results and summarize the test results of each module in steps S11 to S15, and then form an automated test report; The step of setting the basic information of the device to be tested includes the following steps: S31, the host computer pre-sets 3 valid numerical parameters and 2 invalid numerical parameters according to the device data item to be tested; the valid numerical parameters include 1 common valid numerical parameter and two critical valid numerical parameters; the invalid numerical parameters are critical invalid numerical parameters; the common value and critical value of the device to be tested are set and tested in turn; S32, the host computer reads the numerical parameters of the equipment data items to be tested and saves them in the test software; S33, the upper computer can sequentially send request frames of the device data item parameters that need to be tested to the intelligent fast perception module; S34, the intelligent fast sensing module sends a response frame parameter back to the host computer; S35, the host computer determines whether the numerical parameters of the device to be tested are set correctly according to the response frame parameters; S36, outputting the test result of the numerical parameter setting of the device; The test and judgment of the displacement event of the remote control setting of the device to be tested comprises the following steps: S41, the host computer reads the remote control position status to be tested of the intelligent fast sensing module; S42, sending a data frame that changes the current remote control state to the intelligent fast sensing module; S43, the host computer obtains the remote control response frame of the intelligent fast sensing module, and then determines whether the response is normal; S44, obtaining the current state of the remote control position through the test tool, and determining whether the current remote control state is correct; S45, obtaining the state of the LED indicator corresponding to the current remote control position state change through the test tool, and judging whether the state change of the LED indicator is correct; S46, the host computer determines whether the current remote control position setting is successful based on the results of S43 to S45; S47, reading the latest 10 records of the remote control event records of the current remote control setting; S48, determine whether there is an error in the remote control event record, test each remote control position in turn, if the final remote control position change test number is less than 20, increase the cycle to increase the setting number, and then output the remote control setting test result; The remote signal query of the device to be tested and the state change event test judgment include the following steps: S51, setting a random remote signaling bit state on the intelligent fast sensing module by means of a test tool; the set remote signaling bit state 1, the test tool transmits state 1 to the host computer through the serial port; S52, sending a request frame from the host computer to obtain the remote signaling bit status set by the test tool; S53, the host computer reads the response frame of the intelligent fast sensing module, obtains the corresponding remote signaling bit state on the current intelligent sensing module, and calls the corresponding remote signaling bit state state 2; S54, comparing the state 1 and the state 2 in the host computer; S55, the host computer determines whether the remote signal position query is successful; S56, changing the state 1 to the state 1' by testing the tool; S57, repeat steps S52 to S53 to obtain state 2'; S57, compare 1' and 2' to determine whether the state of the remote signaling bit has changed and whether the changed state is reflected by the LED indicator light; S58, read the latest 10 records of the remote signaling event records of the current remote signaling position; S59, determine whether there is an error in the remote signal event record, test each remote signal position in turn, if the final remote signal position change test number is less than 20, increase the cycle to increase the setting number, and then output the remote signal position status test result; The host computer has a serial port module, which is electrically connected to the intelligent and rapid perception module and the uplink serial port of the test tooling, and can send test data to the intelligent and rapid perception module and receive its response frame; when the test request involves remote control setting detection, remote signaling status detection, and data forwarding, the corresponding interface is detected by the test tooling, and reported to the test software in the host computer through the uplink serial port of the test tooling, so as to confirm whether the hardware status of the intelligent and rapid perception module is consistent with the status description of the response frame of the intelligent and rapid perception module; The intelligent fast sensing module with test module includes: an LED indicator module, a remote control setting module, and a remote signal query module; the remote control setting module is connected to the remote signal query module and the LED indicator module, and when the information in the remote control setting module and the remote signal query module changes, the LED indicator changes accordingly; The test fixture includes: an LED indicator change detection module, a remote control setting detection module, and a remote signal displacement detection module; the LED indicator change detection is judged by LED IO; the remote signal displacement is judged by the remote signal IO; the remote control setting detection is judged by the remote control IO state; the test fixture is electrically connected to the LED indicator and the downstream serial port of the intelligent fast sensing module through a signal line, and is electrically connected to the serial port of the host computer; the test fixture supplies power to the intelligent fast sensing module; It also includes a data forwarding module, a basic equipment information query module and a basic equipment information setting module; wherein the basic equipment information query module can query the equipment information including: equipment address, current equipment time, equipment production time, equipment manufacturer code information, equipment firmware version information, equipment hardware version information, equipment protocol version number and equipment number; the basic equipment information query module can read the pre-prepared equipment information configuration file to compare whether the read equipment information is consistent; wherein the basic equipment information setting module can set the equipment information including: equipment address, current equipment time, production time, unified address, alarm time, baud rate, remote change time and asset management code; the basic equipment information setting module can set the basic information in the fast perception door module and test it; the setting test includes a normal value test and a critical value setting test; The remote control setting module has the functions of testing the remote control setting and recording the remote control position change events generated after the remote control setting; the remote signal position change detection module can read the remote signal state and record the remote signal state position change events; and can judge the status of the recording of the remote signal position change events by changing the state of the remote signal position through the test tooling.
2. According to claim 1, an automated testing method based on an intelligent fast sensing module is characterized in that: The basic information query and comparison of the device to be tested includes the following steps: S21. Obtain basic information of the device to be tested; S22, sending request frame information data from the host computer to the intelligent fast perception module in sequence; S23, reading response frame information data from the intelligent fast perception module; S24, comparing the response frame information data with the data in the pre-read configuration file to see if they are consistent; S25. Output the test result of whether the data is consistent to the host computer.
3. The automated testing method based on the intelligent rapid sensing module according to claim 1 is characterized in that: The test of the data forwarding function of the device to be tested comprises the following steps: S61, sending a complete data frame to be forwarded to the intelligent fast perception module; S62, the host computer receives the forwarding frame sent by the intelligent fast perception module through the test tooling; S63, comparing whether the forwarded frame is legal in the software of the host computer; S64, sending the damaged data frame to be forwarded to the intelligent fast perception module; the complete data frame can be forwarded to the test tooling by the perception module; if the data to be forwarded is incomplete or damaged, it will be discarded by the perception module and will not be forwarded; S65, judging whether the timeout waiting can pass the tooling; the host computer will judge whether the damaged frame is discarded through the timer; S66. Output data forwarding test results.
4. The automated testing method based on the intelligent rapid sensing module according to claim 1, characterized in that: The upper computer can test each module at a time, output the corresponding module test results after completing the test of each module, and summarize all module test results to form an automated test report.
Citation Information
Patent Citations
Automatic test system based on intelligent rapid perception module
CN211878085U