CN111427776A - Automatic testing method and device for intelligent equipment - Google Patents

Automatic testing method and device for intelligent equipment Download PDF

Info

Publication number
CN111427776A
CN111427776A CN202010172488.1A CN202010172488A CN111427776A CN 111427776 A CN111427776 A CN 111427776A CN 202010172488 A CN202010172488 A CN 202010172488A CN 111427776 A CN111427776 A CN 111427776A
Authority
CN
China
Prior art keywords
test
equipment
under test
tested
device under
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
CN202010172488.1A
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.)
Zhenshi Information Technology Shanghai Co ltd
Original Assignee
Zhenshi Information Technology Shanghai 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 Zhenshi Information Technology Shanghai Co ltd filed Critical Zhenshi Information Technology Shanghai Co ltd
Priority to CN202010172488.1A priority Critical patent/CN111427776A/en
Publication of CN111427776A publication Critical patent/CN111427776A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The application discloses an automatic testing method and device for intelligent equipment. The automatic testing method of the intelligent equipment comprises the following steps: calling a corresponding file to acquire control attribute information of the tested equipment; carrying out corresponding operation on the control of the tested equipment; and judging whether the operation is successful according to the state of the tested equipment responding to the operation. Automatic testing arrangement of smart machine includes: the calling module is configured to call the corresponding file to acquire control attribute information of the tested equipment; the operation module is configured to perform corresponding operation on the control of the tested device; a determination module configured to determine whether the operation is successful based on a state of the device under test in response to the operation.

Description

