CN112597067B - Test method, test system, electronic device and test medium - Google Patents

Test method, test system, electronic device and test medium Download PDF

Info

Publication number
CN112597067B
CN112597067B CN202110243506.5A CN202110243506A CN112597067B CN 112597067 B CN112597067 B CN 112597067B CN 202110243506 A CN202110243506 A CN 202110243506A CN 112597067 B CN112597067 B CN 112597067B
Authority
CN
China
Prior art keywords
terminal
test
result
execution
test result
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.)
Expired - Fee Related
Application number
CN202110243506.5A
Other languages
Chinese (zh)
Other versions
CN112597067A (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.)
HUNAN RADIO AND TV UNIVERSITY (HUNAN NETWORK ENGINEERING VOCATIONAL COLLEGE)
Original Assignee
HUNAN RADIO AND TV UNIVERSITY (HUNAN NETWORK ENGINEERING VOCATIONAL COLLEGE)
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 HUNAN RADIO AND TV UNIVERSITY (HUNAN NETWORK ENGINEERING VOCATIONAL COLLEGE) filed Critical HUNAN RADIO AND TV UNIVERSITY (HUNAN NETWORK ENGINEERING VOCATIONAL COLLEGE)
Priority to CN202110243506.5A priority Critical patent/CN112597067B/en
Publication of CN112597067A publication Critical patent/CN112597067A/en
Application granted granted Critical
Publication of CN112597067B publication Critical patent/CN112597067B/en
Expired - Fee Related 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/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)
  • Debugging And Monitoring (AREA)

Abstract

The method comprises the steps that a first terminal receives a test request sent by a second terminal; the first terminal runs a test program according to the test request; when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal; the second terminal runs the execution script, acquires the execution result of the second terminal through the execution script and sends the execution result to the first terminal; the first terminal determines a test result of the second terminal according to the execution result, so that the second terminal (opposite terminal) equipment is tested by running a test program on the first terminal (home terminal), the test efficiency is improved, and the test difficulty of the opposite terminal equipment is reduced. That is to say, the second terminal can complete the test without the operation of the user, so that the test efficiency is improved, and the time for communicating between users at two ends is saved.

Description

