CN110968501A - Linkage testing method and device for application program compatibility - Google Patents

Linkage testing method and device for application program compatibility Download PDF

Info

Publication number
CN110968501A
CN110968501A CN201811163262.4A CN201811163262A CN110968501A CN 110968501 A CN110968501 A CN 110968501A CN 201811163262 A CN201811163262 A CN 201811163262A CN 110968501 A CN110968501 A CN 110968501A
Authority
CN
China
Prior art keywords
test
compatibility
equipment
application program
devices
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
CN201811163262.4A
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811163262.4A priority Critical patent/CN110968501A/en
Publication of CN110968501A publication Critical patent/CN110968501A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a linkage test method and a linkage test device for application program compatibility, wherein the method comprises the following steps: establishing connection with a plurality of test devices provided with the same application program to be tested, acquiring display interfaces of the plurality of test devices and simultaneously mapping the display interfaces to the appointed control device; selecting any test equipment from the plurality of test equipment to be marked as main test equipment based on a preset condition monitored by the control equipment, and marking other test equipment as auxiliary test equipment; and acquiring a compatibility test instruction received by the application program to be tested in the main test equipment, sending the compatibility test instruction to each slave test equipment, and synchronously responding to the compatibility test instruction by each slave test equipment to complete the linkage test of the compatibility of the same application program to be tested in the plurality of test equipment. Based on the method provided by the invention, a plurality of test devices can be operated simultaneously, the time and labor cost are greatly saved, and the complexity of the compatibility test is simplified.

Description

