CN107957951B - Method and device for testing functions of application program - Google Patents

Method and device for testing functions of application program Download PDF

Info

Publication number
CN107957951B
CN107957951B CN201711310021.3A CN201711310021A CN107957951B CN 107957951 B CN107957951 B CN 107957951B CN 201711310021 A CN201711310021 A CN 201711310021A CN 107957951 B CN107957951 B CN 107957951B
Authority
CN
China
Prior art keywords
terminal
test
interface
instruction
main
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.)
Active
Application number
CN201711310021.3A
Other languages
Chinese (zh)
Other versions
CN107957951A (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.)
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 CN201711310021.3A priority Critical patent/CN107957951B/en
Publication of CN107957951A publication Critical patent/CN107957951A/en
Application granted granted Critical
Publication of CN107957951B publication Critical patent/CN107957951B/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/3688Test management for test execution, e.g. scheduling of test suites

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)
  • User Interface Of Digital Computer (AREA)

Abstract

In the scheme, after a test instruction for the application program is received, the cloud test platform can be triggered to simultaneously test the main terminal and the auxiliary terminal, and different terminals do not need to be triggered to be tested by switching between different windows, so that time consumption for testing the functions of the application program can be reduced, and the test efficiency is improved.

Description

Method and device for testing functions of application program
Technical Field
The present invention relates to the field of test technologies, and in particular, to a method and an apparatus for testing functions of an application.
Background
With the continuous development of communication technology, terminals have become an indispensable part of people's daily life, and people can shop, play games, watch videos, learn and the like through the terminals.
The application program is generally tested through a cloud testing platform before being released, the cloud testing is a novel testing scheme based on cloud computing, a set of complete testing environment can be provided, testers can log in the testing environment by means of a virtual desktop and the like to immediately carry out testing, and the software and hardware installation, the environment configuration, the environment maintenance and other prices are transferred to providers of the cloud testing platform through the testing scheme, so that the testers can quickly complete testing by directly utilizing the software and hardware configuration provided in the cloud testing platform. Through the cloud test scheme, the test cost can be remarkably saved, and the test efficiency can be greatly improved.
At present, when an application program function is tested through a cloud test platform, only one terminal can be triggered to be tested under one window of a browser, if a plurality of terminals are to be triggered to be tested, switching needs to be performed in different windows, and the defects of long time consumption and low efficiency exist.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a method and an apparatus for testing the function of an application, which overcome the above problems or at least partially solve the above problems, so as to solve the defects of the prior art, such as long time consumption and low efficiency.
According to a first aspect of the present invention, there is provided a method of testing the functionality of an application, comprising:
acquiring a test instruction aiming at an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner;
sending a test request to a cloud test platform, wherein the test request is used for requesting the main terminal and the at least one auxiliary terminal to be tested corresponding to the test instruction;
and receiving response information returned by the cloud test platform, wherein the response information carries the test results of the main terminal and the at least one auxiliary terminal.
In one embodiment, the method for acquiring the test instruction for the application program according to the above embodiment of the present invention includes:
the test instruction is obtained under a main terminal interface included in a current window of the browser, the current window further comprises at least one auxiliary terminal interface, the main terminal interface corresponds to the main terminal, and the auxiliary terminal interface corresponds to the auxiliary terminal.
In some embodiments, the sending a test request to a cloud test platform according to the method of any of the above embodiments of the present invention includes:
calling connection objects which are respectively created for the main terminal and the at least one auxiliary terminal and correspond to the test instruction according to the test instruction;
and aiming at each connection object, sending a test request to the cloud test platform by adopting the connection object, wherein the test request is used for requesting to test the terminal corresponding to the connection object.
In one embodiment, according to the method of the foregoing embodiment of the present invention, invoking connection objects corresponding to the test instruction respectively created for the primary terminal and the at least one secondary terminal includes:
determining an area where the position triggered by the test instruction is located in the main terminal interface and a first function interface corresponding to the determined area, and calling a connection object which is created for the main terminal and corresponds to the test instruction based on the first function interface;
and for each secondary terminal in the at least one secondary terminal, determining a region of the position triggered by the test instruction mapped in the secondary terminal interface and a second function interface corresponding to the region mapped in the secondary terminal interface, and calling connection objects respectively created for the at least one secondary terminal and corresponding to the test instruction based on the second function interface.
In some embodiments, according to the method of any one of the above embodiments of the present invention, the current window includes any one terminal interface including at least one of an application installation area, a screenshot area, a terminal shortcut key area, and a mouse event area.
In some embodiments, according to the method of any one of the above embodiments of the present invention, the application installation area refers to an area that includes an area that triggers a terminal to install an application after receiving a mouse instruction from any one of the locations;
the screenshot area refers to an area which is included in any position and triggers the terminal to intercept a screen after receiving a mouse instruction;
the terminal shortcut key area refers to an area which triggers the terminal to execute the operation corresponding to the shortcut key after receiving a mouse instruction at any position;
the mouse event area refers to an area which triggers the terminal to execute the mouse event after receiving a mouse instruction at any position.
In some embodiments, before the method according to any of the above embodiments of the present invention obtains the test instruction for the application program, the method further includes:
and calling an initialization connection object respectively created for the main terminal and the at least one auxiliary terminal based on an initialization function interface, and displaying the main terminal interface and the auxiliary terminal interface in the browser according to the initialization connection object.
In some embodiments, the sending a test request to a cloud test platform according to the method of any of the above embodiments of the present invention includes:
and sending a test request to the cloud test platform based on the websocket protocol and/or the hypertext transfer protocol HTTP.
In some embodiments, the method according to any of the above embodiments of the invention, further comprising:
and receiving an updating instruction for updating the terminal interface, and updating the terminal interface in the current window according to the updating instruction.
In some embodiments, the method according to any of the above embodiments of the present invention, receiving an update instruction to update a terminal, includes:
receiving an adding instruction of an adding terminal;
updating the terminal interface in the current window according to the updating instruction, wherein the updating instruction comprises the following steps:
and adding a terminal interface in the current window according to the updating instruction.
In some embodiments, the method according to any of the above embodiments of the present invention, receiving an update instruction to update a terminal, includes:
receiving a deleting instruction of a deleting terminal;
updating the terminal interface in the current window according to the updating instruction, wherein the updating instruction comprises the following steps:
and deleting the terminal interface in the current window according to the updating instruction.
In some embodiments, the method according to any of the above embodiments of the invention, further comprising:
and receiving a switching instruction, and switching the control statuses of the main terminal and the at least one auxiliary terminal according to the switching instruction.
In some embodiments, according to the method of any one of the above embodiments of the present invention, if the at least two secondary terminals are the secondary terminals, the secondary terminal switching the control status with the primary terminal is at least one of the at least two secondary terminals.
In some embodiments, according to the method of any one of the above embodiments of the present invention, before sending the test request to the cloud test platform, the method further includes:
and receiving an instruction of starting the linkage switch, starting linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in a starting state, and stopping linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in a closing state.
In some embodiments, the method according to any of the above embodiments of the invention, further comprising:
receiving an instruction of closing a linkage switch, starting linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in an on state, and stopping linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in an off state;
sending a test request to the cloud test platform according to the instruction, wherein the test request is used for requesting to test the main terminal;
and receiving a response message sent by the cloud test platform, wherein the response message carries the test result of the main terminal.
In a second aspect of embodiments of the present invention, there is provided a terminal for testing a function of an application program, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a test instruction aiming at an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner;
a sending unit, configured to send a test request to a cloud test platform, where the test request is used to request that the main terminal and the at least one auxiliary terminal be tested according to the test instruction;
and the receiving unit is used for receiving response information returned by the cloud test platform, and the response information carries the test results of the main terminal and the at least one auxiliary terminal.
In an embodiment, according to the terminal according to the foregoing embodiment of the present invention, when the obtaining unit obtains the test instruction for the application program, specifically:
the test instruction is obtained under a main terminal interface included in a current window of the browser, the current window further comprises at least one auxiliary terminal interface, the main terminal interface corresponds to the main terminal, and the auxiliary terminal interface corresponds to the auxiliary terminal.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, when the sending unit sends the test request to the cloud test platform, specifically:
calling connection objects which are respectively created for the main terminal and the at least one auxiliary terminal and correspond to the test instruction according to the test instruction;
and aiming at each connection object, sending a test request to the cloud test platform by adopting the connection object, wherein the test request is used for requesting to test the terminal corresponding to the connection object.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, when the sending unit calls connection objects corresponding to the test instruction, which are respectively created for the main terminal and the at least one auxiliary terminal, specifically:
determining an area where the position triggered by the test instruction is located in the main terminal interface and a first function interface corresponding to the determined area, and calling a connection object which is created for the main terminal and corresponds to the test instruction based on the first function interface;
and for each secondary terminal in the at least one secondary terminal, determining a region of the position triggered by the test instruction mapped in the secondary terminal interface and a second function interface corresponding to the region mapped in the secondary terminal interface, and calling connection objects respectively created for the at least one secondary terminal and corresponding to the test instruction based on the second function interface.
In some embodiments, according to the terminal of any previous embodiment of the present invention, the current window includes any terminal interface that includes at least one of an application installation area, a screenshot area, a terminal shortcut key area, and a mouse event area.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, the application installation area refers to an area that includes any one of the locations and triggers the terminal to install an application after receiving a mouse instruction;
the screenshot area refers to an area which is included in any position and triggers the terminal to intercept a screen after receiving a mouse instruction;
the terminal shortcut key area refers to an area which triggers the terminal to execute the operation corresponding to the shortcut key after receiving a mouse instruction at any position;
the mouse event area refers to an area which triggers the terminal to execute the mouse event after receiving a mouse instruction at any position.
In some embodiments, the terminal according to any of the above embodiments of the present invention further includes a presentation unit, configured to call, based on an initialization function interface, initialization connection objects respectively created for the primary terminal and the at least one secondary terminal;
and displaying the main terminal interface and the auxiliary terminal interface in the browser according to the initialized connection object.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, when the sending unit sends the test request to the cloud test platform, specifically:
and sending a test request to the cloud test platform based on the websocket protocol and/or the hypertext transfer protocol HTTP.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, the receiving unit is further configured to receive an update instruction for updating the terminal interface;
the terminal interface updating device further comprises an updating unit used for updating the terminal interface in the current window according to the updating instruction.
In some embodiments, according to the terminal according to any one of the above embodiments of the present invention, when the receiving unit receives an update instruction for updating the terminal, specifically:
receiving an adding instruction of an adding terminal;
when the updating unit updates the terminal interface in the current window according to the updating instruction, specifically:
and adding a terminal interface in the current window according to the updating instruction.
In some embodiments, according to the terminal according to any one of the above embodiments of the present invention, when the receiving unit receives an update instruction for updating the terminal, specifically:
receiving a deleting instruction of a deleting terminal;
when the updating unit updates the terminal interface in the current window according to the updating instruction, specifically:
and deleting the terminal interface in the current window according to the updating instruction.
In some embodiments, according to the terminal of any previous embodiment of the present invention, the receiving unit is further configured to receive a handover instruction;
the device also comprises a switching unit used for switching the control status of the main terminal and the at least one auxiliary terminal according to the switching instruction.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, if the at least two secondary terminals are the secondary terminals, the secondary terminal switching the control status with the primary terminal is at least one of the at least two secondary terminals.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, the receiving unit is further configured to receive an instruction to turn on a linked switch, where the linked switch is in an on state to start linked control of the main terminal and the at least one sub terminal, and the linked switch is in an off state to stop linked control of the main terminal and the at least one sub terminal.
In some embodiments, according to the terminal of any one of the above embodiments of the present invention, the receiving unit is further configured to receive an instruction to turn off a linked switch, where the linked switch is in an on state to start linked control of the main terminal and the at least one sub-terminal, and the linked switch is in an off state to stop linked control of the main terminal and the at least one sub-terminal;
the sending unit is further configured to send a test request to the cloud test platform according to the instruction, where the test request is used to request the main terminal to be tested;
the acquisition unit is further configured to receive a response message sent by the cloud test platform, where the response message carries a test result of the main terminal.
In a third aspect of embodiments of the present invention, there is provided an apparatus for testing a function of an application program, including:
one or more processors;
a memory;
a program stored in the memory, which, when executed by the one or more processors, causes the processors to perform the method according to the first aspect, any of the embodiments of the first aspect.
In a fourth aspect of embodiments of the present invention, a computer-readable storage medium is provided, which stores a program that, when executed by a processor, causes the processor to perform the method according to any of the first aspect, the embodiments of the first aspect.
In an embodiment of the present invention, a method for testing functions of an application program is provided, including: acquiring a test instruction aiming at an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner; sending a test request to a cloud test platform, wherein the test request is used for requesting the main terminal and the at least one auxiliary terminal to be tested corresponding to the test instruction; receiving response information returned by the cloud test platform, wherein the response information carries test results of the main terminal and the at least one auxiliary terminal; according to the scheme, after the test instruction for the application program is received, the cloud test platform can be triggered to simultaneously test the main terminal and the auxiliary terminal, and the different terminals do not need to be triggered to be tested by switching among different windows, so that time consumed for testing the functions of the application program can be reduced, and the test efficiency is improved.
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.
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 flow diagram of testing the functionality of an application according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a current interface of a browser according to an embodiment of the present invention;
fig. 3 is a schematic view of a browser interface before a terminal interface is added according to an embodiment of the present invention;
FIG. 4 is a schematic view of a browser interface after adding a terminal interface according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an apparatus for testing the function of an application according to an 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 schematically shows a flow diagram of a method 10 of testing the functionality of an application according to an embodiment of the invention. As shown in fig. 1, the method 10 may include steps 100, 110, and 120.
Step 100: acquiring a test instruction aiming at an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner;
step 110: sending a test request to a cloud test platform, wherein the test request is used for requesting the main terminal and the at least one auxiliary terminal to be tested corresponding to the test instruction;
step 120: and receiving response information returned by the cloud test platform, wherein the response information carries the test results of the main terminal and the at least one auxiliary terminal.
There are multiple ways to obtain the test instruction for the application program, and optionally, the following ways may be adopted:
the test instruction is obtained under a main terminal interface included in a current window of the browser, the current window further comprises at least one auxiliary terminal interface, the main terminal interface corresponds to the main terminal, and the auxiliary terminal interface corresponds to the auxiliary terminal.
For example, when the user clicks the test button in the main terminal interface, the main terminal and the sub terminal may be controlled in a linkage manner, and in some cases, when the user clicks the test button in the sub terminal interface, the main terminal and the sub terminal may also be controlled in a linkage manner.
In the embodiment of the present invention, there are various ways to send a test request to a cloud test platform, and optionally, the following ways may be adopted:
calling connection objects which are respectively created for the main terminal and the at least one auxiliary terminal and correspond to the test instruction according to the test instruction;
and aiming at each connection object, sending a test request to the cloud test platform by adopting the connection object, wherein the test request is used for requesting to test the terminal corresponding to the connection object.
In the embodiment of the present invention, when a connection object is created for each terminal in advance in a browser, a connection object may be created for each function that can be implemented by the terminal, for example, a connection object 1 is created for a screen capture function of the terminal; aiming at the shortcut key function of the terminal, a connection object 2 is established; for the start-up function of the terminal, a connection object 3 is created, and so on. Of course, the above-mentioned functions are only examples of functions that can be realized by the terminal, and are not limited thereto.
In the embodiment of the present invention, when the connection objects corresponding to the test instruction respectively created for the main terminal and the at least one auxiliary terminal are called, optionally, the following manner may be adopted:
determining an area where the position triggered by the test instruction is located in the main terminal interface and a first function interface corresponding to the determined area, and calling a connection object which is created for the main terminal and corresponds to the test instruction based on the first function interface;
and for each secondary terminal in the at least one secondary terminal, determining a region of the position triggered by the test instruction mapped in the secondary terminal interface and a second function interface corresponding to the region mapped in the secondary terminal interface, and calling connection objects respectively created for the at least one secondary terminal and corresponding to the test instruction based on the second function interface.
As shown in fig. 2, a mouse performs a click operation in an area 1 of an interface of a terminal 3, determines that functional interfaces for 5 terminals are respectively a functional interface 1, a functional interface 2, a functional interface 3, a functional interface 4, and a functional interface 5, and calls, for the terminal 1, a connection object 1 which is created for the terminal 1 based on the functional interface 1 and corresponds to a function to be realized by the click operation; for the terminal 2, calling a connection object 2 which is created for the terminal 2 and corresponds to a function to be realized by the click operation based on the functional interface 2; for the terminal 3, calling a connection object 3 which is created for the terminal 3 and corresponds to a function to be realized by a click operation based on the functional interface 3; for the terminal 4, calling a connection object 4 which is created for the terminal 4 and corresponds to a function to be realized by a click operation based on the function interface 4; for the terminal 5, the connection object 5 created for the terminal 5 and corresponding to the function to be realized by the click operation is called based on the function interface 5.
The mouse carries out clicking operation in an area 2 of an interface of a terminal 3, determines that functional interfaces aiming at 5 terminals are respectively a functional interface 6, a functional interface 7, a functional interface 8, a functional interface 9 and a functional interface 10, and calls a connecting object 6 which is created for the terminal 1 and corresponds to a function to be realized by clicking operation on the basis of the functional interface 6 aiming at the terminal 1; for the terminal 2, calling a connection object 7 which is created for the terminal 2 and corresponds to a function to be realized by the click operation based on the function interface 7; for the terminal 3, calling a connection object 8 which is created for the terminal 3 and corresponds to a function to be realized by the click operation based on the function interface 8; for the terminal 4, calling a connection object 9 which is created for the terminal 4 and corresponds to a function to be realized by the click operation based on the function interface 9; for the terminal 5, the connection object 10 created for the terminal 5 and corresponding to the function to be realized by the click operation is called based on the function interface 10.
Similarly, if the mouse clicks in the area 3 of the interface of the terminal 3, the process of determining the function interface and calling the connection object for each terminal is similar to that in the above example, and will not be described in detail.
In the embodiment of the present invention, optionally, any terminal interface included in the current window includes at least one of an application installation area, a screenshot area, a terminal shortcut key area, and a mouse event area.
For example, a region 1 in fig. 2 is a mouse event region, and a region 2 in fig. 2 is a terminal shortcut region.
The corresponding interfaces determined aiming at the application program installation area, the screen capture area, the terminal shortcut key area and the mouse event area are an application program installation function interface, a screen capture function interface, a terminal shortcut key function interface and a mouse event function interface respectively.
Alternatively, the shortcut key area may be a return shortcut key area, a map shortcut key area, a menu shortcut key area, a power-off shortcut key area, or the like. The shortcut key area may be a shortcut key, for example, when the shortcut key is clicked at any position in the area, the terminal is triggered to execute the same operation, for example, an operation of returning to the previous stage is executed; certainly, in practical application, the terminal may have a plurality of shortcut keys, and at this time, the shortcut key region may also be divided into different sub-regions for the plurality of shortcut keys, for example, the region 2 in fig. 2 is further divided into a sub-region 1, a sub-region 2, a sub-region 3, and a sub-region 4; the sub-area 1 returns corresponding to the shortcut key, the sub-area 2 corresponds to the shortcut key map, the sub-area 3 corresponds to the shortcut key menu, and the sub-area 4 is turned off corresponding to the shortcut key.
Of course, the area division in the terminal interface may be various, and is not limited to the division manner shown in fig. 2.
In the embodiment of the present invention, optionally, the area division manner of each terminal interface is the same, for example, the division manner of the terminal 3 interface in fig. 2 is area 1, area 2 and area 3, the terminal 1 interface, the terminal 2 interface, the terminal 4 interface and the terminal 5 interface are also divided into area 1, area 2 and area 3, and the area 1 in the terminal 1 interface, the terminal 2 interface, the terminal 3 interface, the terminal 4 interface and the terminal 5 interface is the same; the areas 2 in the terminal 1 interface, the terminal 2 interface, the terminal 3 interface, the terminal 4 interface and the terminal 5 interface are also the same; the same applies to the area 3 in the terminal 1 interface, the terminal 2 interface, the terminal 3 interface, the terminal 4 interface, and the terminal 5 interface.
In the embodiment of the present invention, optionally, the application installation area refers to an area that triggers the terminal to install the application after receiving a mouse instruction at any position, for example, if a mouse clicks any position in the application installation area, the terminal is triggered to install the application;
the screenshot area refers to an area which includes any position and triggers the terminal to intercept a screen after receiving a mouse instruction, for example, if the mouse clicks any position in the screenshot area, the terminal is triggered to intercept the screen;
the terminal shortcut key area refers to an area where a mouse command is received at any position and then the terminal is triggered to execute an operation corresponding to the shortcut key, for example, if the mouse clicks any position in the terminal shortcut key area, the terminal is triggered to execute the operation corresponding to the shortcut key, such as executing a return operation or executing a shutdown operation;
the mouse event area refers to an area which is included and triggers the terminal to execute the mouse event after receiving a mouse instruction at any position, for example, if any position in the mouse event area is clicked, the terminal is triggered to execute the operation corresponding to the mouse event, for example, playing a song in a pause mode, or playing a next song, or displaying lyrics of the currently played song, and the like.
In the foregoing, the test instruction is obtained when the terminal interface has been presented in the browser, and in order to perfect the scheme, in the embodiment of the present invention, how the browser calls the connection object when presenting the terminal interface is further proposed, so before obtaining the test instruction for the application program, the method further includes:
and calling an initialization connection object respectively created for the main terminal and the at least one auxiliary terminal based on an initialization function interface, and displaying the main terminal interface and the auxiliary terminal interface in the browser according to the initialization connection object.
Optionally, the initialization function interface is a function interface of a terminal screen picture.
For example, the functional interface based on the terminal screen picture calls a connection object of a terminal start application program of each terminal, and then, the terminal interface of each terminal is presented in the browser, in which case the presented terminal interface may be an initial interface presented when the application program is opened.
In the embodiment of the present invention, sending a test request to a cloud test platform includes:
and sending a test request to the cloud test platform based on the websocket Protocol and/or HTTP (Hypertext Transfer Protocol).
Optionally, a websocket protocol is used for some functional interfaces, and an HTTP protocol is used for some functional interfaces, for example, the websocket protocol may be used for the initialization functional interface and the mouse event functional interface, and the HTTP protocol is used for the terminal shortcut functional interface, the application program installation functional interface, and the screenshot functional interface.
Due to the development of communication technology, new models are continuously generated, and old models are eliminated, that is, terminals for testing functions of application programs are continuously changed, in order to adapt to the change, in the embodiment of the present invention, the number of terminal interfaces presented in a browser is adjustable, for example, 5 terminal interfaces are shown in fig. 2, and optionally, 4 terminal interfaces or 6 terminal interfaces are also adjustable.
Therefore, in an embodiment of the present invention, in order to enable a terminal for testing a function of an application program to be a mainstream model, the method further includes:
and receiving an update instruction for updating the terminal interface, and updating the terminal interface in the current window according to the update instruction, that is, after receiving the update instruction, updating the linkage control terminal, such as adding the linkage control terminal or reducing the linkage control terminal.
There are various ways to receive the update instruction of the update terminal, and optionally, the following ways may be adopted:
receiving an adding instruction of an adding terminal;
at this time, when the terminal interface is updated in the current window according to the update instruction, optionally, the following manner may be adopted:
and adding a terminal interface in the current window according to the updating instruction. That is, after receiving the add instruction, add a terminal interface, that is, add a linkage controlled terminal, in the current window of the browser.
As shown in fig. 3, clicking the "+" icon numbered 1 in the current interface of the browser, and adding a terminal interface in the area where the icon is located, as shown in fig. 4, if clicking the "+" icon numbered 2 in the current interface of the browser, adding a terminal interface in the area where the icon is located; when the "+" icons numbered 3 and 4 in fig. 3 are clicked, a terminal interface is added to the area where the icon is located, and the detailed description is omitted.
In the foregoing, how to add the terminal interface is described, in practical application, the terminal interface may also be deleted, and therefore, in the embodiment of the present invention, when receiving the update instruction for updating the terminal, optionally, the following manner may also be adopted:
receiving a deleting instruction of a deleting terminal;
at this time, when the terminal interface is updated in the current window according to the update instruction, the following method may be adopted:
and deleting the terminal interface in the current window according to the updating instruction. That is, after receiving the delete instruction, the terminal interface is deleted in the current window of the browser, that is, the number of terminals in linkage control is reduced.
For example, if a test instruction is received in a main terminal interface of the main terminal, not only the main terminal is triggered to perform a test operation, but also all the auxiliary terminals are triggered to perform a test.
For example, if the terminal 3 corresponding to the interface of the terminal 3 in fig. 2 is a main terminal and the other terminals are sub terminals, and the area 1 in the interface of the terminal 3 is clicked, the execution of the test on the terminal 1, the terminal 2, the terminal 3, the terminal 4, and the terminal 5 is simultaneously triggered, but if the area 1 in the interface of the terminal 1 is clicked, the execution of the test on the terminal 3 is only triggered, and the execution of the test on the other terminals is not triggered.
It should be noted that the control statuses of the primary terminal and the secondary terminal are not fixed and may be adjusted, the primary terminal may be adjusted to be the secondary terminal, and one secondary terminal may be adjusted to be the primary terminal, therefore, in the embodiment of the present invention, the method further includes:
and receiving a switching instruction, and switching the control statuses of the main terminal and the at least one auxiliary terminal according to the switching instruction.
Optionally, if the secondary terminal is at least two secondary terminals, the secondary terminal switching control status with the primary terminal is at least one of the at least two secondary terminals. Wherein, optionally, if there are more than two secondary terminals, only one of the secondary terminals becomes the primary terminal.
For example, terminal 3 in fig. 2 is a master terminal, and the other terminals are slave terminals, and terminal 3 may be adjusted to a slave terminal, and any one of terminals 1, 2, 4, and 5 may be adjusted to a master terminal.
It is described above that, when a test instruction is received, the same test is simultaneously triggered to be performed on the main terminal and the auxiliary terminal, but in order to improve the flexibility of the scheme, whether the same test is simultaneously triggered to be performed on the main terminal and the auxiliary terminal or only the main terminal is triggered to be performed when the test instruction is received may be controlled by a switch, and therefore, in the embodiment of the present invention, optionally, a linked switch is further included in the current window, as shown in fig. 2.
At this time, before sending the test request to the cloud test platform, the method further includes:
and receiving an instruction of starting a linked switch, starting the linked switch to control the main terminal and the at least one auxiliary terminal in a linked manner when the linked switch is in a starting state, and stopping the linked switch to control the main terminal and the at least one auxiliary terminal in a linked manner when the linked switch is in a closing state.
That is, the master terminal and the slave terminal are controlled in a linked manner when a test command is received after the linked switch is turned on.
If the ganged switch is closed, a test instruction is received, only the main terminal is triggered to execute the test, and only a feedback result of the test instruction is presented in a main terminal interface, so that in the embodiment of the invention, further, if the ganged switch is in an open state after the instruction of closing the ganged switch is received, the ganged switch is started to control the main terminal and the at least one auxiliary terminal in a linked manner, and when the ganged switch is in a closed state, the main terminal and the at least one auxiliary terminal are stopped to be controlled in a linked manner; sending a test request to the cloud test platform according to the instruction, wherein the test request is used for requesting to test the main terminal; and receiving a response message sent by the cloud test platform, wherein the response message carries the test result of the main terminal.
Still taking fig. 2 as an example to explain, if the ganged switch is turned off and a test instruction is received in the interface of the main terminal 3, the test is only triggered to be executed on the terminal 3, and the test is not triggered to be executed on the terminal 1, the terminal 2, the terminal 4, and the terminal 5. If the ganged switch is turned on, a test instruction is received in the interface of the main terminal 3, and the terminal 1, the terminal 2, the terminal 3, the terminal 4 and the terminal 5 are simultaneously triggered to execute the test.
According to the scheme, after the test instruction for the application program is received, the cloud test platform can be triggered to simultaneously test the main terminal and the auxiliary terminal, and the different terminals do not need to be triggered to be tested by switching among different windows, so that time consumed for testing the functions of the application program can be reduced, and the test efficiency is improved.
Referring to fig. 5, in an embodiment of the present invention, an apparatus 50 for testing functions of an application program is further provided, including:
the system comprises an acquisition unit 500, a processing unit and a processing unit, wherein the acquisition unit 500 is used for acquiring a test instruction aiming at an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner;
a sending unit 510, configured to send a test request to a cloud test platform, where the test request is used to request that the main terminal and the at least one auxiliary terminal be tested according to the test instruction;
a receiving unit 520, configured to receive response information returned by the cloud test platform, where the response information carries test results of the main terminal and the at least one auxiliary terminal.
When the obtaining unit 500 obtains the test instruction for the application program, specifically:
the test instruction is obtained under a main terminal interface included in a current window of the browser, the current window further comprises at least one auxiliary terminal interface, the main terminal interface corresponds to the main terminal, and the auxiliary terminal interface corresponds to the auxiliary terminal.
For example, when the user clicks the test button in the main terminal interface, the main terminal and the sub terminal may be controlled in a linkage manner, and in some cases, when the user clicks the test button in the sub terminal interface, the main terminal and the sub terminal may also be controlled in a linkage manner.
In this embodiment of the present invention, when the sending unit 510 sends the test request to the cloud test platform, optionally, the following manner may be adopted:
calling connection objects which are respectively created for the main terminal and the at least one auxiliary terminal and correspond to the test instruction according to the test instruction;
and aiming at each connection object, sending a test request to the cloud test platform by adopting the connection object, wherein the test request is used for requesting to test the terminal corresponding to the connection object.
In the embodiment of the present invention, when a connection object is created for each terminal in advance in a browser, a connection object may be created for each function that can be implemented by the terminal, for example, a connection object 1 is created for a screen capture function of the terminal; aiming at the shortcut key function of the terminal, a connection object 2 is established; for the start-up function of the terminal, a connection object 3 is created, and so on. Of course, the above-mentioned functions are only examples of functions that can be realized by the terminal, and are not limited thereto.
In this embodiment of the present invention, when the sending unit 510 calls the connection objects corresponding to the test instruction, which are respectively created for the main terminal and the at least one auxiliary terminal, specifically:
determining an area where the position triggered by the test instruction is located in the main terminal interface and a first function interface corresponding to the determined area, and calling a connection object which is created for the main terminal and corresponds to the test instruction based on the first function interface;
and for each secondary terminal in the at least one secondary terminal, determining a region of the position triggered by the test instruction mapped in the secondary terminal interface and a second function interface corresponding to the region mapped in the secondary terminal interface, and calling connection objects respectively created for the at least one secondary terminal and corresponding to the test instruction based on the second function interface.
As shown in fig. 2, a mouse performs a click operation in an area 1 of an interface of a terminal 3, determines that functional interfaces for 5 terminals are respectively a functional interface 1, a functional interface 2, a functional interface 3, a functional interface 4, and a functional interface 5, and calls, for the terminal 1, a connection object 1 which is created for the terminal 1 based on the functional interface 1 and corresponds to a function to be realized by the click operation; for the terminal 2, calling a connection object 2 which is created for the terminal 2 and corresponds to a function to be realized by the click operation based on the functional interface 2; for the terminal 3, calling a connection object 3 which is created for the terminal 3 and corresponds to a function to be realized by a click operation based on the functional interface 3; for the terminal 4, calling a connection object 4 which is created for the terminal 4 and corresponds to a function to be realized by a click operation based on the function interface 4; for the terminal 5, the connection object 5 created for the terminal 5 and corresponding to the function to be realized by the click operation is called based on the function interface 5.
The mouse carries out clicking operation in an area 2 of an interface of a terminal 3, determines that functional interfaces aiming at 5 terminals are a functional interface 6, a functional interface 7, a functional interface 8, a functional interface 9 and a functional interface 10, and calls a connecting object 6 which is created for the terminal 1 and corresponds to a function to be realized by clicking operation on the basis of the functional interface 6 aiming at the terminal 1; for the terminal 2, calling a connection object 7 which is created for the terminal 2 and corresponds to a function to be realized by the click operation based on the function interface 7; for the terminal 3, calling a connection object 8 which is created for the terminal 3 and corresponds to a function to be realized by the click operation based on the function interface 8; for the terminal 4, calling a connection object 9 which is created for the terminal 4 and corresponds to a function to be realized by the click operation based on the function interface 9; for the terminal 5, the connection object 10 created for the terminal 5 and corresponding to the function to be realized by the click operation is called based on the function interface 10.
Similarly, if the mouse clicks in the area 3 of the interface of the terminal 3, the process of determining the function interface and calling the connection object for each terminal is similar to that in the above example, and will not be described in detail.
In the embodiment of the present invention, optionally, any terminal interface included in the current window includes at least one of an application installation area, a screenshot area, a terminal shortcut key area, and a mouse event area.
For example, a region 1 in fig. 2 is a mouse event region, and a region 2 in fig. 2 is a terminal shortcut region.
The corresponding interfaces determined aiming at the application program installation area, the screen capture area, the terminal shortcut key area and the mouse event area are an application program installation function interface, a screen capture function interface, a terminal shortcut key function interface and a mouse event function interface respectively.
Alternatively, the shortcut key area may be a return shortcut key area, a map shortcut key area, a menu shortcut key area, a power-off shortcut key area, or the like. The shortcut key area may be a shortcut key, for example, when the shortcut key is clicked at any position in the area, the terminal is triggered to execute the same operation, for example, an operation of returning to the previous stage is executed; certainly, in practical application, the terminal may have a plurality of shortcut keys, and at this time, the shortcut key region may also be divided into different sub-regions for the plurality of shortcut keys, for example, the region 2 in fig. 2 is further divided into a sub-region 1, a sub-region 2, a sub-region 3, and a sub-region 4; the sub-area 1 returns corresponding to the shortcut key, the sub-area 2 corresponds to the shortcut key map, the sub-area 3 corresponds to the shortcut key menu, and the sub-area 4 is turned off corresponding to the shortcut key.
Of course, the area division in the terminal interface may be various, and is not limited to the division manner shown in fig. 2.
In the embodiment of the present invention, optionally, the area division manner of each terminal interface is the same, for example, the division manner of the terminal 3 interface in fig. 2 is area 1, area 2 and area 3, the terminal 1 interface, the terminal 2 interface, the terminal 4 interface and the terminal 5 interface are also divided into area 1, area 2 and area 3, and the area 1 in the terminal 1 interface, the terminal 2 interface, the terminal 3 interface, the terminal 4 interface and the terminal 5 interface is the same; the areas 2 in the terminal 1 interface, the terminal 2 interface, the terminal 3 interface, the terminal 4 interface and the terminal 5 interface are also the same; the same applies to the area 3 in the terminal 1 interface, the terminal 2 interface, the terminal 3 interface, the terminal 4 interface, and the terminal 5 interface.
In the embodiment of the present invention, optionally, the application installation area refers to an area that triggers the terminal to install the application after receiving a mouse instruction at any position, for example, if a mouse clicks any position in the application installation area, the terminal is triggered to install the application;
the screenshot area refers to an area which includes any position and triggers the terminal to intercept a screen after receiving a mouse instruction, for example, if the mouse clicks any position in the screenshot area, the terminal is triggered to intercept the screen;
the terminal shortcut key area refers to an area where a mouse command is received at any position and then the terminal is triggered to execute an operation corresponding to the shortcut key, for example, if the mouse clicks any position in the terminal shortcut key area, the terminal is triggered to execute the operation corresponding to the shortcut key, such as executing a return operation or executing a shutdown operation;
the mouse event area refers to an area which is included and triggers the terminal to execute the mouse event after receiving a mouse instruction at any position, for example, if any position in the mouse event area is clicked, the terminal is triggered to execute the operation corresponding to the mouse event, for example, playing a song in a pause mode, or playing a next song, or displaying lyrics of the currently played song, and the like.
In the foregoing, the test instruction is obtained when the terminal interface has been presented in the browser, and in order to perfect the solution, in the embodiment of the present invention, how the browser calls the connection object when presenting the terminal interface is further proposed, so that, further, the present invention further includes a presentation unit 530, configured to call, based on the initialization function interface, the initialization connection objects respectively created for the main terminal and the at least one auxiliary terminal; and displaying the main terminal interface and the auxiliary terminal interface in the browser according to the initialized connection object.
Optionally, the initialization function interface is a function interface of a terminal screen picture.
For example, the functional interface based on the terminal screen picture calls a connection object of a terminal start application program of each terminal, and then, the terminal interface of each terminal is presented in the browser, in which case the presented terminal interface may be an initial interface presented when the application program is opened.
In this embodiment of the present invention, when the sending unit 510 sends a test request to the cloud test platform, specifically:
and sending a test request to the cloud test platform based on the websocket protocol and/or the HTTP.
Optionally, a websocket protocol is used for some functional interfaces, and an HTTP protocol is used for some functional interfaces, for example, the websocket protocol may be used for the initialization functional interface and the mouse event functional interface, and the HTTP protocol is used for the terminal shortcut functional interface, the application program installation functional interface, and the screenshot functional interface.
Due to the development of communication technology, new models are continuously generated, and old models are eliminated, that is, terminals for testing functions of application programs are continuously changed, in order to adapt to the change, in the embodiment of the present invention, the number of terminal interfaces presented in a browser may be adjusted, for example, 5 terminal interfaces are shown in fig. 2, and optionally, 4 terminal interfaces may be adjusted, or 6 terminal interfaces may also be adjusted.
Therefore, in the embodiment of the present invention, in order to enable the terminal for testing the function of the application program to be a mainstream model, the receiving unit 520 is further configured to receive an update instruction for updating the terminal interface;
the terminal further comprises an updating unit 540, configured to update the terminal interface in the current window according to the update instruction. That is, after receiving the update instruction, the interlock controlled terminal, such as an increase interlock controlled terminal or a decrease interlock controlled terminal, is updated.
When the receiving unit 520 receives the update instruction of the update terminal, specifically:
receiving an adding instruction of an adding terminal;
when the updating unit 540 updates the terminal interface in the current window according to the update instruction, specifically:
and adding a terminal interface in the current window according to the updating instruction. That is, after the receiving unit 520 receives the add instruction, the updating unit 540 adds a terminal interface, that is, a terminal for linkage control, to the current window of the browser.
As shown in fig. 3, clicking the "+" icon numbered 1 in the current interface of the browser, and adding a terminal interface in the area where the icon is located, as shown in fig. 4, if clicking the "+" icon numbered 2 in the current interface of the browser, adding a terminal interface in the area where the icon is located; when the "+" icons numbered 3 and 4 in fig. 3 are clicked, a terminal interface is added to the area where the icon is located, and the detailed description is omitted.
In the foregoing, how to add a terminal interface is described, in practical application, it may also be to delete the terminal interface, therefore, in the embodiment of the present invention, when the receiving unit 520 receives an update instruction for updating a terminal, specifically:
receiving a deleting instruction of a deleting terminal;
when the updating unit updates the terminal interface in the current window according to the updating instruction, specifically:
and deleting the terminal interface in the current window according to the updating instruction. That is, after receiving the delete instruction, the terminal interface is deleted in the current window of the browser, that is, the number of terminals in linkage control is reduced.
For example, if a test instruction is received in a main terminal interface of the main terminal, not only the main terminal is triggered to perform a test operation, but also all the auxiliary terminals are triggered to perform a test.
For example, the terminal 3 corresponding to the interface of the terminal 3 in fig. 2 is a main terminal, and the other terminals are sub terminals, and if the area 1 in the interface of the terminal 3 is clicked, the execution of the test on the terminal 1, the terminal 2, the terminal 3, the terminal 4, and the terminal 5 is triggered, but if the area 1 in the interface of the terminal 1 is clicked, the execution of the test on the terminal 3 is only triggered, and the execution of the test on the other terminals is not triggered.
It should be noted that the control statuses of the primary terminal and the secondary terminal are not fixed and may be adjusted, the primary terminal may be adjusted to be the secondary terminal, and one secondary terminal may be adjusted to be the primary terminal, therefore, in the embodiment of the present invention, the receiving unit is further configured to receive a switching instruction;
the device also comprises a switching unit used for switching the control status of the main terminal and the at least one auxiliary terminal according to the switching instruction.
Optionally, if the secondary terminal is at least two secondary terminals, the secondary terminal switching control status with the primary terminal is at least one of the at least two secondary terminals. Wherein, optionally, if there are more than two secondary terminals, only one of the secondary terminals becomes the primary terminal.
For example, terminal 3 in fig. 2 is a master terminal, and the other terminals are slave terminals, and terminal 3 may be adjusted to a slave terminal, and any one of terminals 1, 2, 4, and 5 may be adjusted to a master terminal.
It is described above that when a test instruction is received, the main terminal and the auxiliary terminal are triggered to perform a test at the same time, but in order to improve the flexibility of the scheme, the switch may be used to control whether the test instruction is received, and the test is simultaneously triggered to be performed on the main terminal and the auxiliary terminal, or only the main terminal, so in the embodiment of the present invention, the current window further includes a linked switch, as shown in fig. 2.
The receiving unit is further used for receiving an instruction of starting the linkage switch, starting linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in a starting state, and stopping linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in a closing state.
That is, the master terminal and the slave terminal are controlled in a linked manner when a test command is received after the linked switch is turned on.
If the linkage switch is closed, the test instruction is received, only the main terminal is triggered to execute the test, and only the feedback result of the test instruction is presented in the interface of the main terminal. The receiving unit is further configured to receive an instruction for turning off the ganged switch, start the ganged control of the main terminal and the at least one auxiliary terminal when the ganged switch is in an on state, and stop the ganged control of the main terminal and the at least one auxiliary terminal when the ganged switch is in an off state;
the sending unit is further configured to send a test request to the cloud test platform according to the instruction, where the test request is used to request the main terminal to be tested;
the acquisition unit is further configured to receive a response message sent by the cloud test platform, where the response message carries a test result of the main terminal.
Still taking fig. 2 as an example to explain, if the ganged switch is turned off and a test instruction is received in the interface of the main terminal 3, the test is only triggered to be executed on the terminal 3, and the test is not triggered to be executed on the terminal 1, the terminal 2, the terminal 4, and the terminal 5. If the ganged switch is turned on, a test instruction is received in the interface of the main terminal 3, and the terminal 1, the terminal 2, the terminal 3, the terminal 4 and the terminal 5 are simultaneously triggered to execute the test.
In the scheme, after the test instruction for the application program is received, the cloud test platform can be triggered to test the main terminal and the auxiliary terminal at the same time, and the switching between different windows is not needed to trigger the test operation for different terminals, so that the time consumed for testing the functions of the application program can be reduced, and the test efficiency is improved.

