CN113468048B - System testing method, device, equipment and computer readable storage medium - Google Patents

System testing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113468048B
CN113468048B CN202110688544.1A CN202110688544A CN113468048B CN 113468048 B CN113468048 B CN 113468048B CN 202110688544 A CN202110688544 A CN 202110688544A CN 113468048 B CN113468048 B CN 113468048B
Authority
CN
China
Prior art keywords
test
task
type
simulation
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110688544.1A
Other languages
Chinese (zh)
Other versions
CN113468048A (en
Inventor
唐梦
邓宇
丘文胜
冯俊
聂家鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC GM Wuling Automobile Co Ltd
Original Assignee
SAIC GM Wuling Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC GM Wuling Automobile Co Ltd filed Critical SAIC GM Wuling Automobile Co Ltd
Priority to CN202110688544.1A priority Critical patent/CN113468048B/en
Publication of CN113468048A publication Critical patent/CN113468048A/en
Application granted granted Critical
Publication of CN113468048B publication Critical patent/CN113468048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a system test method, a device, equipment and a computer readable storage medium, wherein the system test method comprises the steps of receiving an input test instruction and determining a test task corresponding to the test instruction; controlling a preset mechanical arm to perform a simulation test according to the test task, and acquiring a test picture corresponding to the simulation test; and comparing the test picture with a preset standard picture, and determining the test result of the simulation test based on the comparison result. The invention improves the intelligence of system test.

Description

System testing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a system testing method, apparatus, device, and computer readable storage medium.
Background
With the rapid development of intelligent networking automobiles, the technology of intelligent networking systems is changing day by day, and the test work aiming at the intelligent network system is more challenging. At present, the test work aiming at the intelligent network system is mainly carried out manually, but because the software of the intelligent network system is updated and iterated quickly, the manual test is difficult to keep pace with the software development, and the cases needing the function test have more items, the stability test consumes long time, the manual test can not be completely carried out in limited time, and problems are easy to be missed. Therefore, how to improve the intelligence of the system test becomes a technical problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide a system testing method, a system testing device, system testing equipment and a computer readable storage medium, and aims to solve the technical problem of how to improve the intelligence of system testing.
In order to achieve the above object, the present invention provides a system testing method, which includes:
receiving an input test instruction, and determining a test task corresponding to the test instruction;
controlling a preset mechanical arm to perform a simulation test according to the test task, and acquiring a test picture corresponding to the simulation test;
and comparing the test picture with a preset standard picture, and determining the test result of the simulation test based on the comparison result.
Optionally, the step of controlling a preset mechanical arm to perform a simulation test according to the test task includes:
determining whether the test type of the test task is a control test type;
and if the test type of the test task is the control test type, determining a test action corresponding to the control test type, and controlling a preset mechanical arm to perform a simulation test based on the test action.
Optionally, after the step of determining whether the test type of the test task is the control test type, the method includes:
if the test type of the test task is a voice test type, determining a test voice signal in the test task, and inputting the test voice signal to a tested terminal corresponding to the test task;
and acquiring a test voice output by the tested terminal based on the test voice signal, detecting whether the test voice is matched with a preset standard voice or not, and determining a test result corresponding to the test task based on a matching result.
Optionally, the step of determining a test action corresponding to the control test type and controlling a preset mechanical arm to perform a simulation test based on the test action includes:
determining a tested terminal corresponding to the test task, and detecting whether a test item corresponding to the control test type is an on-off function test item;
and if the test item is a non-on-off function test item, controlling a preset mechanical arm to perform simulation test on the tested terminal based on the test action.
Optionally, the step of detecting whether the test item corresponding to the control test type is an on-off function test item includes:
and if the test item is an on-off function test item, determining a display terminal connected with the tested terminal, and controlling a preset mechanical arm to perform simulation test on the display terminal and the tested terminal according to the test action.
Optionally, the step of obtaining a test picture corresponding to the simulation test includes:
monitoring a tested terminal corresponding to the test task in real time;
if the situation that the mechanical arm touches the tested terminal is monitored, extracting a screen picture of the tested terminal based on a preset time interval, and taking the screen picture as a test picture corresponding to the simulation test.
Optionally, the step of receiving an input test instruction and determining a test task corresponding to the test instruction includes:
the method comprises the steps of constructing a preset number of test cases according to preset test requirements, extracting test parameters in each test case, and converting each test parameter into a test task corresponding to each test case.
In addition, to achieve the above object, the present invention also provides a system test apparatus, including:
the receiving module is used for receiving an input test instruction and determining a test task corresponding to the test instruction;
the acquisition module is used for controlling a preset mechanical arm to perform simulation test according to the test task and acquiring a test picture corresponding to the simulation test;
and the comparison module is used for comparing the test picture with a preset standard picture and determining the test result of the simulation test based on the comparison result.
In addition, to achieve the above object, the present invention also provides a system test apparatus, including: a memory, a processor and a system test program stored on the memory and executable on the processor, the system test program, when executed by the processor, implementing the steps of the system test method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium, on which a system test program is stored, the system test program implementing the steps of the system test method as described above when executed by a processor.
The method comprises the steps of receiving an input test instruction and determining a test task corresponding to the test instruction; controlling a preset mechanical arm to perform a simulation test according to the test task, and acquiring a test picture corresponding to the simulation test; and comparing the test picture with a preset standard picture, and determining the test result of the simulation test based on the comparison result. The test task corresponding to the received test instruction is determined, the mechanical arm is controlled to perform simulation test according to the test task, the test picture corresponding to the simulation test is obtained, and the test result of the simulation test is determined according to the comparison result of the test picture and the standard picture, so that the phenomenon that the test is carried out manually in the prior art is avoided, the test intelligence is improved, the test labor cost is reduced, the test picture corresponding to the simulation test is directly compared with the standard picture, and the test accuracy is also improved.
Drawings
FIG. 1 is a schematic diagram of a system test device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a system testing method according to the present invention;
FIG. 3 is a schematic diagram of the device modules of the system test device of the present invention.
FIG. 4 is a schematic diagram of a testing process of the system testing method of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
In addition, as shown in fig. 1, fig. 1 is a schematic structural diagram of a system test device of a hardware operating environment according to an embodiment of the present invention.
The system test equipment of the embodiment of the invention can be terminal equipment such as a PC (personal computer) or a server (such as an X86 server) which is provided with a virtualization platform.
As shown in fig. 1, the test apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a test program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and communicating data with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; in turn, the processor 1001 may be configured to invoke the system test program stored in the memory 1005 and perform the operations in the following system test method embodiments of the security component:
receiving an input test instruction, and determining a test task corresponding to the test instruction;
controlling a preset mechanical arm to perform a simulation test according to the test task, and acquiring a test picture corresponding to the simulation test;
and comparing the test picture with a preset standard picture, and determining the test result of the simulation test based on the comparison result.
Based on the above hardware structure, a first embodiment of the system testing method of the present invention is provided, as follows.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a system testing method of the present invention, the system testing method including:
step S10, receiving an input test instruction, and determining a test task corresponding to the test instruction;
at present, when the intelligent network system is tested, the intelligent network system is manually tested, so that the intelligent degree is low, and the waste of human resources is more. Therefore, in order to avoid this phenomenon, in this embodiment, the operations of the tester, such as clicking, double-clicking, sliding, voice control, etc., are simulated by using the robot arm and cooperating with the image and character recognition technology, so as to implement the automatic test of the intelligent internet system. That is, in this embodiment, the test system corresponding to the test method highly packages the operation of the manipulator simulation hand, and the actions include clicking, double-clicking, long-pressing, screen sliding, dragging, waking up, screen blanking, image verification, condition judgment, circulation, and the like. And specific test indexes can be quantized, and test contents such as basic function test, reliability test, software stability test and the like are covered.
The test based on the mechanical arm can be carried out in real time in the embodiment, so that the test efficiency is improved, the development period of parts is shortened, the test required by the update iteration of the software version can be quickly responded, the investment of real vehicle testing personnel resources can be reduced, the control testing process is better, the time is fully utilized for testing, the test cost is reduced, and the test efficiency is improved.
Therefore, in this embodiment, a mechanical arm (e.g., a three-degree-of-freedom robot) may be first disposed on a terminal to be tested (e.g., a vehicle machine of a vehicle to be tested) to meet the simulation requirement of the human-computer interaction test on the touch control action. And the manipulator is controlled by upper computer software to complete the test actions of each simulation test. And when testing, can realize the USB break-make function of car machine and USB flash disk or cell-phone (namely display terminal) through the control of host computer software to USB (Universal Serial Bus). In addition, in this embodiment, a dedicated fixture is further configured to fix the terminal to be tested, that is, in this embodiment, before the terminal to be tested corresponding to the test task is tested, the terminal to be tested needs to be fixed by a fixture set in advance to complete the test task.
Therefore, in this embodiment, a terminal to be tested (such as a mobile phone or a terminal with a display function, such as a car machine) is fixed on a clamp within the controllable range of the mechanical arm, and then the automated testing software is started through an upper computer (such as a PC end), and a test case is compiled according to the testing requirements input by a user. The test case at least comprises three types of parameters including a precondition, an implementation step and a reset condition, and a test task is constructed according to the written test case, namely the parameters in the test case are converted into a test script, and the test script is used as the test task. And the test task may be set to be plural in the present embodiment.
And when the test task is successfully established and a test instruction input by a user or a test instruction sent by other terminals is received, determining test information carried in the test instruction, matching the test information with all the set test tasks, and taking the test task matched with the test information as the test task corresponding to the test instruction. The test information includes necessary test information such as test type, test target, etc.
Step S20, controlling a preset mechanical arm to perform simulation test according to the test task, and acquiring a test picture corresponding to the simulation test;
after the test task corresponding to the test instruction is determined, the test type of the test task, such as a control test type and a voice test type, may be determined first. The control test type is that the mechanical arm needs to be controlled to carry out simulation test. The voice test type is that a test voice signal is directly sent to a tested terminal, the voice signal output by the tested terminal based on the test voice signal is collected, and then the simulation test is carried out according to the collected voice signal.
And when the test type of the test task is determined to be the control test type, the mechanical arm set in advance can be started, and the test action corresponding to the test task is determined, such as a screen click action of the tested terminal, a screen double click action of the tested terminal, a screen sliding action of the tested terminal and the like. And then controlling the mechanical arm to perform simulation test on the tested terminal according to the test action. In addition, in this embodiment, when the mechanical arm performs a simulation test on the terminal to be tested, the camera set in advance is used to collect a screen image of the screen of the terminal to be tested, and the collected screen image is used as a test image corresponding to the simulation test, and the test image is tested, so as to determine a test result of the test task at this time. If the test type of the test task loss is a voice test type, a test voice signal in the test task is determined first, and the test voice signal is input to the tested terminal, the tested terminal outputs voice (namely test voice) according to the received test voice signal, then voice detection is carried out on the test voice, if the voice detection is qualified, the test task is determined to be qualified, and if the voice detection is failed, the test task is determined to be failed.
And S30, comparing the test picture with a preset standard picture, and determining the test result of the simulation test based on the comparison result.
After the simulation test is carried out through the mechanical arm and the test picture of the simulation test is obtained, the test picture is compared with a standard picture set in advance, and the test result of the simulation test is determined according to the comparison result. The test picture is identified according to the picture identification technology, the similarity value between the test picture and the standard picture is calculated, and if the similarity value is larger than a preset value, the test result of the simulation test is determined to be qualified, namely the test task is qualified. And if the similarity value is smaller than or equal to the preset value, determining that the test result of the simulation test is unqualified, namely the test task fails. The standard picture may be a correct picture corresponding to a test task set by a user in advance.
In addition, to assist understanding of the test method in this embodiment, the following description is made by way of example.
For example, as shown in fig. 4, the system comprises an upper computer, a program-controlled USB, a three-axis mechanical arm, an automobile machine, a simulated mouth/sound pickup, a mobile phone and an industrial high-frame camera. The method comprises the steps that each test task is set in an upper computer, when a target test task in each test task is triggered, the test type of the target test task is determined, if the test type is a control test type, a three-axis mechanical arm is controlled to carry out simulation operation (click sliding and the like) on a mobile phone or an automobile machine, and when a test item in the test task comprises on-off test, a USB on-off signal can be input to a program-controlled USB, the automobile machine is connected with the program-controlled USB, namely the automobile machine is connected to a USB on-off module and is connected to the mobile phone through the program-controlled USB. Meanwhile, the screen image of the mobile phone and/or the screen image of the car machine can be collected through the industrial high-frame camera, and the images are transmitted to an upper computer for processing. If the test type is the voice test type, the upper computer can output voice simulation signals to the simulation mouth, the voice simulation signals are input to the automobile machine through the simulation mouth, so that the automobile machine can output the voice signals, the voice signals output are collected through the sound pick-up and transmitted to the upper computer to be judged, and the test result is determined according to the judgment result.
In the embodiment, an input test instruction is received, and a test task corresponding to the test instruction is determined; controlling a preset mechanical arm to perform a simulation test according to the test task, and acquiring a test picture corresponding to the simulation test; and comparing the test picture with a preset standard picture, and determining the test result of the simulation test based on the comparison result. The test task corresponding to the received test instruction is determined, the mechanical arm is controlled to perform simulation test according to the test task, the test picture corresponding to the simulation test is obtained, and the test result of the simulation test is determined according to the comparison result of the test picture and the standard picture, so that the phenomenon that the test is carried out manually in the prior art is avoided, the test intelligence is improved, the test labor cost is reduced, the test picture corresponding to the simulation test is directly compared with the standard picture, and the test accuracy is also improved.
Further, based on the first embodiment of the present invention, a second embodiment of the system testing method of the present invention is provided, in this embodiment, step S20 in the above embodiment, the step of controlling a preset robot arm to perform a simulation test according to the test task is detailed, and includes:
step a, determining whether the test type of the test task is a control test type;
in this embodiment, after determining the test task corresponding to the test instruction, it may be determined whether the test type of the test task is the control test type, and different operations may be executed according to different determination results. The test type comprises a control test type and a voice test type. The control test type needs to control a mechanical arm to perform simulation test. The voice test type is that a test voice signal is directly sent to a tested terminal, the voice signal output by the tested terminal based on the test voice signal is collected, and then the simulation test is carried out according to the collected voice signal.
And b, if the test type of the test task is a control test type, determining a test action corresponding to the control test type, and controlling a preset mechanical arm to perform simulation test based on the test action.
And when the test type of the test task is found to be the control test type through judgment, starting a mechanical arm which is set in advance, and determining a test action corresponding to the test task, such as a screen clicking action of the tested terminal, a screen double-clicking action of the tested terminal, a screen sliding action of the tested terminal and the like. And then controlling the mechanical arm to perform simulation test on the tested terminal according to the test action.
In this embodiment, when the test type of the test task is determined to be the control test type, the test action corresponding to the control test type is determined, and then the preset mechanical arm is controlled to perform the simulation test based on the test action, so that the effective performance of the simulation test is ensured, the phenomenon of manual participation in the test is avoided, and the test accuracy is improved.
Specifically, after the step of determining whether the test type of the test task is the control test type, the method includes:
step c, if the test type of the test task is a voice test type, determining a test voice signal in the test task, and inputting the test voice signal to a tested terminal corresponding to the test task;
when the test type of the test task is found to be the voice test type by judgment, a test voice signal contained in the test task needs to be determined, and the test voice signal is input to a tested terminal to be tested (i.e. a tested terminal corresponding to the test task). The test voice signal may be a test voice signal set in advance by the user based on the user's own needs, such as a set power-on voice signal.
And d, acquiring a test voice output by the tested terminal based on the test voice signal, detecting whether the test voice is matched with a preset standard voice or not, and determining a test result corresponding to the test task based on a matching result.
After the tested terminal receives the test voice signal, corresponding voice, namely test voice, can be output according to the test voice signal, and in this embodiment, the test voice output by the tested terminal can be collected through a voice collecting device (such as a sound pickup) which is arranged in advance, and the collected test voice is matched with standard voice which is arranged in advance, and if the test voice is matched with the standard voice, a test result corresponding to the test task is determined to be qualified. And if the test voice is not matched with the standard voice, determining that the test result corresponding to the test task is unqualified. Wherein, the standard voice may be voice information set in advance by the user.
In this embodiment, when the test type of the test task is determined to be the voice test type, the test voice signal in the test task is determined, the test voice signal is input to the tested terminal, the test voice output by the tested terminal based on the test voice signal is obtained, and the test result corresponding to the test task is determined according to the matching result of the test voice and the standard voice, so that the normal operation of the test process is ensured, and the accuracy of the test result is improved.
Specifically, the step of determining a test action corresponding to the control test type and controlling a preset mechanical arm to perform a simulation test based on the test action includes:
step e, determining a tested terminal corresponding to the test task, and detecting whether a test item corresponding to the control test type is an on-off function test item;
the terminal to be tested, i.e. the terminal to be tested corresponding to the test task, needs to be determined first. And after the test type of the test task is determined to be the control test type, determining a test item corresponding to the control test type, namely the test item contained in the test task, detecting whether a plurality of test items exist, if only one test item exists, detecting whether the test item is an on-off function test item, and executing different operations according to different detection results. And if a plurality of test items exist, determining whether the on-off function test items exist in the test items so as to execute different operations according to different determination results. Wherein, the test item is an item or a test point to be tested. The on-off function test item is an item for testing the USB communication function of the tested terminal.
And f, if the test item is a non-on-off function test item, controlling a preset mechanical arm to perform simulation test on the tested terminal based on the test action.
When the test items are found to be non-on-off functional items through judgment or the non-on-off functional test items exist in each test item, the mechanical arm arranged in advance can be directly controlled to carry out simulation test on the tested terminal according to the test action arranged in advance. The non-on/off function item is a test item other than the item for testing the USB communication function of the terminal under test.
In this embodiment, when it is determined that the test item corresponding to the control test type is the non-on-off function test item, the preset mechanical arm is controlled to perform a simulation test on the terminal to be tested based on the test action, so that normal performance of the test operation is guaranteed.
Specifically, the step of detecting whether the test item corresponding to the control test type is an on-off function test item includes:
and g, if the test item is an on-off function test item, determining a display terminal connected with the tested terminal, and controlling a preset mechanical arm to perform simulation test on the display terminal and the tested terminal according to the test action.
When the test item is found to be the on-off function test item through judgment, a display terminal (such as a mobile phone and the like) connected with the tested terminal needs to be determined, it needs to be explained that the connection mode of the display terminal and the tested terminal is connected through a USB, a corresponding on-off instruction can be sent to the tested terminal at the moment, a mechanical arm which is set in advance is controlled to carry out simulation test operation on the display terminal and the tested terminal according to the test action which is set in advance, and whether signals between the display terminal and the tested terminal can be normally transmitted or not is determined.
In this embodiment, when it is determined that the test item is the on-off function test item, the mechanical arm is controlled to perform a simulation test on the display terminal and the tested terminal connected to the tested terminal according to the test action, so that effective performance of the test operation is ensured.
Further, the step of obtaining a test picture corresponding to the simulation test includes:
h, monitoring the tested terminal corresponding to the test task in real time;
and k, if the situation that the mechanical arm touches the tested terminal is monitored, extracting a screen picture of the tested terminal based on a preset time interval, and taking the screen picture as a test picture corresponding to the simulation test.
In this embodiment, when the robot performs a simulation test, a to-be-tested terminal (i.e., a to-be-tested terminal corresponding to a test task) to be tested is monitored in real time by a monitoring device (e.g., a camera) arranged in advance, and if it is monitored that the robot touches the to-be-tested terminal, a screen of the to-be-tested terminal is extracted in real time after waiting for a time interval (e.g., 1s or 2 s) arranged in advance, where the extracting method may be to photograph a picture on a screen of the to-be-tested terminal by the camera, take the photographed picture as the screen of the to-be-tested terminal, and take the screen as a test picture corresponding to the simulation test.
In this embodiment, the terminal to be tested is monitored in real time, and when the mechanical arm touches the terminal to be tested, the screen image of the terminal to be tested is extracted according to the preset time interval and is used as the test picture, so that the accuracy of the obtained test picture is guaranteed.
Further, the step of receiving an input test instruction and determining a test task corresponding to the test instruction includes:
and m, constructing a preset number of test cases according to a preset test requirement, extracting test parameters in each test case, and converting each test parameter into a test task corresponding to each test case.
In this embodiment, before performing the test, the test requirements set in advance by the user may be obtained, for example, what type of test needs to be performed, which component needs to be tested, and the like. And a certain number (i.e. a preset number) of test cases are constructed according to the test requirements. The test case at least comprises three types of parameters including a precondition, an implementation step and a reset condition, and a test task is constructed according to the written test case, namely the test parameters in the test case are converted into a test script, and the test script is used as the test task. And the test task may be set to be plural in the present embodiment.
In the embodiment, the test case is constructed according to the test requirement, the test parameters in the test case are extracted, and then the test parameters are converted into the test tasks, so that the accuracy of the obtained test tasks is guaranteed.
In addition, referring to fig. 3, the present invention also provides a system test apparatus, including:
the receiving module A10 is used for receiving an input test instruction and determining a test task corresponding to the test instruction;
the acquisition module A20 is used for controlling a preset mechanical arm to perform simulation test according to the test task and acquiring a test picture corresponding to the simulation test;
and the comparison module A30 is used for comparing the test picture with a preset standard picture and determining the test result of the simulation test based on the comparison result.
Optionally, the obtaining module a20 is configured to:
determining whether the test type of the test task is a control test type;
and if the test type of the test task is the control test type, determining a test action corresponding to the control test type, and controlling a preset mechanical arm to perform a simulation test based on the test action.
Optionally, the obtaining module a20 is configured to:
if the test type of the test task is a voice test type, determining a test voice signal in the test task, and inputting the test voice signal to a tested terminal corresponding to the test task;
and acquiring a test voice output by the tested terminal based on the test voice signal, detecting whether the test voice is matched with a preset standard voice or not, and determining a test result corresponding to the test task based on a matching result.
Optionally, the obtaining module a20 is configured to:
determining a tested terminal corresponding to the test task, and detecting whether a test item corresponding to the control test type is an on-off function test item;
and if the test item is a non-on-off function test item, controlling a preset mechanical arm to perform simulation test on the tested terminal based on the test action.
Optionally, the obtaining module a20 is configured to:
and if the test item is an on-off function test item, determining a display terminal connected with the tested terminal, and controlling a preset mechanical arm to perform simulation test on the display terminal and the tested terminal according to the test action.
Optionally, the obtaining module a20 is configured to:
monitoring the tested terminal corresponding to the test task in real time;
if the situation that the mechanical arm touches the tested terminal is monitored, extracting a screen picture of the tested terminal based on a preset time interval, and taking the screen picture as a test picture corresponding to the simulation test.
Optionally, the receiving module a10 is configured to:
constructing a preset number of test cases according to a preset test requirement, extracting test parameters in each test case, and converting each test parameter into a test task corresponding to each test case.
The testing method implemented when each device module is executed can refer to each embodiment of the testing method of the present invention, and details are not described here.
In addition, the present invention also provides a system test apparatus, including: a memory, a processor, a communication bus, and a system test program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the system test program to realize the steps of the system test method.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a system test program, which when executed by a processor implements the steps of the system test method as described above.
The method implemented when the system test program running on the processor is executed may refer to each embodiment of the system test method of the present invention, and details are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (9)

1. A system testing method, comprising the steps of:
receiving an input test instruction, and determining a test task corresponding to the test instruction;
controlling a preset mechanical arm to perform a simulation test according to the test task, and acquiring a test picture corresponding to the simulation test;
comparing the test picture with a preset standard picture, and determining a test result of the simulation test based on a comparison result;
the step of controlling a preset mechanical arm to perform simulation test according to the test task comprises the following steps:
determining whether the test type of the test task is a control test type;
if the test type of the test task is the control test type, determining a test action corresponding to the control test type, controlling the three-axis mechanical arm to perform simulation operation on a mobile phone or an automobile machine based on the test action, and detecting whether a test item corresponding to the control test type is an on-off function test item;
and if the test item is an on-off function test item, inputting a USB on-off signal to the program-controlled USB, connecting the automobile machine with the program-controlled USB, and connecting the automobile machine to a mobile phone through the program-controlled USB.
2. The system test method of claim 1, wherein the step of determining whether the test type of the test task is a control test type comprises, after the step of:
if the test type of the test task is a voice test type, determining a test voice signal in the test task, and inputting the test voice signal to a tested terminal corresponding to the test task;
and acquiring a test voice output by the tested terminal based on the test voice signal, detecting whether the test voice is matched with a preset standard voice or not, and determining a test result corresponding to the test task based on a matching result.
3. The system test method according to claim 1, wherein after the step of detecting whether the test item corresponding to the control test type is an on-off function test item, the method comprises:
and if the test item is a non-on-off function test item, controlling a preset mechanical arm to perform simulation test on the tested terminal based on the test action.
4. The system testing method according to claim 1, wherein the step of inputting a USB on-off signal to a program-controlled USB, connecting the car machine to the program-controlled USB, and connecting to a mobile phone through the program-controlled USB further comprises:
and determining a display terminal connected with the tested terminal, and controlling a preset mechanical arm to perform simulation test on the display terminal and the tested terminal according to the test action.
5. The method for testing a system according to claim 1, wherein the step of obtaining the test picture corresponding to the simulation test comprises:
monitoring the tested terminal corresponding to the test task in real time;
if the situation that the mechanical arm touches the tested terminal is monitored, extracting a screen picture of the tested terminal based on a preset time interval, and taking the screen picture as a test picture corresponding to the simulation test.
6. The system testing method according to any one of claims 1 to 5, wherein the step of receiving an input test instruction and determining a test task corresponding to the test instruction comprises:
constructing a preset number of test cases according to a preset test requirement, extracting test parameters in each test case, and converting each test parameter into a test task corresponding to each test case.
7. A system test apparatus, characterized in that the system test apparatus comprises:
the receiving module is used for receiving an input test instruction and determining a test task corresponding to the test instruction;
the acquisition module is used for controlling a preset mechanical arm to perform simulation test according to the test task and acquiring a test picture corresponding to the simulation test;
the comparison module is used for comparing the test picture with a preset standard picture and determining a test result of the simulation test based on a comparison result;
the acquisition module is further configured to determine whether the test type of the test task is a control test type;
the acquisition module is further configured to determine whether a test type of the test task is a control test type, determine a test action corresponding to the control test type if the test type of the test task is the control test type, control the three-axis mechanical arm to perform a simulation operation on the mobile phone or the automobile machine based on the test action, and detect whether a test item corresponding to the control test type is an on-off function test item;
the acquisition module is further used for inputting a USB on-off signal to the program-controlled USB if the test item is an on-off function test item, connecting the automobile machine with the program-controlled USB and connecting the automobile machine with a mobile phone through the program-controlled USB.
8. A system test apparatus, characterized in that the system test apparatus comprises: memory, a processor and a system test program stored on the memory and executable on the processor, the system test program, when executed by the processor, implementing the steps of the system test method according to any one of claims 1 to 6.
9. A computer-readable storage medium, having stored thereon a system test program which, when executed by a processor, implements the steps of the system testing method of any one of claims 1 to 6.
CN202110688544.1A 2021-06-21 2021-06-21 System testing method, device, equipment and computer readable storage medium Active CN113468048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110688544.1A CN113468048B (en) 2021-06-21 2021-06-21 System testing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110688544.1A CN113468048B (en) 2021-06-21 2021-06-21 System testing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113468048A CN113468048A (en) 2021-10-01
CN113468048B true CN113468048B (en) 2023-03-28

Family

ID=77869012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110688544.1A Active CN113468048B (en) 2021-06-21 2021-06-21 System testing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113468048B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900960A (en) * 2021-12-02 2022-01-07 中汽研软件测评(天津)有限公司 Intelligent vehicle mechanical arm test platform system
CN114679402B (en) * 2022-03-25 2024-05-14 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900377A (en) * 2018-07-03 2018-11-27 南京越博动力系统股份有限公司 A kind of CAN network test macro and test method
US10325596B1 (en) * 2018-05-25 2019-06-18 Bao Tran Voice control of appliances
CN110659168A (en) * 2019-09-12 2020-01-07 苏州浪潮智能科技有限公司 Method for remotely testing hot plug of server peripheral and USB control device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838674A (en) * 2014-03-21 2014-06-04 徐禄勇 Intelligent testing robot based on digital image and use method thereof
CN104951400B (en) * 2015-07-13 2019-02-22 百度在线网络技术(北京)有限公司 The method and apparatus that product is tested
CN106201796A (en) * 2016-07-04 2016-12-07 珠海市魅族科技有限公司 The collocation method of a kind of test and device
CN206133546U (en) * 2016-09-30 2017-04-26 深圳创维汽车智能有限公司 Storage device's break -make testing arrangement and system
CN108132724A (en) * 2016-11-30 2018-06-08 中兴通讯股份有限公司 A kind of touch screen debugs detection method and device
CN107885665A (en) * 2017-12-28 2018-04-06 努比亚技术有限公司 With case script method of testing, mobile terminal and computer-readable recording medium
CN109165162B (en) * 2018-08-31 2022-10-04 北京车和家信息技术有限公司 Test method and related equipment for vehicle-mounted system
CN109669831B (en) * 2018-12-26 2022-05-17 无锡睿勤科技有限公司 Test method and electronic equipment
US11080176B2 (en) * 2019-09-26 2021-08-03 Rockwell Automation Technologies, Inc. Testing framework for automation objects
CN112882928B (en) * 2021-02-02 2023-03-31 中国汽车技术研究中心有限公司 Automatic testing method and system for touch screen of intelligent cabin of automobile

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10325596B1 (en) * 2018-05-25 2019-06-18 Bao Tran Voice control of appliances
CN108900377A (en) * 2018-07-03 2018-11-27 南京越博动力系统股份有限公司 A kind of CAN network test macro and test method
CN110659168A (en) * 2019-09-12 2020-01-07 苏州浪潮智能科技有限公司 Method for remotely testing hot plug of server peripheral and USB control device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张宝强.基于CAN总线的飞机整机电缆测试架构研究.《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》.2011,(第12期),C031-50. *

Also Published As

Publication number Publication date
CN113468048A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN113468048B (en) System testing method, device, equipment and computer readable storage medium
CN107680589B (en) Voice information interaction method, device and equipment
CN111198790B (en) Robot testing method, robot testing device and robot
CN110210219B (en) Virus file identification method, device, equipment and storage medium
CN103312850A (en) Mobile phone automation testing system and work method
CN112613475A (en) Code scanning interface display method and device, mobile terminal and storage medium
CN112822440B (en) Biological sample preparation monitoring method, application server, system and storage medium
CN103838674A (en) Intelligent testing robot based on digital image and use method thereof
CN112712498A (en) Vehicle damage assessment method and device executed by mobile terminal, mobile terminal and medium
CN113821433A (en) Method, device, equipment, medium and product for testing cloud mobile phone application program
CN109359029A (en) It is a kind of automate non-intrusion type Android apply accessible support detection method
CN114724140A (en) Strawberry maturity detection method and device based on YOLO V3
CN114861948A (en) Intelligent self-checking method and system for equipment and storage medium
CN109597389B (en) Test system of embedded control system
CN112346947B (en) Performance detection method, device, electronic equipment and computer readable medium
CN114463776A (en) Fall identification method, device, equipment and storage medium
CN111897726A (en) Abnormity positioning method, abnormity positioning device, storage medium and mobile terminal
CN116069665A (en) Application testing method and device, electronic equipment and computer readable storage medium
CN110716778A (en) Application compatibility testing method, device and system
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN111859370B (en) Method, apparatus, electronic device and computer readable storage medium for identifying service
CN111846282B (en) Automatic testing method and system
CN109117035B (en) Method for hiding floating icon, terminal recovery system and storage medium
CN107168519B (en) Control method and device of intelligent wearable equipment
CN110554969A (en) target code coverage rate testing method, system and medium based on preset breakpoints

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant