CN115190057A - Automatic testing method and device and electronic equipment - Google Patents

Automatic testing method and device and electronic equipment Download PDF

Info

Publication number
CN115190057A
CN115190057A CN202210575150.XA CN202210575150A CN115190057A CN 115190057 A CN115190057 A CN 115190057A CN 202210575150 A CN202210575150 A CN 202210575150A CN 115190057 A CN115190057 A CN 115190057A
Authority
CN
China
Prior art keywords
test
tested
equipment
automatic
script
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
CN202210575150.XA
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.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202210575150.XA priority Critical patent/CN115190057A/en
Publication of CN115190057A publication Critical patent/CN115190057A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses an automatic testing method and device and electronic equipment. The method comprises the following steps: acquiring a test script corresponding to a device to be tested; the control terminal equipment executes the test script to carry out multiple times of automatic test processing on the equipment to be tested so as to obtain a test log corresponding to each time of automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested; and obtaining a test result aiming at the equipment to be tested based on each test log. By the aid of the method, the terminal equipment can be controlled to automatically test the equipment to be tested for multiple times based on the test script to obtain a test result for the equipment to be tested, interaction between the terminal equipment and the equipment to be tested can be completed only by manual intervention in an automatic test process, and accordingly automatic test efficiency is improved.

Description

Automatic testing method and device and electronic equipment
Technical Field
The application relates to the technical field of smart home, in particular to an automatic testing method and device and electronic equipment.
Background
With the development of the internet of things technology and the rise of intelligent devices, software development projects related to the intelligent devices are gradually increased, for example, intelligent home devices and the like. Because the software development project is short in time and large and repeated in test workload, in order to shorten the time of software development, the interaction between the intelligent device and the terminal device is usually required to be tested. In a related manner, the interactive test between the intelligent device and the terminal device can be completed through manual operation.
However, the existing related equipment testing method still has the problem of low efficiency.
Disclosure of Invention
In view of the foregoing problems, the present application provides an automated testing method, an automated testing apparatus, and an electronic device, so as to improve the foregoing problems.
In a first aspect, the present application provides an automated testing method, comprising: acquiring a test script corresponding to a device to be tested; the control terminal device executes the test script to perform multiple times of automatic test processing on the device to be tested, so as to obtain a test log corresponding to each time of automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested; and obtaining a test result aiming at the equipment to be tested based on each test log.
In a second aspect, the present application provides an automated testing apparatus, the apparatus comprising: the test script acquisition unit is used for acquiring a test script corresponding to the equipment to be tested; the automatic test unit is used for controlling the terminal equipment to execute the test script so as to carry out automatic test processing on the equipment to be tested for multiple times and obtain a test log corresponding to each automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested; and the test result acquisition unit is used for acquiring the test result aiming at the equipment to be tested based on each test log.
As one mode, the automatic test unit is specifically configured to control the terminal device to execute the test script, and simulate and execute an interactive operation for a specified function of the device to be tested in an automatic operation interface, so as to perform multiple times of automatic test processing on the device to be tested, and obtain a test log corresponding to each time of automatic test processing; the automatic operation interface is an interface for controlling the terminal equipment to carry out interactive operation with the equipment to be tested.
Optionally, the automatic test processing includes distribution network operation, and the automatic operation interface includes an equipment scanning page and an information acquisition page; the automatic testing unit is specifically used for controlling the terminal equipment to execute the testing script and acquiring the equipment to be tested based on an equipment scanning page in the automatic operation interface so as to establish connection between the terminal equipment and the equipment to be tested; and acquiring network access information through an information acquisition page in the automatic operation interface, and sending the network access information to the equipment to be tested through the connection, so that the equipment to be tested performs multiple network distribution operations based on the network access information to obtain a test log corresponding to each network distribution operation.
As another mode, the test script includes a first interface script, and the automated test processing includes distribution network operation; the automatic testing unit is specifically used for controlling the to-be-tested equipment to enter a to-be-distributed network mode based on the first interface script, and the to-be-distributed network mode represents that the to-be-tested equipment is in an unconnected network state; controlling the terminal equipment to execute the test script, and carrying out multiple network distribution operations on the equipment to be tested to obtain a test log corresponding to each network distribution operation; and if the distribution network of the equipment to be tested fails according to the test result obtained by the test log, controlling the equipment to be tested to reenter a distribution network mode to be tested through the first interface script so as to perform the next distribution network operation on the equipment to be tested.
Optionally, the test script further includes a second interface script; the automatic testing unit is specifically used for performing unbinding operation on the to-be-tested equipment through an unbinding interface in the second interface script if the to-be-tested equipment is successfully distributed according to the testing result obtained by the testing log and the to-be-tested equipment is represented to be in a network connection state, so that next distribution network operation is performed on the to-be-tested equipment.
As one mode, the test result obtaining unit is specifically configured to obtain a result of each automated test processing according to a test log corresponding to each automated test processing; and controlling the equipment to be tested to perform the next automatic test processing based on the result of each automatic test processing until the test is completed to obtain the test result aiming at the equipment to be tested.
Wherein the apparatus further comprises: the test script generating unit is used for acquiring test configuration information aiming at the equipment to be tested; configuring an automatic interactive operation script for the equipment to be tested according to the test configuration information; the automatic interactive operation script is used for simulating interactive operation between terminal equipment and the equipment to be tested; and generating a test script aiming at the equipment to be tested based on the test configuration information and the automatic interactive operation script.
In a third aspect, the present application provides an automated testing system, which includes an electronic device, a terminal device, and a device to be tested, wherein: the electronic equipment is used for obtaining a test script corresponding to the equipment to be tested, controlling the terminal equipment to execute the test script, and performing multiple times of automatic test processing on the equipment to be tested to obtain a test log corresponding to each time of automatic test processing, wherein the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested, and a test result for the equipment to be tested is obtained based on each test log; the terminal equipment is used for responding to the control operation of the electronic equipment and carrying out automatic test processing on the equipment to be tested for multiple times; and the to-be-tested equipment is used for responding to the multiple times of automatic test processing of the terminal equipment to carry out automatic test, and after the automatic test processing of each time is finished, the to-be-tested equipment sends a test log to the electronic equipment.
In a fourth aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fifth aspect, the present application provides a computer-readable storage medium having a program code stored therein, wherein the program code performs the above method when running.
A computer program product or computer program comprising computer instructions stored in a computer readable storage medium; the computer instructions are read from the computer readable storage medium by a processor of the computer device, and the steps in the automated testing method according to the embodiments of the present application are implemented when the processor executes the computer instructions.
According to the automatic testing method, the automatic testing device, the electronic equipment and the storage medium, after the testing script corresponding to the equipment to be tested is obtained, the terminal equipment is controlled to execute the testing script, so that the equipment to be tested is subjected to automatic testing processing for simulating the interactive operation between the terminal equipment and the equipment to be tested for many times, testing logs corresponding to each automatic testing processing are obtained, and testing results aiming at the equipment to be tested are obtained based on the testing logs. By the aid of the method, the terminal equipment can be controlled to automatically test the equipment to be tested for multiple times based on the test script so as to obtain a test result for the equipment to be tested, interaction between the terminal equipment and the equipment to be tested can be completed only by manual intervention in an automatic test process, and accordingly automatic test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, 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 diagram illustrating an application environment of an automated testing method proposed in the present application;
FIG. 2 is a flow chart illustrating an automated testing method according to an embodiment of the present application;
FIG. 3 is a flow chart illustrating an automated testing method according to another embodiment of the present application;
FIG. 4 is a flow chart of an embodiment of S220 of FIG. 3 of the present application;
FIG. 5 is a schematic diagram illustrating a device scanning a page according to the present application;
fig. 6 is a schematic diagram illustrating an information acquisition page proposed in the present application;
FIG. 7 is a flow chart illustrating an automated testing method according to yet another embodiment of the present application;
FIG. 8 illustrates a flow chart of an automated testing method according to yet another embodiment of the present application;
FIG. 9 shows a flow diagram of a parameterized build configuration as proposed in the present application;
fig. 10 shows a flow diagram of a cloud platform configuration proposed by the present application;
FIG. 11 is a block diagram of an automated testing apparatus according to an embodiment of the present disclosure;
FIG. 12 is a block diagram illustrating an automated testing system according to an embodiment of the present disclosure;
fig. 13 is a block diagram illustrating an electronic device according to the present application;
fig. 14 is a storage unit for storing or carrying program code for implementing an automated testing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the 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.
With the development of science and technology, software development projects related to intelligent devices are gradually increased, and due to the fact that the software development projects are short in time and large and repeated in test workload, interaction between the intelligent devices and the terminal devices is generally required to be tested in order to shorten the time for developing the software projects. In a related manner, the interactive test between the intelligent device and the terminal device can be completed through manual operation. For example, when a User Interface (UI) test is performed, a tester needs to click a control corresponding to a test flow on a relevant interactive Interface of a terminal device to complete an interactive test between an intelligent device and the terminal device.
However, the inventors found that the correlation method has a problem of low efficiency in the related research.
Therefore, the inventor provides an automatic testing method, an automatic testing device and an electronic device in the application, after a testing script corresponding to a device to be tested is obtained, a terminal device is controlled to execute the testing script, so that the device to be tested is subjected to automatic testing processing for simulating interaction operation between the terminal device and the device to be tested for many times, a testing log corresponding to each automatic testing processing is obtained, and a testing result for the device to be tested is obtained based on each testing log. By the aid of the method, the terminal equipment can be controlled to automatically test the equipment to be tested for multiple times based on the test script so as to obtain a test result for the equipment to be tested, interaction between the terminal equipment and the equipment to be tested can be completed only by manual intervention in an automatic test process, and accordingly automatic test efficiency is improved.
Fig. 1 is a schematic diagram of an application environment according to an embodiment of the present application. Fig. 1 provides an automatic test system 10, which includes a gateway 100, a device under test 200 connected to the gateway 100, an electronic device 300 connected to the gateway 100, and a terminal device 400 connected to the electronic device 300. The gateway 100 may be an intelligent gateway that is intelligently controlled, and may implement functions such as system data acquisition, data transmission, and coordinated control. The gateway 100 can also perform information interaction with products such as a server and an intelligent interactive terminal in a wireless manner.
The device to be tested 200 may include an intelligent device that is set in a corresponding scene space and needs to be automatically tested, and specifically may be an intelligent home device, and for example, may include an intelligent gateway, an intelligent switch, an intelligent lamp, and the like. The gateway 100 and the device to be tested 200 may be connected through communication methods such as bluetooth, wiFi (Wireless-Fidelity), zigBee (ZigBee technology, etc.), and the connection method of the gateway 100 and the device to be tested 200 in this embodiment is not limited.
The electronic device 300 may be a server such as a local server or a cloud server, and a specific type of server may not be limited in this embodiment of the present application. Both the device under test 200 and the gateway 100, which are located in different spatial areas, can be communicatively connected to the same electronic device 300 through a network.
The terminal device 400 may include a Personal Computer (PC), a tablet PC, a smart phone, a Personal Digital Assistant (PDA), a smart panel, and the like, which are not limited herein.
In some embodiments, the electronic device 300 may obtain a test script corresponding to the device to be tested 200, and control the terminal device 400 to execute the test script; the terminal device 400 may perform multiple automated test processes on the device under test 200 based on the test script; the device to be tested 200 may perform an automatic test in response to multiple automatic tests of the terminal device 200, and send a test log to the electronic device 300 after each automatic test process is completed, so that the electronic device 300 may obtain a test result for the device to be tested 200 based on the test logs of the multiple automatic tests.
For better understanding of the scheme of the embodiments of the present application, the following first explains the technical terms used in the embodiments of the present application.
Jenkins: the method can be an open source software project, jenkins can be a continuous integration tool developed based on Java, can be used for monitoring continuous and repeated work, and aims to provide an open and easy-to-use software platform so that the software project can be continuously integrated.
Pytest: can be a very mature full-function Python test framework.
And (3) Apium: is an open-source automatic testing tool suitable for native or hybrid mobile applications (hybrid mobile apps).
pyserial module: the access of python to the serial port is packaged, and a uniform interface is provided for the use of multiple platforms.
requests module: may be a HTTP (Hyper Text Transfer Protocol) library written in python using Apache2 licensed.
And (3) Allure: the test report tool can be a lightweight, flexible and multi-language-supporting test report tool, can provide detailed test reports, test steps, statistical reports and the like, and can be integrated into a Jenkins platform.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 2, an example of an automated testing method provided by the present application is described with reference to the method applied to an electronic device, where the electronic device may be a terminal device as shown in fig. 1, or may be a server. When the electronic equipment is a server, the server can realize the automatic testing method implemented by interacting with the terminal equipment. The method specifically comprises the following steps:
s110: and acquiring a test script corresponding to the to-be-tested equipment.
The test script may refer to a series of instructions for a specific test function, and may specifically be a computer readable instruction for automatically executing a test procedure (or a part of the test procedure).
As a mode, the device to be tested may correspond to a device identifier, the device identifier may uniquely correspond to one device to be tested, and the electronic device may obtain a test script corresponding to the device to be tested based on the device identifier. For example, as shown in table 1, the device identifier and the test script may be stored in an associated manner, when a tester needs to perform an automated test on a certain device to be tested, the tester may input the device identifier of the device to be tested in an interface of a test platform corresponding to the electronic device, and after obtaining the device identifier, the electronic device may obtain the test script corresponding to the device to be tested based on table 1.
TABLE 1
Device identification Test script
1234 Test script 1
... ...
2234 Test script 1000
S120: the control terminal equipment executes the test script to carry out multiple times of automatic test processing on the equipment to be tested so as to obtain a test log corresponding to each time of automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested.
The interactive operation may be a control operation of the terminal device on the device to be tested, for example, when the device to be tested is an intelligent lamp, the interactive operation may be a control operation of the terminal device on, off, and the like of the intelligent lamp. The interactive operation can also be a network distribution operation performed by the device to be tested through the terminal device, and the network distribution operation can enable the device to be tested to be connected with a network and bound with a cloud platform deployed on the electronic device, so that interaction and communication with the cloud platform, the terminal device and other devices are realized. For example, when the device to be tested is an intelligent gateway, the interactive operation may be a network distribution operation performed by the intelligent gateway through the terminal device.
A test log may refer to a record of test results characterizing a device under test, and a record may refer to a history of events occurring during a test run or a scheduled run.
As one mode, a communication line may be provided between the electronic device and the terminal device, where the communication line may be a data line, and the electronic device may control the terminal device to execute the test script obtained in step S110, so as to perform multiple times of automated test processing on the device to be tested, and obtain a test log corresponding to each time of automated test processing.
In another mode, the electronic device and the terminal device may also communicate through a wireless communication link, so that the control terminal device executes the test script obtained in step S110, so as to perform multiple automated test processing on the device to be tested, and obtain a test log corresponding to each automated test processing.
After the electronic equipment acquires the test script for the equipment to be tested, the electronic equipment can control the terminal equipment to execute the test script so as to control the terminal equipment to simulate and execute automatic interactive operation processing with the equipment to be tested based on the test script. It can be understood that the simulated interactive operation processing can realize that the terminal equipment automatically executes the interactive operation processing with the equipment to be tested without manual operation.
S130: and obtaining a test result aiming at the device to be tested based on each test log.
The test result may refer to a final result obtained after performing multiple automated test processes on the device to be tested, and the test result may represent whether the device to be tested passes the test.
As a mode, the result of each automated test processing can be obtained according to the test log corresponding to each automated test processing; and controlling the equipment to be tested to perform next automatic test processing based on the result of each automatic test processing until the test is completed to obtain the test result aiming at the equipment to be tested.
Optionally, the result of each automatic test may be counted to obtain the probability of successful test of multiple times of automatic test processing, the probability is compared with a preset probability value, and if the probability value is greater than the preset probability value, the test result of the device to be tested is that the device to be tested passes the test; and if the probability value is less than or equal to the preset probability value, the test result aiming at the device to be tested is that the device to be tested fails the test. For example, assuming that the predicted probability value of the device to be tested may be 90%, if the probability of successful test of the multiple times of automated test processing is 95%, the test result for the device to be tested is that the device to be tested passes the test; and if the test success probability of the multiple times of automatic test processing is 60%, the test result aiming at the equipment to be tested is that the equipment to be tested fails.
In the automated testing method provided by this embodiment, after a testing script corresponding to a device to be tested is obtained, a terminal device is controlled to execute the testing script, so as to perform multiple automated testing processes on the device to be tested, where the multiple automated testing processes are used to simulate an interactive operation between the terminal device and the device to be tested, obtain a testing log corresponding to each automated testing process, and obtain a testing result for the device to be tested based on each testing log. By the aid of the method, the terminal equipment can be controlled to automatically test the equipment to be tested for multiple times based on the test script to obtain a test result for the equipment to be tested, interaction between the terminal equipment and the equipment to be tested can be completed only by manual intervention in an automatic test process, and accordingly automatic test efficiency is improved.
Referring to fig. 3, an automated testing method provided in the present application includes:
s210: and acquiring a test script corresponding to the device to be tested.
S220: controlling the terminal equipment to execute the test script, and simulating and executing the interactive operation aiming at the specified function of the equipment to be tested in an automatic operation interface so as to carry out multiple times of automatic test processing on the equipment to be tested and obtain a test log corresponding to each time of automatic test processing; the automatic operation interface is an interface for controlling the terminal equipment to carry out interactive operation with the equipment to be tested.
The simulation of the interactive operation of the specified function of the device to be tested in the automation operation interface may mean that a simulation tester executes the interactive operation of the specified function of the device to be tested in the automation operation interface in the process of executing the test script by the terminal device, and the interactive operation of the specified function may include distribution network operation. The automated test process may include distribution network operations and the automated operation interface may include a device scan page and an information acquisition page.
As one mode, as shown in fig. 4, the controlling the terminal device to execute the test script and perform, in an automated operation interface, an interactive operation aiming at a specified function of the device to be tested in a simulated manner, so as to perform multiple automated test processing on the device to be tested, and obtain a test log corresponding to each automated test processing, includes:
s221: and controlling the terminal equipment to execute the test script, and acquiring the equipment to be tested based on an equipment scanning page in the automatic operation interface so as to establish connection between the terminal equipment and the equipment to be tested.
As a manner, the electronic device may control the terminal device to execute a test script of a distribution network operation corresponding to the device to be tested, the terminal device may display a device scan page in the automatic operation interface in a process of executing the test script, the device scan page may have device identifiers of multiple scanned devices, and the terminal device may obtain the device to be tested based on the device identifiers, so as to establish a connection between the terminal device and the device to be tested. For example, the device identifier of the device to be tested may be 2221, a device scanning page displayed in the process of executing the test script by the terminal device may be as shown in fig. 5, the device identifiers of two scanned devices in fig. 5 are 2234 and 2221, respectively, and the terminal device may regard the device identifier 2221 as the device to be tested based on the device identifiers, so as to establish a connection between the terminal device and the device to be tested.
S222: and acquiring network access information through an information acquisition page in the automatic operation interface, and sending the network access information to the to-be-tested equipment through the connection, so that the to-be-tested equipment performs multiple distribution network operations based on the network access information to obtain a test log corresponding to each distribution network operation.
The network access information may refer to information required by the device to be tested to access the network, and the network access information may be an SSID (Service Set Identifier) and a password of the router.
As one mode, after the terminal device establishes connection with the device to be tested, the terminal device may obtain network access information through an information obtaining page in an automatic operation interface, and send the network access information to the device to be tested through the connection between the terminal device and the device to be tested, so that the device to be tested performs multiple network distribution operations based on the network access information, and obtains a test log corresponding to each network distribution operation.
For example, an information obtaining page displayed in the process of executing the test script by the terminal device may be as shown in fig. 6, and when executing the test script, the terminal device may automatically input the network access information carried in the test script into an information frame corresponding to the information obtaining page shown in fig. 6, so that the network information may be sent to the device to be tested through the connection between the terminal device and the device to be tested, so that the device to be tested may perform multiple network distribution operations based on the network access information, and obtain a test log corresponding to each network distribution operation.
S230: and obtaining a test result aiming at the equipment to be tested based on each test log.
According to the automatic testing method provided by the embodiment, the terminal device can be controlled to carry out multiple times of automatic testing processing on the device to be tested based on the testing script so as to obtain the testing result aiming at the device to be tested, the interaction between the terminal device and the device to be tested can be completed only by manual intervention in the automatic testing process is avoided, and the automatic testing efficiency is improved. In addition, in this embodiment, when the automated test processing is a distribution network operation, the terminal device may be controlled to execute the test script, and the device scanning page and the information acquisition page are displayed in the automated operation interface, so that the terminal device may simulate a relevant operation of a tester on the device scanning page to establish a connection between the terminal device and the device to be tested, and simulate a relevant operation of the tester on the information acquisition page, so that the device to be tested may perform a plurality of distribution network operations based on the network access information, obtain a test log corresponding to each distribution network operation, and thereby improve the automated test efficiency.
Referring to fig. 7, an automated testing method provided in the present application includes:
s310: and acquiring a test script corresponding to the device to be tested.
S320: and controlling the device to be tested to enter a network to be distributed mode based on the first interface script, wherein the network to be distributed mode represents that the device to be tested is in an unconnected network state.
When the automatic test processing is distribution network operation, the test script can comprise a first interface script, the first interface script can be used for establishing a communication line between the electronic device and the device to be tested when the device to be tested is not connected to the network, so that the device to be tested can send the test log to the electronic device based on the communication line, and the electronic device can control the device to be tested to enter a distribution network mode based on the communication line. The network-to-be-distributed mode may refer to that the device to be tested is in an Access Point (AP) mode.
As a manner, the established communication line between the electronic device and the device to be tested may be a serial communication line, the electronic device may send a network mode to be tested start command to the device to be tested through the serial communication line, and the device to be tested may turn on the wireless AP mode after responding to the command, and emit a hotspot signal to the outside, so that the device to be tested may be scanned and discovered by other devices.
As another mode, the established communication line between the electronic device and the device to be tested may be a Telnet (remote terminal protocol) communication line, the electronic device may send a network mode to be distributed start command to the device to be tested through the Telnet communication line, the device to be tested may start the wireless AP mode after responding to the command, and transmit a hotspot signal to the outside, so that the device to be tested may be scanned and discovered by other devices.
S330: and controlling the terminal equipment to execute the test script, and carrying out distribution network operation on the equipment to be tested to obtain a test log corresponding to each distribution network operation.
As one mode, the distribution network operation may be performed on the device to be tested based on steps S221 and S222, and a test log corresponding to each distribution network operation may be generated, and the device to be tested may send the generated test log to the electronic device through a communication line between the electronic device and the device to be tested.
S340: and if the distribution network of the to-be-tested equipment fails according to the test result obtained by the test log, controlling the to-be-tested equipment to re-enter a distribution network waiting mode through the first interface script so as to perform next distribution network operation on the to-be-tested equipment.
As a mode, if the distribution network of the device to be tested fails according to the test result obtained from the test log, which indicates that the device to be tested fails to access the network, the electronic device may control the device to be tested to re-enter the distribution network mode through the first interface script, so as to perform next distribution network operation on the device to be tested.
S350: and if the distribution network of the equipment to be tested is successful according to the test result obtained by the test log and the equipment to be tested is represented to be in a network connection state, performing unbinding operation on the equipment to be tested through an unbinding interface in the second interface script so as to perform the next distribution network operation on the equipment to be tested.
When the automatic test processing is distribution network operation, the test script may further include a second interface script, and the second interface script may be used to release the communication connection between the cloud platform and the device to be tested after the device to be tested successfully accesses the network (there is a communication connection with the cloud platform deployed on the electronic device).
As a mode, if the distribution of the to-be-tested device is successful according to the test result obtained from the test log, which indicates that the to-be-tested device has successfully accessed to the network, the unbinding interface in the second interface script may be called to perform an unbinding operation with the cloud platform on the to-be-tested device, so that the to-be-tested device is in a to-be-distributed network mode again, and the next distribution of the to-be-tested device is performed.
S360: and obtaining a test result aiming at the equipment to be tested based on each test log.
According to the automatic testing method provided by the embodiment, the terminal device can be controlled to perform multiple times of automatic testing processing on the device to be tested based on the testing script so as to obtain the testing result for the device to be tested, the interaction between the terminal device and the device to be tested can be completed only by manual intervention in the automatic testing process, and therefore the automatic testing efficiency is improved. In addition, in this embodiment, when the automatic test processing is distribution network operation, it may be determined, based on the test log of each distribution network operation, whether the test result of the current distribution network operation is successful distribution of the device to be tested or failed distribution of the device to be tested, and different modes may be provided for different test results to enable the device to be tested to re-enter the distribution network mode to start the next distribution network operation, so that flexibility of the automatic test processing is improved.
Referring to fig. 8, an automated testing method provided in the present application includes:
s410: test configuration information for a device to be tested is obtained.
The test configuration information may refer to information used for generating a test script for the device to be tested, and the test configuration information may include a test parameter, a service parameter, a bottom layer frame, and a bottom layer module, where the test parameter may include a device identifier and a test frequency of the device to be tested.
The bottom layer framework can be a pytest framework, the pytest framework can be used for bearing a cloud platform deployed on the electronic equipment, the cloud platform can be a Jenkins platform, the pytest framework can also be used as the bottom layer framework to bear the whole testing platform and used for managing bottom layer modules, and the bottom layer modules can be respectively provided with an appium module, a requests module of a python library and a pyserial module of the python library.
The apium module can be used for simulating the test flow of an automatic operation interface of the terminal equipment and simulating the operation of clicking and the like on pages corresponding to different test flows on the terminal equipment.
The requests module can access the cloud platform through an HTTP (hyper text transport protocol), communicate with the cloud platform, and call the unbinding interface to unbind the to-be-tested equipment when the automatic test processing is distribution network operation, so that the to-be-tested equipment enters a distribution network waiting mode. The roles of the requests module include: accessing a cloud server through an HTTP (hyper text transport protocol), and communicating with a cloud to realize unbinding operation after a gateway is connected to a network; for example, for the distribution network operation flow, after the distribution network is successfully bound, the cloud binding removal interface is called to remove the binding of the equipment, and the state of the equipment to be tested is reset.
The pyserial module may create a class, such as the class GateWay _ Serial () class, by code writing. Then, a serial port data reading function and a serial port data writing function are respectively defined. And recording logs in real time, or sending a reset command to the equipment to be tested through a serial port after the distribution network fails. The serial port is equivalent to a communication channel, the equipment state can be written into the log and can be written out through the channel; and sending a command to the device to be tested after writing out, wherein the writing records the state of the device into a log. The pyserial module can be used for analyzing the test log, establishing a communication line between the electronic device and the device to be tested, and transmitting the test log and related commands through the communication line.
The service parameters may be configuration parameters for generating the automation interaction operation script, and the service parameters may include a platformName (cloud platform name), a devicenname (device identifier of a device to be tested), a platformVersion (cloud platform version), an appPackage (package name of an application package), and an appActivity (application package path).
As a manner, a research and development person or a tester may preset test configuration information for a device to be tested, and input the preset test configuration information into the electronic device, so that the electronic device may obtain the test configuration information for the device to be tested.
The method can specifically realize automatic test integration, triggering and report display on a Jenkins platform: carrying out parameterization construction configuration in jenkins (based on the timing function of a jenkins platform, arranging a preset time period to obtain all use cases on the pytest framework):
step 1), parameterization construction configuration;
step 2) parameterization construction is executed in jenkins, and an all test report is obtained after the test is finished: starting construction (the construction is started, namely, the test is executed according to the configuration; the configured input parameters are transmitted into a test script for testing), and before each construction, the build with parameters are required to be clicked to set the parameters; the build can be carried out (the concrete operation is that the build button is clicked on a jenkins platform, the execution is carried out), and the report is clicked and checked after the program execution is finished;
step 3) selecting a time environment;
step 4), selecting the operation after establishment, and adding an all report; and (3) performing parameterization construction in jenkins, waiting for the completion of the test, and acquiring an all test report: starting construction (namely executing test according to configuration; transmitting the configured input parameters into a test script for testing), and setting the parameters through built with parameters before each construction; i.e. can be executed by a build operation. And clicking the viewing report after the program is executed.
The method mainly comprises the steps of carrying out parameterization construction in a jenkins platform, and mainly configuring input test parameters (mainly comprising a gateway device id and an operation frequency n) and configuring an executed windows command and the like. The role of configuring these parameters is to: the input test parameters and the execution commands are configured on the jenkins platform, and the bottom layer code script does not need to be directly changed. The method is equivalent to configuring an interactive interface, and parameter values are directly filled in the interface, so that different parameter values can be transmitted for testing.
After the script is written by adopting the pytest framework, parameterization construction configuration can be carried out on the jenkins platform, and the test script can be operated by associating the test script to the jenkins platform and clicking the test script to construct.
S420: configuring an automatic interactive operation script for the equipment to be tested according to the test configuration information; the automatic interactive operation script is used for simulating interactive operation between the terminal equipment and the equipment to be tested.
The automatic interactive operation script can be a script of UI automatic operation executed in the terminal equipment in the test script.
As a mode, the electronic device may start a relevant service of desktop in the Appium module, perform configuration based on the obtained service parameter, and after the configuration is successful, may obtain a script, element positioning information, and the like input by a research and development worker or a test worker, so that the automatic interactive operation script may be successfully configured. When the automatic test processing is distribution network operation, the element can be an element of an automatic test processing interface of the terminal device, which needs to be clicked in the distribution network process.
S430: and generating a test script aiming at the equipment to be tested based on the test configuration information and the automatic interactive operation script.
As a mode, a test script aiming at the device to be tested can be generated based on a pyserial module, a requests module and an automatic interactive operation script in the test configuration information. The pyserial module can be used for configuring a first interface script, and the requests module can be used for configuring a second interface script.
Optionally, after the test script is generated, a developer or a tester may store the script in a designated location, and perform parameterized building and configuration in the cloud platform according to the flow shown in fig. 9, and first perform step S431: under the column ' general ' in Jenkins platform, the ' item is selected ' and parameterized ', and after the parameters of the character string are selected, the ' name ', ' default value ' and ' description ' are filled in.
And then selects "add timestamp to console" under the "construction environment" column in Jenkins platform based on step S432.
Then, based on the step S433, a building step is added to the "build" column in the Jenkins platform, and a command "pytest. Exe script path-XXX" for executing the windows/linux batch processing is input, where XXX may be a storage location of the test script, so as to associate the generated test script with the Jenkins platform.
Then add all report in the "operation after build" column in Jenkins platform based on step S434.
After the parameterization construction configuration is completed, the electronic equipment can start automatic test processing without changing the test script, and the automatic test efficiency is improved.
S440: and acquiring a test script corresponding to the device to be tested.
S450: the control terminal device executes the test script to perform multiple times of automatic test processing on the device to be tested, so as to obtain a test log corresponding to each time of automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested.
As one approach, the pytest framework can support simple unit testing and complex functional testing; there are many third party plug-ins and extensions can be customized. For example, an allure plug-in may be used via a plug-in extension command, which may be used to generate compact, aesthetically pleasing, readable test reports. The problems of difficulty in writing and maintenance and poor readability of reports caused by development and testing based on other frameworks are solved, and the automatic testing efficiency is improved. When the test log corresponding to each automatic test processing is obtained, the electronic equipment can obtain a test report based on the all plug-in and the test log, so that the automatic test processing can be known and analyzed more easily.
S460: and obtaining a test result aiming at the equipment to be tested based on each test log.
According to the automatic testing method provided by the embodiment, the terminal device can be controlled to perform multiple times of automatic testing processing on the device to be tested based on the testing script so as to obtain the testing result for the device to be tested, the interaction between the terminal device and the device to be tested can be completed only by manual intervention in the automatic testing process, and therefore the automatic testing efficiency is improved. In addition, in this embodiment, the automated interactive operation script may be configured based on the test configuration information for the device to be tested, and the test script may be generated based on the test configuration information and the automated interactive operation script. And the bottom framework of the test script is a pytest framework, and the pytest framework can expand a third-party plug-in based on test requirements, so that the development and the maintenance are easy, and the automatic test efficiency is improved.
The application also provides an application scenario, and the application of the automatic testing method in the application scenario is as follows: in an intelligent home scene, a test script corresponding to a device to be tested can be obtained based on a device identifier, a log recording mode is started based on a first interface script in the test script after the test script is obtained so as to receive a test log, then the terminal device is controlled to execute the test script so as to perform multiple times of automatic test processing on the device to be tested, the test log corresponding to each time of automatic test processing is obtained, and a test result for the device to be tested is obtained based on each test log. When the equipment to be tested is the intelligent gateway, the automatic test processing can be distribution network operation, and when the distribution network operation is carried out, the electronic equipment can control the equipment to be tested to enter a network distribution mode to be tested based on the first interface script; then controlling the terminal equipment to execute the test script, and acquiring equipment to be tested based on an equipment scanning page in the automatic operation interface so as to establish connection between the terminal equipment and the equipment to be tested; and acquiring network access information based on the connection, and sending the network access information to the equipment to be tested through an information acquisition page in the automatic operation interface so that the equipment to be tested performs network distribution operation for multiple times based on the network access information to obtain a test log corresponding to each network distribution operation.
In the current distribution network operation process, if the distribution network of the equipment to be tested fails according to the test result obtained by the test log, the equipment to be tested can be controlled to reenter the distribution network mode through the first interface script so as to perform next automatic test operation on the equipment to be tested; and if the distribution of the equipment to be tested is successful according to the test result obtained by the test log, unbinding the equipment to be tested through the unbinding interface in the second interface script so as to perform next automatic test operation on the equipment to be tested.
Optionally, before starting the test, relevant configuration may be performed according to the flowchart shown in fig. 10, for example, the test script is associated with the cloud platform, the presentation form of the test log is set to an all test report, and the like, so that automatic test processing may be performed based on the cloud platform deployed in the electronic device, and the intelligence of the automatic test and the automatic test efficiency are greatly improved.
Referring to fig. 11, the present application provides an automated testing apparatus 600, wherein the apparatus 600 includes:
the test script obtaining unit 610 is configured to obtain a test script corresponding to a device to be tested.
The automatic test unit 620 is configured to control the terminal device to execute the test script, so as to perform multiple times of automatic test processing on the device to be tested, and obtain a test log corresponding to each time of automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested.
A test result obtaining unit 630, configured to obtain a test result for the device to be tested based on each of the test logs.
As one mode, the automatic testing unit 620 is specifically configured to control the terminal device to execute the test script, and simulate and execute an interactive operation aiming at a specified function of the device to be tested in an automatic operation interface, so as to perform multiple times of automatic test processing on the device to be tested, and obtain a test log corresponding to each time of automatic test processing; the automatic operation interface is an interface for controlling the terminal equipment to carry out interactive operation with the equipment to be tested.
Optionally, the automatic test processing includes distribution network operation, and the automatic operation interface includes an equipment scanning page and an information acquisition page; the automatic testing unit 620 is specifically configured to control the terminal device to execute the test script, and acquire the device to be tested based on a device scan page in the automatic operation interface, so as to establish a connection between the terminal device and the device to be tested; and acquiring network access information through an information acquisition page in the automatic operation interface, and sending the network access information to the equipment to be tested through the connection, so that the equipment to be tested performs multiple network distribution operations based on the network access information to obtain a test log corresponding to each network distribution operation.
As another mode, the test script includes a first interface script, and the automated test processing includes distribution network operation; the automatic testing unit 620 is specifically configured to control the device to be tested to enter a network to be distributed mode based on the first interface script, where the network to be distributed mode represents that the device to be tested is in a network unconnected state; controlling the terminal equipment to execute the test script, and carrying out multiple network distribution operations on the equipment to be tested to obtain a test log corresponding to each network distribution operation; and if the distribution network of the to-be-tested equipment fails according to the test result obtained by the test log, controlling the to-be-tested equipment to re-enter a distribution network waiting mode through the first interface script so as to perform next distribution network operation on the to-be-tested equipment.
Optionally, the test script further includes a second interface script; the automatic testing unit 620 is specifically configured to, if the distribution of the to-be-tested device is successful according to the testing result obtained from the testing log and the to-be-tested device is in the network connection state, perform a unbinding operation on the to-be-tested device through an unbinding interface in the second interface script, so as to perform the next distribution of the to-be-tested device.
As one mode, the test result obtaining unit 630 is specifically configured to obtain a result of each automated test processing according to a test log corresponding to each automated test processing; and controlling the equipment to be tested to perform the next automatic test processing based on the result of each automatic test processing until the test is completed to obtain the test result aiming at the equipment to be tested.
Wherein the apparatus 600 further comprises:
the test script generating unit 640 is configured to obtain test configuration information for a device to be tested; configuring an automatic interactive operation script for the equipment to be tested according to the test configuration information; the automatic interactive operation script is used for simulating interactive operation between terminal equipment and the equipment to be tested; and generating a test script aiming at the equipment to be tested based on the test configuration information and the automatic interactive operation script.
Referring to fig. 12, the present application provides an automated testing system 20, where the system 20 includes an electronic device 202, a terminal device 204, and a device under test 206.
An electronic device provided by the present application will be described below with reference to fig. 13.
Referring to fig. 13, based on the above automatic testing method and apparatus, another electronic device 100 capable of performing the automatic testing method is provided in the embodiment of the present application. The electronic device 100 includes one or more processors 102 (only one shown), a memory 104, and a network module 106 coupled to each other. The memory 104 stores therein a program capable of executing the contents of the foregoing embodiments, and the processor 102 executes the program stored in the memory 104.
Processor 102 may include one or more processing cores, among others. The processor 102 interfaces with various components throughout the electronic device 100 using various interfaces and lines to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chatting log data, and the like.
Furthermore, the electronic device 100 may comprise a network module 106 in addition to the aforementioned illustrated components.
The network module 106 is used for implementing information interaction between the electronic device 100 and other devices, for example, transmitting a device control instruction, a manipulation request instruction, a status information acquisition instruction, and the like. When the electronic device 100 is embodied as a different device, the corresponding network module 106 may be different.
In one way, the network module 106 of the electronic device 100 may be a radio frequency module, which is configured to receive and transmit electromagnetic waves, and to perform interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. For example, the radio frequency module may interact with an external device through transmitted or received electromagnetic waves. For example, the radio frequency module may send instructions to the target device.
Referring to fig. 14, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 800 has stored therein program code that can be called by a processor to execute the method described in the above method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
To sum up, after obtaining a test script corresponding to a device to be tested, the automatic test method, the automatic test device and the electronic device control the terminal device to execute the test script so as to perform, on the device to be tested, an automatic test process for simulating an interactive operation between the terminal device and the device to be tested for many times, obtain a test log corresponding to each automatic test process, and obtain a test result for the device to be tested based on each test log. By the aid of the method, the terminal equipment can be controlled to automatically test the equipment to be tested for multiple times based on the test script so as to obtain a test result for the equipment to be tested, interaction between the terminal equipment and the equipment to be tested can be completed only by manual intervention in an automatic test process, and accordingly automatic test efficiency is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. An automated testing method, the method comprising:
acquiring a test script corresponding to a device to be tested;
the control terminal device executes the test script to perform multiple times of automatic test processing on the device to be tested, so as to obtain a test log corresponding to each time of automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested;
and obtaining a test result aiming at the equipment to be tested based on each test log.
2. The method of claim 1, wherein obtaining test results for the devices under test based on each of the test logs comprises:
obtaining the result of each automatic test processing according to the corresponding test log of each automatic test processing;
and controlling the equipment to be tested to perform the next automatic test processing based on the result of each automatic test processing until the test is completed to obtain the test result aiming at the equipment to be tested.
3. The method of claim 1, wherein the controlling terminal device executes the test script to perform a plurality of automated test processes on the device to be tested, and obtain a test log corresponding to each automated test process, including:
controlling the terminal equipment to execute the test script, and simulating and executing the interactive operation aiming at the specified function of the equipment to be tested in an automatic operation interface so as to carry out multiple times of automatic test processing on the equipment to be tested and obtain a test log corresponding to each time of automatic test processing; the automatic operation interface is an interface for controlling the terminal equipment to carry out interactive operation with the equipment to be tested.
4. The method of claim 3, wherein the automated test process comprises distribution network operations, and the automated operation interface comprises a device scan page and an information acquisition page;
the controlling the terminal device to execute the test script and simulate and execute the interactive operation aiming at the designated function of the device to be tested in an automatic operation interface so as to carry out a plurality of times of automatic test processing on the device to be tested and obtain a test log corresponding to each time of automatic test processing, and the method comprises the following steps:
controlling the terminal equipment to execute the test script, and acquiring the equipment to be tested based on an equipment scanning page in the automatic operation interface so as to establish connection between the terminal equipment and the equipment to be tested;
and acquiring network access information through an information acquisition page in the automatic operation interface, and sending the network access information to the equipment to be tested through the connection, so that the equipment to be tested performs multiple network distribution operations based on the network access information to obtain a test log corresponding to each network distribution operation.
5. The method of claim 1, wherein the test script comprises a first interface script, and wherein the automated test process comprises a distribution network operation;
the control terminal device executes the test script to perform multiple times of automatic test processing on the device to be tested to obtain a test log corresponding to each time of automatic test processing, and the method comprises the following steps:
controlling the to-be-tested equipment to enter a to-be-distributed network mode based on the first interface script, wherein the to-be-distributed network mode represents that the to-be-tested equipment is in an unconnected network state;
controlling the terminal equipment to execute the test script, and carrying out multiple network distribution operations on the equipment to be tested to obtain a test log corresponding to each network distribution operation;
the method further comprises the following steps:
and if the distribution network of the equipment to be tested fails according to the test result obtained by the test log, controlling the equipment to be tested to reenter a distribution network mode to be tested through the first interface script so as to perform the next distribution network operation on the equipment to be tested.
6. The method of claim 5, wherein the test script further comprises a second interface script; the method further comprises the following steps:
and if the distribution network of the equipment to be tested is successful according to the test result obtained by the test log and the equipment to be tested is represented to be in a network connection state, performing unbinding operation on the equipment to be tested through an unbinding interface in the second interface script so as to perform the next distribution network operation on the equipment to be tested.
7. The method according to any one of claims 1 to 6, wherein before obtaining the test script corresponding to the device to be tested, the method further comprises:
acquiring test configuration information aiming at a device to be tested;
configuring an automatic interactive operation script for the equipment to be tested according to the test configuration information; the automatic interactive operation script is used for simulating interactive operation between terminal equipment and the equipment to be tested;
and generating a test script aiming at the equipment to be tested based on the test configuration information and the automatic interactive operation script.
8. An automated testing apparatus, the apparatus comprising:
the test script acquisition unit is used for acquiring a test script corresponding to the equipment to be tested;
the automatic test unit is used for controlling the terminal equipment to execute the test script so as to carry out automatic test processing on the equipment to be tested for multiple times and obtain a test log corresponding to each automatic test processing; the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested;
and the test result acquisition unit is used for acquiring a test result aiming at the device to be tested based on each test log.
9. An automated testing system, comprising an electronic device, a terminal device, a device to be tested, wherein:
the electronic equipment is used for obtaining a test script corresponding to the equipment to be tested, controlling the terminal equipment to execute the test script, and performing multiple times of automatic test processing on the equipment to be tested to obtain a test log corresponding to each time of automatic test processing, wherein the automatic test processing is test processing for simulating interactive operation between the terminal equipment and the equipment to be tested, and a test result for the equipment to be tested is obtained based on each test log;
the terminal equipment is used for responding to the control operation of the electronic equipment and carrying out automatic test processing on the equipment to be tested for multiple times;
the device to be tested is used for responding to the multiple times of automatic test processing of the terminal device to carry out automatic test, and after each time of automatic test processing is finished, the device to be tested sends a test log to the electronic device.
10. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
11. A computer-readable storage medium, characterized in that a program code is stored in the computer-readable storage medium, wherein the program code when executed performs the method of any of claims 1-7.
CN202210575150.XA 2022-05-24 2022-05-24 Automatic testing method and device and electronic equipment Pending CN115190057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210575150.XA CN115190057A (en) 2022-05-24 2022-05-24 Automatic testing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210575150.XA CN115190057A (en) 2022-05-24 2022-05-24 Automatic testing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115190057A true CN115190057A (en) 2022-10-14

Family

ID=83513985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210575150.XA Pending CN115190057A (en) 2022-05-24 2022-05-24 Automatic testing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115190057A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991747A (en) * 2023-09-26 2023-11-03 新华三技术有限公司 Method, device, electronic equipment and storage medium for analyzing test error item

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083017A (en) * 2019-12-31 2020-04-28 深圳Tcl新技术有限公司 Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium
CN111104341A (en) * 2019-12-30 2020-05-05 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
KR20200101051A (en) * 2019-02-19 2020-08-27 엘에스일렉트릭(주) Intelligent electronic device and sampling method for preventing mal-operation in intelligent electronic device
CN114172832A (en) * 2020-09-11 2022-03-11 阿里巴巴集团控股有限公司 Internet of things testing method and device, central control equipment and computer equipment
CN114449499A (en) * 2022-02-10 2022-05-06 展讯半导体(成都)有限公司 System, method, device and equipment for testing short-distance communication state
CN114666255A (en) * 2022-03-16 2022-06-24 京东科技信息技术有限公司 Method for testing distribution network performance of Internet of things equipment and related equipment thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200101051A (en) * 2019-02-19 2020-08-27 엘에스일렉트릭(주) Intelligent electronic device and sampling method for preventing mal-operation in intelligent electronic device
CN111104341A (en) * 2019-12-30 2020-05-05 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN111083017A (en) * 2019-12-31 2020-04-28 深圳Tcl新技术有限公司 Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium
CN114172832A (en) * 2020-09-11 2022-03-11 阿里巴巴集团控股有限公司 Internet of things testing method and device, central control equipment and computer equipment
CN114449499A (en) * 2022-02-10 2022-05-06 展讯半导体(成都)有限公司 System, method, device and equipment for testing short-distance communication state
CN114666255A (en) * 2022-03-16 2022-06-24 京东科技信息技术有限公司 Method for testing distribution network performance of Internet of things equipment and related equipment thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991747A (en) * 2023-09-26 2023-11-03 新华三技术有限公司 Method, device, electronic equipment and storage medium for analyzing test error item
CN116991747B (en) * 2023-09-26 2023-12-15 新华三技术有限公司 Method, device, electronic equipment and storage medium for analyzing test error item

