CN111026651A - Test method, test device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN111026651A
CN111026651A CN201911167173.1A CN201911167173A CN111026651A CN 111026651 A CN111026651 A CN 111026651A CN 201911167173 A CN201911167173 A CN 201911167173A CN 111026651 A CN111026651 A CN 111026651A
Authority
CN
China
Prior art keywords
test
test terminal
terminal
coordinate position
successfully
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.)
Granted
Application number
CN201911167173.1A
Other languages
Chinese (zh)
Other versions
CN111026651B (en
Inventor
殷坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201911167173.1A priority Critical patent/CN111026651B/en
Publication of CN111026651A publication Critical patent/CN111026651A/en
Application granted granted Critical
Publication of CN111026651B publication Critical patent/CN111026651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The present disclosure relates to a test method, apparatus, storage medium, and electronic device, the method comprising: determining a test operation executed by a first test terminal aiming at a target object located at a first coordinate position on a screen; determining an equivalent coordinate position corresponding to the first coordinate position on a second test terminal screen, wherein the equivalent coordinate position is the coordinate position of an object which is displayed on the second test terminal screen and is the same as the target object, and the second test terminal comprises a plurality of test terminals with different models; and generating a test instruction according to the test operation and the equivalent coordinate position, wherein the test instruction is used for a second test terminal to reproduce the test operation at the equivalent coordinate position.

Description

Test method, test device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of testing, and in particular, to a testing method, an apparatus, a storage medium, and an electronic device.
Background
Software testing is a process used to facilitate the identification of the correctness, integrity, security, and quality of software. The method comprises the steps of operating a program under specified conditions, finding out program errors, measuring software quality, and evaluating whether the software can meet design requirements.
At present, with the development of internet and mobile internet technologies, more and more services are migrated to mobile applications based on mobile device usage. The online upgrade of system versions is more and more frequent, the fragmentation degree of mobile equipment is higher and higher, the frequency of regression testing is higher and higher, the regression range is wider and wider, and in addition, the application limitation of automatic testing is realized, and testers have larger workload under relevant scenes.
Disclosure of Invention
The present disclosure is directed to a testing method, a testing device, a storage medium, and an electronic apparatus, so as to solve the above technical problems.
In order to achieve the above object, in a first aspect of the present disclosure, a testing method is provided, including:
determining a test operation executed by a first test terminal aiming at a target object located at a first coordinate position on a screen;
determining an equivalent coordinate position corresponding to the first coordinate position on a second test terminal screen, wherein the equivalent coordinate position is the coordinate position of an object which is displayed on the second test terminal screen and is the same as the target object, and the second test terminal comprises a plurality of test terminals with different models;
and generating a test instruction according to the test operation and the equivalent coordinate position, wherein the test instruction is used for a second test terminal to reproduce the test operation at the equivalent coordinate position.
Optionally, the method further comprises:
judging whether each second test terminal successfully reproduces the test operation;
and if any one of the second test terminals does not successfully reproduce the test operation, prompting a user to suspend the test operation executed by the first test terminal so as to remind the user to manually trigger the second test terminal to execute the test operation.
Optionally, the method further comprises:
judging whether each second test terminal successfully reproduces the test operation;
for a second test terminal which does not successfully reproduce the test operation, storing a test instruction corresponding to the second test terminal, which is generated according to each subsequent test operation of the first test terminal;
and after the second test terminal successfully executes the test operation, sequentially sending the stored test instruction corresponding to the second test terminal.
Optionally, the test operation performed by the first test terminal is triggered by a manual operation of a user, and before the determination that the test operation performed by the first test terminal is performed on the target object located at the first coordinate position on the screen, the method includes:
monitoring the user operation of each test terminal, and taking the test terminal as the first test terminal when any test terminal is monitored to be subjected to the user operation; or the like, or, alternatively,
and determining the first test terminal from a plurality of test terminals according to the selection operation of the user.
Optionally, the method further comprises: recording the times of successfully reproducing the test operation executed by the first test terminal by each second test terminal;
when the test of each second test terminal is completed, determining the ratio of the number of times that the second test terminal successfully reproduces the test operation executed by the first test terminal to the number of times that the first test terminal executes all test operations, and obtaining the reproduction rate of the second test terminal relative to the first test terminal;
determining the fitness of the first test terminal, wherein the fitness is the sum of the recurrence rates of the second test terminals relative to the first test terminal;
the fitness of the test terminal is used for determining the first test terminal from the plurality of test terminals before the test process is started each time.
In a second aspect, the present disclosure provides a test apparatus comprising:
the first determination module is used for determining the test operation executed by the first test terminal aiming at the target object positioned at the first coordinate position on the screen;
the second determination module is used for determining an equivalent coordinate position corresponding to the first coordinate position on a second test terminal screen, wherein the equivalent coordinate position is the coordinate position of an object which is displayed on the second test terminal screen and is the same as the target object, and the second test terminal comprises a plurality of test terminals with different models;
and the generating module is used for generating a test instruction according to the test operation and the equivalent coordinate position, wherein the test instruction is used for a second test terminal to reproduce the test operation at the equivalent coordinate position.
Optionally, the apparatus further comprises:
the first judging module is used for judging whether each second testing terminal successfully reproduces the testing operation;
and the prompting module is used for prompting a user to suspend the test operation executed by the first test terminal when any one second test terminal does not successfully reproduce the test operation so as to remind the user to manually trigger the second test terminal to execute the test operation.
Optionally, the apparatus further comprises:
the second judging module is used for judging whether each second testing terminal successfully reproduces the testing operation;
the storage module is used for storing a test instruction which is generated according to each subsequent test operation of the first test terminal and corresponds to the second test terminal for the second test terminal which does not successfully reproduce the test operation;
and the sending module is used for sequentially sending the stored test instruction corresponding to the second test terminal after the second test terminal successfully executes the test operation.
Optionally, the test operation performed by the first test terminal is triggered by a manual operation of a user, and the apparatus further includes:
the monitoring module is used for monitoring the user operation of each test terminal before the first determining module determines that the first test terminal performs the test operation aiming at the target object positioned at the first coordinate position on the screen, and when any test terminal is monitored to be subjected to the user operation, the test terminal is taken as the first test terminal; or the like, or, alternatively,
and the third determining module is used for determining the first test terminal from a plurality of test terminals according to the selection operation of the user.
Optionally, the apparatus further comprises:
the recording module is used for recording the times of successfully reproducing the test operation executed by the first test terminal by each second test terminal;
a fourth determining module, configured to determine, when the test of each second test terminal is completed, a ratio between the number of times that the second test terminal successfully reproduces the test operation executed by the first test terminal and the number of times that all test operations are executed by the first test terminal, so as to obtain a reproduction rate of the second test terminal relative to the first test terminal;
a fifth determining module, configured to determine a fitness of the first test terminal, where the fitness is a sum of recurrence rates of each second test terminal relative to the first test terminal;
the fitness of the test terminal is used for determining the first test terminal from the plurality of test terminals before the test process is started each time.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any of the first aspects described above.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any of the first aspects above.
Above-mentioned technical scheme can include following beneficial effect at least:
by determining the test operation executed on the first test terminal and the first coordinate position corresponding to the test operation, a test instruction can be generated according to the determined equivalent coordinate position corresponding to the first coordinate position on the second test terminal and the test operation, and the second test terminal can be controlled to reproduce the test operation executed on the first test terminal through the test instruction. That is to say, in the testing process, the second test terminal can follow first test terminal carries out the linkage test to can save tester's work load, promote efficiency of software testing.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic flow chart of a testing method according to an exemplary embodiment of the disclosure.
Fig. 2 is a schematic diagram of a test terminal shown in an exemplary embodiment of the present disclosure.
FIG. 3 is a block diagram of a testing device shown in an exemplary embodiment of the present disclosure.
FIG. 4 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Before introducing the testing method, the testing device, the storage medium and the electronic device provided by the disclosure, an application scenario of the disclosure is introduced first, and the disclosure can be applied to various terminal testing occasions, such as terminal device testing occasions of mobile phones, tablet computers and the like.
At present, before software is put into the market formally, the software needs to be tested fully and strictly, so that the normal use of the software can be guaranteed. Under a related development scene, the software interface is still in an unstable state, so that the practicability of the automatic test is low in the scene. At this stage, the tester is typically required to manually test the device under test. However, because the number of devices that can be operated by a single tester is limited, and in addition, the software version has the problems of frequent online upgrade, higher and higher regression testing frequency, wider and wider regression testing range and the like, the tester has a larger workload in relevant scenes.
To this end, the present disclosure provides a testing method, referring to a flow diagram of a testing method shown in fig. 1, the method comprising:
and S11, determining the test operation executed by the first test terminal aiming at the target object positioned at the first coordinate position on the screen.
The first test terminal can be a tablet computer, a mobile phone and the like. The test operation may be a response of the first test terminal to a corresponding test instruction, where the test instruction includes a corresponding target object, a test event that occurs in the target object, and a first coordinate position corresponding to the target object, and the first test terminal makes the target object on the first test terminal screen generate the corresponding test event by responding to the test instruction. For example, the first test terminal may generate a corresponding control instruction according to an action, such as clicking, long pressing, sliding, and the like, performed by the user on the screen of the first test terminal, and then respond to the control instruction to implement a corresponding test operation. In an embodiment, the first test terminal may also receive a test instruction sent by another control terminal, and then implement a corresponding test operation by responding to the test instruction.
And S12, determining the equivalent coordinate position corresponding to the first coordinate position on the second test terminal screen.
The equivalent coordinate position is a coordinate position of an object which is displayed on a screen of the second test terminal and is the same as the target object, and the second test terminal comprises a plurality of test terminals of different models. In an embodiment, the first coordinate position may be subjected to coordinate conversion according to the first coordinate position, the screen size of the second test terminal, and resolution information, so as to obtain the equivalent coordinate position.
And S13, generating a test instruction according to the test operation and the equivalent coordinate position, wherein the test instruction is used for the second test terminal to repeat the test operation at the equivalent coordinate position.
In this embodiment, by determining the test operation executed on the first test terminal and the first coordinate position corresponding to the test operation, the test instruction may be generated according to the determined equivalent coordinate position corresponding to the first coordinate position on the second test terminal and the test operation, and the second test terminal may be controlled to reproduce the test operation executed on the first test terminal through the test instruction. That is to say, in the testing process, the second test terminal can follow first test terminal carries out the linkage test to can save tester's work load, promote efficiency of software testing.
For example, in one embodiment, the test terminal may include a plurality of smart phones as shown in fig. 2. The user can select one of the smart phones as a master control phone (namely, a first test terminal), and the rest of the smart phones are used as linkage phones (namely, second test terminals). During the test process, the user can perform operations such as clicking, sliding, pressing and the like on the master mobile phone. For example, the user may click the "exit" button on the smartphone shown in fig. 2, and then trigger the "exit" button to generate a "click" event representing that the exit button is clicked, and after the system monitors the event, the system may generate a test instruction according to the content of the event and the position of the "exit" button on the other smartphone screens. In an embodiment, the master control mobile phone may send the test instruction to a plurality of linked mobile phones, so that the plurality of linked mobile phones can reproduce a click event occurring at an exit button on the first smart terminal by responding to the test instruction. That is to say, the user can carry out linkage test on all to-be-tested smart phones by operating the master control mobile phone, so that the test efficiency can be improved.
In addition, in some embodiments, there are one or more linked handsets that cannot reproduce corresponding test operations after responding to the test instruction sent by the master handset.
Therefore, optionally, the method is based on fig. 1, and further includes:
judging whether each second test terminal successfully reproduces the test operation;
and if any one of the second test terminals does not successfully reproduce the test operation, prompting a user to suspend the test operation executed by the first test terminal so as to remind the user to manually trigger the second test terminal to execute the test operation.
Still taking the smart phone shown in fig. 2 as an example for explanation, after the user operates on the master mobile phone, the system may determine a target object corresponding to the operation and a first coordinate position where the target object is located, and determine, according to the first coordinate position and device information (for example, screen shape information, screen resolution information, and the like) of a plurality of other linked mobile phones, an equivalent coordinate position where the target object is located on another smart phone through corresponding coordinate conversion. And then, generating a corresponding test instruction according to the event of the target object and the equivalent coordinate position so as to control the plurality of linked mobile phones to reproduce the event on the corresponding target object.
In an embodiment, the screens of the smart phones can be projected to a PC browser, and then the reproduction results of the plurality of linked phones are compared. If the test operation is not successfully reproduced by any one of the linked mobile phones, prompt information can be sent to a user to prompt the user to suspend the test operation executed by the first test terminal. The prompt message may include text and/or sound, which may be corresponding text content, for example, that is float-displayed in the form of a prompt window on the upper layer of the terminal screen.
In addition, after the user suspends the test operation executed by the first test terminal, the state of the linked mobile phone which does not successfully reproduce the test operation can be detected, and the reason of the reproduction failure of the linked mobile phone can be judged. In one embodiment, if it is determined that the reproduction failure is caused by the program under test, the related test content may be recorded in the test report of the linked mobile phone. In another embodiment, the recurrence failure is not caused by the program to be tested, for example, may be caused by an abnormality in the test instruction generation or transmission process, in this case, the user may trigger the linked mobile phone to execute the test operation, and after the test operation recurrence is successful (at this time, the master control mobile phone and the linked mobile phone enter the same test step), the user may continue to perform the linked test on all the smart phones through the master control mobile phone.
In this way, when any one of the second test terminals fails to reproduce the test operation, the user can be prompted to suspend the test operation executed by the first test terminal. The user can select to fill out a test report according to specific conditions and/or manually trigger the second test terminal to execute the test operation. After each second test terminal reproduces the test operation, the next test can be performed, and finally the effect of synchronously testing the plurality of terminals is achieved.
It should be noted that, the testing process may involve a plurality of terminals of different models, and due to differences between different terminals (for example, performance differences between different terminals), the time consumed by different terminals in responding to the test command may also be different. In this case, the difference in response speed between different second test terminals may cause the system to determine that one of the second test terminals has not successfully reproduced the test operation.
Thus, in a possible implementation, the method further includes, on the basis of fig. 1:
judging whether each second test terminal successfully reproduces the test operation;
for a second test terminal which does not successfully reproduce the test operation, storing a test instruction corresponding to the second test terminal, which is generated according to each subsequent test operation of the first test terminal;
and after the second test terminal successfully executes the test operation, sequentially sending the stored test instruction corresponding to the second test terminal.
For example, a ganged switch may be provided at a test control end (e.g., a control computer, the first test terminal, etc.), and the ganged switch is used to control the test command to be sent from the test control end to each second test terminal. For example, it may be set that the test command is transmitted to the second test terminal only in the on state of the interlock switch.
In an embodiment, if the test control end system detects that there is a target second test terminal that does not successfully reproduce the test operation, the test control end system may store a test instruction corresponding to the target second test terminal generated according to each subsequent test operation of the first test terminal, and suspend sending of the test instruction subsequently generated by the first test terminal to the target second test terminal by turning off the linked switch. In addition, the test control end system may further store an execution result of each test operation of the first test terminal, and after the target second test terminal executes a previous test operation, the execution result of the target second test terminal may be compared with the stored execution result of the corresponding test operation of the first test terminal to determine whether the recurrence of the test operation by the target second test terminal is successful. And after the second test terminal successfully executes and reproduces the test operation, sequentially sending the stored test instruction corresponding to the target second test terminal to the second test terminal so as to carry out the next test operation.
In the testing method provided in this embodiment, after it is determined that the second testing terminal does not successfully reproduce the testing operation on the first testing terminal, sending and storing of the subsequent testing instruction corresponding to the second testing terminal by the first testing terminal may be suspended, and after the second testing terminal successfully executes the testing operation, the stored testing instruction corresponding to the second testing terminal may be sequentially sent to the second testing terminal. That is to say, after the user performs the user operation once in the test process, the subsequent test process can be performed without waiting for all the second test terminals to successfully reproduce the test operation corresponding to the user operation on the first test terminal, and finally the effect of performing the asynchronous test on all the test terminals is achieved.
Still referring to fig. 1, optionally, the test operation performed by the first test terminal is triggered by a manual operation of a user, and before the step S11, the method includes:
and monitoring the user operation of each test terminal, and taking the test terminal as the first test terminal when any test terminal is monitored to be subjected to the user operation.
Taking the smart phone shown in fig. 2 as an example, before the user starts testing, a plurality of smart phones may be selected as the mobile phones to be tested. The test control end system can monitor the state of each smart phone, and when any smart phone is monitored to be operated by a user, the smart phone can be used as the first test terminal, and other smart phones can be used as the second test terminals. And determining a corresponding target object, an event of the target object and resolution information of other smart phones according to the monitored user operation to generate a corresponding test instruction. The test control end system can send the test instruction to each second test terminal so as to control the second test terminals to reproduce the test operation.
It is noted that the first test terminal is switchable during operation by a user. For example, if the intelligent terminal A, B, C is present and the user performs the operation on the intelligent terminal a for the first time, the test control end system may use the intelligent terminal a as the first test terminal according to the above description. When the user operates for the second time, the operation is performed on the intelligent terminal B, the first test terminal can be switched from the intelligent terminal A to the intelligent terminal B, and correspondingly, the second test terminal is also switched from the intelligent terminals B and C to the intelligent terminals A and C.
Therefore, by monitoring all the test terminals, the test terminal actually operated by the user can be used as the first test terminal, namely, the user does not need to return to the same test terminal for operation every time, so that the test flexibility and the test efficiency of the user can be improved.
In addition, in an embodiment, the first test terminal may also be determined from a plurality of test terminals according to a selection operation of a user.
In one possible embodiment, the method further comprises: recording the times of successfully reproducing the test operation executed by the first test terminal by each second test terminal;
when the test of each second test terminal is completed, determining the ratio of the number of times that the second test terminal successfully reproduces the test operation executed by the first test terminal to the number of times that the first test terminal executes all test operations, and obtaining the reproduction rate of the second test terminal relative to the first test terminal;
determining the fitness of the first test terminal, wherein the fitness is the sum of the recurrence rates of the second test terminals relative to the first test terminal;
the fitness of the test terminal is used for determining the first test terminal from the plurality of test terminals before the test process is started each time.
That is to say, after each test is completed, the corresponding test result may be stored, and the fitness of each test terminal may be calculated according to the stored historical test result, so that the first test terminal may be determined from the plurality of test terminals before the next test flow is started. For example, before each test is started, the test control end system may calculate the fitness of each test terminal according to the stored historical test result, sort all the test terminals according to the fitness, and use the test terminal with the highest fitness as the preselected first test terminal. The fitness of each test terminal is calculated through a historical test result, and the test terminal with the highest fitness is used as the first test terminal, so that the fault rate of each test terminal during linkage test can be reduced. In addition, in an embodiment, the user can also modify the first test terminal pre-selected by the test control end system.
The present disclosure also provides a testing apparatus, as shown in fig. 3, the testing apparatus 300 includes:
a first determining module 301, configured to determine a test operation performed by a first test terminal on a target object located at a first coordinate position on a screen;
a second determining module 302, configured to determine an equivalent coordinate position on a second test terminal screen corresponding to the first coordinate position, where the equivalent coordinate position is a coordinate position of an object displayed on the second test terminal screen and identical to the target object, and the second test terminal includes a plurality of test terminals of different models;
a generating module 303, configured to generate a test instruction according to the test operation and the equivalent coordinate position, where the test instruction is used by a second test terminal to repeat the test operation at the equivalent coordinate position.
The device can determine the test operation executed on the first test terminal and the first coordinate position corresponding to the test operation through the first determination module, so that a test instruction can be generated by the generation module according to the equivalent coordinate position corresponding to the first coordinate position on the second test terminal determined by the second determination module and the test operation, and the second test terminal can be controlled to reproduce the test operation executed on the first test terminal through the test instruction. That is to say, in the testing process, the second test terminal can follow first test terminal carries out the linkage test to can save tester's work load, promote efficiency of software testing.
Optionally, the apparatus further comprises:
the first judging module is used for judging whether each second testing terminal successfully reproduces the testing operation;
and the prompting module is used for prompting a user to suspend the test operation executed by the first test terminal when any one second test terminal does not successfully reproduce the test operation so as to remind the user to manually trigger the second test terminal to execute the test operation.
Optionally, the apparatus further comprises:
the second judging module is used for judging whether each second testing terminal successfully reproduces the testing operation;
the storage module is used for storing a test instruction which is generated according to each subsequent test operation of the first test terminal and corresponds to the second test terminal for the second test terminal which does not successfully reproduce the test operation;
and the sending module is used for sequentially sending the stored test instruction corresponding to the second test terminal after the second test terminal successfully executes the test operation.
Optionally, the test operation performed by the first test terminal is triggered by a manual operation of a user, and the apparatus further includes:
the monitoring module is used for monitoring the user operation of each test terminal before the first determining module determines that the first test terminal performs the test operation aiming at the target object positioned at the first coordinate position on the screen, and when any test terminal is monitored to be subjected to the user operation, the test terminal is taken as the first test terminal; or the like, or, alternatively,
and the third determining module is used for determining the first test terminal from a plurality of test terminals according to the selection operation of the user.
Optionally, the apparatus further comprises:
the recording module is used for recording the times of successfully reproducing the test operation executed by the first test terminal by each second test terminal;
a fourth determining module, configured to determine, when the test of each second test terminal is completed, a ratio between the number of times that the second test terminal successfully reproduces the test operation executed by the first test terminal and the number of times that all test operations are executed by the first test terminal, so as to obtain a reproduction rate of the second test terminal relative to the first test terminal;
a fifth determining module, configured to determine a fitness of the first test terminal, where the fitness is a sum of recurrence rates of each second test terminal relative to the first test terminal;
the fitness of the test terminal is used for determining the first test terminal from the plurality of test terminals before the test process is started each time.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that, in the above embodiments, for the convenience and simplicity of description, the division of the functional units is illustrated, but the respective parts thereof are not necessarily essential to the present disclosure. For example, the first determining module and the second determining module may be independent functional modules or may be an integrated functional module. In addition, those skilled in the art should also know that in practical applications, the above function distribution can also be performed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units to perform all or part of the above described functions. For the specific working process of the functional unit described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, performs the steps of the testing method of any of the above embodiments.
The present disclosure also provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the testing method of any of the above embodiments.
Fig. 4 is a block diagram illustrating an electronic device 400 according to an example embodiment. As shown in fig. 4, the electronic device 400 may include: a processor 401 and a memory 402. The electronic device 400 may also include one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communications component 405.
The processor 401 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the above-mentioned testing method. The memory 402 is used to store various types of data to support operations at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as test sample data, test logs, and the like. The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 403 may include a screen and/or audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 402 or transmitted through the communication component 405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 405 may therefore include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described test methods.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the test method described above is also provided. For example, the computer readable storage medium may be the memory 402 comprising program instructions executable by the processor 401 of the electronic device 400 to perform the testing method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned test method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A method of testing, comprising:
determining a test operation executed by a first test terminal aiming at a target object located at a first coordinate position on a screen;
determining an equivalent coordinate position corresponding to the first coordinate position on a second test terminal screen, wherein the equivalent coordinate position is the coordinate position of an object which is displayed on the second test terminal screen and is the same as the target object, and the second test terminal comprises a plurality of test terminals with different models;
and generating a test instruction according to the test operation and the equivalent coordinate position, wherein the test instruction is used for a second test terminal to reproduce the test operation at the equivalent coordinate position.
2. The method of claim 1, further comprising:
judging whether each second test terminal successfully reproduces the test operation;
and if any one of the second test terminals does not successfully reproduce the test operation, prompting a user to suspend the test operation executed by the first test terminal so as to remind the user to manually trigger the second test terminal to execute the test operation.
3. The method of claim 1, further comprising:
judging whether each second test terminal successfully reproduces the test operation;
for a second test terminal which does not successfully reproduce the test operation, storing a test instruction corresponding to the second test terminal, which is generated according to each subsequent test operation of the first test terminal;
and after the second test terminal successfully executes the test operation, sequentially sending the stored test instruction corresponding to the second test terminal.
4. The method according to any one of claims 1 to 3, wherein the test operation executed by the first test terminal is triggered by a manual operation of a user, and before the test operation executed by the first test terminal for the target object located at the first coordinate position on the screen is determined, the method comprises the following steps:
monitoring the user operation of each test terminal, and taking the test terminal as the first test terminal when any test terminal is monitored to be subjected to the user operation; or the like, or, alternatively,
and determining the first test terminal from a plurality of test terminals according to the selection operation of the user.
5. The method according to any one of claims 1-3, further comprising: recording the times of successfully reproducing the test operation executed by the first test terminal by each second test terminal;
when the test of each second test terminal is completed, determining the ratio of the number of times that the second test terminal successfully reproduces the test operation executed by the first test terminal to the number of times that the first test terminal executes all test operations, and obtaining the reproduction rate of the second test terminal relative to the first test terminal;
determining the fitness of the first test terminal, wherein the fitness is the sum of the recurrence rates of the second test terminals relative to the first test terminal;
the fitness of the test terminal is used for determining the first test terminal from the plurality of test terminals before the test process is started each time.
6. A test apparatus, comprising:
the first determination module is used for determining the test operation executed by the first test terminal aiming at the target object positioned at the first coordinate position on the screen;
the second determination module is used for determining an equivalent coordinate position corresponding to the first coordinate position on a second test terminal screen, wherein the equivalent coordinate position is the coordinate position of an object which is displayed on the second test terminal screen and is the same as the target object, and the second test terminal comprises a plurality of test terminals with different models;
and the generating module is used for generating a test instruction according to the test operation and the equivalent coordinate position, wherein the test instruction is used for a second test terminal to reproduce the test operation at the equivalent coordinate position.
7. The apparatus of claim 6, further comprising:
the first judging module is used for judging whether each second testing terminal successfully reproduces the testing operation;
and the prompting module is used for prompting a user to suspend the test operation executed by the first test terminal when any one second test terminal does not successfully reproduce the test operation so as to remind the user to manually trigger the second test terminal to execute the test operation.
8. The apparatus of claim 6, further comprising:
the second judging module is used for judging whether each second testing terminal successfully reproduces the testing operation;
the storage module is used for storing a test instruction which is generated according to each subsequent test operation of the first test terminal and corresponds to the second test terminal for the second test terminal which does not successfully reproduce the test operation;
and the sending module is used for sequentially sending the stored test instruction corresponding to the second test terminal after the second test terminal successfully executes the test operation.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 5.
CN201911167173.1A 2019-11-25 2019-11-25 Test method, device, storage medium and electronic equipment Active CN111026651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911167173.1A CN111026651B (en) 2019-11-25 2019-11-25 Test method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911167173.1A CN111026651B (en) 2019-11-25 2019-11-25 Test method, device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111026651A true CN111026651A (en) 2020-04-17
CN111026651B CN111026651B (en) 2024-01-16

Family

ID=70206640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911167173.1A Active CN111026651B (en) 2019-11-25 2019-11-25 Test method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111026651B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718706A (en) * 2023-01-09 2023-02-28 深圳曦华科技有限公司 Debugging method for touch screen TP algorithm and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861848A (en) * 2017-11-14 2018-03-30 东软集团股份有限公司 Gesture password method of testing, device, readable storage medium storing program for executing and electronic equipment
CN108009057A (en) * 2017-11-14 2018-05-08 东软集团股份有限公司 For the test method of Password Input, device, storage medium and electronic equipment
CN109922484A (en) * 2017-12-13 2019-06-21 大唐移动通信设备有限公司 A kind of test method and test device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861848A (en) * 2017-11-14 2018-03-30 东软集团股份有限公司 Gesture password method of testing, device, readable storage medium storing program for executing and electronic equipment
CN108009057A (en) * 2017-11-14 2018-05-08 东软集团股份有限公司 For the test method of Password Input, device, storage medium and electronic equipment
CN109922484A (en) * 2017-12-13 2019-06-21 大唐移动通信设备有限公司 A kind of test method and test device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718706A (en) * 2023-01-09 2023-02-28 深圳曦华科技有限公司 Debugging method for touch screen TP algorithm and related device
CN115718706B (en) * 2023-01-09 2023-04-18 深圳曦华科技有限公司 Debugging method for touch screen TP algorithm and related device

Also Published As

Publication number Publication date
CN111026651B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
CN108959068B (en) Software interface testing method, device and storage medium
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN104424089A (en) Terminal testing method and device
CN111240973B (en) Equipment testing method and system based on simulation and readable storage medium
CN109800135B (en) Information processing method and terminal
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CN112416318B (en) Micro-service development method and device, storage medium and electronic equipment
CN112115038A (en) Application testing method and device and storage medium
CN110928770B (en) Software testing method, device, system, storage medium and electronic equipment
JP2021192214A (en) Method and device for verifying operation states of applications
CN110795353B (en) Quick application debugging method, device, equipment and storage medium
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
CN113064816B (en) Testing device and testing method for programmable logic device software
CN111026651B (en) Test method, device, storage medium and electronic equipment
CN110851370B (en) Program testing method and device and storage medium
CN112559335A (en) Test method, device, equipment and storage medium
CN106484604B (en) Application test control method and device
CN107197088A (en) Screenshot method and device based on Android mobile device
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN108400901B (en) Application testing method, terminal device and computer readable storage medium
CN110795330A (en) Monkey pressure testing method and device
CN116010145A (en) Abnormality detection method, abnormality detection device, abnormality detection equipment and storage medium
CN112788640B (en) Communication equipment testing method and device, storage medium and terminal
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable 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
GR01 Patent grant
GR01 Patent grant