Test method, test system, electronic device and test medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test method, a test system, an electronic device, and a medium.
Background
With the continuous progress of science and technology, more and more users are using science and technology products, such as mobile phones, smart televisions, handheld devices or intelligent wearable devices. However, in the process of using the technology product, various faults may occur more or less, and when a fault occurs, generally, a user queries the fault reason through internet access to perform self-resolution of the fault, and when the fault cannot be resolved, some users may also consult through a company providing the technology product, however, many users cannot accurately describe the fault reason during the consultation, so that the fault testing efficiency of the remote program is low.
Therefore, how to solve the above problems is a problem that needs to be solved at present.
Disclosure of Invention
The present application provides a testing method, system, electronic device and medium, which aims to improve the above problems.
In a first aspect, the present application provides a testing method, including: a first terminal receives a test request sent by a second terminal; the first terminal runs a test program according to the test request, and the test program is installed in the first terminal; when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal; the second terminal runs the execution script, acquires an execution result of the second terminal through the execution script, and sends the execution result to the first terminal; and the first terminal determines a test result of the second terminal according to the execution result.
In the implementation process, a first terminal receives a test request sent by a second terminal; the first terminal runs a test program according to the test request, and the test program is installed in the first terminal; when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal; the second terminal runs the execution script, acquires an execution result of the second terminal through the execution script, and sends the execution result to the first terminal; the first terminal determines a test result of the second terminal according to the execution result, so that the second terminal (opposite terminal) equipment is tested by running a test program on the first terminal (home terminal), the test efficiency is improved, and the test difficulty of the opposite terminal equipment is reduced. That is to say, the second terminal can complete the test without the operation of the user, so that the test efficiency is improved, and the time for communicating between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
Optionally, the determining, by the first terminal, the test result of the second terminal according to the execution result includes: the first terminal inputs the execution result into the test program; and the first terminal runs the test program to execute the execution result and outputs a test result for representing the test of the second terminal.
In the implementation process, the first terminal directly inputs the execution result into the test program after receiving the execution result, so that the test is performed in the first terminal, the maintenance efficiency of the test is improved, the test difficulty of the opposite terminal device is reduced, the second terminal can complete the test without the operation of a user, the test efficiency is improved, and the time for communication between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
Optionally, the determining, by the first terminal, the test result of the second terminal according to the execution result includes: the first terminal extracts the hardware information of the second terminal carried by the execution result; after the first terminal configures the hardware information in the test program, running the test program and outputting a virtual test result; and the first terminal outputs the test result of the second terminal based on the virtual test result and the execution result.
In the implementation process, after the execution result is received, the hardware information of the second terminal carried by the execution result is extracted, and then the hardware information is configured on the test program, so that the hardware environment of the second terminal is virtualized at the first terminal to complete the virtual test, and the test result of the second terminal is obtained by combining the virtual test result and the execution result, so that the second terminal can complete the test without the operation of a user, the test efficiency is improved, and the time for communication between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
Optionally, the outputting, by the first terminal, the test result of the second terminal based on the virtual test result and the execution result includes: the first terminal compares the virtual test result with the execution result to obtain difference information; and the first terminal outputs the difference information as a test result of the second terminal.
In the implementation process, the virtual test result is compared with the execution result to obtain difference information, and the difference information is used as a test result of the second terminal to be output, so that the second terminal can be tested accurately in the first terminal, and the second terminal can complete the test without the operation of a user, the test efficiency is improved, and the time for communication between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program. That is, the embodiment can realize that the test of the second terminal can be completed in the first terminal.
Optionally, the outputting, by the first terminal, the test result of the second terminal based on the virtual test result and the execution result includes: the first terminal judges whether the virtual test result is matched with the execution result; if so, the first terminal outputs the virtual test result as the test result of the second terminal; if not, the first terminal generates a test file according to the virtual test result and the execution result, and the test file is used as a test result of the second terminal to be output.
In the implementation process, whether the virtual test result is matched with the execution result is judged; if so, the first terminal outputs the virtual test result as the test result of the second terminal; if not, the first terminal generates a test file according to the virtual test result and the execution result, and the test file is used as a test result of the second terminal to be output. Therefore, the test result of the test of the second terminal performed at the first terminal is more reliable, the second terminal can complete the test without the operation of a user, the test efficiency is improved, and the communication time between users at two ends is saved.
Optionally, the method further comprises: the first terminal generates interpretation information according to the test result, wherein the interpretation information is used for interpreting the test result; the first terminal generates a test report according to the interpretation information and the test result; and the first terminal sends the test report to the second terminal so that a user can conveniently view the test report based on the second terminal.
In the implementation process, after the test result is obtained through the test, the interpretation information is generated for the test result, so that the test result is interpreted through the interpretation information, the user of the second terminal can check the test result and can check the test result through the corresponding interpretation information when the reason in the test result is not known, the user of the second terminal can understand the test result conveniently, the reading and writing efficiency of the user is improved, and the user experience is better.
Optionally, before the first terminal receives the test request sent by the second terminal, the method further includes: the first terminal sends test inquiry information to the second terminal according to a preset time interval; and the second terminal returns a test request to the first terminal based on the test inquiry information.
In the implementation process, the first terminal sends test inquiry information to the second terminal according to a preset time interval; and the second terminal actively provides test access to the second terminal in a mode of returning a test request to the first terminal based on the test inquiry information so as to realize active test of the second terminal and improve test efficiency.
In a second aspect, the present application provides a test system, the system comprising: a first terminal and a second terminal; the first terminal is used for receiving a test request sent by the second terminal; running a test program according to the test request, wherein the test program is installed in the first terminal; when the test program runs, generating an execution script, and sending the execution script to the second terminal; the second terminal is used for running the execution script, acquiring an execution result of the second terminal through the execution script and sending the execution result to the first terminal; the first terminal is further used for determining a test result of the second terminal according to the execution result.
Optionally, the determining, by the first terminal, a test result for the second terminal according to the execution result includes: inputting the execution result into the test program; and running the test program to execute the execution result, and outputting a test result for representing the test of the second terminal.
Optionally, the determining, by the first terminal, a test result for the second terminal according to the execution result includes: extracting hardware information of the second terminal carried by the execution result; after the first terminal configures the hardware information in the test program, running the test program and outputting a virtual test result; and outputting the test result of the second terminal based on the virtual test result and the execution result.
Optionally, the first terminal is configured to output a test result of the second terminal based on the virtual test result and the execution result, and includes: comparing the virtual test result with the execution result to obtain difference information; and outputting the difference information as a test result of the second terminal.
Optionally, the first terminal is configured to output a test result of the second terminal based on the virtual test result and the execution result, and includes: judging whether the virtual test result is matched with the execution result; if so, the first terminal is used for outputting the virtual test result as the test result of the second terminal; and if not, the first terminal is also used for generating a test file by using the virtual test result and the execution result, and the test file is output as a test result of the second terminal.
In a possible embodiment, the first terminal is further configured to generate interpretation information according to the test result, where the interpretation information is used to interpret the test result; generating a test report according to the interpretation information and the test result; and sending the test report to the second terminal so that a user can conveniently view the test report based on the second terminal.
In a possible embodiment, the first terminal is further configured to send the test inquiry information to the second terminal according to a preset time interval; and the second terminal is used for returning a test request to the first terminal based on the test inquiry information.
In a third aspect, the present application provides an electronic device, including: a memory for storing executable instructions; a processor for implementing the test method of any one of the first aspect when executing executable instructions stored in the memory.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program for performing the steps of the test method according to any one of the first aspect when the computer program is executed by a processing device.
In the test method, the test system, the electronic device and the medium provided by the application, the first terminal receives the test request sent by the second terminal; the first terminal runs a test program according to the test request, and the test program is installed in the first terminal; when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal; the second terminal runs the execution script, acquires an execution result of the second terminal through the execution script, and sends the execution result to the first terminal; the first terminal determines a test result of the second terminal according to the execution result, so that the second terminal (opposite terminal) equipment is tested by running a test program on the first terminal (home terminal), the test efficiency is improved, and the test difficulty of the opposite terminal equipment is reduced. That is to say, the second terminal can complete the test without the operation of the user, so that the test efficiency is improved, and the time for communicating between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to a first embodiment of the present application;
FIG. 2 is a flow chart of a testing method according to a second embodiment of the present application;
fig. 3 is a functional block diagram of a test system according to a third embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. 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 application.
First embodiment
Fig. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and an exemplary electronic device 100 for implementing a testing method according to the embodiment of the present application may be described in the present application through the schematic diagram shown in fig. 1. For example, when the electronic device is a first terminal, the electronic device 100 is configured to perform the following steps: receiving a test request sent by a second terminal; running a test program according to the test request, wherein the test program is installed in the first terminal; when the test program runs, generating an execution script, sending the execution script to the second terminal so as to enable the second terminal to run the execution script, acquiring an execution result of the second terminal through the execution script, and returning the execution result to the first terminal; and receiving the execution result, and determining a test result of the second terminal according to the execution result.
It should be understood that the specific implementation of the above steps is described with reference to the second embodiment, and is not limited herein.
As shown in FIG. 1, an electronic device 100 includes one or more processors 102, one or more memory devices 104, an input device 106, an output device 108, which are interconnected via a bus system and/or other type of connection mechanism (not shown). It should be noted that the components and structure of the electronic device 100 shown in fig. 1 are only exemplary and not limiting, and the electronic device may have some of the components shown in fig. 1 and may also have other components and structures not shown in fig. 1, as desired.
The processor 102 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.
The storage 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. On which one or more computer program instructions may be stored that may be executed by processor 102 to implement the client functionality (implemented by the processor) of the embodiments of the application described below and/or other desired functionality. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
Second embodiment:
referring to a flow chart of a testing method shown in fig. 2, the method specifically includes the following steps:
step S201, the first terminal receives a test request sent by the second terminal.
The test request may be a penalty based on the second terminal by the user, or may be a test initiated by the second terminal at regular time. For example, the second terminal initiates a test request to the first terminal every other week.
In one embodiment, the second terminal sends a test request to the first terminal based on the 5G communication network. For example, the second terminal sends a physical sidelink shared channel PSFCH to the first terminal, so that the first terminal receives and executes a test request according to a frequency domain location where the PSFCH is located, where the PSFCH is used for carrying the test request.
In a possible embodiment, before step S201, the method further includes: the first terminal sends test inquiry information to the second terminal according to a preset time interval; and the second terminal returns a test request to the first terminal based on the test inquiry information.
Wherein the preset time interval may be 7 days, 30 days, 100 days, etc. Here, the number of the carbon atoms is not particularly limited.
It should be understood that the setting of the preset time interval can be set according to actual requirements, and is not particularly limited herein.
Wherein the inquiry information contains information describing "test or not", and the second terminal may reply "yes" or "no" based on the description information, i.e., the test request may contain "yes" or "no".
It should be understood that the above-mentioned test request may include "yes" or "no", and does not mean that only "yes" or "no" is included in the test request.
It can be understood that the test inquiry information is sent to the second terminal by the first terminal according to the preset time interval; and the second terminal actively provides test access to the second terminal in a mode of returning a test request to the first terminal based on the test inquiry information so as to realize active test of the second terminal and improve test efficiency.
Step S202, the first terminal runs a test program according to the test request.
Wherein the test program is pre-installed in the first terminal.
Wherein the test program may be run automatically.
Alternatively, the test program may be a test module or a standalone APP (application).
Step S203, the first terminal generates an execution script when the test program runs, and sends the execution script to the second terminal.
It is understood that the execution script, i.e. the test program, is generated when the test program runs.
The execution script is used for being executed at the second terminal and collecting information of the second terminal, such as hardware information or environment information.
In one embodiment, the first terminal may compress the execution script and then transmit the compressed execution script.
The execution script can be an exe file, a sys file or a com file.
And step S204, the second terminal runs the execution script, acquires the execution result of the second terminal through the execution script, and sends the execution result to the first terminal.
Wherein the execution result comprises hardware information and/or environment information of the second terminal. The environment information refers to an operating environment.
Step S205, the first terminal determines a test result for the second terminal according to the execution result.
As an embodiment, step S205 includes: the first terminal inputs the execution result into the test program; and the first terminal runs the test program to execute the execution result and outputs a test result for representing the test of the second terminal.
It can be understood that, in this embodiment, the first terminal directly inputs the execution result into the test program after receiving the execution result, so as to perform the test in the first terminal, thereby improving the maintenance efficiency of the test, reducing the test difficulty of the opposite terminal device, enabling the second terminal to complete the test without the user operation, improving the test efficiency, and saving the time for communication between users at both ends. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
As an embodiment, step S205 includes: the first terminal extracts the hardware information of the second terminal carried by the execution result; after the first terminal configures the hardware information in the test program, running the test program and outputting a virtual test result; and the first terminal outputs the test result of the second terminal based on the virtual test result and the execution result.
It can be understood that, in this embodiment, after receiving the execution result, the hardware information of the second terminal carried by the execution result is extracted first, and then the hardware information is configured on the test program, so that the hardware environment of the second terminal is virtualized at the first terminal to complete the virtual test, and the test result of the second terminal is obtained by combining the virtual test result and the execution result, so that the second terminal can complete the test without the user operation, the test efficiency is improved, and the time for communication between users at both ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
Optionally, the outputting, by the first terminal, the test result of the second terminal based on the virtual test result and the execution result includes: the first terminal compares the virtual test result with the execution result to obtain difference information; and the first terminal outputs the difference information as a test result of the second terminal.
It can be understood that the difference information is obtained by comparing the virtual test result with the execution result, and the difference information is output as the test result of the second terminal, so that the test of the second terminal in the first terminal is more accurate, and the second terminal can complete the test without the operation of the user, thereby improving the test efficiency and saving the time for communication between users at two ends. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program. That is, the embodiment can realize that the test of the second terminal can be completed in the first terminal.
Optionally, the outputting, by the first terminal, the test result of the second terminal based on the virtual test result and the execution result includes: the first terminal judges whether the virtual test result is matched with the execution result; if so, the first terminal outputs the virtual test result as the test result of the second terminal; if not, the first terminal generates a test file according to the virtual test result and the execution result, and the test file is used as a test result of the second terminal to be output.
It is to be understood that, in this embodiment, by determining whether the virtual test result matches the execution result; if so, the first terminal outputs the virtual test result as the test result of the second terminal; if not, the first terminal generates a test file according to the virtual test result and the execution result, and the test file is used as a test result of the second terminal to be output. Therefore, the test result of the test of the second terminal performed at the first terminal is more reliable, the second terminal can complete the test without the operation of a user, the test efficiency is improved, and the communication time between users at two ends is saved.
In a possible embodiment, the method further comprises: the first terminal generates interpretation information according to the test result, wherein the interpretation information is used for interpreting the test result; the first terminal generates a test report according to the interpretation information and the test result; and the first terminal sends the test report to the second terminal so that a user can conveniently view the test report based on the second terminal.
It can be understood that after the test result is obtained through the test, interpretation information is generated for the test result, so that the test result is interpreted through the interpretation information, and a user of the second terminal can check the test result and can check the test result through the corresponding interpretation information when the reason in the test result is not known, so that the user of the second terminal can understand the test result, the reading and writing efficiency of the user is improved, and the user experience is better.
In this embodiment, the first terminal receives a test request sent by the second terminal; the first terminal runs a test program according to the test request, and the test program is installed in the first terminal; when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal; the second terminal runs the execution script, acquires an execution result of the second terminal through the execution script, and sends the execution result to the first terminal; the first terminal determines a test result of the second terminal according to the execution result, so that the second terminal (opposite terminal) equipment is tested by running a test program on the first terminal (home terminal), the test efficiency is improved, and the test difficulty of the opposite terminal equipment is reduced. That is to say, the second terminal can complete the test without the operation of the user, so that the test efficiency is improved, and the time for communicating between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
The third embodiment:
referring to fig. 3, a test system 500 is shown, the system comprising: a first terminal 510 and a second terminal 520.
The first terminal 510 is configured to receive a test request sent by a second terminal 520; running a test program according to the test request, the test program being installed in the first terminal 510; when the test program runs, generating an execution script, and sending the execution script to the second terminal 520;
the second terminal 520 is configured to run the execution script, collect an execution result of the second terminal 520 through the execution script, and send the execution result to the first terminal 510;
the first terminal 510 is further configured to determine a test result for the second terminal 520 according to the execution result.
Optionally, the first terminal 510 is configured to determine a test result for the second terminal according to the execution result, and includes: inputting the execution result into the test program; and running the test program to execute the execution result, and outputting a test result for representing the test of the second terminal 520.
Optionally, the first terminal 510 is configured to determine a test result for the second terminal according to the execution result, and includes: extracting hardware information of the second terminal 520 carried by the execution result; after the first terminal 510 configures the hardware information in the test program, running the test program, and outputting a virtual test result; and outputting the test result of the second terminal 520 based on the virtual test result and the execution result.
Optionally, the first terminal 510 is configured to output a test result of the second terminal based on the virtual test result and the execution result, and includes: comparing the virtual test result with the execution result to obtain difference information; and outputting the difference information as a test result of the second terminal 520.
Optionally, the first terminal 510 is configured to output a test result of the second terminal based on the virtual test result and the execution result, and includes: judging whether the virtual test result is matched with the execution result; if yes, the first terminal 510 is configured to output the virtual test result as a test result of the second terminal 520; if not, the first terminal 510 is further configured to generate a test file from the virtual test result and the execution result, where the test file is output as a test result of the second terminal 520.
In a possible embodiment, the first terminal 510 is further configured to generate interpretation information according to the test result, where the interpretation information is used to interpret the test result; generating a test report according to the interpretation information and the test result; the test report is sent to the second terminal 520 so that the user can view the test report based on the second terminal 520.
In a possible embodiment, the first terminal is further configured to send the test query message to the second terminal 520 according to a preset time interval; the second terminal 520 is configured to return a test request to the first terminal 510 based on the test inquiry information.
In this embodiment, the first terminal receives a test request sent by the second terminal; the first terminal runs a test program according to the test request, and the test program is installed in the first terminal; when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal; the second terminal runs the execution script, acquires an execution result of the second terminal through the execution script, and sends the execution result to the first terminal; the first terminal determines a test result of the second terminal according to the execution result, so that the second terminal (opposite terminal) equipment is tested by running a test program on the first terminal (home terminal), the test efficiency is improved, and the test difficulty of the opposite terminal equipment is reduced. That is to say, the second terminal can complete the test without the operation of the user, so that the test efficiency is improved, and the time for communicating between users at two ends is saved. That is, by the method, when the second terminal needs to be tested, the problem description by the user of the second terminal is not needed, and the test can be completed without downloading the test program.
Further, this embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processing device, the computer program executes the steps of any one of the test methods provided in the second embodiment.
The computer program product of the testing method and system provided in the embodiments of the present application includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and details are not described herein again.
It will be appreciated that the memory in the embodiments of the present application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of Random Access Memory (RAM) are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct bus RAM (DR RAM).
The above embodiments may be implemented in whole or in part by software, hardware (e.g., circuitry), firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer instructions or the computer program are loaded or executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. In addition, the "/" in this document generally indicates that the former and latter associated objects are in an "or" relationship, but may also indicate an "and/or" relationship, which may be understood with particular reference to the former and latter text.
In the present application, "at least one" means one or more, "a plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (9)