Similar Documents

Publication Publication Date Title
CN102420891B (en) Mobile terminal and test method, equipment and system thereof
CN108563579B (en) White box testing method, device and system and storage medium
CN108874677B (en) Android terminal and test method and system thereof
CN104978263A (en) Mobile terminal application program test method and mobile terminal application program test system
CN110008109B (en) Application testing method and device
CN114116364A (en) Chip debugging method, storage medium, related device and system
CN103634592A (en) Automatic test method and system for intelligent televisions
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
CN111858336B (en) Automatic software testing method and system
CN113553257B (en) Test method, device, storage medium and electronic equipment
CN112333057A (en) Intelligent household equipment distribution network testing method and device, execution machine and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN107291427B (en) Method, device and system for optimizing game engine
JP4440185B2 (en) Scenario editing apparatus, pseudo base station test system, pseudo terminal test system, scenario editing method and test processing method, and storage medium storing computer-readable program and program
CN111258902B (en) Performance test method and performance test system based on SockJS server
CN115190057A (en) Automatic testing method and device and electronic equipment
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN110890991B (en) Intelligent home gateway configuration information rapid migration method and device
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN113434422A (en) Virtual device debugging method and device and virtual device debugging system
CN115114141A (en) Method, device and equipment for testing performance of application program and storage medium
CN115129574A (en) Code testing method and device
CN112214701A (en) Page display method and system, storage medium and electronic device
CN108737337B (en) Equipment processing method, device, server and system
CN114390574A (en) Wireless network throughput testing method, device and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221014

RJ01 Rejection of invention patent application after publication