Automatic testing method and device for intelligent equipment
Technical Field
The present application relates to a testing technology of an intelligent device, and in particular, to an automated testing method and apparatus of an intelligent device.
Background
Today's software market is completely consumer oriented, and in order to maintain product relevance, products must be ready for release. The method plays an important role in automated testing in the face of complex testing tasks, huge testing workload and higher requirements on functions, performance and stability of the system.
There are many functions of software, and each version needs to be tested repeatedly. Generally, testing includes both manual testing and automated testing methods.
Generally, when the test is carried out manually, the whole function is tested for 1-2 times, the test is carried out more frequently by users after the test is actually put on the market, the use is more than 1-2 times, if the test is carried out for a plurality of times for a long time, much manpower and time are consumed, the operation is repeated for a long time, the test is tedious and tedious, and many people are difficult to strictly operate according to the regulations. In addition, testing personnel often do not understand the code language, found problems can only be limited to what the naked eye sees, and error reporting of many interfaces without abnormal display often can be omitted
The automatic test can test and compare partial test contents, and the test efficiency can be improved. Most of automatic tests are applied to android mobile phones and run individually, intelligent wearable devices need to be bound with apps, many functional test items are interactive operations with app ends, and the app ends are needed to perform verification, namely interaction with android terminals is needed. Therefore, the cases covered by the single running automation script are few, and the practicability is low.
Disclosure of Invention
It is an object of the present application to overcome the above problems or to at least partially solve or mitigate the above problems.
According to one aspect of the application, an automated testing method for intelligent equipment is provided, and the method comprises the following steps:
calling a corresponding file to acquire control attribute information of the tested equipment;
carrying out corresponding operation on the control of the tested equipment;
and judging whether the operation is successful according to the state of the tested equipment responding to the operation.
Optionally, after determining whether the operation is successful according to the state of the device under test responding to the operation, the method further includes:
and if the judgment result is that the operation is unsuccessful, giving an interface screenshot of the corresponding tested equipment.
Optionally, the control attribute information of the device under test is stored in a configuration file.
Optionally, the method further includes, after the interface screenshot of the corresponding device under test is given if the operation is determined to be unsuccessful:
and storing the interface screenshot in a test terminal.
Optionally, the state of the device under test includes: current interface of the device under test.
According to another aspect of the present application, there is provided an automated testing apparatus for smart devices, the apparatus including:
the calling module is configured to call the corresponding file to acquire control attribute information of the tested equipment;
the operation module is configured to perform corresponding operation on the control of the tested device;
a determination module configured to determine whether the operation is successful based on a state of the device under test in response to the operation.
Optionally, the apparatus further includes, after the determining module:
and the image module is configured to give an interface screenshot of the corresponding tested equipment if the operation is unsuccessful.
Optionally, the control attribute information of the device under test is stored in a configuration file.
Optionally, the apparatus further comprises, after the image module:
and the storage module is configured to store the interface screenshot in a test terminal.
Optionally, the state of the device under test includes: current interface of the device under test.
According to the automatic testing method and device for the intelligent equipment, automatic interaction between the intelligent equipment and the android terminal is achieved, and 80% -90% of test cases can be covered. By adopting the method and the device, the automatic test can be carried out on the interactive operation of single equipment, two pieces of equipment and the interactive operation before a plurality of pieces of equipment, the long-time uninterrupted repeated test can be realized, the human resources are not occupied, and the time at night and on weekends is fully utilized. Moreover, the manual test and the automatic test can be carried out synchronously, and the stability of the intelligent equipment system is ensured.
In addition, the automatic testing method and device for the intelligent equipment, provided by the application, have the advantages that the error screenshot is added in the test report, the log analysis and arrangement after the test are carried out, the abnormal information can be displayed in a table form after being screened, the checking is convenient, and the problem omission is avoided.
The above and other objects, advantages and features of the present application will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
FIG. 1 is a schematic flow chart diagram of a method for automated testing of smart devices according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a method and apparatus for automated testing of smart devices according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an automated testing method and apparatus for intelligent devices to test the interoperation between two intelligent devices according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an automated testing method and apparatus for an intelligent device according to an embodiment of the present application;
FIG. 5 is a block diagram of a schematic structure of an automated testing apparatus for intelligent devices according to an embodiment of the present application;
FIG. 6 is a block schematic diagram of a computing device according to one embodiment of the present application;
FIG. 7 is a block diagram of a schematic structure of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Fig. 1 is a schematic flow chart of a method for automated testing of smart devices according to an embodiment of the present application. The automatic testing method of the intelligent equipment is suitable for a computer terminal, and comprises the following steps:
step S1, calling a corresponding file to acquire control attribute information of the tested device;
step S2, carrying out corresponding operation on the control of the tested device;
step S3, determining whether the operation was successful according to the state of the device under test in response to the operation.
The automatic testing method of the intelligent equipment is realized by computer software, a python script project is written at a computer end through python language, and then the script is operated to realize the testing of the intelligent equipment function.
Fig. 2 is a schematic diagram illustrating an automated testing method for a smart device according to an embodiment of the present application. The method needs to create at least 1 device initialization base class, where the device initialization base class corresponds to a smart device, and the smart device may be a smart wearable device (e.g., a smart watch) or an android terminal (e.g., a smart phone). If only one kind of intelligent equipment is tested, only 1 equipment initialization base class needs to be created, and the equipment initialization base class corresponds to the tested intelligent equipment. If the interactive functions of two smart devices (for example, the call function between a smart watch and a smart phone) need to be tested, 2 device initialization base classes need to be created, where the 2 device initialization base classes respectively correspond to the two tested smart devices (for example, the smart watch and the smart phone). The method can also test the interactive operation function of a plurality of intelligent devices, and accordingly a plurality of device initialization base classes are required to be created, wherein the device initialization base classes respectively correspond to the tested various intelligent devices. Taking an interactive function test between the smart watch and the smart phone as an example, all step operation classes for operating the smart watch in the script engineering inherit a watch initialization class, all step operation classes for operating the smart phone inherit a mobile phone initialization class, and each step operation is specifically executed by which device by inheriting different device initialization classes.
One script can contain a plurality of methods, one method corresponds to one test case, and the test steps are compiled according to the test case steps. The method has the main functions of: and acquiring control attribute information of the tested device through the uiautomator, clicking, sliding and the like on the control on the tested device, and then judging whether the operation is successful.
In the method, the attribute information of the control is stored in a configuration file (an ini format file), the information can be read and used in the script running process, and is convenient for a tester to modify, under the condition that the operation logic is not changed, if the attribute (namely UI) of the control is changed, only the attribute value in the configuration file needs to be modified, and even a person who does not know the script logic can modify the attribute value and continue the test.
In general, each method has 1-2 parameters, the parameters are device numbers, and the number of the parameters is determined according to whether there is an interactive operation corresponding to the device initialization base class. And creating an equipment object according to the equipment number, and calling the conversion test equipment through the object in the test process. If the use case has interactive operation, 2 parameters are required to be transmitted, and if the interactive operation does not exist, only 1 parameter is required to be transmitted. The device number is stored in a configuration file, and the device number is transmitted in by using the parameterization of the pytest after the device information is acquired in the script operation process. If the equipment is replaced in the test process, only the equipment number information in the configuration file needs to be modified.
Fig. 3 is a schematic diagram illustrating an automated testing method for smart devices to test the interaction between two smart devices according to an embodiment of the present application. Taking an example of an interactive operation test of two intelligent devices, 2 device initialization base classes are required to be created, which correspond to the device a and the device B, respectively, and accordingly, 2 parameters, that is, device numbers of the device a and the device B, are required to be input. And after the script is written, running the script to execute the use case operation steps. The test procedure was as follows: firstly, operating a certain control on equipment A, wherein the control corresponds to a tested interactive function; device B waits for feedback in response to device a operation; the equipment B responds to the operation of the equipment A and verifies whether the operation of the equipment A is successful according to the interface change condition of the equipment B; the equipment A waits for and verifies whether the equipment B makes a corresponding response according to the interface change condition of the equipment A; if the device B responds correspondingly, the device A continues to operate after responding.
Fig. 4 is a schematic diagram illustrating an automated testing method for an intelligent device according to an embodiment of the present application. Taking the function test of the device a as an example, only one device initialization base class and 1 parameter need to be created, and then the script is run to execute the case test step. The test process is similar to the interactive operation, but it is necessary to verify whether the operation is successful according to the interface change condition of the device a itself.
And calling a pytest execution command in python to execute the test, outputting the test result, and adding an error screenshot in the test result, wherein the error screenshot is stored in the test terminal, so that a tester can conveniently check the current state of the equipment when the case execution fails, and the space memory of the tested equipment is not occupied.
After the use case is executed, the log file of the equipment is exported by using the python language, the log file is analyzed, abnormal information is screened out, the screened abnormal information is stored in an excel form, checking is facilitated, and problem omission is avoided.
The test is carried out by taking the video call between the child watch and the android mobile phone as an example.
And compiling a test script by using a python language, and controlling the tested watch and the mobile phone to perform related operations by the test terminal by running the test script. Compiling the test script needs to create two types of a watch and a mobile phone respectively and initialize the watch and the mobile phone.
And storing control information related to applications on the watch and the mobile phone into a configuration file.
And compiling a watch through script to dial a video call, waiting to be connected, verifying whether to be connected and hanging up the call.
1. Watch dialing video telephone
Simulating the operation of making a call manually, acquiring control information (control attribute information such as text, resource id, description and the like) of each operation interface of the watch, and compiling the control information into a script according to the specific test steps. For example, if a person clicks a video phone button to make an outgoing call, the corresponding script of this step is: and acquiring the control of the video telephone button through the attribute value of the video telephone button, clicking the control, and calling out the video telephone.
2. Waiting to be switched on, verifying whether to be switched on
And judging whether the video telephone is connected or not according to the current interface change of the watch. The method specifically comprises the following steps: and judging whether the current interface of the watch is a calling interface or not, and if so, continuing to wait. And limiting the waiting time to be 1-2 minutes, and if the time is out and the watch is still in a calling interface, directly judging that the test result is as follows: the video phone is not answered. If the current interface of the watch is changed to a 'call in process' interface within the limited time, a time control for counting down the video call duration exists on the interface, and a video picture is loaded, the video call is judged to be successfully connected.
3. Hanging up telephone
And acquiring a video telephone hang-up button control, and clicking to hang up. And judging that the interface of 'conversation' does not exist at present, namely, the hangup is successful.
And writing a script to wait for whether a video call is incoming or not, connecting the video call and verifying whether the video call is connected or not at the mobile phone end.
1. Waiting for video telephone call
Judging whether a video call is incoming on the interface of the mobile phone within 1-2 minutes of a limited time according to the change condition of the current interface of the mobile phone, if the video call is not incoming on the interface of the mobile phone within a time-out period, judging that no video call is incoming and the answering fails; if the video call is incoming to the mobile phone within the limited time and the video call answering and hang-up button control is arranged on the interface, the video call answering button control is obtained, and the answering button control is clicked to answer the video call.
2. Connecting video telephone, verifying whether connecting or not
And acquiring an answering button control of the video call incoming interface, and clicking the answering button control to answer. When a video picture control, a camera front-back conversion button control, a hang-up button control and the like exist in the mobile phone interface, the video phone is judged to be successfully connected.
The case method comprises 2 parameters which respectively represent the equipment numbers of the watch and the mobile phone, and the steps of dialing and answering are carried out to combine all the steps into the whole case.
And calling pytest in the python file to execute the test case, outputting a test report, and analyzing and outputting an abnormal information table after the test is finished.
The final realization effect of the case method is as follows: the watch makes a video call to the mobile phone, the mobile phone receives an incoming video call and answers the call, after answering, the watch and the mobile phone end respectively verify whether the video call is answered successfully, and after the verification is successful, the watch hangs up the video call. If the case execution fails, outputting a failure step in the test report, and attaching a current interface state diagram of the watch when the case fails. If the abnormal information exists, a table of an abnormal information list is output.
Fig. 5 is a schematic block diagram of an automated testing apparatus for intelligent devices according to an embodiment of the present application. The automatic testing arrangement of smart machine be applicable to the computer terminal, the device includes:
the system comprises a calling module 1, a control module and a test module, wherein the calling module is configured to call a corresponding file to acquire control attribute information of a tested device;
the operation module 2 is configured to perform corresponding operation on the control of the tested device;
a judging module 3 configured to judge whether the operation is successful according to a state of the device under test in response to the operation.
The automatic testing device for the intelligent equipment is realized by computer software, a python script project is compiled at a computer end through python language, and then the script is operated to realize the testing of the functions of the intelligent equipment.
Fig. 2 is a schematic diagram of an automated testing apparatus for smart devices according to an embodiment of the present application. The device needs to create at least 1 device initialization base class, where the device initialization base class corresponds to a smart device, and the smart device may be a smart wearable device (e.g., a smart watch) or an android terminal (e.g., a smart phone). If only one kind of intelligent equipment is tested, only 1 equipment initialization base class needs to be created, and the equipment initialization base class corresponds to the tested intelligent equipment. If the interactive functions of two smart devices (for example, the call function between a smart watch and a smart phone) need to be tested, 2 device initialization base classes need to be created, where the 2 device initialization base classes respectively correspond to the two tested smart devices (for example, the smart watch and the smart phone). The device can also test the interactive operation function of a plurality of intelligent devices, and accordingly a plurality of device initialization base classes need to be created, wherein the device initialization base classes respectively correspond to the tested various intelligent devices. Taking an interactive function test between the smart watch and the smart phone as an example, all step operation classes for operating the smart watch in the script engineering inherit a watch initialization class, all step operation classes for operating the smart phone inherit a mobile phone initialization class, and each step operation is specifically executed by which device by inheriting different device initialization classes.
One script can contain a plurality of devices, one device corresponds to one test case, and the test steps are compiled according to the test case steps. The main functions of the device are: and acquiring control attribute information of the tested device through the uiautomator, clicking, sliding and the like on the control on the tested device, and then judging whether the operation is successful.
In the device, the attribute information of the control is stored in a configuration file (ini format file), the information can be read and used in the running process of the script, and is convenient for a tester to modify, under the condition that the operation logic is not changed, if the attribute (namely UI) of the control is changed, only the attribute value in the configuration file needs to be modified, and even a person who does not know the script logic can modify the attribute value and continue the test.
In general, each device has 1-2 parameters, the parameters are device numbers, and correspond to the device initialization base class, and the quantity of the parameters is determined according to whether the interactive operation exists. And creating an equipment object according to the equipment number, and calling the conversion test equipment through the object in the test process. If the use case has interactive operation, 2 parameters are required to be transmitted, and if the interactive operation does not exist, only 1 parameter is required to be transmitted. The device number is stored in a configuration file, and the device number is transmitted in by using the parameterization of the pytest after the device information is acquired in the script operation process. If the equipment is replaced in the test process, only the equipment number information in the configuration file needs to be modified.
Fig. 3 is a schematic diagram illustrating an automated testing apparatus for smart devices testing the interaction between two smart devices according to an embodiment of the present application. Taking an example of an interactive operation test of two intelligent devices, 2 device initialization base classes are required to be created, which correspond to the device a and the device B, respectively, and accordingly, 2 parameters, that is, device numbers of the device a and the device B, are required to be input. And after the script is written, running the script to execute the use case operation steps. The test procedure was as follows: firstly, operating a certain control on equipment A, wherein the control corresponds to a tested interactive function; device B waits for feedback in response to device a operation; the equipment B responds to the operation of the equipment A and verifies whether the operation of the equipment A is successful according to the interface change condition of the equipment B; the equipment A waits for and verifies whether the equipment B makes a corresponding response according to the interface change condition of the equipment A; if the device B responds correspondingly, the device A continues to operate after responding.
Fig. 4 is a schematic diagram illustrating an automated testing apparatus for an intelligent device according to an embodiment of the present application. Taking the function test of the device a as an example, only one device initialization base class and 1 parameter need to be created, and then the script is run to execute the case test step. The test process is similar to the interactive operation, but it is necessary to verify whether the operation is successful according to the interface change condition of the device a itself.
And calling a pytest execution command in python to execute the test, and outputting a test result. The device can further comprise an image module and a storage module, wherein the image module is used for adding the error screenshot in the test result, and the storage module is used for storing the error screenshot in the test terminal, so that a tester can conveniently check the current state of the equipment when the case execution fails, and the device is more intuitive.
After the use case is executed, the log file of the equipment is exported by using the python language, the log file is analyzed, abnormal information is screened out, the screened abnormal information is stored in an excel form, checking is facilitated, and problem omission is avoided.
The test is carried out by taking the video call between the child watch and the android mobile phone as an example.
And compiling a test script by using a python language, and controlling the tested watch and the mobile phone to perform related operations by the test terminal by running the test script. Compiling the test script needs to create two types of a watch and a mobile phone respectively and initialize the watch and the mobile phone.
And storing control information related to applications on the watch and the mobile phone into a configuration file.
And compiling a watch through script to dial a video call, waiting to be connected, verifying whether to be connected and hanging up the call.
1. Watch dialing video telephone
Simulating the operation of making a call manually, acquiring control information (control attribute information such as text, resource id, description and the like) of each operation interface of the watch, and compiling the control information into a script according to the specific test steps. For example, if a person clicks a video phone button to make an outgoing call, the corresponding script of this step is: and acquiring the control of the video telephone button through the attribute value of the video telephone button, clicking the control, and calling out the video telephone.
2. Waiting to be switched on, verifying whether to be switched on
And judging whether the video telephone is connected or not according to the current interface change of the watch. The method specifically comprises the following steps: and judging whether the current interface of the watch is a calling interface or not, and if so, continuing to wait. And limiting the waiting time to be 1-2 minutes, and if the time is out and the watch is still in a calling interface, directly judging that the test result is as follows: the video phone is not answered. If the current interface of the watch is changed to a 'call in process' interface within the limited time, a time control for counting down the video call duration exists on the interface, and a video picture is loaded, the video call is judged to be successfully connected.
3. Hanging up telephone
And acquiring a video telephone hang-up button control, and clicking to hang up. And judging that the interface of 'conversation' does not exist at present, namely, the hangup is successful.
And writing a script to wait for whether a video call is incoming or not, connecting the video call and verifying whether the video call is connected or not at the mobile phone end.
1. Waiting for video telephone call
Judging whether a video call is incoming on the interface of the mobile phone within 1-2 minutes of a limited time according to the change condition of the current interface of the mobile phone, if the video call is not incoming on the interface of the mobile phone within a time-out period, judging that no video call is incoming and the answering fails; if the video call is incoming to the mobile phone within the limited time and the video call answering and hang-up button control is arranged on the interface, the video call answering button control is obtained, and the answering button control is clicked to answer the video call.
2. Connecting video telephone, verifying whether connecting or not
And acquiring an answering button control of the video call incoming interface, and clicking the answering button control to answer. When a video picture control, a camera front-back conversion button control, a hang-up button control and the like exist in the mobile phone interface, the video phone is judged to be successfully connected.
The case device contains 2 parameters which represent the equipment numbers of watch and mobile phone, and combines the steps into the whole case according to the steps of dialing and answering the call.
And calling pytest in the python file to execute the test case, outputting a test report, and analyzing and outputting an abnormal information table after the test is finished.
The final realization effect of the case device is as follows: the watch makes a video call to the mobile phone, the mobile phone receives an incoming video call and answers the call, after answering, the watch and the mobile phone end respectively verify whether the video call is answered successfully, and after the verification is successful, the watch hangs up the video call. If the case execution fails, outputting a failure step in the test report, and attaching a current interface state diagram of the watch when the case fails. If the abnormal information exists, a table of an abnormal information list is output.
Embodiments also provide a computing device, referring to fig. 6, comprising a memory 1120, a processor 1110 and a computer program stored in said memory 1120 and executable by said processor 1110, the computer program being stored in a space 1130 for program code in the memory 1120, the computer program, when executed by the processor 1110, implementing the method steps 1131 for performing any of the methods according to the invention.
The embodiment of the application also provides a computer readable storage medium. Referring to fig. 7, the computer readable storage medium comprises a storage unit for program code provided with a program 1131' for performing the steps of the method according to the invention, which program is executed by a processor.
The embodiment of the application also provides a computer program product containing instructions. Which, when run on a computer, causes the computer to carry out the steps of the method according to the invention.
The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., from one website site, computer, server, or data center, via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) means to another website site, computer, server, or data center.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. 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 will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, and the program may be stored in a computer-readable storage medium, where the storage medium is a non-transitory medium, such as a random access memory, a read only memory, a flash memory, a hard disk, a solid state disk, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disk (optical disk), and any combination thereof.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An automated testing method for intelligent equipment comprises the following steps:
calling a corresponding file to acquire control attribute information of the tested equipment;
carrying out corresponding operation on the control of the tested equipment;
and judging whether the operation is successful according to the state of the tested equipment responding to the operation.
2. The method of claim 1, after determining whether the operation was successful based on a state of the device under test in response to the operation, further comprising:
and if the judgment result is that the operation is unsuccessful, giving an interface screenshot of the corresponding tested equipment.
3. The method according to claim 1 or 2, wherein the control attribute information of the device under test is stored in a configuration file.
4. The method as claimed in any one of claims 1 to 3, wherein the method further comprises, after giving an interface screenshot of the corresponding device under test if the operation is determined to be unsuccessful:
and storing the interface screenshot in a test terminal.
5. The method according to any one of claims 1 to 4, wherein the state of the device under test comprises: current interface of the device under test.
6. An automated testing device for smart devices, comprising:
the calling module is configured to call the corresponding file to acquire control attribute information of the tested equipment;
the operation module is configured to perform corresponding operation on the control of the tested device;
a determination module configured to determine whether the operation is successful based on a state of the device under test in response to the operation.
7. The apparatus of claim 6, further comprising, after the determining module:
and the image module is configured to give an interface screenshot of the corresponding tested equipment if the operation is unsuccessful.
8. The apparatus according to claim 6 or 7, wherein the control attribute information of the device under test is stored in a configuration file.
9. The apparatus of any of claims 6 to 8, further comprising, after the image module:
and the storage module is configured to store the interface screenshot in a test terminal.
10. The apparatus according to any one of claims 6 to 9, wherein the state of the device under test comprises: current interface of the device under test.
CN202010172488.1A 2020-03-12 2020-03-12 Automatic testing method and device for intelligent equipment Pending CN111427776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010172488.1A CN111427776A (en) 2020-03-12 2020-03-12 Automatic testing method and device for intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010172488.1A CN111427776A (en) 2020-03-12 2020-03-12 Automatic testing method and device for intelligent equipment