1. A method of testing, the method comprising:
a first terminal receives a test request sent by a second terminal, wherein the second terminal sends the test request to the first terminal every other week;
the first terminal runs a test program according to the test request, and the test program is installed in the first terminal;
when the test program runs, the first terminal generates an execution script and sends the execution script to the second terminal;
the second terminal runs the execution script, acquires an execution result of the second terminal through the execution script, and sends the execution result to the first terminal;
the first terminal determines a test result of the second terminal according to the execution result, wherein the determining, by the first terminal, the test result of the second terminal according to the execution result includes:
the first terminal extracts the hardware information of the second terminal carried by the execution result;
after the first terminal configures the hardware information in the test program, running the test program and outputting a virtual test result;
and the first terminal outputs the test result of the second terminal based on the virtual test result and the execution result.
2. The method of claim 1, wherein the determining, by the first terminal, the test result for the second terminal according to the execution result comprises:
the first terminal inputs the execution result into the test program;
and the first terminal runs the test program to execute the execution result and outputs a test result for representing the test of the second terminal.
3. The method of claim 1, wherein outputting, by the first terminal, the test result of the second terminal based on the virtual test result and the execution result comprises:
the first terminal compares the virtual test result with the execution result to obtain difference information;
and the first terminal outputs the difference information as a test result of the second terminal.
4. The method of claim 1, wherein outputting, by the first terminal, the test result of the second terminal based on the virtual test result and the execution result comprises:
the first terminal judges whether the virtual test result is matched with the execution result;
if so, the first terminal outputs the virtual test result as the test result of the second terminal;
if not, the first terminal generates a test file according to the virtual test result and the execution result, and the test file is used as a test result of the second terminal to be output.
5. The method of claim 1, further comprising:
the first terminal generates interpretation information according to the test result, wherein the interpretation information is used for interpreting the test result;
the first terminal generates a test report according to the interpretation information and the test result;
and the first terminal sends the test report to the second terminal so that a user can conveniently view the test report based on the second terminal.
6. The method of claim 1, wherein before the first terminal receives the test request sent by the second terminal, the method further comprises:
the first terminal sends test inquiry information to the second terminal according to a preset time interval;
and the second terminal returns a test request to the first terminal based on the test inquiry information.
7. A test system, the system comprising: a first terminal and a second terminal;
the first terminal is used for receiving a test request sent by the second terminal; running a test program according to the test request, wherein the test program is installed in the first terminal; when the test program runs, generating an execution script, and sending the execution script to the second terminal, wherein the second terminal initiates a test request to the first terminal every other week;
the second terminal is used for running the execution script, acquiring an execution result of the second terminal through the execution script and sending the execution result to the first terminal;
the first terminal is further configured to determine a test result for the second terminal according to the execution result, where the determining, by the first terminal, a test result for the second terminal according to the execution result includes:
the first terminal is used for extracting the hardware information of the second terminal carried by the execution result; after the first terminal configures the hardware information in the test program, running the test program and outputting a virtual test result; and outputting the test result of the second terminal based on the virtual test result and the execution result.
8. An electronic device, comprising:
a memory for storing executable instructions;
a processor for implementing the testing method of any one of claims 1 to 6 when executing executable instructions stored in the memory.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processing device, carries out the steps of the testing method according to any one of claims 1-6.
CN202110243506.5A 2021-03-05 2021-03-05 Test method, test system, electronic device and test medium Expired - Fee Related CN112597067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110243506.5A CN112597067B (en) 2021-03-05 2021-03-05 Test method, test system, electronic device and test medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110243506.5A CN112597067B (en) 2021-03-05 2021-03-05 Test method, test system, electronic device and test medium