Claims (10)

1. A method of testing the functionality of an application, comprising:
the method comprises the steps of obtaining a test instruction for an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner, wherein the test instruction is used for simultaneously triggering test operations of the main terminal and the at least one auxiliary terminal;
sending a test request to a cloud test platform, wherein the test request is used for requesting the main terminal and the at least one auxiliary terminal to be tested corresponding to the test instruction;
receiving response information returned by the cloud test platform, wherein the response information carries test results of the main terminal and the at least one auxiliary terminal;
the sending of the test request to the cloud test platform comprises:
establishing a corresponding connection object aiming at the function corresponding to each terminal;
and sending a test request to a cloud test platform by adopting the connection object.
2. The method of claim 1, obtaining test instructions for an application, comprising:
the test instruction is obtained under a main terminal interface included in a current window of the browser, the current window further comprises at least one auxiliary terminal interface, the main terminal interface corresponds to the main terminal, and the auxiliary terminal interface corresponds to the auxiliary terminal.
3. The method of claim 1, sending a test request to a cloud test platform, comprising:
calling connection objects which are respectively created for the main terminal and the at least one auxiliary terminal and correspond to the test instruction according to the test instruction;
and aiming at each connection object, sending a test request to the cloud test platform by adopting the connection object, wherein the test request is used for requesting to test the terminal corresponding to the connection object.
4. The method of claim 3, invoking connection objects corresponding to the test instructions respectively created for the primary terminal and the at least one secondary terminal, comprising:
determining an area where the position triggered by the test instruction is located in the main terminal interface and a first function interface corresponding to the determined area, and calling a connection object which is created for the main terminal and corresponds to the test instruction based on the first function interface;
and for each secondary terminal in the at least one secondary terminal, determining a region of the position triggered by the test instruction mapped in the secondary terminal interface and a second function interface corresponding to the region mapped in the secondary terminal interface, and calling connection objects respectively created for the at least one secondary terminal and corresponding to the test instruction based on the second function interface.
5. The method of claim 2, further comprising:
and receiving an updating instruction for updating the terminal interface, and updating the terminal interface in the current window according to the updating instruction.
6. The method of claim 1, further comprising:
and receiving a switching instruction, and switching the control statuses of the main terminal and the at least one auxiliary terminal according to the switching instruction.
7. The method of any one of claims 1-6, further comprising:
receiving an instruction of closing a linkage switch, starting linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in an on state, and stopping linkage control on the main terminal and the at least one auxiliary terminal when the linkage switch is in an off state;
sending a test request to the cloud test platform according to the instruction, wherein the test request is used for requesting to test the main terminal;
and receiving a response message sent by the cloud test platform, wherein the response message carries the test result of the main terminal.
8. A terminal for testing the functionality of an application, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a test instruction aiming at an application program, and a main terminal and at least one auxiliary terminal which need to execute the test instruction in a linkage manner, and the test instruction is used for simultaneously triggering the test operation of the main terminal and the at least one auxiliary terminal;
a sending unit, configured to send a test request to a cloud test platform, where the test request is used to request that the main terminal and the at least one auxiliary terminal be tested according to the test instruction;
the receiving unit is used for receiving response information returned by the cloud test platform, and the response information carries the test results of the main terminal and the at least one auxiliary terminal;
the sending unit is further configured to create a corresponding connection object for a function corresponding to each terminal;
and sending a test request to a cloud test platform by adopting the connection object.
9. An apparatus for testing the functionality of an application, comprising:
one or more processors;
a memory;
a program stored in the memory, which when executed by the one or more processors, causes the processors to perform the method of any one of claims 1-7.
10. A computer-readable storage medium storing a program which, when executed by a processor, causes the processor to perform the method of any one of claims 1-7.
CN201711310021.3A 2017-12-11 2017-12-11 Method and device for testing functions of application program Active CN107957951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711310021.3A CN107957951B (en) 2017-12-11 2017-12-11 Method and device for testing functions of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711310021.3A CN107957951B (en) 2017-12-11 2017-12-11 Method and device for testing functions of application program