Publications (1)

Publication Number Publication Date
CN111427776A true CN111427776A (en) 2020-07-17

Family

ID=71553762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010172488.1A Pending CN111427776A (en) 2020-03-12 2020-03-12 Automatic testing method and device for intelligent equipment

Country Status (1)

Country Link
CN (1) CN111427776A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822073A (en) * 2020-12-30 2021-05-18 广东乐心医疗电子股份有限公司 Test method, device, system, electronic equipment and readable storage medium
CN113422860A (en) * 2021-06-22 2021-09-21 广州绿怡信息科技有限公司 Call abnormity detection method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204343A1 (en) * 2004-03-12 2005-09-15 United Parcel Service Of America, Inc. Automated test system for testing an application running in a windows-based environment and related methods
CN1851667A (en) * 2006-02-15 2006-10-25 华为技术有限公司 Graphic user interface test method and system
CN104794050A (en) * 2014-01-21 2015-07-22 腾讯科技(深圳)有限公司 Application program test method, device and system
CN105868112A (en) * 2016-03-29 2016-08-17 上海斐讯数据通信技术有限公司 Interactive automatic testing method and system
CN106445805A (en) * 2016-08-26 2017-02-22 上海合福信息科技有限公司 Visualized testing report generation method
CN107368411A (en) * 2017-06-30 2017-11-21 北京小米移动软件有限公司 Method of testing, apparatus and system
CN109726941A (en) * 2019-02-21 2019-05-07 厦门芯鸽信息科技有限公司 A kind of automatic marketing system of intelligent terminal and automatic marketing method
CN110162453A (en) * 2018-02-11 2019-08-23 腾讯科技(深圳)有限公司 Test method, device, computer readable storage medium and computer equipment
CN110287122A (en) * 2019-06-29 2019-09-27 广州华多网络科技有限公司 A kind of automated testing method, device, terminal and storage medium
CN110851356A (en) * 2019-10-30 2020-02-28 河海大学 Selenium-based Web application automatic test framework and construction method and system thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204343A1 (en) * 2004-03-12 2005-09-15 United Parcel Service Of America, Inc. Automated test system for testing an application running in a windows-based environment and related methods
CN1851667A (en) * 2006-02-15 2006-10-25 华为技术有限公司 Graphic user interface test method and system
CN104794050A (en) * 2014-01-21 2015-07-22 腾讯科技(深圳)有限公司 Application program test method, device and system
CN105868112A (en) * 2016-03-29 2016-08-17 上海斐讯数据通信技术有限公司 Interactive automatic testing method and system
CN106445805A (en) * 2016-08-26 2017-02-22 上海合福信息科技有限公司 Visualized testing report generation method
CN107368411A (en) * 2017-06-30 2017-11-21 北京小米移动软件有限公司 Method of testing, apparatus and system
CN110162453A (en) * 2018-02-11 2019-08-23 腾讯科技(深圳)有限公司 Test method, device, computer readable storage medium and computer equipment
CN109726941A (en) * 2019-02-21 2019-05-07 厦门芯鸽信息科技有限公司 A kind of automatic marketing system of intelligent terminal and automatic marketing method
CN110287122A (en) * 2019-06-29 2019-09-27 广州华多网络科技有限公司 A kind of automated testing method, device, terminal and storage medium
CN110851356A (en) * 2019-10-30 2020-02-28 河海大学 Selenium-based Web application automatic test framework and construction method and system thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822073A (en) * 2020-12-30 2021-05-18 广东乐心医疗电子股份有限公司 Test method, device, system, electronic equipment and readable storage medium
CN113422860A (en) * 2021-06-22 2021-09-21 广州绿怡信息科技有限公司 Call abnormity detection method and device
CN113422860B (en) * 2021-06-22 2024-01-09 广州绿怡信息科技有限公司 Method and device for detecting abnormal call

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
US8059788B2 (en) Telephone software testing system and method
US6862682B2 (en) Method and apparatus for making and using wireless test verbs
CN106776294B (en) Automatic android mobile phone testing method and system
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CN105302722B (en) CTS automatic testing method and device
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
WO2019227708A1 (en) Online debugging apparatus and method for test case, and computer-readable storage medium
US20150331784A1 (en) System and method for controlling test script execution by smartphone
CN107045475B (en) Test method and device
CN111190825A (en) Automatic test method, system and robot
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN111427776A (en) Automatic testing method and device for intelligent equipment
CN107391362A (en) Application testing method, mobile terminal and storage medium
CN109271316A (en) Android device and its automated testing method, memory
CN111767209A (en) Code testing method, device, storage medium and terminal
CN105182111A (en) Mobile terminal performance test method and system
CN105760300A (en) Automatic STK/UTK service testing method and system
CN107391354B (en) Method and system for automatically monitoring terminal performance and storage device
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN107193728A (en) Mobile terminal automation testing method and device
CN112416734A (en) Test method, device and storage medium
CN105339974B (en) Analog sensor
CN115509913A (en) Software automation test method, device, machine readable medium and equipment
CN110618881B (en) Method and system for simulating message queue

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

Application publication date: 20200717