Publications (2)

Publication Number Publication Date
CN112597067A CN112597067A (en) 2021-04-02
CN112597067B true CN112597067B (en) 2021-09-03

Family

ID=75210265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110243506.5A Expired - Fee Related CN112597067B (en) 2021-03-05 2021-03-05 Test method, test system, electronic device and test medium

Country Status (1)

Country Link
CN (1) CN112597067B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104101791A (en) * 2013-04-11 2014-10-15 云南电网公司曲靖供电局 Relay protection device fixed vale automatic test method and system
CN107294802A (en) * 2017-05-22 2017-10-24 国网安徽省电力公司信息通信分公司 A kind of end-to-end Performance Test System
CN110351161A (en) * 2019-05-22 2019-10-18 口碑(上海)信息技术有限公司 Business end-to-end test method, apparatus, storage medium and computer equipment
CN112199272A (en) * 2020-09-08 2021-01-08 深圳市金锐显数码科技有限公司 Intelligent terminal testing method and device, terminal equipment and medium
WO2021008743A1 (en) * 2019-07-18 2021-01-21 Siemens Aktiengesellschaft TESTING IoT-APPLICATIONS BASED ON A FLEET OF IoT-DEVICES

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100382075C (en) * 2003-12-30 2008-04-16 英业达股份有限公司 Hardware-level based test script automatic generating system and method
US8984349B2 (en) * 2012-09-28 2015-03-17 Hcl Technologies Limited Method and system for automating the process of testing a device
CN109560986A (en) * 2018-11-23 2019-04-02 赛尔通信服务技术股份有限公司 Test method, device and the test macro of things-internet gateway equipment
US11036615B2 (en) * 2018-12-06 2021-06-15 Microsoft Technology Licensing, Llc Automatically performing and evaluating pilot testing of software
CN111083225B (en) * 2019-12-19 2022-09-30 远景智能国际私人投资有限公司 Data processing method and device in Internet of things platform and Internet of things platform
CN111083472A (en) * 2019-12-30 2020-04-28 深圳Tcl新技术有限公司 Television testing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104101791A (en) * 2013-04-11 2014-10-15 云南电网公司曲靖供电局 Relay protection device fixed vale automatic test method and system
CN107294802A (en) * 2017-05-22 2017-10-24 国网安徽省电力公司信息通信分公司 A kind of end-to-end Performance Test System
CN110351161A (en) * 2019-05-22 2019-10-18 口碑(上海)信息技术有限公司 Business end-to-end test method, apparatus, storage medium and computer equipment
WO2021008743A1 (en) * 2019-07-18 2021-01-21 Siemens Aktiengesellschaft TESTING IoT-APPLICATIONS BASED ON A FLEET OF IoT-DEVICES
CN112199272A (en) * 2020-09-08 2021-01-08 深圳市金锐显数码科技有限公司 Intelligent terminal testing method and device, terminal equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于图形化的装备测试程序开发方法研究";尹常艳 等;《软件》;20180515;第39卷(第05期);第106-109页 *
"异构系统端到端自动化测试框架的设计与实现";朱益钊;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180415(第04期);I138-1111 *