Linkage testing method and device for application program compatibility
Technical Field
The invention relates to the technical field of testing, in particular to a linkage testing method and device for application program compatibility.
Background
The application compatibility test is a test of whether the software to be tested can be compatible on different terminal operating system platforms, and especially with the continuous development of the intelligent terminal technology, the compatibility test of the application in the terminal is very important. The compatibility test can further improve the quality of products, so that the application program is in peace with other software as much as possible, and independence of the platform is achieved as much as possible. However, in the current mobile internet, the compatibility verification of the application program usually needs to be performed on dozens or even hundreds of mobile devices, and since only one device can be operated at the same time, a large amount of manpower and time are consumed for a huge testing task, and the efficiency is low.
Disclosure of Invention
The invention provides a linkage testing method and a linkage testing device for application program compatibility, which aim to overcome the problems or at least partially solve the problems.
According to one aspect of the invention, a linkage testing method for application program compatibility is provided, which comprises the following steps:
establishing connection with a plurality of test devices provided with the same application program to be tested, acquiring display interfaces of the plurality of test devices and simultaneously mapping the display interfaces to the appointed control device;
selecting any test equipment from the plurality of test equipment to be marked as main test equipment based on a preset condition monitored by the control equipment, and marking other test equipment as auxiliary test equipment;
and acquiring a compatibility test instruction received by the application program to be tested in the main test equipment, sending the compatibility test instruction to each slave test equipment, and synchronously responding to the compatibility test instruction by each slave test equipment to complete the linkage test of the compatibility of the same application program to be tested in the plurality of test equipment.
Optionally, before establishing connection with multiple test devices installed with the same application program to be tested, acquiring display interfaces of the multiple test devices and simultaneously mapping the display interfaces to the designated control device, the method further includes:
selecting a plurality of test devices, and setting the use states of the plurality of test devices as occupation states;
and recording the number of the test devices in the occupied state and the identification information of each test device.
Optionally, the establishing a connection with a plurality of test devices installed with the same application program to be tested, acquiring display interfaces of the plurality of test devices and mapping to the designated control device at the same time includes:
establishing connection with a plurality of test devices provided with the same application program to be tested;
dividing a plurality of display areas on a designated page of a browser arranged on the control equipment according to the number of the test equipment;
and mapping the display interface of each test device to the plurality of display areas respectively.
Optionally, the selecting, based on the preset condition monitored by the control device, any one of the plurality of test devices as a master test device, and the other test devices as slave test devices, includes:
if the fact that a mouse pointer floats above any display area is monitored in the designated page of the browser, a first position of the mouse pointer in the designated page of the browser is obtained;
and calculating a display area to which the first position belongs according to pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as main test equipment, and marking other test equipment as auxiliary test equipment.
Optionally, the selecting, based on the preset condition monitored by the control device, any one of the plurality of test devices as a master test device, and the other test devices as slave test devices, further includes:
if the change of the suspension position of the mouse pointer is monitored in the specified page of the browser, acquiring a second position of the mouse pointer in the specified page of the browser;
and calculating a display area to which the second position belongs according to the pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as new main test equipment, and marking other test equipment as auxiliary test equipment.
Optionally, the obtaining a compatibility test instruction received by an application program to be tested in the master test device, and sending the compatibility test instruction to each slave test device includes:
monitoring the test operation of the control equipment on the application program to be tested in the main test equipment, and analyzing the test operation into an executable compatibility test instruction;
and sending the compatibility test instruction to each slave test device.
Optionally, after the slave test devices synchronously respond to the compatibility test instruction and complete the linkage test on the compatibility of the same application program to be tested in the multiple test devices, the method further includes:
and collecting interface changes after each testing device responds to the compatibility testing instruction, and transmitting the interface changes to a display area corresponding to the browser in real time.
Optionally, after the slave test devices synchronously respond to the compatibility test instruction and complete the linkage test on the compatibility of the same application program to be tested in the multiple test devices, the method further includes:
and collecting a response log of the application program to be tested in each test device responding to the compatibility test instruction, and obtaining a compatibility test result of each test device after analyzing the response log.
According to another aspect of the present invention, there is also provided a linkage testing apparatus for application compatibility, comprising:
the mapping module is configured to establish connection with a plurality of test devices provided with the same application program to be tested, acquire display interfaces of the plurality of test devices and map the display interfaces to the designated control device;
the marking module is configured to select any one test device from the plurality of test devices to be marked as a master test device based on a preset condition monitored by the control device, and other test devices to be marked as slave test devices;
and the test module is configured to acquire a compatibility test instruction received by the application program to be tested in the main test equipment, send the compatibility test instruction to each slave test equipment, and synchronously respond to the compatibility test instruction by each slave test equipment to complete the linkage test of the compatibility of the same application program to be tested in the plurality of test equipment.
Optionally, the apparatus further comprises: the recording module is configured to select a plurality of test devices and set the use states of the plurality of test devices to be occupied states;
and recording the number of the test devices in the occupied state and the identification information of each test device.
Optionally, the mapping module is further configured to: establishing connection with a plurality of test devices provided with the same application program to be tested;
dividing a plurality of display areas on a designated page of a browser arranged on the control equipment according to the number of the test equipment;
and mapping the display interface of each test device to the plurality of display areas respectively.
Optionally, the marking module is further configured to:
when the fact that a mouse pointer floats above any display area is monitored in an appointed page of the browser, a first position of the mouse pointer in the appointed page of the browser is obtained;
and calculating a display area to which the first position belongs according to pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as main test equipment, and marking other test equipment as auxiliary test equipment.
Optionally, the marking module is further configured to:
when the change of the suspension position of the mouse pointer is monitored in the specified page of the browser, acquiring a second position of the mouse pointer in the specified page of the browser;
and calculating a display area to which the second position belongs according to the pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as new main test equipment, and marking other test equipment as auxiliary test equipment.
Optionally, the test module is further configured to:
monitoring the test operation of the control equipment on the application program to be tested in the main test equipment, and analyzing the test operation into an executable compatibility test instruction;
and sending the compatibility test instruction to each slave test device.
Optionally, the apparatus further comprises:
and the interface collection module is configured to collect interface changes after each testing device responds to the compatibility testing instruction, and transmit the interface changes to a display area corresponding to the browser in real time.
Optionally, the apparatus further comprises:
and the log collection module is configured to collect a response log of the application program to be tested in each test device responding to the compatibility test instruction, and obtain a compatibility test result of each test device after analyzing the response log.
According to another aspect of the present invention, there is also provided a computer storage medium having computer program code stored thereon, which, when run on a computing device, causes the computing device to execute any of the above-described methods for linkage testing of application compatibility.
According to another aspect of the present invention, there is also provided a computing device comprising:
a processor;
a memory storing computer program code;
when executed by the processor, the computer program code causes the computing device to perform any of the above described methods of application compatibility linkage testing.
The invention provides a linkage test method and a linkage test device for application program compatibility. When the compatibility test is carried out on the application programs in the plurality of test devices mapped to the control device, only the compatibility test instruction needs to be sent to the application program in the main test device, and the compatibility test instruction can be automatically synchronized to the slave test device, so that the linkage test on the same application program to be tested in the plurality of test devices is completed. Based on the method provided by the invention, a plurality of test devices can be operated simultaneously, and all control instructions for the main test device can be synchronously copied to the slave test devices, so that the slave test devices receive the same control as the main test device, the aim of performing compatibility test on the plurality of devices by one-time operation is fulfilled, the time and labor cost are greatly saved, and the complexity of the compatibility test is simplified.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention 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
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a linkage testing method for application compatibility according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a display interface of each testing device displayed on a specified browser page according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a test device and a control terminal according to an embodiment of the present invention;
FIG. 4 is a block diagram of an overall architecture for linkage testing of application compatibility in accordance with a preferred embodiment of the present invention;
FIG. 5 is a schematic view of a display interface of a plurality of test devices mapped to a browser in accordance with a preferred embodiment of the present invention;
FIG. 6 is a schematic interface diagram of an application under test in a test apparatus according to a preferred embodiment of the present invention;
FIG. 7 is a schematic diagram of the synchronized operation of multiple test devices in accordance with a preferred embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a linkage testing device for application compatibility according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a linkage testing device for application compatibility according to a preferred embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic flow chart of a linkage testing method for application compatibility according to an embodiment of the present invention, and as shown in fig. 1, the linkage testing method for application compatibility according to an embodiment of the present invention may include:
step S102, establishing connection with a plurality of test devices provided with the same application program to be tested, acquiring display interfaces of the plurality of test devices and simultaneously mapping the display interfaces to appointed control devices;
step S104, selecting any test equipment from the plurality of test equipment to be marked as main test equipment based on preset conditions monitored by the control equipment, and marking other test equipment as auxiliary test equipment;
and step S106, acquiring a compatibility test instruction received by the application program to be tested in the main test equipment, sending the compatibility test instruction to each slave test equipment, and synchronously responding to the compatibility test instruction by each slave test equipment to complete the linkage test of the compatibility of the same application program to be tested in a plurality of test equipment.
The embodiment of the invention provides a linkage test method for application program compatibility. When the compatibility test is carried out on the application programs in the plurality of test devices mapped to the control device, only the compatibility test instruction needs to be sent to the application program in the main test device, and the compatibility test instruction can be automatically synchronized to the slave test device, so that the linkage test on the same application program to be tested in the plurality of test devices is completed. Based on the method provided by the embodiment of the invention, a plurality of test devices can be operated simultaneously, and all control instructions for the main test device can be synchronously copied to the slave test devices, so that the slave test devices receive the same control as the main test device, the aim of performing compatibility test on a plurality of devices by one-time operation is fulfilled, the time and labor cost is greatly saved, and the complexity of the compatibility test is simplified. The control terminal in the embodiment of the present invention may be a terminal device such as a PC, and when the display interfaces of the plurality of test devices are mapped to the control terminal, the display interfaces of the plurality of test devices may be mapped to a browser page installed in the control terminal or a page based on other application programs in the control terminal, which is not limited in the present invention.
The compatibility test of the application program needs to be performed in devices of different brands and different models, and in order to ensure high efficiency of implementing the linkage test of the compatibility of the application program, the embodiment of the present invention may further include, before step S102: selecting a plurality of test devices, and setting the use states of the plurality of test devices as occupation states; and recording the number of the test devices in the occupied state and the identification information of each test device. Namely, a batch of test equipment with different models, versions and manufacturers is selected in batch, and the test equipment is set to be in an occupied state, so that the exclusive purpose is achieved.
After the test equipment which needs to be subjected to the compatibility test is selected, the step S102 may be executed to establish connection with the plurality of test equipment, obtain the display interfaces of the plurality of test equipment, and simultaneously map the display interfaces to the designated control equipment. In practical application, the method can be firstly connected with a plurality of test devices provided with the same application program to be tested; and dividing a plurality of display areas on a designated page of a browser arranged in the control equipment according to the number of the test equipment, and further mapping the display interface of each test equipment to the plurality of display areas respectively. The designated page of the browser can be a current page of the browser or a page newly built based on a network address.
Because the system can acquire the information and the occupation state of each test device, the operation interface information of different test devices, generally the operation interface information of each mobile terminal, can be displayed on the appointed page of the browser according to the different numbers and models of the occupied devices. When the browser designates a page to divide a display area, the display area can be displayed in the designated page of the browser according to the browsing habits of testers, as shown in fig. 2, the display interfaces of the test devices are displayed in the designated page of the browser side by side, or displayed in groups of test devices of the same manufacturer and different models, displayed in different groups of operating systems, or displayed in the designated page of the browser in other ways, the sizes of the display areas are preset to be the same, or set according to the size of a main interface screen of the test device, which is not limited in the present invention. Fig. 2 shows that the display interfaces of 4 test devices are mapped to the current page of the browser, and in practical applications, other numbers of test devices may be selected to be mapped to the browser, which is not limited in the present invention.
By way of introduction, any one test device may be selected from the plurality of test devices as a master test device and the other test devices as slave test devices based on a preset condition monitored by the control device. The preset condition may be a floating position of a mouse in the control terminal. For example, if it is monitored that the mouse pointer floats above any display area in the designated page of the browser, a first position of the mouse pointer in the designated page of the browser is obtained; and calculating a display area to which the first position belongs according to pixels of a current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as main test equipment, and marking other test equipment as auxiliary test equipment. That is to say, when the main test device is selected from the display interfaces of the plurality of test devices displayed in the designated page of the browser, the system can automatically mark the test device correspondingly displayed in the display area where the mouse suspension position is located as the main test device and the other test devices as the auxiliary test devices only by moving the mouse to the display area where the selected test device is located. Aiming at any compatibility test operation of the main test equipment, the system synchronously copies the operation to other slave test equipment, and all the test equipment is synchronously controlled.
During the application compatibility test, the main test equipment can also be switched according to the indication of a tester, namely, if the change of the suspension position of the mouse pointer is monitored in the specified page of the browser, the second position of the mouse pointer in the specified page of the browser is obtained; and calculating a display area to which the second position belongs according to pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as new main test equipment, and marking other test equipment as auxiliary test equipment. When the mouse moves on the display interface of each test device in the designated page of the browser, the display area of which test device the mouse pointer floats on can be calculated according to the interface pixels, the test device is marked as a master test device, other test devices are marked as slave test devices, and the test device is the master test device as long as the mouse pointer floats on the interface of which test device currently.
The step S106 of obtaining the compatibility test instruction received by the application program to be tested in the master test device, and sending the compatibility test instruction to each slave test device may include: the method comprises the steps that test operation of the monitoring control equipment on an application program to be tested in the main test equipment is monitored, and the test operation is analyzed into executable compatibility test instructions; and sending the compatibility test instruction to each slave test device. Each test device has a respective control process, and after the main test device analyzes and operates, the operation instruction is synchronized to the control processes of other secondary devices, so that the synchronization of the test instruction is realized.
Optionally, after each testing device responds to an operation instruction for executing a compatibility test on the application program, interface changes of each testing device after responding to the compatibility test instruction can be collected and transmitted to a display area corresponding to the browser in real time, so that the interface changes of each testing device are fed back in real time, a tester can conveniently observe the interface changes in a unified manner, and the running states of the application program to be tested on different testing devices can be obtained in time. In addition, a response log of the application program to be tested in each test device responding to the compatibility test instruction can be collected, and the compatibility test result of each test device can be obtained after the response log is analyzed, so that the application program can be further improved in the following process.
The linkage testing method for the compatibility of the application program provided by the embodiment of the invention can be applied to a cloud real machine. The cloud real machine is a technology capable of remotely controlling mobile phone equipment through a browser, and can efficiently and conveniently realize remote calling of real mobile equipment. The following describes the scheme introduced in the above embodiment in detail by taking a cloud-based facsimile machine as an example. As can be seen from the structural schematic diagram of the test device and the control terminal shown in fig. 3, a plurality of test devices can be simultaneously mapped to the control terminal for unified control. FIG. 4 is a block diagram illustrating the overall architecture of the linkage test for application compatibility according to the preferred embodiment of the present invention.
Firstly, after a tester selects 3 test devices in batch, the state of the test device is automatically marked as an occupied state, and is synchronously pushed to all users of the device to be tested through zmq (door transmission technology), and after the tester selects the test device, all users of the cloud and real machine can synchronously change the states of the test devices into the occupied state, and other testers are not allowed to occupy the devices again, namely the occupied devices in fig. 4;
secondly, storing the device information of the plurality of test devices in the occupied state, and mapping the display interface of the test device to the current page of the browser according to the number and the types of the occupied devices, as shown in fig. 5, mapping the display interfaces of the 3 test devices to the schematic diagram of the browser;
thirdly, opening the same application program to be tested in each test device; when the application program to be tested is opened, the application program to be tested can be selectively opened through the display interface of each testing device displayed in the browser; FIG. 6 is a schematic diagram illustrating an open interface of an application under test in each test device in a browser;
sliding the mouse to any display area in the browser, and simultaneously marking the test equipment correspondingly displayed in the display area as main test equipment and other test equipment as auxiliary test equipment automatically;
fifthly, aiming at any operation of the main test equipment, the system synchronously copies and operates to the auxiliary test equipment; because each test device has respective control process, after the main test device analyzes and operates, the operation instruction can be synchronized to the control processes of other slave test devices, so that the instruction synchronization is realized; FIG. 7 is a schematic diagram illustrating browser-based synchronized operation of multiple test devices; the display interface of each test device in the browser can correspond to different test operation buttons for executing compatibility tests;
collecting interface changes of all the test devices, and displaying the interface changes on the browser in a seamless mode;
seventhly, when the hovering position of the mouse pointer is detected to change in the application program compatibility test process, the current hovering position of the mouse pointer is obtained, a display area to which the position belongs is calculated according to pixels of a current display interface of the control device, the test device correspondingly displayed in the display area is marked as new main test device, and other test devices are marked as auxiliary test devices;
and eighthly, collecting response logs of the application program to be tested in each test device responding to the compatibility test instruction, and obtaining the compatibility test result of each test device after analyzing the response logs.
For example, when a compatibility test is performed on a mobile search application, hot versions of mainstream manufacturers and different operating systems need to be covered, and the number of the machine types involved is less than one hundred. Each test device required five minutes for basic functional coverage verification, a total of 500 minutes, before the multi-screen linkage was used. Since the verification is performed by a single device, subtle differences in the interface are not easy to find. After the multi-screen linkage is used, ten testing devices are selected each time on the premise of ensuring the verification accuracy, the verification needs to be carried out for ten times, and 50 minutes is needed in total. And ten test equipment are displayed on the display of the control terminal at the same time, any inconsistent point can be found clearly, the time is shorter, and the accuracy is higher. The test efficiency can also be doubled if more test devices are selected at the same time.
Based on the same inventive concept, an embodiment of the present invention further provides a linkage testing device for application compatibility, as shown in fig. 8, the linkage testing device for application compatibility provided in the embodiment of the present invention may include:
the mapping module 810 is configured to establish connection with a plurality of test devices installed with the same application program to be tested, acquire display interfaces of the plurality of test devices, and map the display interfaces to designated control devices at the same time;
a marking module 820 configured to select any one test device from the plurality of test devices to be a master test device based on a preset condition monitored by the control device, and mark other test devices as slave test devices;
the test module 830 is configured to obtain a compatibility test instruction received by an application program to be tested in the master test device, send the compatibility test instruction to each slave test device, and enable each slave test device to synchronously respond to the compatibility test instruction to complete a linkage test on the compatibility of the same application program to be tested in the multiple test devices.
In a preferred embodiment of the present invention, as shown in fig. 9, the apparatus may further include:
the recording module 840 is configured to select a plurality of test devices and set the use states of the plurality of test devices to be occupied states; and recording the number of the test devices in the occupied state and the identification information of each test device.
In a preferred embodiment of the present invention, the mapping module 810 may further be configured to: establishing connection with a plurality of test devices provided with the same application program to be tested; dividing a plurality of display areas on a designated page of a browser arranged on the control equipment according to the number of the test equipment; and mapping the display interface of each test device to a plurality of display areas respectively.
In a preferred embodiment of the present invention, the marking module 820 may further be configured to:
when the mouse pointer is monitored to be suspended above any display area in an appointed page of the browser, acquiring a first position of the mouse pointer in the appointed page of the browser; and calculating a display area to which the first position belongs according to pixels of a current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as main test equipment, and marking other test equipment as auxiliary test equipment.
In a preferred embodiment of the present invention, the marking module 820 may further be configured to: when the change of the suspension position of the mouse pointer is monitored in the specified page of the browser, acquiring a second position of the mouse pointer in the specified page of the browser; and calculating a display area to which the second position belongs according to pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as new main test equipment, and marking other test equipment as auxiliary test equipment.
In a preferred embodiment of the present invention, the test module 830 can be further configured to: the method comprises the steps that test operation of the monitoring control equipment on an application program to be tested in the main test equipment is monitored, and the test operation is analyzed into executable compatibility test instructions; and sending the compatibility test instruction to each slave test device.
In a preferred embodiment of the present invention, the apparatus may further include:
the interface collecting module 850 is configured to collect interface changes after each testing device responds to the compatibility testing instruction, and transmit the interface changes to a display area corresponding to the browser in real time.
In a preferred embodiment of the present invention, the apparatus may further include:
the log collection module 860 is configured to collect a response log of the application to be tested in each test device in response to the compatibility test instruction, and obtain a compatibility test result of each test device after analyzing the response log.
Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, where a computer program code is stored, and when the computer program code runs on a computing device, the computing device is caused to execute any one of the above-mentioned linkage test methods for application compatibility.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a processor;
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform any of the above described methods of linked testing of application compatibility.
The embodiment of the invention provides a linkage test method and a linkage test device for application program compatibility, which can simultaneously operate a plurality of test devices, synchronously copy all control instructions of a main test device to a slave test device, so that the slave test device receives the same control as the main test device, and achieve the aim of performing compatibility test on a plurality of devices by one-time operation. And the switching between the master equipment and the slave equipment can be carried out at any time during the test, and the interface change of each test equipment is displayed in a browser of the control terminal in time so as to be conveniently checked by a tester. Finally, the compatibility test result of each test device can be analyzed and obtained by collecting the response logs responding to the compatibility test instruction of each test device, so that later-stage testers can complete the application program to be tested conveniently. The method provided by the embodiment of the invention is simple and effective, greatly saves time and labor cost, and simplifies the complexity of the compatibility test.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.

