Automatic test method, system and equipment for visual equipment and storage medium
Through the automatic testing method of visual equipment, the use of graphic elements and script generation modules realizes the visualization of product testing, lowers the testing threshold, adapts to the needs of different types of products, improves testing efficiency and reliability, and solves the problems of existing automated testing methods. The problem of high threshold.
Patent Information
- Application Number
- CN202410618401.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-23
AI Technical Summary
Existing automated product testing methods require programming capabilities, have high thresholds, limited suitability, and are difficult to flexibly respond to the testing needs of different types of products.
Using the automatic testing method of visual equipment, by obtaining test configuration instructions, calling preset graphic elements, generating test scripts, and determining target test items and parameters according to the graphic setting instructions, graphical programming is realized, the difficulty of operation is reduced, and language programming representation is generated It is interrelated with graphical programming representation, supports customization and script template libraries, and adapts to a variety of testing needs.
It realizes the visualization of product testing, lowers the testing threshold, improves testing efficiency and reliability, is suitable for different types of products, reduces labor costs, and is suitable for users with different programming abilities.
Smart Images

Figure CN118535470A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of product testing, and in particular to an automatic testing method, system, device and storage medium for a visualization device. Background Art
[0002] After the product is produced, it needs to be tested to control the product quality. For different types of products to be tested, the required test items may deviate. In order to flexibly respond to various testing needs, manual product testing can be used, from issuing instructions, reading parameters, judging results and recording results. This method is gradually replaced by automation due to many problems such as large workload, low efficiency and reliability. At present, program-controlled equipment is mainly used for automated testing. This method has many advantages such as higher reliability, lower cost compared to manual testing, and reusability. However, this method requires language programming and is only suitable for testers with programming skills and a certain testing threshold.
[0003] Therefore, how to lower the testing threshold for product testing is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide an automatic testing method, system, device and storage medium for a visualization device, which can achieve the beneficial effect of visual product testing and lowering the testing threshold.
[0005] The first aspect of the present application provides an automatic testing method for a visualization device: an automatic testing method for a visualization device, the method comprising: Obtaining a test configuration instruction, and calling a preset graphic element according to the test configuration instruction; Obtaining a graphic setting instruction of a target user for the preset graphic element, wherein the graphic setting instruction is used to determine a target test item, an input parameter, and an output parameter corresponding to a target device; Generate the test script according to the target test item, the input parameter and the output parameter; According to the test script, controlling the target device to execute the target test item to obtain test data corresponding to the target test item; The test data and the output parameter are compared to determine the test result corresponding to the target test item.
[0006] By adopting the above technical solution, after obtaining the issued test configuration instructions, the preset graphic elements are called, and the target user can issue graphic setting instructions according to the splicing, parameter adjustment and other operations of the preset graphic elements; after the settings are completed, the corresponding test script is generated, and the target device is tested according to the script to obtain test data, and compared and judged according to the pre-entered output parameters to obtain the test results, thereby realizing product visualization through script programming with graphic images, reducing the difficulty of operation, and achieving the beneficial effect of lowering the threshold for product testing.
[0007] Optionally, the method further includes: Loading a test case script, wherein the test case script is a preset test script, and the test script includes a test case test item, a test case input parameter, and a test case output parameter corresponding to the test case script; Obtaining adjustment instructions of the target user for the test case script; According to the adjustment instruction, the use case test items, the use case input parameters and / or the use case output parameters are adjusted to determine the test script.
[0008] By adopting the above technical solution, pre-stored test case scripts can be directly loaded, and adjustments with less workload can be made based on the test case scripts, so that the same test script can be reused for multiple products, thereby improving testing efficiency and reducing workload.
[0009] Optionally, the method further includes: Compiling the test script to simultaneously obtain a language programming representation and a graphical programming representation corresponding to the test script; Acquire the adjustment instruction of the target user for a first programming representation, where the first programming representation is the language programming representation or the graphical programming representation adjusted according to the adjustment instruction; According to the content corresponding to the adjusted first programming representation, a second programming representation is synchronized, where the second programming representation is a graphical programming representation or a language programming representation corresponding to the first programming representation.
[0010] By adopting the above technical solution, when generating a test script, a language programming representation and a graphical programming representation of the test script are generated at the same time. These two representations are interrelated, that is, when one of the representations is modified and adjusted, the other representation will also change accordingly, so that the target user can master the adjustment and control of the programming. Target users with language programming capabilities can also understand the process script with the help of the synchronously changing graphical programming representation, thereby improving the reliability of product testing.
[0011] Optionally, the method further includes: According to the test configuration instructions, obtain the test script custom instructions; According to the test script custom instruction, the target test item, the input parameter and the output parameter are obtained to generate the custom test script accordingly.
[0012] By adopting the above technical solution and customizing the script, the target user can not only improve the script through programming, but also configure the relevant parameters, including target test items, input parameters and output parameters, etc. After entering, the corresponding custom test script is automatically generated to reduce the operation threshold and improve the test efficiency.
[0013] Optionally, the method further includes: According to the custom test script, determine the corresponding test script template; The test script template is saved in a script library, and the script library is used to call the stored test script template when loading the test case script.
[0014] By adopting the above technical solution, the newly created custom script of the target user can be saved as a test script template. In subsequent calls, the saved test script template can be retrieved from the script library to load the test case script to improve the test efficiency of subsequent tests.
[0015] Optionally, the method further includes: Determine whether the cyclic task corresponding to the current test item includes a forwarding task, the current test item being any test item in the target test item, the test item including a group of cyclic tasks; If the forwarding task exists in the cyclic task, a forwarding instruction is sent to the target device, and the target device is controlled to execute the target test item to obtain the test data; If the forwarding task does not exist in the cyclic task, the target test item is executed on the target device to obtain the test data.
[0016] By adopting the above technical solution, there may be multiple test items in the script, that is, there may be multiple target test items, and each test item is executed in a pre-set order. The relevant test device can determine whether to directly detect the target device or send the instruction to the target device according to whether the current test item needs to execute the forwarding instruction. The target device returns the parameters to the relevant test parameters after self-checking, thereby meeting the test requirements of various test items.
[0017] Optionally, the method further includes: Determine whether a current test item sequence of the current test item is a maximum test item sequence of the target test item, wherein the test item sequence is an execution order identifier of each test item; If the current test item sequence is not the maximum test item sequence, testing the target device according to the test items of the next test item sequence; If the current test item sequence is the maximum test item sequence, a test result set is recorded, where the test result set is the test results corresponding to a plurality of the test items in the target test item.
[0018] By adopting the above technical solution, there may be multiple target test items, and each test item is executed in a pre-set order. If the current test item is completed and the sequence corresponding to the current test item is already the test item with the largest sequence in the target test items, it means that the test is completed and the results are saved to complete the product test.
[0019] A second aspect of the present application provides an automatic testing system for a visualization device, comprising: A test configuration module, used to obtain a test configuration instruction and call a preset graphic element according to the test configuration instruction; A graphic setting module, used for obtaining a graphic setting instruction of a target user for the preset graphic element, wherein the graphic setting instruction is used for determining a target test item, input parameter and output parameter corresponding to a target device; A script generation module, used to generate the test script according to the target test item, the input parameter and the output parameter; A data testing module, used to control the target device to execute the target test item according to the test script, so as to obtain test data corresponding to the target test item; The result determination module is used to compare the test data and the output parameter to determine the test result corresponding to the target test item.
[0020] A third aspect of the present application provides a device, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the above-mentioned automatic testing method for a visualization device.
[0021] A fourth aspect of the present application provides a storage medium storing a computer program that can be loaded by a processor and execute the above-mentioned automatic testing method for a visualization device.
[0022] In summary, the present application includes at least one of the following beneficial effects: 1. After obtaining the issued test configuration instructions, call the preset graphic elements. The target user can issue graphic setting instructions according to the splicing, parameter adjustment and other operations of the preset graphic elements; after the setting is completed, the corresponding test script is generated, and the target device is tested according to the script to obtain the test data, and the test results are obtained by comparing and judging according to the pre-entered output parameters, so as to realize product visualization and reduce the difficulty of operation through script programming with graphic images, thereby achieving the beneficial effect of lowering the threshold of product testing. Since the threshold of product testing is lowered, the labor cost for some repetitive or simple work can be reduced.
[0023] 2. When generating a test script, the language programming representation and the graphical programming representation of the test script are generated at the same time. These two representations are interrelated, that is, when one of the representations is modified or adjusted, the other representation will also change accordingly, so that the target user can master the adjustment of the programming. Target users with language programming capabilities can also understand the process script with the help of the synchronously changing graphical programming representation, thereby improving the reliability of product testing.
[0024] 3. Custom setting script. In addition to improving the script through programming, the target user can also configure relevant parameters, including target test items, input parameters and output parameters, etc. After entry, the corresponding custom test script is automatically generated to lower the operation threshold. For the newly created custom script of the target user, it can be saved as a test script template. In subsequent calls, the saved test script template can be retrieved from the script library to load the test case script to improve the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flowchart of an automatic testing method for a visualization device provided in an embodiment of the present application; Figure 2 It is a virtual structural diagram of the automatic testing system of the visualization device provided by the present application. DETAILED DESCRIPTION
[0026] The following examples will help those skilled in the art to further understand the effects of the present application, but are not intended to limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several modifications and improvements may be made without departing from the concept of the present application. These all fall within the scope of protection of the present application.
[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0028] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0029] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0031] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0032] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0033] In order to make the purpose, technical solutions and advantages of the present application clearer, the automatic testing method of the visualization device of the present application is explained below from the perspective of the automatic testing device of the visualization device. The automatic testing device of the visualization device can be an electronic device, which can be, for example, a mobile phone terminal, a computer terminal or other device.
[0034] The present application is further described in detail below in conjunction with the accompanying drawings.
[0035] Reference Figure 1 , is a flow chart of an automatic testing method for a visualization device provided in an embodiment of the present application, the method comprises the following steps, which are specifically described below: In step S1, a test configuration instruction is obtained, and a preset graphic element is retrieved according to the test configuration instruction.
[0036] Specifically, in this application, there are three components, namely, a control part, a test device, and a product to be tested (hereinafter collectively referred to as a target device), wherein the control part may be a host computer such as a computer, which is used to control the test device to perform a test task through an automated program; the test device may be a test device, which is used to perform a test task on the target device. The control part and the test device may be integrated, or they may be electrically connected in other ways.
[0037] More specifically, the acquisition of test configuration instructions referred to in step S1 refers to the setting instructions corresponding to the test script received by the control part after the product tester (hereinafter referred to as the target user) operates. The way of issuing this instruction includes but is not limited to key control, audio control, text input or program control, etc. For the purpose of lowering the threshold of product testing, assuming that the programming type selected by the target user is graphical programming, the preset graphic elements will be called at this time. The graphic elements are visual elements such as graphics, images, animations, etc. that can be used for programming. In one embodiment provided by this application, the method of splicing building blocks is adopted, which is similar to Scratch programming. After obtaining the configuration instructions, the preset building blocks will be called accordingly for the target user to operate.
[0038] In step S2, a graphic setting instruction of a target user for the preset graphic element is obtained, wherein the graphic setting instruction is used to determine a target test item, input parameters, and output parameters corresponding to a target device.
[0039] Specifically, the target user can adjust the retrieved preset graphic elements through the control part, such as the host computer and other control devices, adjust the parameters of the preset graphic elements, modify the test items, etc. The combined graphics adjusted by the graphic setting instructions should be able to be read by the computer to the target test items, input parameters and output parameters after being converted into a language programming script. Among them, the target test items are the items that the target device needs to test; the input parameters are the prerequisites of the target device, for example, it can be the conduction of the relay, the opening of the proportional valve, etc.; the output parameters are the reference parameters of the test data, for example, it can be WIFI signal 50-90%, voltage 12±0.5V, current <60mA, relay conduction, proportional valve opening 20% and other reference information. The test results of the test item of the target device can be judged through the output parameters. According to actual needs, it is also possible not to make adjustments, directly default parameters or use recorded parameters, which are explained in detail below: Loading a test case script, wherein the test case script is a preset test script, and the test script includes a test case test item, a test case input parameter, and a test case output parameter corresponding to the test case script; Obtaining adjustment instructions of the target user for the test case script; According to the adjustment instruction, the use case test items, the use case input parameters and / or the use case output parameters are adjusted to determine the test script.
[0040] Specifically, the pre-stored test case script can be called without the need for the target user to input it himself, so as to improve the test efficiency. After calling, the use case test items, use case input parameters and use case parameters corresponding to the pre-stored script can be directly adopted according to actual needs, wherein the use case test items are the test items corresponding to the test case script, the use case input parameters are the input parameters corresponding to the test case script, and the use case output parameters are the output parameters corresponding to the test case script. It may also be necessary to adjust the above-mentioned use case parameters according to the changes in the type of the product to be tested or the addition of items to be tested in actual conditions, so as to determine the test script used for the current test. In the process of generating the test script, in order to timely understand the changes in the script flow caused by the script modification, two-way compilation can also be performed, which is explained in detail below: Compiling the test script to simultaneously obtain a language programming representation and a graphical programming representation corresponding to the test script; Acquire the adjustment instruction of the target user for a first programming representation, where the first programming representation is the language programming representation or the graphical programming representation adjusted according to the adjustment instruction; According to the content corresponding to the adjusted first programming representation, a second programming representation is synchronized, where the second programming representation is a graphical programming representation or a language programming representation corresponding to the first programming representation.
[0041] Specifically, compiling the test script means generating two interfaces, one is the language programming version of the test script, and the other is the graphical programming version of the test script. The target user can operate any interface according to programming requirements, that is, after generating the test script, the target user can operate the language programming section and the graphical programming section at the same time by controlling the display content corresponding to the part. The target user can operate any section according to the actual situation, and the operation content will be displayed on the other section synchronously.
[0042] For example, if the target user drags a block and adds an if judgment block, the language programming section will also add an if judgment statement synchronously, and vice versa. The advantage of this is that for target users who have no language programming foundation, they can use graphical programming to drag blocks to complete the process script; for target users who can use language programming, they can also use the synchronously changing graphical programming interface to help understand the entire process script.
[0043] Furthermore, in the process of generating test scripts, the target user can also use custom input to meet more diverse test requirements, as described below: According to the test configuration instructions, obtain the test script custom instructions; According to the test script custom instruction, the target test item, the input parameter and the output parameter are obtained to generate the custom test script accordingly.
[0044] Specifically, the target user can choose not to use the pre-stored test case script, but to perform customized operations according to the items required to be tested for the product to be tested. The customized operations can be programmed by the target user himself, and the self-programming can be graphical programming and / or language programming, or the target user can input the test case, which is the target test item, input parameters and output parameters, and then quickly generate the script according to the input test case to lower the threshold for testers and improve test efficiency. Afterwards, the customized test script can be saved after adoption. The saved script can be used as a template and called in subsequent tests. The following is a specific explanation: According to the custom test script, determine the corresponding test script template; The test script template is saved in a script library, and the script library is used to call the stored test script template when loading the test case script.
[0045] Specifically, the test script template can be called when the target user loads the test case script. In addition, the script library can be a local database or a shared database. That is, a new test script template created in one device can be shared with other test devices for batch testing to improve test efficiency.
[0046] In step S3, the test script is generated according to the target test item, the input parameter and the output parameter.
[0047] Specifically, the target user can generate a test script in a variety of ways. One way is to directly generate a test script after obtaining the target test items, input parameters, output parameters and other test cases input by the target user. The target user can directly use the generated script or use it after fine-tuning it. Another way is that the target user can use graphical programming to drag and stitch images to build a test script, and then adjust the corresponding parameters of a specific graphic to generate a test script. According to actual needs, you can also choose language programming to program to get a test script.
[0048] In step S4, according to the test script, the target device is controlled to execute the target test item to obtain test data corresponding to the target test item.
[0049] Specifically, the control part sends instructions to the test device according to the test script, and the test device detects the target device according to the issued instructions to obtain test data or parameters, and then returns the obtained test data or parameters to the control part. There are two ways for the test device to test the device under test. One is that the test device directly tests the device under test, for example, it can be a voltage detection task. The other is that the test device forwards to the device under test, and the device under test performs the detection task by itself, and then returns the test data or parameters obtained by the detection to the test device.
[0050] Furthermore, since the test may be performed asynchronously, there are test items that need to be set in a certain order. A sequence can also be set for the test items to execute the test tasks according to the sequence. In each test item, there is a set of cyclic tasks, for example, it may be a voltage detection task, a current detection task, a relay detection task, a receiving task, and a forwarding task, etc. This is determined based on the nature of the test item, and is described in detail below: Determine whether the cyclic task corresponding to the current test item includes a forwarding task, the current test item being any test item in the target test item, the test item including a group of cyclic tasks; If the forwarding task exists in the cyclic task, a forwarding instruction is sent to the target device, and the target device is controlled to execute the target test item to obtain the test data; If the forwarding task does not exist in the cyclic task, the target test item is executed on the target device to obtain the test data.
[0051] Specifically, after receiving the instruction issued by the control part, the test device will parse the instruction to determine whether the instruction needs to be forwarded to the target device, that is, to determine whether the cyclic task corresponding to the current test item includes a forwarding task. If forwarding is required, the instruction will be further sent to the target device and the test data returned by the target device will be received; if forwarding is not required, the test device will be controlled to detect the target device. In addition, since there are many cyclic tasks in the automatic test device, these cyclic tasks are executed in sequence according to a pre-set sequence, such as the current and voltage detection task, the instruction acceptance task, and the instruction forwarding task. When executing the task, other task instructions are temporarily stored in the automatic test device. From a macro perspective, this process is usually measured in ms and takes a very short time.
[0052] In step S5, the test data and the output parameter are compared to determine the test result corresponding to the target test item.
[0053] Specifically, after receiving the test data or parameters returned by the test device, the control part will compare them with the output parameters set in the test script to determine whether the corresponding test item has an abnormality. In addition, there is a possibility that multiple rounds of loop testing are required for the same target device to complete multiple test items. In this case, a loop function needs to be set to loop the detection item tasks to complete the detection of all test items of the product. The following is a specific explanation: Determine whether a current test item sequence of the current test item is a maximum test item sequence of the target test item, wherein the test item sequence is an execution order identifier of each test item; If the current test item sequence is not the maximum test item sequence, testing the target device according to the test items of the next test item sequence; If the current test item sequence is the maximum test item sequence, a test result set is recorded, where the test result set is the test results corresponding to a plurality of the test items in the target test item.
[0054] Specifically, after completing a test, the current test item sequence corresponding to the current test item will be obtained, and it will be determined whether it is the maximum test item sequence of all test items set by the test script. However, it is obvious that the sequence can be defined by the target user, and the test order of the test items can also be sorted by the target user, which can be in a variety of ways such as sequential, reverse or custom sorting. According to the judgment result, it can be determined whether the current test item is the last test. If not, the next sequence of test item tasks will be started. If so, the test result set obtained this time will be recorded and a display report will be provided to the target user so that the target user can understand the test status of the target device.
[0055] On the other hand, the present application discloses an automatic testing system for a visualization device, see Figure 2 , Figure 2 : is a virtual structural diagram of an automatic testing system for a visualization device provided by the present application, and the automatic testing system for a visualization device includes: The test configuration module 100 is used to obtain a test configuration instruction and retrieve a preset graphic element according to the test configuration instruction; A graphic setting module 200, used to obtain a graphic setting instruction of a target user for the preset graphic element, wherein the graphic setting instruction is used to determine a target test item, input parameter and output parameter corresponding to a target device; A script generation module 300, used to generate the test script according to the target test item, the input parameter and the output parameter; A data testing module 400, configured to control the target device to execute the target test item according to the test script, so as to obtain test data corresponding to the target test item; The result determination module 500 is used to compare the test data and the output parameter to determine the test result corresponding to the target test item.
[0056] The specific definition of the automatic test system for visualization equipment can be found in the definition of the automatic test method for visualization equipment mentioned above, which will not be repeated here. Each module in the automatic test system for visualization equipment can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0057] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0058] The automatic testing method for a visualization device provided in an embodiment of the present application can be applied to terminal devices such as electronic devices, computers, wearable devices, vehicle-mounted devices, tablet computers, laptop computers, netbooks, personal digital assistants (PDA), augmented reality (AR) / virtual reality (VR) devices, and mobile phones. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
[0059] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in each embodiment of the above method can be implemented.
[0060] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in each embodiment of the above method when executing the computer program product.
[0061] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0062] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0063] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0064] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0065] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0066] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An automatic testing method for a visualization device, characterized in that: The method comprises: Obtaining a test configuration instruction, and calling a preset graphic element according to the test configuration instruction; Obtaining a graphic setting instruction of a target user for the preset graphic element, wherein the graphic setting instruction is used to determine a target test item, an input parameter, and an output parameter corresponding to a target device; Generate the test script according to the target test item, the input parameter and the output parameter; According to the test script, controlling the target device to execute the target test item to obtain test data corresponding to the target test item; The test data and the output parameter are compared to determine the test result corresponding to the target test item.
2. The automatic testing method for a visualization device according to claim 1, characterized in that: The method further comprises: Loading a test case script, wherein the test case script is a preset test script, and the test script includes a test case test item, a test case input parameter, and a test case output parameter corresponding to the test case script; Obtaining adjustment instructions of the target user for the test case script; According to the adjustment instruction, the use case test items, the use case input parameters and / or the use case output parameters are adjusted to determine the test script.
3. The automatic testing method for a visualization device according to claim 2, characterized in that: The method further comprises: Compiling the test script to simultaneously obtain a language programming representation and a graphical programming representation corresponding to the test script; Acquire the adjustment instruction of the target user for a first programming representation, where the first programming representation is the language programming representation or the graphical programming representation adjusted according to the adjustment instruction; According to the content corresponding to the adjusted first programming representation, a second programming representation is synchronized, where the second programming representation is a graphical programming representation or a language programming representation corresponding to the first programming representation.
4. The automatic testing method for a visualization device according to claim 2, characterized in that: The method further comprises: According to the test configuration instructions, obtain the test script custom instructions; According to the test script custom instruction, the target test item, the input parameter and the output parameter are obtained to generate the custom test script accordingly.
5. The automatic testing method for a visualization device according to claim 4, characterized in that: The method further comprises: According to the custom test script, determine the corresponding test script template; The test script template is saved in a script library, and the script library is used to call the stored test script template when loading the test case script.
6. The automatic testing method for a visualization device according to claim 1, characterized in that: The method further comprises: Determine whether the cyclic task corresponding to the current test item includes a forwarding task, the current test item being any test item in the target test item, the test item including a group of cyclic tasks; If the forwarding task exists in the cyclic task, a forwarding instruction is sent to the target device, and the target device is controlled to execute the target test item to obtain the test data; If the forwarding task does not exist in the cyclic task, the target test item is executed on the target device to obtain the test data.
7. The automatic testing method for a visualization device according to claim 6, characterized in that: The method further comprises: Determine whether a current test item sequence of the current test item is a maximum test item sequence of the target test item, wherein the test item sequence is an execution order identifier of each test item; If the current test item sequence is not the maximum test item sequence, testing the target device according to the test items of the next test item sequence; If the current test item sequence is the maximum test item sequence, a test result set is recorded, where the test result set is the test results corresponding to a plurality of the test items in the target test item.
8. An automatic testing system for a visualization device, characterized in that: include: A test configuration module, used to obtain a test configuration instruction and call a preset graphic element according to the test configuration instruction; A graphic setting module, used for obtaining a graphic setting instruction of a target user for the preset graphic element, wherein the graphic setting instruction is used for determining a target test item, input parameter and output parameter corresponding to a target device; A script generation module, used to generate the test script according to the target test item, the input parameter and the output parameter; A data testing module, used to control the target device to execute the target test item according to the test script, so as to obtain test data corresponding to the target test item; The result determination module is used to compare the test data and the output parameter to determine the test result corresponding to the target test item.
9. A device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the automatic testing method for a visualization device as claimed in any one of claims 1 to 7.
10. A storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the automatic testing method for a visualization device as claimed in any one of claims 1 to 7.
Citation Information
Cited By
Function test method and device for random access memory, and storage medium
CN119559989A
Functional Test Method, Device and Storage Medium of Random Access Memory
CN119559989B