Also Published As

Publication number Publication date
CN112597067A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN107704479B (en) File generation method and device
CN110866198B (en) Static resource caching method, system, device, computer equipment and storage medium
CN106815031B (en) Kernel module loading method and device
US20170109371A1 (en) Method and Apparatus for Processing File in a Distributed System
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN106815524B (en) Malicious script file detection method and device
CN106534268B (en) Data sharing method and device
CN110750433A (en) Interface test method and device
CN106844550B (en) Virtualization platform operation recommendation method and device
US10067862B2 (en) Tracking asynchronous entry points for an application
US9571557B2 (en) Script caching method and information processing device utilizing the same
CN104679824A (en) Webpage generating method and webpage generating system of network platform
CN111046010A (en) Log storage method, device, system, electronic equipment and computer readable medium
CN112597067B (en) Test method, test system, electronic device and test medium
JP2013222422A (en) Program, information processing device, and information processing method
CN109951859B (en) Wireless network connection recommendation method and device, electronic equipment and readable medium
CN110647753B (en) Method, device and equipment for acquiring kernel file and storage medium
CN112286815A (en) Interface test script generation method and related equipment thereof
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
US9491221B1 (en) System and method for brokering distributed computation
CN111400623B (en) Method and device for searching information
CN117112944A (en) Method and system for providing context function in static webpage
CN113360172A (en) Application deployment method and device, computer equipment and storage medium
CN113076728A (en) Data filling method of dialog box and related 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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Hu Ting

Inventor after: Chen Yao

Inventor before: Chen Yao

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210819

Address after: 410009 No. 168, Qingyuan Road, xinkaipu, Tianxin District, Changsha City, Hunan Province

Applicant after: Hunan Radio and TV University (Hunan Network Engineering Vocational College)

Address before: No.153, 2nd floor, Beihu impression Plaza, Tongle North 2nd Lane, Chenghua District, Chengdu, Sichuan, 641000

Applicant before: Chengdu Yixin Technology Development Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210903