Claims (10)

1. A linkage test method for application program compatibility comprises the following steps:
establishing connection with a plurality of test devices provided with the same application program to be tested, acquiring display interfaces of the plurality of test devices and simultaneously mapping the display interfaces to the appointed control device;
selecting any test equipment from the plurality of test equipment to be marked as main test equipment based on a preset condition monitored by the control equipment, and marking other test equipment as auxiliary test equipment;
and acquiring a compatibility test instruction received by the application program to be tested in the main test equipment, sending the compatibility test instruction to each slave test equipment, and synchronously responding to the compatibility test instruction by each slave test equipment to complete the linkage test of the compatibility of the same application program to be tested in the plurality of test equipment.
2. The method of claim 1, wherein before establishing connection with a plurality of test devices installed with the same application program to be tested, acquiring display interfaces of the plurality of test devices and simultaneously mapping the display interfaces to a designated control device, the method further comprises:
selecting a plurality of test devices, and setting the use states of the plurality of test devices as occupation states;
and recording the number of the test devices in the occupied state and the identification information of each test device.
3. The method of claim 1 or 2, wherein the establishing connection with a plurality of test devices installed with the same application program to be tested, acquiring display interfaces of the plurality of test devices and mapping to a designated control device simultaneously comprises:
establishing connection with a plurality of test devices provided with the same application program to be tested;
dividing a plurality of display areas on a designated page of a browser arranged on the control equipment according to the number of the test equipment;
and mapping the display interface of each test device to the plurality of display areas respectively.
4. The method of any of claims 1-3, wherein the selecting any test device from the plurality of test devices as a master test device and other test devices as slave test devices based on a preset condition monitored at the control device comprises:
if the fact that a mouse pointer floats above any display area is monitored in the designated page of the browser, a first position of the mouse pointer in the designated page of the browser is obtained;
and calculating a display area to which the first position belongs according to pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as main test equipment, and marking other test equipment as auxiliary test equipment.
5. The method of any of claims 1-4, wherein the selecting any test device from the plurality of test devices as a master test device and other test devices as slave test devices based on a preset condition monitored at the control device further comprises:
if the change of the suspension position of the mouse pointer is monitored in the specified page of the browser, acquiring a second position of the mouse pointer in the specified page of the browser;
and calculating a display area to which the second position belongs according to the pixels of the current display interface of the control equipment, marking the test equipment correspondingly displayed in the display area as new main test equipment, and marking other test equipment as auxiliary test equipment.
6. The method according to any one of claims 1 to 5, wherein the obtaining of the compatibility test instruction received by the application program to be tested in the master test device and the sending of the compatibility test instruction to each slave test device includes:
monitoring the test operation of the control equipment on the application program to be tested in the main test equipment, and analyzing the test operation into an executable compatibility test instruction;
and sending the compatibility test instruction to each slave test device.
7. The method according to any one of claims 1 to 6, wherein after the slave test devices synchronously respond to the compatibility test command and complete the linkage test of the compatibility of the same application program to be tested in the plurality of test devices, the method further comprises:
and collecting interface changes after each testing device responds to the compatibility testing instruction, and transmitting the interface changes to a display area corresponding to the browser in real time.
8. A linkage testing device for application compatibility, comprising:
the mapping module is configured to establish connection with a plurality of test devices provided with the same application program to be tested, acquire display interfaces of the plurality of test devices and map the display interfaces to the designated control device;
the marking module is configured to select any one test device from the plurality of test devices to be marked as a master test device based on a preset condition monitored by the control device, and other test devices to be marked as slave test devices;
and the test module is configured to acquire a compatibility test instruction received by the application program to be tested in the main test equipment, send the compatibility test instruction to each slave test equipment, and synchronously respond to the compatibility test instruction by each slave test equipment to complete the linkage test of the compatibility of the same application program to be tested in the plurality of test equipment.
9. A computer storage medium having computer program code stored thereon which, when run on a computing device, causes the computing device to perform the method of linked testing of application compatibility of any of claims 1-7.
10. A computing device, comprising:
a processor;
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform the method of linked testing of application compatibility of any of claims 1-7.
CN201811163262.4A 2018-09-30 2018-09-30 Linkage testing method and device for application program compatibility Pending CN110968501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811163262.4A CN110968501A (en) 2018-09-30 2018-09-30 Linkage testing method and device for application program compatibility

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811163262.4A CN110968501A (en) 2018-09-30 2018-09-30 Linkage testing method and device for application program compatibility