Publications (2)

Publication Number Publication Date
CN107957951A CN107957951A (en) 2018-04-24
CN107957951B true CN107957951B (en) 2021-09-28

Family

ID=61957676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711310021.3A Active CN107957951B (en) 2017-12-11 2017-12-11 Method and device for testing functions of application program

Country Status (1)

Country Link
CN (1) CN107957951B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968501A (en) * 2018-09-30 2020-04-07 北京奇虎科技有限公司 Linkage testing method and device for application program compatibility

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN107066379A (en) * 2017-01-23 2017-08-18 广州唯品会信息科技有限公司 software interface compatibility test method and system
CN107193729A (en) * 2017-04-19 2017-09-22 北京云测信息技术有限公司 A kind of application compatibility method of testing and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN107066379A (en) * 2017-01-23 2017-08-18 广州唯品会信息科技有限公司 software interface compatibility test method and system
CN107193729A (en) * 2017-04-19 2017-09-22 北京云测信息技术有限公司 A kind of application compatibility method of testing and device

Also Published As

Publication number Publication date
CN107957951A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
US11231959B2 (en) Foreground and background switching entry generation and display following quit operations
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN110990741B (en) Page display method and device, electronic equipment, server and storage medium
WO2018077041A1 (en) Method and apparatus for running application
CN102109959A (en) Method for realizing rotation of JAVA application programming interface (API) with rotation of screen
CN110858173A (en) Data processing method and device and data processing device
CN105630497A (en) Switching method and switching device of application program
WO2014101213A1 (en) Method, device and system for synchronizing mice
JP2017534959A (en) Method, apparatus, storage medium, and device for providing screenshot service in terminal device
CN110781080B (en) Program debugging method and device and storage medium
US8495637B2 (en) Apparatus and method for temporarily freeing up resources in a computer
WO2016118769A1 (en) Processing application interface
CN107957951B (en) Method and device for testing functions of application program
CN107102937B (en) User interface testing method and device
CN114416578A (en) Test method and device
CN112558833B (en) Application running method and device and electronic equipment
CN108874569B (en) Event response and file generation method and device and electronic equipment
CN114510308B (en) Method, device, equipment and medium for storing application page by mobile terminal
CN107015874B (en) Data transmission control method, device and terminal
CN113138786B (en) Application updating method and device
CN114116090A (en) Information display method and device, electronic equipment and computer readable storage medium
CN104777967B (en) Page information display method and device
CN108536540B (en) Method and device for acquiring mouse message of desktop icon
CN109739763B (en) Code segment operation method, device, terminal and storage medium
CN113138785A (en) Application program updating method and device

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