CN114385496A - Test method, test device, electronic equipment and computer readable storage medium - Google Patents

Test method, test device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114385496A
CN114385496A CN202210023602.3A CN202210023602A CN114385496A CN 114385496 A CN114385496 A CN 114385496A CN 202210023602 A CN202210023602 A CN 202210023602A CN 114385496 A CN114385496 A CN 114385496A
Authority
CN
China
Prior art keywords
state information
target
test
test terminal
execution
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.)
Pending
Application number
CN202210023602.3A
Other languages
Chinese (zh)
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.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu 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 TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202210023602.3A priority Critical patent/CN114385496A/en
Publication of CN114385496A publication Critical patent/CN114385496A/en
Pending legal-status Critical Current

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/3688Test management for test execution, e.g. scheduling of test suites

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)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses a test method, a test device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: sending an automatic test instruction to a target test terminal; sending a state query instruction to the target test terminal according to a preset frequency, and receiving execution state information returned by the target test terminal according to the state query instruction; when the execution state information contains a target state, stopping sending a state query instruction to the target test terminal; and outputting the execution state information. The state query instruction is continuously sent to the target terminal device through the preset frequency, so that the execution state of the test terminal can be obtained at the first time, and compared with the checking of the state information after waiting for a fixed time threshold, the execution result of the test terminal can be timely captured, and the automatic test efficiency is improved.

Description