Publications (1)

Publication Number Publication Date
CN110968501A true CN110968501A (en) 2020-04-07

Family

ID=70029481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811163262.4A Pending CN110968501A (en) 2018-09-30 2018-09-30 Linkage testing method and device for application program compatibility

Country Status (1)

Country Link
CN (1) CN110968501A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111693806A (en) * 2020-06-02 2020-09-22 北京轩宇空间科技有限公司 Method, device and system for anti-radiation test of components
CN113204494A (en) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 Terminal remote test platform and method, electronic equipment and readable medium
CN114064447A (en) * 2020-08-05 2022-02-18 腾讯科技(深圳)有限公司 Interface test method and device, storage medium and terminal
CN114088108A (en) * 2020-08-24 2022-02-25 航天科工惯性技术有限公司 Test method, device and system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140211021A1 (en) * 2013-01-25 2014-07-31 Samsung Electronics Co., Ltd. Test system for evaluating mobile device and driving method thereof
CN105573905A (en) * 2014-10-11 2016-05-11 航天信息股份有限公司 Software compatibility testing method and system
CN107066379A (en) * 2017-01-23 2017-08-18 广州唯品会信息科技有限公司 software interface compatibility test method and system
CN107357726A (en) * 2017-07-04 2017-11-17 广州云测信息技术有限公司 A kind of application compatibility method of testing and device
CN107957951A (en) * 2017-12-11 2018-04-24 北京奇虎科技有限公司 A kind of method and device of the function of test application program
CN108307021A (en) * 2018-01-18 2018-07-20 中国工商银行股份有限公司 Mobile terminal parallel to follow test equipment, cloud prototype and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140211021A1 (en) * 2013-01-25 2014-07-31 Samsung Electronics Co., Ltd. Test system for evaluating mobile device and driving method thereof
CN105573905A (en) * 2014-10-11 2016-05-11 航天信息股份有限公司 Software compatibility testing method and system
CN107066379A (en) * 2017-01-23 2017-08-18 广州唯品会信息科技有限公司 software interface compatibility test method and system
CN107357726A (en) * 2017-07-04 2017-11-17 广州云测信息技术有限公司 A kind of application compatibility method of testing and device
CN107957951A (en) * 2017-12-11 2018-04-24 北京奇虎科技有限公司 A kind of method and device of the function of test application program
CN108307021A (en) * 2018-01-18 2018-07-20 中国工商银行股份有限公司 Mobile terminal parallel to follow test equipment, cloud prototype and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111693806A (en) * 2020-06-02 2020-09-22 北京轩宇空间科技有限公司 Method, device and system for anti-radiation test of components
CN111693806B (en) * 2020-06-02 2022-08-05 北京轩宇空间科技有限公司 Method, device and system for anti-radiation test of components
CN114064447A (en) * 2020-08-05 2022-02-18 腾讯科技(深圳)有限公司 Interface test method and device, storage medium and terminal
CN114064447B (en) * 2020-08-05 2024-05-31 腾讯科技(深圳)有限公司 Interface testing method and device, storage medium and terminal
CN114088108A (en) * 2020-08-24 2022-02-25 航天科工惯性技术有限公司 Test method, device and system and computer readable storage medium
CN113204494A (en) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 Terminal remote test platform and method, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
CN110968501A (en) Linkage testing method and device for application program compatibility
CN108804302B (en) Remote testing method, system and related equipment
CN105866575B (en) Vehicle-mounted display comprehensive testing device and testing method
KR100377882B1 (en) Vibration monitoring device and vibration monitoring condition determining device
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
WO2017000424A1 (en) Protocol detection method and apparatus
CN103686813B (en) Device and method for testing automatic switching stability of wireless AP (access point) channel
CN108415857B (en) Universal processing method for serial port data
CN111124877B (en) Train display software testing method, device and system
CN109359032B (en) Test data collection method, device and system and electronic equipment
CN106778955A (en) The system and method that car-mounted terminal is tested automatically is realized based on Quick Response Code identification
CN112988484A (en) Memory device testing method and device, readable storage medium and electronic equipment
TWI476587B (en) Testing method and testing apparatus for testing function of electronic apparatus
CN104301175A (en) WEB service system simulation monitoring method based on browser
CN112339796A (en) Detection method and device for electric locomotive control circuit and mobile terminal
CN113126993B (en) Automatic test method and system applied to vehicle detection software
KR20120133711A (en) Apparatus and method for providing vehicle data for testing product
CN111736951A (en) Simulation method for automatic driving, computer device, and storage medium
CN108011950B (en) Implementation method of remote radio frequency circuit experiment platform
CN108802512B (en) Power distribution system test method and device
CN113199509B (en) Robot joint testing method, system, device, processing equipment and medium
US10834169B2 (en) System and method of communicating with and controlling a test device
CN114064485A (en) Software testing method, system, computer equipment and readable storage medium
CN112783708A (en) DTU hardware testing method, terminal and computer readable storage medium
JP2014102744A (en) Test device of plant monitoring control system, test system, and method thereof

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: 20200407