Target program pressure testing device
By combining a host computer and a DC output power supply, the test voltage is automatically input and the operation log is fed back, which solves the problem of low efficiency in target program stress testing in the existing technology and realizes universal testing for multiple devices.
Patent Information
- Application Number
- CN202520296192.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2035-02-24
AI Technical Summary
Existing technologies for target program stress testing are inefficient and have limited versatility. Mechanical pressing methods are prone to positional shifts, are cumbersome to operate, and are difficult to adapt to the testing needs of various electronic devices.
The system employs a combination of a host computer, a DC output power supply, and a program execution device. The DC output power supply inputs the test voltage according to the test command, and the program execution device sends the operation log back to the host computer, thereby achieving automated pressure testing.
It improves the efficiency of stress testing of target programs, enhances the versatility of testing, and is applicable to target program testing of various electronic devices.
Smart Images

Figure CN223582474U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to program development technical field especially, relate to a target program pressure testing device. BACKGROUND
[0002] At present, due to some target programs have the defect that is not easy to perceive on design, when electronic equipment runs these target programs for a long time, gradually appear the problems such as lag, accidental restart, memory leak, lead to electronic equipment can not work stably and reliably, therefore, it is particularly necessary to carry out pressure test to target program, can find the defect existing in target program in time through pressure test, and optimize target program.
[0003] In the related art, the pressure test of the target program can only rely on the keys on the electronic device, and the test personnel press the keys frequently by using mechanical trigger members such as cylinders and motors to input specific trigger signals to the electronic device, and the electronic device repeatedly executes the same target program to determine whether the target program has design defects according to the execution of the target program by the electronic device.
[0004] However, in actual application, it is found that the above-mentioned mechanical pressing method for pressure testing of the target program has the problem of low mechanical pressing efficiency, and long-time mechanical movement will cause mechanical tolerance, so that the pressing position is offset every time, which is not conducive to ensuring the reliability of the pressure test execution, and this test method is only suitable for specific target programs in the same electronic device, and when pressure testing the target programs of other electronic devices, the test object must be replaced, which is not only cumbersome to operate, but also greatly limits the universality of the test. UTILITY MODEL CONTENTS
[0005] The utility model provides a target program pressure testing device to at least solve or improve the problem that the pressure test of the target program in the prior art has low test efficiency and great limitation in universality.
[0006] The utility model provides a target program pressure testing device, comprising: host computer, DC output power supply and program running equipment;
[0007] The host computer and the DC output power supply are in communication connection, the DC output power supply and the program running equipment are electrically connected, and the program running equipment and the host computer are in communication connection.
[0008] The host computer is configured to input a test instruction to the direct current output power supply at a set frequency; the direct current output power supply is configured to input a test voltage to the program running device according to the test instruction; the program running device is configured to run a target program corresponding to the test voltage, and feed back a running log of the target program to the host computer; and the host computer is configured to determine a test result of the target program according to the running log of the target program.
[0009] The direct current output power supply comprises a control module, a digital-to-analog conversion module and a voltage stabilizing output circuit.
[0010] The host computer and the control module are in communication connection, the control module and an input side of the digital-to-analog conversion module are electrically connected, an output side of the digital-to-analog conversion module and an input end of the voltage stabilizing output circuit are electrically connected, and an output end of the voltage stabilizing output circuit and the program running device are electrically connected.
[0011] The control module is configured to output a control signal to the digital-to-analog conversion module in response to the test instruction, the digital-to-analog conversion module is configured to perform digital-to-analog conversion processing on the control signal, and the voltage stabilizing output circuit is configured to process the signal processed by the digital-to-analog conversion module, so as to input the test voltage to the program running device.
[0012] The direct current output power supply further comprises a voltage acquisition circuit, and the voltage acquisition circuit is arranged between the control module and an output end of the voltage stabilizing output circuit.
[0013] The voltage acquisition circuit is configured to acquire a voltage signal output by the voltage stabilizing output circuit, and feed back the voltage signal to the control module; and the control module is configured to adjust the control signal output to the digital-to-analog conversion module according to a difference between the voltage signal and the test voltage, so as to ensure that the voltage signal output by the voltage stabilizing output circuit can trigger the program running device to run the target program.
[0014] The direct current output power supply further comprises a first display module, the first display module is electrically connected with the control module, and the control module is configured to control the first display module to display the voltage signal acquired by the voltage acquisition circuit.
[0015] The program running device comprises an analog-to-digital conversion module and a processing module.
[0016] The direct current output power supply and the analog-digital conversion module are electrically connected, the analog-digital conversion module and the processing module are electrically connected, and the processing module and the host computer are in communication connection.
[0017] The analog-digital conversion module is used for performing analog-digital conversion processing on the test voltage output by the direct current output power supply, the processing module is used for running a target program corresponding to the test voltage according to the signal output by the analog-digital conversion module, and feeding back the running log of the target program to the host computer.
[0018] According to the target program pressure test device, the program running equipment further comprises a second display module, the second display module is electrically connected with the processing module, and the processing module is used for controlling the second display module to simulate and display the function to be executed by the target program.
[0019] According to the target program pressure test device, the host computer is used for outputting a plurality of test instructions to the direct current output power supply, the direct current output power supply is used for one-to-one corresponding output of a plurality of test voltages according to a plurality of test instructions, and the plurality of test voltages are used for triggering the program running equipment to run a plurality of target programs.
[0020] According to the target program pressure test device, the direct current output power supply comprises a plurality of direct current output channels, and the plurality of direct current output channels can one-to-one corresponding output a plurality of test voltages.
[0021] According to the target program pressure test device, the direct current output power supply is provided with a first communication interface, the first communication interface is used for outputting the test voltage, the program running equipment is provided with a second communication interface, and the first communication interface and the second communication interface are detachably connected.
[0022] According to the target program pressure test device, the program running equipment comprises any one of a recording pen, a display screen, a wearable device, a smart phone and a tablet computer.
[0023] The target program pressure test device provided by the utility model, through setting host computer, direct current output power supply and program running equipment, host computer can input test instruction to direct current output power supply according to setting frequency, direct current output power supply inputs test voltage to program running equipment according to received test instruction, so that program running equipment repeatedly runs target program corresponding to test voltage in setting time, and running log of target program is fed back to host computer when target program is run each time, according to running log of target program, host computer can determine test result of target program.
[0024] Compared with the existing mechanical pressing test design, the target program pressure test efficiency is improved, the pressure test of various target programs can be applied, and the universality of the test is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.
[0026] Figure 1 It is the control structure block diagram of the target program pressure test device provided by the present application.
[0027] Reference signs:
[0028] 1, host computer;
[0029] 2, DC output power supply; 21, control module; 22, digital-analog conversion module; 23, voltage stabilizing output circuit; 24, voltage acquisition circuit; 25, first display module;
[0030] 3, program running device; 31, analog-digital conversion module; 32, processing module; 33, second display module. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical scheme and advantages of the present application more clear, the technical scheme of the present application will be described clearly and completely in combination with the drawings in the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor belong to the scope of protection of the present application.
[0032] The following will be combined Figure 1 , the target program pressure test device provided by the utility model embodiment is described in detail through specific embodiments and application scenarios.
[0033] As Figure 1 shown, the utility model embodiment provides a target program pressure test device, which comprises: a host computer 1, a DC output power supply 2 and a program running device 3;
[0034] The host computer 1 and the DC output power supply 2 are in communication connection, the DC output power supply 2 and the program running device 3 are in electrical connection, and the program running device 3 and the host computer 1 are in communication connection;
[0035] The host computer 1 is configured to input test instructions to the direct current output power supply 2 at a set frequency; the direct current output power supply 2 is configured to input test voltage to the program running device 3 according to the test instructions; the program running device 3 is configured to run a target program corresponding to the test voltage, and feed back a running log of the target program to the host computer 1; and the host computer 1 determines a test result of the target program according to the running log of the target program.
[0036] It can be understood that the host computer 1 can be an industrial computer, a notebook computer, or the like. The host computer 1 can be connected to a communication interface on the direct current output power supply 2 through a network cable or a serial cable, so as to transmit the test instructions to the direct current output power supply 2. The frequency at which the host computer 1 inputs the test instructions to the direct current output power supply 2 is determined by the running time of the target program, for example, the set frequency is less than or equal to the reciprocal of the running time of the target program.
[0037] The direct current output power supply 2 is configured with a direct current voltage module, which is configured to output test voltage in a direct current state corresponding to the test instructions given by the host computer 1. An output end of the direct current output power supply 2 can be electrically connected to an input end of the program running device 3 through a wire and other lines, so as to transmit the test voltage to the program running device 3.
[0038] The program running device 3 is configured with a processor, which is capable of running the target program in response to the test voltage given by the direct current output power supply 2, and transmitting the running log of the target program to the host computer 1 through a network cable or a serial cable. Since different faults occur in the running of the target program, the running log of the target program presents different types, so that the host computer 1 can determine the test result of the target program according to the running log of the target program.
[0039] In actual application, if the target program runs normally, the running log of the target program can directly identify “program running successfully” in Chinese or English. If the target program runs abnormally, the running log is an error log representing abnormal running of the target program. Common error logs include Out Of Memory Error (Out Of Memory Error) and Garbage Collection (Garbage Collection Error).
[0040] The program running device 3 includes any one of a voice recorder, a display screen, a wearable device, a smart phone, and a tablet computer.
[0041] From the above, the target program pressure test device provided by the utility model, through setting host computer 1, direct current output power supply 2 and program running equipment 3, host computer 1 can input test instruction to direct current output power supply 2 according to the set frequency, direct current output power supply 2 inputs test voltage to program running equipment 3 according to the test instruction received, so that program running equipment 3 repeatedly runs the target program corresponding to the test voltage within the set time, and the running log of the target program is fed back to host computer 1 when running the target program each time, according to the running log of the target program, host computer 1 can determine the test result of the target program.
[0042] Compared with the existing mechanical pressing test design, the utility model improves the pressure test efficiency of the target program, can be applied to the pressure test of various target programs, and ensures the universality of the test.
[0043] In some embodiments, as shown in Figure 1 The direct current output power supply 2 includes a control module 21, a digital-to-analog conversion module 22 and a voltage stabilizing output circuit 23.
[0044] The host computer 1 and the control module 21 are in communication connection, the control module 21 and the input side of the digital-to-analog conversion module 22 are electrically connected, the output side of the digital-to-analog conversion module 22 and the input end of the voltage stabilizing output circuit 23 are electrically connected, and the output end of the voltage stabilizing output circuit 23 and the program running equipment 3 are electrically connected.
[0045] The control module 21 can be a single-chip microcomputer or a PLC controller, the control module 21 is used for outputting a control signal to the output digital-to-analog conversion module 22 in response to a test instruction, the digital-to-analog conversion module 22 is used for carrying out digital-to-analog conversion processing on the control signal, converting the control signal from a digital signal form into an analog signal form; and the voltage stabilizing output circuit 23 is used for processing the signal processed by the digital-to-analog conversion module 22, realizing inputting the test voltage to the program running equipment 3.
[0046] Exemplarily, the voltage stabilizing output circuit 23 can be a direct current boosting circuit, the direct current boosting circuit is used for boosting processing on the signal processed by the digital-to-analog conversion module 22, so as to ensure that the test voltage input to the program running equipment 3 can trigger the target program to run.
[0047] Exemplarily, the voltage stabilizing output circuit 23 can be a direct current circuit with adjustable output voltage built based on an adjustable linear voltage stabilizer or a switching voltage stabilizer, the adjustable linear voltage stabilizer can adopt an LM317 chip, the output voltage range of the LM317 chip is 1.25V to 37V, and the switching voltage stabilizer can adopt an LM2596 chip or an MP1584 chip.
[0048] In some embodiments, as shown in Figure 1As shown, the DC output power supply 2 also includes a voltage acquisition circuit 24, which is located between the output terminals of the control module 21 and the voltage regulation output circuit 23.
[0049] The voltage acquisition circuit 24 is used to acquire the voltage signal output by the voltage regulator output circuit 23 and to feed the voltage signal back to the control module 21. The control module 21 is used to adjust the control signal output to the digital-to-analog converter module 22 according to the difference between the voltage signal and the test voltage, so as to ensure that the voltage signal output by the voltage regulator output circuit 23 can trigger the program running device 3 to run the target program.
[0050] Understandably, based on the voltage signal fed back by the voltage acquisition circuit 24, the control module 21 can adaptively adjust the control signal output to the digital-to-analog converter module 22 using PID regulation, thereby adjusting the voltage at the input terminal of the voltage regulator output circuit 23 to ensure that the voltage value output by the voltage regulator output circuit 23 meets the test voltage required for actual testing.
[0051] The voltage acquisition circuit 24 can be a voltage divider resistor network known in the art.
[0052] In some embodiments, such as Figure 1 As shown, in order to facilitate the tester to understand the test voltage output by the DC output power supply 2 in real time, the DC output power supply 2 also includes a first display module 25. The first display module 25 is electrically connected to the control module 21. The control module 21 is used to control the first display module 25 to display the voltage signal collected by the voltage acquisition circuit 24.
[0053] The first display module 25 can be an LCD screen, and the first display module 25 can be electrically connected to the control module 21 via a serial cable.
[0054] In some embodiments, such as Figure 1 As shown, the program running device 3 includes an analog-to-digital conversion module 31 and a processing module 32; the DC output power supply 2 is electrically connected to the analog-to-digital conversion module 31, the analog-to-digital conversion module 31 is electrically connected to the processing module 32, and the processing module 32 is communicatively connected to the host computer 1.
[0055] In practical applications, the analog-to-digital conversion module 31 is used to perform analog-to-digital conversion on the test voltage output by the DC output power supply 2, so as to convert the test voltage from analog signal form to digital signal form; the processing module 32 can be a microprocessor, and the processing module 32 is used to run the target program corresponding to the test voltage according to the signal output by the analog-to-digital conversion module 31, and to feed back the running log of the target program to the host computer 1.
[0056] The processing module 32 can run multiple types of target programs, and the voltage values of the test voltages for triggering the processing module 32 to run different target programs are different.
[0057] In some embodiments, as shown in Figure 1 The program running device 3 further includes a second display module 33 electrically connected with the processing module 32, and the processing module 32 is configured to control the second display module 33 to simulate the functions to be performed by the target program.
[0058] It can be understood that, in order to intuitively understand the type of the target program run by the processing module 32, the second display module 33 simulates the functions to be performed by the target program synchronously when the target program is running.
[0059] The second display module 33 can be an LCD display screen, and the second display module 33 can be electrically connected with the processing module 32 through a serial port line.
[0060] For example, when the target program is used to control the volume increase and decrease functions, the second display module 33 can simulate the function of the target program to increase the volume by displaying an increasing number of identification lines, and the second display module 33 can also simulate the function of the target program to decrease the volume by displaying a decreasing number of identification lines.
[0061] For example, when the target program is used to control the brightness increase and decrease functions, the second display module 33 can simulate the function of the target program to increase the brightness by adjusting the color of the identifier from white to red, and the second display module 33 can also simulate the function of the target program to decrease the brightness by adjusting the color of the identifier from white to blue.
[0062] In some embodiments, as shown in Figure 1 The host computer 1 is configured to output multiple test instructions to the direct current output power supply 2, and the direct current output power supply 2 is configured to output multiple test voltages corresponding to the multiple test instructions one by one, and the multiple test voltages are configured to trigger the program running device 3 to run multiple target programs.
[0063] It can be understood that, if the program running device 3 needs to run different target programs, the host computer 1 sends test instructions corresponding to the corresponding target programs to the direct current output power supply 2, and the direct current output power supply 2 outputs test voltages corresponding to the target programs according to the received test instructions.
[0064] In actual applications, the direct current output power supply 2 adopts the circuit structure including the control module 21, the digital-to-analog conversion module 22, and the voltage stabilizing output circuit 23 as described above, and the voltage stabilizing output circuit 23 outputs different test voltages corresponding to different test instructions.
[0065] In order to facilitate the understanding of the scheme shown in the embodiment, the following is specifically described by taking a voice recorder as an example. When the program running device 3 is a voice recorder, the voltage stabilizing output circuit 23 inputs different test voltages to the voice recorder, so that the voice recorder can execute different functions. For example, the test voltage can be 1.65V, 0.825V, 0.55V, 1.8V, 1.15V or 1.23V, etc. According to different test voltages, the voice recorder can run different target programs to execute functions such as interface switching, voice recording, timed voice recording, and deleting voice recording, etc.
[0066] In some examples, the direct current output power supply 2 includes a plurality of direct current output paths capable of one-to-one corresponding output of a plurality of test voltages. Each direct current output path can be composed of a digital-to-analog conversion module 22, a switching device and a voltage stabilizing output circuit 23 connected in series. The control module 21 and the switching device are electrically connected, and the voltage stabilizing output circuit 23 corresponding to each direct current output path outputs different voltages.
[0067] In actual application, the control module 21 controls the switching state of the switching device to realize the selection of the direct current output path of the direct current output power supply 2. That is, if a direct current output path needs to output a voltage, the control module 21 controls the switching device corresponding to the direct current output path to be turned on, and controls the switching devices corresponding to other direct current output paths to be turned off.
[0068] In some embodiments, in order to facilitate the assembly of the target program stress testing device, the direct current output power supply 2 is configured with a first communication interface for outputting a test voltage; the program running device 3 is configured with a second communication interface, and the first communication interface and the second communication interface are detachably connected.
[0069] Among the first communication interface and the second communication interface, one can be a plug, and the other can be a socket. The plug can be inserted into the socket to realize the communication connection between the first communication interface and the second communication interface.
[0070] Of course, the first communication interface and the second communication interface can also be USB interfaces or type-c interfaces, and the first communication interface and the second communication interface are detachably connected through a signal adapter.
[0071] Finally, it should be noted that: the above examples are used to illustrate the technical solutions of the present application, but not limited to; although the present application is described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still be modified to the technical solutions recorded in the foregoing examples, or part of the technical features are replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A target program stress testing apparatus characterized by comprising: The application relates to a test system for target program. The test system comprises a host computer, a direct-current output power supply and a program running device. The host computer and the direct-current output power supply are in communication connection, the direct-current output power supply and the program running device are in electrical connection, and the program running device and the host computer are in communication connection. The host computer is used for inputting a test instruction to the direct-current output power supply at a set frequency; the direct-current output power supply is used for inputting a test voltage to the program running device according to the test instruction; the program running device is used for running a target program corresponding to the test voltage and feeding back a running log of the target program to the host computer; and the host computer determines a test result of the target program according to the running log of the target program.
2. The target program stress testing apparatus according to claim 1, wherein The direct-current output power supply comprises a control module, a digital-analog conversion module and a voltage stabilizing output circuit. The host computer and the control module are in communication connection, the control module and the input side of the digital-analog conversion module are in electrical connection, the output side of the digital-analog conversion module and the input end of the voltage stabilizing output circuit are in electrical connection, and the output end of the voltage stabilizing output circuit and the program running device are in electrical connection. The control module is used for outputting a control signal to the digital-analog conversion module in response to the test instruction; the digital-analog conversion module is used for carrying out digital-analog conversion processing on the control signal; and the voltage stabilizing output circuit is used for processing the signal processed by the digital-analog conversion module, so as to input the test voltage to the program running device.
3. The target program stress testing apparatus according to claim 2, wherein The direct-current output power supply further comprises a voltage acquisition circuit, which is arranged between the control module and the output end of the voltage stabilizing output circuit. The voltage acquisition circuit is used for acquiring a voltage signal output by the voltage stabilizing output circuit and feeding back the voltage signal to the control module; and the control module is used for adjusting the control signal output to the digital-analog conversion module according to a difference between the voltage signal and the test voltage, so as to ensure that the voltage signal output by the voltage stabilizing output circuit can trigger the program running device to run the target program.
4. The target program stress testing apparatus according to claim 3, wherein The direct-current output power supply further comprises a first display module, which is in electrical connection with the control module; and the control module is used for controlling the first display module to display the voltage signal acquired by the voltage acquisition circuit.
5. The target program stress testing apparatus according to claim 1, wherein The program running device comprises an analog-digital conversion module and a processing module. The direct-current output power supply and the analog-digital conversion module are in electrical connection, the analog-digital conversion module and the processing module are in electrical connection, and the processing module and the host computer are in communication connection. The analog-digital conversion module is used for carrying out analog-digital conversion processing on the test voltage output by the direct-current output power supply; the processing module is used for running a target program corresponding to the test voltage according to the signal output by the analog-digital conversion module and feeding back a running log of the target program to the host computer.
6. The target program stress testing apparatus according to claim 5, wherein The program running device further comprises a second display module, which is in electrical connection with the processing module; and the processing module is used for controlling the second display module to simulate and display a function to be executed by the target program.
7. The target program stress testing apparatus according to any one of claims 1 to 6, characterized by The host computer is configured to output a plurality of test instructions to the direct current output power supply, and the direct current output power supply is configured to output a plurality of test voltages one by one according to the plurality of test instructions, and the plurality of test voltages are configured to trigger the program running device to run a plurality of target programs.
8. The target program stress testing apparatus according to claim 7, wherein The direct current output power supply comprises a plurality of direct current output channels, and the plurality of direct current output channels are configured to output the plurality of test voltages one by one.
9. The target program stress testing apparatus according to any one of claims 1 to 6, characterized by The direct current output power supply is configured with a first communication interface, and the first communication interface is configured to output the test voltage; the program running device is configured with a second communication interface, and the first communication interface and the second communication interface are detachably connected.
10. The target program stress testing apparatus according to any one of claims 1 to 6, characterized by The program running device comprises any one of a voice recorder, a display screen, a wearable device, a smart phone and a tablet computer.