Test method, test device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a testing method, a testing device, electronic equipment and a computer readable storage medium.
Background
With the rapid development of computer technology, products are also continuously updated in an iterative manner, the iteration of the products is accompanied with the execution of a test, and the products can be popularized online after the test is passed, so that the online progress of the products is influenced by the testing efficiency.
At present, in order to improve the testing efficiency and save labor, time or hardware resources, an automatic testing mode is usually adopted to test the product, but the efficiency of obtaining a testing result through automatic testing is slow, so that the testing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a test method, a test device, electronic equipment and a computer-readable storage medium, which can improve the efficiency of obtaining test results and improve the test efficiency.
In a first aspect, an embodiment of the present application provides a testing method, including:
sending an automatic test instruction to a target test terminal;
sending a state query instruction to the target test terminal according to a preset frequency, and receiving execution state information returned by the target test terminal according to the state query instruction;
when the execution state information contains a target state, stopping sending a state query instruction to the target test terminal;
and outputting the execution state information.
In a second aspect, an embodiment of the present application further provides a testing apparatus, including:
the sending module is used for sending an automatic testing instruction to the target testing terminal;
the receiving module is used for sending a state query instruction to the target test terminal according to a preset frequency and receiving execution state information returned by the target test terminal according to the state query instruction;
the stopping module is used for stopping sending the state query instruction to the target test terminal when the execution state information contains a target state;
and the output module is used for outputting the execution state information.
Wherein, in some embodiments of the present application, the apparatus further comprises a cycling module comprising:
and the circulating unit is used for sending the state query instruction to the target test terminal again according to a preset frequency within a preset time threshold when the execution state information does not contain the target state information until the execution state information corresponding to the state query instruction contains the target state information.
Wherein, in some embodiments of the present application, the output module comprises:
and the output unit is used for outputting the execution state information corresponding to the last state query instruction when each piece of execution state information within the preset time threshold does not include the target state information.
In some embodiments of the present application, the target test terminal comprises a wireless integrated test instrument, and the automated test instructions comprise instructions generated based on programmable instrument standard commands.
In some embodiments of the present application, the status query instruction includes a log file obtaining instruction, and the receiving module includes:
the receiving unit is used for receiving the log file returned by the target test terminal according to the log file acquisition instruction;
and the extraction unit is used for extracting the execution state information of the target test terminal from the log file.
In some embodiments of the present application, the log file includes an IMS server log file and an LTE network log file, and the receiving unit includes:
and the receiving subunit is used for receiving the IMS server log file returned by the target test terminal according to the first log file acquisition instruction, and receiving the LTE network log file returned by the target test terminal according to the second log file acquisition instruction.
In some embodiments of the present application, the apparatus further includes a determining unit, where the determining unit includes:
the first judging subunit is configured to determine that the test case corresponding to the automatic test instruction passes execution when the execution state information includes the target state information;
and the second judging subunit is configured to determine that the test case corresponding to the automatic test instruction fails to be executed when the execution state information does not include the target state information.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the test method when executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the test method described above.
According to the method and the device, during the automatic testing process of the testing terminal according to the automatic testing instruction, the state query instruction is continuously sent to the target terminal device through the preset frequency, so that the execution state of the testing terminal can be obtained at the first time, wherein the expected state (the target state) is set, when the target state is contained in the execution state information, the testing state of the testing terminal is determined to accord with the expected result, the state information that the testing terminal is tested successfully can be obtained at the first time by a user, the result information that the automatic testing is completed is obtained in time, and compared with the checking of the state information after waiting for a fixed time threshold value, the execution result of the testing terminal can be timely captured, and the automatic testing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a testing method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a testing method provided in an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a flow of acquiring execution status information in a testing method according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a testing apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, 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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides a test method, a test device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the application provides a testing device suitable for electronic equipment, wherein the electronic equipment can comprise a terminal such as a notebook computer, a desktop computer or a personal computer.
Referring to fig. 1, in the embodiment of the present application, a terminal execution test method is taken as an example, and the specific execution process is as follows:
the terminal 10 sends an automatic test instruction to the test terminal 11 to drive the test terminal 11 to execute an automatic test through the automatic test instruction, then sends a status query instruction to the test terminal 11 through the terminal 10, receives execution status information returned by the test terminal 11 according to the status query instruction, identifies the execution status information, and stops sending the status query instruction when the execution status information contains a target status, and outputs the execution status information.
In the embodiment of the present application, the test terminal 11 includes a wireless integrated test instrument (CMW500), and the status query instruction includes an instruction generated by a programmable instrument standard command.
According to the method and the device, during the automatic testing process of the testing terminal according to the automatic testing instruction, the state query instruction is continuously sent to the target terminal device through the preset frequency, so that the execution state of the testing terminal can be obtained at the first time, and through the setting of the expected state (target state), when the execution state information contains the target state, the testing state of the testing terminal is determined to accord with the expected result, so that a user can obtain the state information of the testing terminal which is tested successfully at the first time and obtain the result information of the completion of the automatic testing in time, compared with the checking of the state information after waiting for a fixed time threshold value, the method and the device can timely capture the execution result of the testing terminal and improve the automatic testing efficiency.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
Referring to fig. 2, fig. 2 is a schematic flow chart of a testing method according to an embodiment of the present disclosure. The specific flow of the test method can be as follows:
101. and sending an automatic test instruction to the target test terminal.
The automatic test instruction is sent to the test terminal, so that the test terminal can be driven to execute the automatic test.
In the embodiment of the present application, the test terminal includes a wireless integrated test instrument (CMW500), and the wireless integrated test instrument (CMW500) can be used in all stages of development and production, and supports all common cellular and non-cellular wireless technologies, and can also support and test all protocol layers including radio frequency to end-to-end data.
The automatic test instruction comprises an instruction generated by a programmable instrument Standard Command (SCPI), and the SCPI instruction provided by the CMW500 can automatically control the CMW500 to realize automatic test of a protocol.
In the method, the automatic test process needs to be monitored to judge whether a test Case (Case) passes or not by using the CMW500 for the automatic test. The general method is to detect the state after a fixed waiting time, but the method has the problems of untimely detection, time waste and reduced testing efficiency, so that the scheme for rapidly acquiring the execution state of the testing terminal is designed mainly aiming at the problems, so that the acquisition of the testing result is accelerated, and the testing efficiency is improved.
102. And sending a state query instruction to the target test terminal according to a preset frequency, and receiving execution state information returned by the target test terminal according to the state query instruction.
The test terminal comprises a test terminal body, a preset frequency, a test terminal execution state information acquisition unit, a test terminal execution state acquisition unit, a test terminal state acquisition unit and a test result acquisition unit, wherein the test terminal body is used for acquiring the test terminal execution state information, the test terminal execution state acquisition unit is used for acquiring the test terminal execution state information, and the test terminal execution state acquisition unit is used for acquiring the test terminal execution state information.
In the embodiment of the application, the effect of acquiring the execution state information of the test terminal in real time can be achieved by increasing the sending frequency of the state query instruction, and the acquisition speed of the test result is further increased.
In this embodiment of the present application, the preset frequency may also be determined whether the execution state information includes the target state information, for example, when it is recognized that the returned execution state information does not include the target state information, a state query instruction is directly sent to the test terminal within a preset time threshold, and the acquisition of the execution state information of the test terminal is cyclically implemented.
103. And when the execution state information contains a target state, stopping sending a state query instruction to the target test terminal.
In this embodiment of the application, the target state includes an expected state, for example, a test case test passing state, and when the execution state information includes the test passing state, it indicates that the test terminal passes the test for the test case, and then the sending of the state query instruction to the test terminal may be stopped.
104. And outputting the execution state information.
The execution condition of the test case can be determined according to the execution state information by outputting the execution state information of the test terminal.
In this embodiment of the present application, when the execution state information does not include the target state, the method may send the state query instruction to the test terminal again according to the preset frequency, that is, optionally, in some embodiments of the present application, before the step "outputting the execution state information", the method further includes:
and when the execution state information does not contain the target state information, sending the state query instruction to the target test terminal again according to a preset frequency within a preset time threshold until the execution state information corresponding to the state query instruction contains the target state information.
When the execution state information does not contain the target state information, it can be understood that the execution of the test case by the test terminal is not finished, so that a state query instruction can be sent to the test terminal again to continuously acquire the execution state information of the test terminal at a subsequent moment, the test terminal in the test finished state can be conveniently and timely acquired, that is, the information of the test case execution finish is acquired as soon as possible, and the test efficiency is improved.
The setting of the preset time threshold can avoid the situation that too much invalid information is acquired due to frequent acquisition of the execution state information of the test terminal when the test execution fails, wherein in the embodiment of the application, the preset time threshold can be set according to actual requirements, for example, the execution time of the current test case is determined comprehensively and averagely according to the past test time of the test case, and the execution time is used as the preset time threshold of the current sending state query instruction.
In this embodiment of the present application, for a case where the test case fails to be executed, the obtained execution state information may also be returned, that is, optionally, in some embodiments of the present application, the step "outputting the execution state information" includes:
and when each piece of execution state information within the preset time threshold does not include the target state information, outputting the execution state information corresponding to the last state query instruction.
When the execution state information in the preset time threshold does not include the target state information, the situation that the test terminal fails to execute the test case is indicated, and the execution state information in the execution failure can be directly returned, so that a test user can obtain the execution result of the test case.
In this embodiment of the present application, the execution state of the test terminal may be obtained from an execution log of the test terminal, that is, optionally, in some embodiments of the present application, the state query instruction includes a log file obtaining instruction, and the step "receiving execution state information returned by the target test terminal according to the state query instruction" includes:
receiving a log file returned by the target test terminal according to the log file acquisition instruction;
and extracting the execution state information of the target test terminal from the log file.
The log file is used for reflecting the execution condition of the test terminal for the test case, so that the execution condition of the test terminal can be acquired from the log file.
In this embodiment of the present application, the log file includes an IMS server log file and an LTE network log file, and the step "receiving the log file returned by the target test terminal according to the log file acquisition instruction" includes:
and receiving an IMS server log file returned by the target test terminal according to the first log file acquisition instruction, and receiving an LTE network log file returned by the target test terminal according to the second log file acquisition instruction.
Wherein, different log files are obtained through different instructions, for example, through SCPI instructions SENSe: DATA: CONTrol: IMS2: EVENts: LAST? Obtain the Last Event Log (IMS Last Event Log) corresponding to the Multimedia server (IMS, IP Multimedia Subsystem), or, through SCPI directive SENSE: LTE: SIGN: ELOG: ALL? All Log files (LTE All Event logs) of a Long Term Evolution network (LTE, Long Term Evolution), also called universal mobile telecommunications technology, are acquired. And acquiring corresponding different log files through different instructions, and extracting the execution state information of the test terminal from the corresponding log files.
In this embodiment of the present application, by outputting the execution state information of the test terminal, it is convenient to obtain the execution condition of the test case according to the execution state information of the test terminal, that is, optionally, in some embodiments of the present application, the step "outputting the execution state information" includes:
when the execution state information contains the target state information, determining that the test case corresponding to the automatic test instruction passes the execution;
and when the execution state information does not contain the target state information, determining that the test case corresponding to the automatic test instruction fails to be executed.
Through the output of the execution state information, a user can conveniently acquire the execution condition of the test case according to the execution state information obtained through the output.
According to the method and the device, during the automatic testing process of the testing terminal according to the automatic testing instruction, the state query instruction is continuously sent to the target terminal device through the preset frequency, so that the execution state of the testing terminal can be obtained at the first time, wherein the expected state (the target state) is set, when the target state is contained in the execution state information, the testing state of the testing terminal is determined to accord with the expected result, the state information that the testing terminal is tested successfully can be obtained at the first time by a user, the result information that the automatic testing is completed is obtained in time, and compared with the checking of the state information after waiting for a fixed time threshold value, the execution result of the testing terminal can be timely captured, and the automatic testing efficiency is improved.
The instruction sending end intermittently sends a state returning instruction (state query instruction) to the test terminal and receives a state value (execution state information) returned by the test terminal, wherein the state returning instruction is based on an instruction generated by a programmable instrument Standard Command (SCPI), and the test terminal comprises a wireless comprehensive test instrument (CMW 500).
The state return instruction is sent to the test terminal discontinuously, the execution state of the test terminal can be continuously obtained, and the execution condition of the test case can be conveniently and timely obtained.
Referring to fig. 3, fig. 3 is a schematic diagram of an execution state information obtaining process provided in an embodiment of the present application, where the specific process of the execution state information obtaining process is as follows:
121. sending a state query instruction to a test terminal;
122. obtaining execution state information returned by the test terminal aiming at the state query instruction;
123. detecting the returned execution state information, and judging whether the execution state information meets the expected value, namely judging whether the execution state information contains target state information, if not, executing step 124, otherwise, executing step 125;
124. judging whether the time is within a preset time threshold value, if so, returning to execute the step 121, and if not, executing the step 125;
125. the execution state information is output.
The execution state information of the test terminal is frequently acquired within the preset time threshold according to the preset frequency, so that the execution condition of the test case can be acquired conveniently and timely, and when the execution state information meets the expectation, the test case is considered to be executed, so that the test result can be accurately acquired, and the test efficiency is improved.
When the execution state information does not include the target state information, the execution state meeting the expectation can be obtained at the first time in a mode of obtaining the execution state information again, wherein when the expectation is not obtained within a preset time threshold, the execution failure of the test case is indicated, and by returning the execution state information, the expected state value or the failed state value can be output after the test terminal executes the test case, so that a tester can obtain the execution condition of the test case according to the output result.
In this embodiment of the present application, a python language-based detection module (Check Status) may be used to execute a Status query instruction and identify and determine whether returned execution Status information meets an expectation, where the detection module (Check Status) specifically may include:
Figure BDA0003463588890000091
the method executive check _ register _ voltage (self) is used for detecting whether the wireless integrated tester registers on VoLTE, that is, whether target state information (such as reg in code) is contained in the execution state information, and the method executive get _ voltage _ general _ info (self) is used for acquiring the execution state information of the wireless integrated tester. The word part in the code part of the detection module (Check Status) is a comment for each line of code and is used for explaining the meaning or the action of the line of code.
The execution state information of the test terminal may be sent and obtained according to a preset frequency within a preset time threshold by executing a check _ voltage _ register _ status (self) based on a python language method, for example:
Figure BDA0003463588890000101
in the embodiment of the application, the preset time threshold is set to be 30 seconds, whether the returned execution state information contains the target state information is detected in a 30-second loop, if yes, the loop is ended, the execution state information is output, and if not, the state query instruction is sent in the 30-second loop and whether the returned execution state information contains the target state information is detected.
In order to better implement the testing method of the application, the application also provides a testing device based on the testing method. Wherein the meanings of the nouns are the same as those in the test method, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a testing apparatus provided in the present application, wherein the testing apparatus may include:
the sending module 201 is configured to send an automated testing instruction to the target testing terminal.
The receiving module 202 is configured to send a state query instruction to the target test terminal according to a preset frequency, and receive execution state information returned by the target test terminal according to the state query instruction.
In some embodiments of the present application, the status query instruction includes a log file obtaining instruction, and the receiving module 202 includes:
the receiving unit is used for receiving the log file returned by the target test terminal according to the log file acquisition instruction;
and the extraction unit is used for extracting the execution state information of the target test terminal from the log file.
In some embodiments of the present application, the log file includes an IMS server log file and an LTE network log file, and the receiving unit includes:
and the receiving subunit is used for receiving the IMS server log file returned by the target test terminal according to the first log file acquisition instruction, and receiving the LTE network log file returned by the target test terminal according to the second log file acquisition instruction.
A stopping module 203, configured to stop sending the status query instruction to the target test terminal when the execution status information includes a target status.
Wherein, in some embodiments of the present application, the apparatus further comprises a cycling module comprising:
and the circulating unit is used for sending the state query instruction to the target test terminal again according to a preset frequency within a preset time threshold when the execution state information does not contain the target state information until the execution state information corresponding to the state query instruction contains the target state information.
An output module 204, configured to output the execution state information.
Among them, in some embodiments of the present application, the output module 204 includes:
and the output unit is used for outputting the execution state information corresponding to the last state query instruction when each piece of execution state information within the preset time threshold does not include the target state information.
In some embodiments of the present application, the target test terminal comprises a wireless integrated test instrument, and the automated test instructions comprise instructions generated based on programmable instrument standard commands.
In some embodiments of the present application, the apparatus further includes a determining unit, where the determining unit includes:
the first judging subunit is configured to determine that the test case corresponding to the automatic test instruction passes execution when the execution state information includes the target state information;
and the second judging subunit is configured to determine that the test case corresponding to the automatic test instruction fails to be executed when the execution state information does not include the target state information.
In the embodiment of the application, the sending module 201 sends an automatic test instruction to the test terminal, receives the automatic test instruction, the receiving module 202 sends a state query instruction to the test terminal according to a preset frequency, receives execution state information returned by the test terminal according to the state query instruction, then the stopping module 203 stops sending the state query instruction to the target test terminal when detecting that the execution state information contains a target state, and then the outputting module 204 outputs the execution state information.
According to the method and the device, during the automatic testing process of the testing terminal according to the automatic testing instruction, the state query instruction is continuously sent to the target terminal device through the preset frequency, so that the execution state of the testing terminal can be obtained at the first time, and through the setting of the expected state (target state), when the execution state information contains the target state, the testing state of the testing terminal is determined to accord with the expected result, so that a user can obtain the state information of the testing terminal which is tested successfully at the first time and obtain the result information of the completion of the automatic testing in time, compared with the checking of the state information after waiting for a fixed time threshold value, the method and the device can timely capture the execution result of the testing terminal and improve the automatic testing efficiency.
In addition, the present application also provides an electronic device, as shown in fig. 5, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing the steps in any one of the test methods provided in this application.
According to the method and the device, during the automatic testing process of the testing terminal according to the automatic testing instruction, the state query instruction is continuously sent to the target terminal device through the preset frequency, so that the execution state of the testing terminal can be obtained at the first time, wherein the expected state (the target state) is set, when the target state is contained in the execution state information, the testing state of the testing terminal is determined to accord with the expected result, the state information that the testing terminal is tested successfully can be obtained at the first time by a user, the result information that the automatic testing is completed is obtained in time, and compared with the checking of the state information after waiting for a fixed time threshold value, the execution result of the testing terminal can be timely captured, and the automatic testing efficiency is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium having stored thereon a computer program, which can be loaded by a processor to perform the steps of any of the test methods provided herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute any of the steps in the image processing provided by the present application, the beneficial effects that can be achieved by any of the testing methods provided by the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The above detailed description is provided for a testing method, an apparatus, an electronic device and a storage medium provided by the present application, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of testing, comprising:
sending an automatic test instruction to a target test terminal;
sending a state query instruction to the target test terminal according to a preset frequency, and receiving execution state information returned by the target test terminal according to the state query instruction;
when the execution state information contains a target state, stopping sending a state query instruction to the target test terminal;
and outputting the execution state information.
2. The method of claim 1, wherein prior to said outputting said execution state information, said method further comprises:
and when the execution state information does not contain the target state information, sending the state query instruction to the target test terminal again according to a preset frequency within a preset time threshold until the execution state information corresponding to the state query instruction contains the target state information.
3. The method of claim 2, wherein outputting the execution state information comprises:
and when each piece of execution state information within the preset time threshold does not include the target state information, outputting the execution state information corresponding to the last state query instruction.
4. The method of claim 1, wherein the target test terminal comprises a wireless integrated test instrument and the automated test instructions comprise instructions generated based on programmable instrument standard commands.
5. The method according to claim 1, wherein the status query instruction includes a log file obtaining instruction, and the receiving the execution status information returned by the target test terminal according to the status query instruction includes:
receiving a log file returned by the target test terminal according to the log file acquisition instruction;
and extracting the execution state information of the target test terminal from the log file.
6. The method according to claim 5, wherein the log files include an IMS server log file and an LTE network log file, and the receiving the log file returned by the target test terminal according to the log file obtaining instruction includes:
and receiving an IMS server log file returned by the target test terminal according to the first log file acquisition instruction, and receiving an LTE network log file returned by the target test terminal according to the second log file acquisition instruction.
7. The method of claim 1, wherein after outputting the execution state information, the method further comprises:
when the execution state information contains the target state information, determining that the test case corresponding to the automatic test instruction passes the execution;
and when the execution state information does not contain the target state information, determining that the test case corresponding to the automatic test instruction fails to be executed.
8. A test apparatus, comprising:
the sending module is used for sending an automatic testing instruction to the target testing terminal;
the receiving module is used for sending a state query instruction to the target test terminal according to a preset frequency and receiving execution state information returned by the target test terminal according to the state query instruction;
the stopping module is used for stopping sending the state query instruction to the target test terminal when the execution state information contains a target state;
and the output module is used for outputting the execution state information.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the test method according to any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the test method according to any one of claims 1-7.
CN202210023602.3A 2022-01-10 2022-01-10 Test method, test device, electronic equipment and computer readable storage medium Pending CN114385496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210023602.3A CN114385496A (en) 2022-01-10 2022-01-10 Test method, test device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210023602.3A CN114385496A (en) 2022-01-10 2022-01-10 Test method, test device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114385496A true CN114385496A (en) 2022-04-22

Family

ID=81200035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210023602.3A Pending CN114385496A (en) 2022-01-10 2022-01-10 Test method, test device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114385496A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541312A (en) * 2023-07-06 2023-08-04 广汽埃安新能源汽车股份有限公司 Continuous integration test method and system for automobile software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541312A (en) * 2023-07-06 2023-08-04 广汽埃安新能源汽车股份有限公司 Continuous integration test method and system for automobile software
CN116541312B (en) * 2023-07-06 2023-09-22 广汽埃安新能源汽车股份有限公司 Continuous integration test method and system for automobile software

Similar Documents

Publication Publication Date Title
CN110673936B (en) Breakpoint continuous operation method and device for arrangement service, storage medium and electronic equipment
CN108508874B (en) Method and device for monitoring equipment fault
US20130166243A1 (en) Test device and method for testing stability of electronic devices
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
CN112052169A (en) Test management method, system, device and computer readable storage medium
US20140033179A1 (en) Application testing
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN114385496A (en) Test method, test device, electronic equipment and computer readable storage medium
CN111522744A (en) Service testing method, device and computer readable storage medium
CN116166525A (en) Method and device for generating test script
CN112231403A (en) Consistency checking method, device, equipment and storage medium for data synchronization
CN114117973A (en) Logic synthesis method, device and storage medium
CN114416451A (en) Server testing method and device, computer equipment and storage medium
CN112035346B (en) Automatic test method, system and medium based on embedded DSP operating system
CN104008046A (en) Method and device for testing programs
US20200371882A1 (en) Method, Apparatus, Device and Medium for Starting Virtual Machine
CN111414287A (en) Method, system and device for analyzing chip test result
US9900272B2 (en) Method and server for transmitting application test data
CN112181695A (en) Abnormal application processing method, device, server and storage medium
CN116087752A (en) Chip testing method, system, device and medium
CN112802495A (en) Robot voice test method and device, storage medium and terminal equipment
CN113722212B (en) CPLD upgrading test method, device, equipment and medium
CN115185829A (en) Business process testing method and device, terminal equipment and storage medium
CN113821438A (en) Application response performance test method and system and computing equipment

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