CN109684112B - Program file operation method, device, terminal and storage medium - Google Patents

Program file operation method, device, terminal and storage medium Download PDF

Info

Publication number
CN109684112B
CN109684112B CN201811635114.8A CN201811635114A CN109684112B CN 109684112 B CN109684112 B CN 109684112B CN 201811635114 A CN201811635114 A CN 201811635114A CN 109684112 B CN109684112 B CN 109684112B
Authority
CN
China
Prior art keywords
program file
terminal
communication connection
program
instruction
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
CN201811635114.8A
Other languages
Chinese (zh)
Other versions
CN109684112A (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811635114.8A priority Critical patent/CN109684112B/en
Publication of CN109684112A publication Critical patent/CN109684112A/en
Application granted granted Critical
Publication of CN109684112B publication Critical patent/CN109684112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Abstract

The disclosure relates to a program file operation method, a program file operation device, a terminal and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring a preset path; when a first program file of an application program is generated, a transmission instruction is sent to a second terminal through communication connection with the second terminal, the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in a preset storage space; and sending an operation instruction to the second terminal through communication connection, wherein the operation instruction is used for instructing the second terminal to operate the first program file stored in the preset storage space. The first program file can be stored in a preset storage space through interaction of the communication connection established between the first terminal and the second terminal, the second terminal can be controlled to automatically run the first program file, multiple steps of operation on the first terminal and the second terminal by technicians are not needed, operation is simplified, and consumed human resources are reduced.

Description

Program file operation method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for running a program file.
Background
With the rapid development of computer technology, the functions of the application programs are gradually increased, the scale of the application programs is gradually enlarged, and the application program testing is an essential step for verifying the quality of the application programs. After a technician develops a program file of an application program, the program file is generally required to be run to obtain a running result, so that the application program is optimized and improved according to the running result.
As shown in fig. 1, a first terminal establishes a communication connection with a second terminal. The technician develops a program file of the application program through the first terminal and stores the program file in the first terminal. When a technician needs to test an application program, the first terminal firstly executes one-step or multi-step operation to search the program file, then executes operation of moving the program file to the second terminal, and when the first terminal detects the moving operation, the first terminal sends the program file to the second terminal through the communication connection. And the second terminal stores the program file after receiving the program file. The technical staff firstly executes one-step or multi-step operation at the second terminal to search the program file, then executes operation of running the program file, and runs the program file when the second terminal detects the operation to obtain a running result.
According to the scheme, technicians are required to respectively execute multi-step operation on the first terminal and the second terminal, the operation is complex, and excessive human resources are consumed.
Disclosure of Invention
The present disclosure provides a program file operating method, apparatus, terminal and storage medium, which can solve the problems of the related art. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a program file operating method is provided, which is applied to a terminal, and the method includes:
acquiring a preset path, wherein the preset path is used for indicating a preset storage space of a second terminal;
when a first program file of an application program is generated, sending a transmission instruction to the second terminal through communication connection with the second terminal, wherein the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in the preset storage space;
and sending an operation instruction to the second terminal through the communication connection, wherein the operation instruction is used for instructing the second terminal to operate the first program file stored in the preset storage space.
In a possible implementation manner, the obtaining the preset path includes:
and when the communication connection is established with the second terminal, receiving the preset path sent by the second terminal through the communication connection.
In another possible implementation manner, the sending, to the second terminal through a communication connection with the second terminal when the first program file of the application program is generated, includes:
and when the first program file is generated and the communication connection is established with the second terminal currently, sending the transmission instruction to the second terminal through the communication connection.
In another possible implementation manner, the method further includes:
when the first program file is generated and the communication connection with the second terminal is not established, storing the first program file;
when the communication connection is established with the second terminal, the transmission instruction is sent to the second terminal through the communication connection;
and sending the operation instruction to the second terminal through the communication connection.
In another possible implementation manner, the method further includes:
receiving a program file acquisition instruction sent by the second terminal through the communication connection, wherein the program file acquisition instruction is sent when the second terminal detects the operation of a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and operating the second program file.
In another possible implementation manner, the method further includes:
and when the program file corresponding to the application configuration information is not inquired according to the application configuration information, sending an inquiry failure message to the second terminal.
In another possible implementation manner, the sending, to the second terminal, a transmission instruction through a communication connection with the second terminal includes:
and calling a pushing interface of the communication connection based on the first program file and the preset path, and pushing the first program file to the preset storage space.
According to a second aspect of the embodiments of the present disclosure, there is provided a program file operating method applied to a second terminal, the method including:
receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
storing the first program file in the preset storage space according to the transmission instruction;
receiving an operation instruction sent by the first terminal through the communication connection;
and operating the first program file stored in the preset storage space according to the operating instruction.
In one possible implementation, the method further includes:
and when the communication connection is established with the first terminal, the preset path is sent to the first terminal through the communication connection.
In another possible implementation manner, the method further includes:
when the operation of the first program file is detected, sending a program file acquisition instruction to the first terminal through the communication connection, wherein the program file acquisition instruction carries application configuration information of the application program;
receiving a program file response instruction sent by the first terminal through the communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file.
In another possible implementation manner, the method further includes:
when receiving a query failure message sent by the first terminal through the communication connection, operating the first program file; alternatively, the first and second electrodes may be,
and when the communication connection with the first terminal is not established, the first program file is operated.
According to a third aspect of the embodiments of the present disclosure, there is provided a program file operating method applied to a first terminal, the method including:
receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and operating the second program file.
In one possible implementation, the method further includes:
and when the program file corresponding to the application configuration information is not inquired according to the application configuration information, sending an inquiry failure message to the second terminal.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a program file operating method applied to a second terminal, the method including:
when the operation of a first program file of an application program is detected, sending a program file acquisition instruction to a first terminal through communication connection with the first terminal, wherein the program file acquisition instruction carries application configuration information of the application program;
receiving a program file response instruction sent by the first terminal through the communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file.
In one possible implementation, the method further includes:
when receiving a query failure message sent by the first terminal through the communication connection, operating the first program file; alternatively, the first and second electrodes may be,
and when the communication connection with the first terminal is not established, the first program file is operated.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a program file execution apparatus, the apparatus including:
the path acquisition module is used for acquiring a preset path, and the preset path is used for indicating a preset storage space of the second terminal;
the first sending module is used for sending a transmission instruction to the second terminal through communication connection with the second terminal when a first program file of an application program is generated, wherein the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in the preset storage space;
and the second sending module is used for sending an operation instruction to the second terminal through the communication connection, wherein the operation instruction is used for indicating the second terminal to operate the first program file stored in the preset storage space.
In one possible implementation manner, the path obtaining module includes:
and the path receiving unit is used for receiving the preset path sent by the second terminal through the communication connection when the communication connection is established with the second terminal.
In another possible implementation manner, the first sending module includes:
and the first sending unit is used for sending the transmission instruction to the second terminal through the communication connection when the first program file is generated and the communication connection is established with the second terminal currently.
In another possible implementation manner, the apparatus further includes:
the storage module is used for storing the first program file when the first program file is generated and the communication connection with the second terminal is not established;
the first sending module is further configured to send the transmission instruction to the second terminal through the communication connection when the communication connection is established with the second terminal;
and the second sending module is further configured to send the operation instruction to the second terminal through the communication connection.
In another possible implementation manner, the apparatus further includes:
a receiving module, configured to receive, through the communication connection, a program file acquisition instruction sent by the second terminal, where the program file acquisition instruction is sent when the second terminal detects an operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
the query module is used for querying the second program file corresponding to the application configuration information according to the application configuration information;
and the third sending module is configured to send a program file response instruction to the second terminal through the communication connection, where the first program file response instruction carries the second program file, and the second terminal is configured to replace the first program file with the second program file and run the second program file.
In another possible implementation manner, the apparatus further includes:
and the fourth sending module is used for sending a query failure message to the second terminal when the program file corresponding to the application configuration information is not queried according to the application configuration information.
In another possible implementation manner, the first sending module includes:
and the calling unit is used for calling a pushing interface of the communication connection based on the first program file and the preset path and pushing the first program file to the preset storage space.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a program file execution apparatus, the apparatus including:
the first receiving module is used for receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
the storage module is used for storing the first program file in the preset storage space according to the transmission instruction;
the second receiving module is used for receiving the operation instruction sent by the first terminal through the communication connection;
and the operation module is used for operating the first program file stored in the preset storage space according to the operation instruction.
In one possible implementation, the apparatus further includes:
and the first sending module is used for sending the preset path to the first terminal through the communication connection when the communication connection is established with the first terminal.
In another possible implementation manner, the apparatus further includes:
a second sending module, configured to send a program file obtaining instruction to the first terminal through the communication connection when detecting an operation on the first program file, where the program file obtaining instruction carries application configuration information of the application program;
a third receiving module, configured to receive, through the communication connection, a program file response instruction sent by the first terminal, where the program file response instruction carries a second program file queried according to the application configuration information;
the running module is further configured to replace the first program file with the second program file, and run the second program file.
In another possible implementation manner, the running module is further configured to run the first program file when receiving a query failure message sent by the first terminal through the communication connection; or, when the communication connection with the first terminal is not established, the first program file is operated.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a program file execution apparatus, the apparatus including:
the receiving module is used for receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
the query module is used for querying a second program file corresponding to the application configuration information according to the application configuration information;
and the first sending module is used for sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and running the second program file.
In one possible implementation, the apparatus further includes:
and the second sending module is used for sending a query failure message to the second terminal when the program file corresponding to the application configuration information is not queried according to the application configuration information.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a program file execution apparatus, the apparatus including:
the device comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a program file acquisition instruction to a first terminal through communication connection with the first terminal when the operation of a first program file of an application program is detected, and the program file acquisition instruction carries application configuration information of the application program;
a receiving module, configured to receive, through the communication connection, a program file response instruction sent by the first terminal, where the program file response instruction carries a second program file queried according to the application configuration information;
and the operation module is used for replacing the first program file with the second program file and operating the second program file.
In a possible implementation manner, the running module is further configured to run the first program file when receiving a query failure message sent by the first terminal through the communication connection; or, when the communication connection with the first terminal is not established, the first program file is operated.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a first terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a preset path, wherein the preset path is used for indicating a preset storage space of a second terminal;
when a first program file of an application program is generated, sending a transmission instruction to the second terminal through communication connection with the second terminal, wherein the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in the preset storage space;
and sending an operation instruction to the second terminal through the communication connection, wherein the operation instruction is used for instructing the second terminal to operate the first program file stored in the preset storage space.
According to a tenth aspect of the embodiments of the present disclosure, there is provided a second terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
storing the first program file in the preset storage space according to the transmission instruction;
receiving an operation instruction sent by the first terminal through the communication connection;
and operating the first program file stored in the preset storage space according to the operating instruction.
According to an eleventh aspect of embodiments of the present disclosure, there is provided a first terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and operating the second program file.
According to a twelfth aspect of the embodiments of the present disclosure, there is provided a second terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the operation of a first program file of an application program is detected, sending a program file acquisition instruction to a first terminal through communication connection with the first terminal, wherein the program file acquisition instruction carries application configuration information of the application program;
receiving a program file response instruction sent by the first terminal through the communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file.
According to a thirteenth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having at least one instruction stored therein, the instruction being loaded and executed by a processor to implement:
the operations performed in the program file execution method according to the first aspect, or the operations performed in the program file execution method according to the second aspect, or the operations performed in the program file execution method according to the third aspect, or the operations performed in the program file execution method according to the fourth aspect.
According to the program file operation method, the program file operation device, the program file operation terminal and the storage medium, a communication connection is established between a first terminal and a second terminal, the first terminal acquires a preset path to generate a first program file of an application program, a transmission instruction and an operation instruction carrying the first program file are sent to the second terminal through the communication connection, the second terminal receives the transmission instruction and the operation instruction sent by the first terminal according to the communication connection, stores the first program file in a preset storage space, and operates the first program file stored in the preset storage space. In the embodiment of the disclosure, the first terminal and the second terminal interact through the communication connection established between the first terminal and the second terminal, when the first terminal generates the first program file, the second terminal can store the first program file into the preset storage space, and can automatically run the first program file stored in the preset storage space, so that a technician does not need to respectively execute multi-step operations on the first terminal and the second terminal, the operation is simplified, and the consumed human resources are reduced.
And the first terminal and the plurality of second terminals are in communication connection, so that the first terminal and the plurality of second terminals do not need to be connected each time, and the operation of technical personnel is simplified. Moreover, the first terminal can control the plurality of second terminals to respectively run different program files generated by the first terminal, so that the plurality of second terminals are conveniently managed, synchronous testing of the plurality of program files is realized, a testing process can be accelerated, and testing time is shortened.
In addition, in the embodiment of the disclosure, the second terminal and the first terminal can be in communication connection through the USB connection line, the first terminal and the second terminal do not need to be connected to the internet, the first terminal and the second terminal do not need to be in the same local area network, the program file can be run even without network connection, the running result is obtained, and the operation is simple and easy.
And when the technician triggers the operation on the first program file, the interaction can be carried out through the communication connection established between the first terminal and the second terminal, the second program file replaces the first program file, the updating of the program file is automatically realized, the updated program file is operated, and the test effect is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram illustrating a program file operation method according to the related art;
FIG. 2 is a schematic diagram of an implementation environment shown in accordance with an illustrative embodiment;
FIG. 3 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
FIG. 5 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
FIG. 6 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
FIG. 7 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
FIG. 8 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
FIG. 9 is a flowchart illustrating a method of program file execution in accordance with an exemplary embodiment;
fig. 10 is a schematic structural diagram illustrating a program file execution apparatus according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating a program file execution apparatus in accordance with an illustrative embodiment;
fig. 12 is a schematic structural diagram illustrating a program file execution apparatus according to an exemplary embodiment;
fig. 13 is a schematic structural diagram illustrating a program file execution apparatus according to an exemplary embodiment;
fig. 14 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure is described in further detail below with reference to the embodiments and the accompanying drawings. The exemplary embodiments and descriptions of the present disclosure are provided herein for illustration of the present disclosure, but not for limitation of the present disclosure.
The embodiment of the disclosure provides a program file running method, a program file running device, a terminal and a storage medium, and the disclosure is described in detail below with reference to the accompanying drawings.
First, an implementation environment is provided in the embodiments of the present disclosure, as shown in fig. 2, the implementation environment includes a first terminal 201 and a second terminal 202, and the first terminal 201 and the second terminal 202 may be various types of terminals such as a mobile phone, a computer, a tablet computer, and the like.
The first terminal 201 and the second terminal 202 can run program files of various application programs, including a program file of a browser program, a program file of an instant messaging program, a program file of an electronic payment program, a program file of an office program, a program file of a video playing program, and the like.
The embodiment of the disclosure provides a program file running method, a communication connection is established between a first terminal 201 and a second terminal 202, when the first terminal 201 generates a program file of an application program, the first terminal 201 sends the program file of the application program to the second terminal 202 through the communication connection, the program file is run on the second terminal 202, that is, a running result can be determined, the running condition of the program file is determined according to the running result, and the test of the application program is realized.
When the second terminal 202 detects an operation of a first program file of an application program, the second terminal acquires a second program file sent by the first terminal 201 through a communication connection with the first terminal 201, replaces the first program file with the second program file, and operates the second program file, so that an operation result can be determined, and the program file is updated.
Fig. 3 is a flowchart illustrating a program file operating method according to an exemplary embodiment, which is applied to the first terminal shown in fig. 2, and as shown in fig. 3, includes the following steps:
in step 301, a preset path is obtained, where the preset path is used to indicate a preset storage space of the second terminal.
In step 302, when the first program file of the application program is generated, a transmission instruction is sent to the second terminal through a communication connection with the second terminal, where the transmission instruction carries the first program file, and the transmission instruction is used to instruct to store the first program file in a preset storage space.
In step 303, an operation instruction is sent to the second terminal through the communication connection, where the operation instruction is used to instruct the second terminal to operate the first program file stored in the preset storage space.
According to the method provided by the embodiment of the disclosure, the preset path for indicating the preset storage space of the second terminal is obtained, when the first program file is generated, the first program file can be stored in the preset storage space through interaction of the communication connection established between the first terminal and the second terminal, the second terminal can be controlled to automatically run the first program file, multiple operations are not required to be respectively executed on the first terminal and the second terminal by a technician, the operation is simplified, and the consumed human resources are reduced.
In one possible implementation, obtaining the preset path includes:
and when the communication connection is established with the second terminal, receiving the preset path sent by the second terminal through the communication connection.
In another possible implementation manner, when generating the first program file of the application program, sending a transmission instruction to the second terminal through a communication connection with the second terminal includes:
and when the first program file is generated and the communication connection with the second terminal is established currently, transmitting a transmission instruction to the second terminal through the communication connection.
In another possible implementation manner, the method further includes:
when the first program file is generated and the communication connection with the second terminal is not established, storing the first program file;
when communication connection is established with a second terminal, a transmission instruction is sent to the second terminal through the communication connection;
and sending the operation instruction to the second terminal through the communication connection.
In another possible implementation manner, the method further includes:
receiving a program file acquisition instruction sent by a second terminal through communication connection, wherein the program file acquisition instruction is sent when the second terminal detects the operation of a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries a second program file, and the second terminal is used for replacing the first program file with the second program file and operating the second program file.
In another possible implementation manner, the method further includes:
and when the program file corresponding to the application configuration information is not inquired according to the application configuration information, sending an inquiry failure message to the second terminal.
In another possible implementation manner, sending a transmission instruction to the second terminal through a communication connection with the second terminal includes:
and calling a pushing interface of the communication connection based on the first program file and the preset path, and pushing the first program file to a preset storage space.
Fig. 4 is a flowchart illustrating a program file operating method according to an exemplary embodiment, which is applied to the second terminal shown in fig. 2, and as shown in fig. 4, includes the following steps:
in step 401, a transmission instruction sent by a first terminal is received through a communication connection with the first terminal, where the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used to indicate a preset storage space of a second terminal.
In step 402, a first program file is stored in a predetermined storage space according to a transmission instruction.
In step 403, an operation instruction sent by the first terminal is received through the communication connection.
In step 404, a first program file stored in a preset storage space is executed according to an execution instruction.
The method provided by the embodiment of the disclosure includes receiving a transmission instruction sent by a first terminal through a communication connection established between the first terminal and a second terminal, wherein the transmission instruction carries a first program file of an application program and a preset path used for indicating a preset storage space on the second terminal, storing the first program file carried in the transmission instruction in the preset storage space, receiving an operation instruction sent by the first terminal, and operating the first program file stored in the preset storage space. Through interaction with communication connection between the first terminal and the second terminal, when the first program file is generated by the second terminal, the second program file can be automatically stored in the preset storage space, the first program file stored in the preset storage space can be automatically operated, and a technician does not need to respectively execute multi-step operation on the first terminal and the second terminal, so that the operation is simplified, and the consumed human resources are reduced.
In one possible implementation, the method further includes:
and when communication connection is established with the first terminal, sending the preset path to the first terminal through the communication connection.
In another possible implementation manner, the method further includes:
when the operation of the first program file is detected, sending a program file acquisition instruction to the first terminal through communication connection, wherein the program file acquisition instruction carries application configuration information of an application program;
receiving a program file response instruction sent by the first terminal through communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file.
In another possible implementation manner, the method further includes:
when receiving a query failure message sent by a first terminal through communication connection, operating a first program file; alternatively, the first and second electrodes may be,
and when the communication connection with the first terminal is not established, the first program file is operated.
Fig. 5 is a flowchart illustrating a program file running method according to an exemplary embodiment, which is applied to the first terminal and the second terminal in the embodiment illustrated in fig. 2, and as illustrated in fig. 5, includes the following steps:
in step 501, a first terminal acquires a preset path.
The test process for the application program is a process of running a program file of the application program in the test mode. After the technical personnel develop and obtain the program file of the application program, the program file of the application program needs to be operated, the test of the application program is realized, errors in the application program can be found according to the operation result of the program file subsequently, the quality of the application program is measured, and whether the application program can meet the requirements is evaluated.
The embodiment of the present disclosure is described by taking as an example only a process in which after a first terminal generates a program file of an application program, the program file is run at a second terminal. The application program refers to a computer program for completing one or more specific tasks, and the first terminal and the second terminal may be any terminals, such as a mobile phone, a computer, a tablet computer, or other types of terminals.
Firstly, the first terminal acquires a preset path, the preset path is used for indicating a preset storage space of the second terminal, the corresponding preset storage space on the second terminal can be determined according to the preset storage path, and the program file can be stored in the preset storage space subsequently.
In a possible implementation manner, when the second terminal establishes a communication connection with the first terminal, the second terminal sends a preset path to the first terminal through the communication connection, and the first terminal receives the preset path sent by the second terminal through the communication connection and stores the preset path.
The communication connection between the second terminal and the first terminal may be a network connection, and the network may be a wide area network or a local area network. The communication connection may also be a USB (Universal Serial Bus) connection or other connection. The first terminal and the second terminal can perform instruction transmission and data exchange through the communication connection between the first terminal and the second terminal. The type of communication connection may be a short connection, a long connection, or other connection.
In another possible implementation manner, each terminal may preset a preset protocol of the communication connection, where the preset protocol includes a preset path set for the opposite terminal, and when the first terminal establishes the communication connection with the second terminal, the preset path set for the opposite terminal is obtained from the preset protocol of the communication connection and is used as the preset path of the second terminal.
In step 502, when the first terminal generates the first program file of the application program, a transmission instruction is sent to the second terminal through a communication connection with the second terminal.
The first terminal acquires an instruction set of the application program, wherein the instruction set comprises at least one instruction, and a program file of the application program is generated by compiling the instruction set. The program file may then be executed based on the at least one instruction. The instruction set of the application program may be input to the first terminal by a technician, or may be sent to the first terminal by another terminal, and the specific manner is not limited.
In order to run the program files of the application program at the second terminal, the second terminal may establish a communication connection with the first terminal. When the first terminal generates the first program file of the application program, a transmission instruction can be automatically sent to the second terminal through communication connection with the second terminal, wherein the transmission instruction carries the first program file of the application program, and the transmission instruction is used for instructing the second terminal to store the carried first program file in the preset storage space.
Regarding the process of generating the first program file, in a possible implementation manner, the first terminal displays an instruction editing interface, the instruction editing interface includes an instruction input area and a completion button, and after a technician inputs at least one instruction of the application program in the instruction input area, the completion button is clicked. When the first terminal detects that the click operation of the button is completed, the input at least one instruction is obtained and compiled, and a program file of the application program is generated.
In another possible implementation manner, when the first terminal receives an instruction set of an application program sent by another terminal, at least one instruction included in the instruction set is obtained, and the at least one instruction is compiled to generate a program file of the application program.
Regarding the process of sending the transmission instruction, in a possible implementation manner, when the first terminal establishes a communication connection with the second terminal, the communication connection is provided with a push interface, and the push interface is used for the first terminal to push information to a path specified on the second terminal. And when the first terminal generates the first program file of the application program, based on the first program file and the acquired preset path, calling a push interface in communication connection with the second terminal, and pushing the first program file to a preset storage space indicated by the preset path.
For example, the first terminal may call a push interface by executing an "adb-push" command, and push the first program file to a preset storage space of the second terminal through the push interface.
In another possible implementation manner, the first terminal is a terminal specially used for development by technicians and capable of generating program files of one or more application programs, and the second terminal is a special test terminal and capable of running the generated program files to obtain a running result. The first terminal may establish a communication connection with a plurality of second terminals so that different program files are run on different second terminals.
In this case, in order to distinguish the plurality of second terminals, when the first terminal sends the transmission instruction through the communication connection, the transmission instruction may further carry an equipment identifier of the second terminal where the first program file is to be stored, where the equipment identifier is used to determine a uniquely corresponding terminal, and may be an equipment name, an equipment address, an equipment number, and the like of the terminal, so that the second terminal corresponding to the equipment identifier stores the first program file.
The second terminal determined this time may be determined by the first terminal by default according to the priority of the second terminal, or selected by a technician.
In a possible implementation manner, when the first terminal generates the first program file, the device identifiers of the plurality of second terminals are displayed, a technician selects one device identifier from the device identifiers of the plurality of second terminals, the first terminal acquires the device identifier selected by the technician, and sends an operation instruction carrying the device identifier to instruct the second terminal corresponding to the device identifier to operate the program file in the preset storage path.
The first terminal and the plurality of second terminals are in communication connection, the first terminal and the plurality of second terminals do not need to be connected each time, and operation of technicians is simplified. Moreover, the first terminal can control the plurality of second terminals to respectively run different program files generated by the first terminal, so that the plurality of second terminals are conveniently managed, synchronous testing of the plurality of program files is realized, a testing process can be accelerated, and testing time is shortened.
In step 503, the first terminal sends an operation instruction to the second terminal through the communication connection.
When the first terminal generates the first program file, an operation instruction is sent to the second terminal through communication connection with the second terminal, and the operation instruction is used for instructing the second terminal to operate the program file stored in the preset storage space.
In consideration of the situation that the first terminal establishes communication connection with the plurality of second terminals, in order to distinguish the plurality of second terminals, when the first terminal sends the operation instruction through the communication connection, the operation instruction may further carry an equipment identifier of the second terminal to be operated with the first program file, so that the second terminal corresponding to the equipment identifier operates the first program file.
In step 504, the second terminal receives a transmission instruction sent by the first terminal through a communication connection with the first terminal, and stores the first program file in a preset storage space according to the transmission instruction.
The transmission instruction carries a preset path and a first program file, when the second terminal receives the transmission instruction through communication connection with the first terminal, the second terminal can acquire the preset path and the first program file, and the first program file is stored in a preset storage space according to the preset path and the first program file.
In a possible implementation manner, the first terminal establishes communication connection with a plurality of second terminals, and the transmission instruction sent by the first terminal not only carries the first program file, but also carries the device identifier. And each second terminal receives the transmission instruction, acquires the equipment identification carried in the transmission instruction, and compares the equipment identification with the equipment identification of the local terminal. And if the equipment identifier carried in the transmission instruction is not matched with the equipment identifier of the local terminal, ignoring the transmission instruction.
In addition, only one program file may be stored in the preset storage space, or a plurality of program files may be stored simultaneously.
In a first possible implementation, only one program file can be stored in the preset storage space at a time. And under the condition that one program file is stored in the preset storage space, when the second terminal receives the transmission instruction, the first program file is used for replacing the original program file.
In this case, the operation instruction sent by the first terminal through the communication connection is used for instructing the second terminal to operate a program file stored in the preset storage space, and the operation instruction does not need to carry other information.
In a second possible implementation manner, a plurality of program files may be stored in the preset storage space, the program files are independent from each other and do not affect each other, and each program file includes corresponding application configuration information. The application configuration information is used to describe the corresponding application program, and may include the name, publisher, category, version information, unique identifier of the application program, and the like of the application program. Then, when the second terminal receives the transmission instruction, the first program file is stored in the preset storage space.
In this case, the operation instruction sent by the first terminal through the communication connection includes application configuration information for instructing the second terminal to operate the program file in the preset storage space including the application configuration information.
In step 505, the second terminal receives an operation instruction sent by the first terminal through a communication connection, and operates the first program file stored in the preset storage space according to the operation instruction.
In a first possible implementation manner, when only one program file can be stored in the preset storage space, the operation instruction does not need to carry other information, and when receiving the operation instruction, the second terminal directly calls the first program file currently stored in the preset storage space to operate the first program file.
By adopting the mode, when the updated program file is generated on the first terminal every time, the program file in the preset storage space can be automatically updated, and the updated program file is operated.
In a second possible implementation manner, the operation instruction carries application configuration information under the condition that a plurality of program files can be stored in the preset storage space, the second terminal obtains the application configuration information carried in the operation instruction when receiving the operation instruction, and by comparing the application configuration information with the application configuration information of the plurality of program files stored in the preset storage space, a program file, namely a first program file, can be obtained, where the application configuration information matches the application configuration information carried in the operation instruction, so as to operate the first program file.
The plurality of program files stored in the preset storage space may include different program files of the same application program, and the application configuration information of the program files is the same. Therefore, when the second terminal receives the operation instruction and queries according to the application configuration information in the operation instruction, a plurality of program files of which the application configuration information is matched with the application configuration information carried in the operation instruction can be obtained. At this time, the latest stored program file, i.e., the first program file stored in step 504, is obtained from the plurality of program files.
When determining the latest stored program file, the time for storing the program file into the preset storage space may be determined, or may also be determined according to a generation time included in the program file, where the generation time is a time when the first terminal generates the program file.
Considering the situation that the first terminal establishes communication connection with the plurality of second terminals, in order to distinguish the plurality of second terminals, the operation instruction sent by the first terminal also carries the device identifier. And each second terminal receives the operation instruction, acquires the equipment identifier carried in the operation instruction, and compares the equipment identifier with the equipment identifier of the local terminal. And if the equipment identifier carried in the transmission instruction is not matched with the equipment identifier of the local terminal, ignoring the operation instruction.
And in the process of running the first program file by the second terminal, displaying a program interface of the application program, simulating the operation which can be executed by the user in the program interface, responding to the operation, displaying the program interface after the response, and continuously simulating the operation which can be executed by the user in the program interface after the response. After the first program file is operated, the operation result of the application program can be obtained according to the operation condition, and the operation result is displayed on the second terminal for a technician to check.
For example, after the first program file is run, if the running result displayed on the second terminal is "good running", it indicates that the first program file is run successfully. If the operation result displayed on the second terminal is 'operation error', it indicates that the operation of the first program file fails, and an error exists in the first program file, and a technician is required to modify the instruction in the program file.
In a possible implementation manner, the operation result may include at least one of a presentation of a program interface of the application program, an implementation of each function of the application program, and an instruction execution rate of the application program. The display condition may include the number of times of successful display of each program interface in the application program, the number of times of failed display, information display errors occurring in the display process, and the like. The implementation condition of each function comprises the function which is successfully implemented, the function which is failed to be implemented and the like. The instruction running rate is used for indicating the ratio of the instructions which are successfully run by the application program, and can comprise the number of the instructions which are successfully run, the number of the instructions which are failed to run, and the percentage of the number of the instructions which are successfully run.
In the subsequent process, a technician can determine whether to modify the instruction in the program file according to the operation result, and the program file after the modification is finally obtained by modifying the instruction in the program file once or for multiple times and then continuing to test by adopting the method provided by the embodiment of the disclosure.
It should be noted that the format supported by the operating system of the second terminal is the same as the format of the first program file generated by the first terminal, and the format may be rpk format or other formats.
In addition, it should be further noted that, the first terminal may install a Unix operating system (a multi-user, multi-task operating system) or another operating system, and taking the installation of the Unix operating system by the first terminal as an example, a process of establishing a communication connection between the first terminal and the second terminal is described, referring to fig. 6, where the process includes:
1. the second terminal starts the running environment, establishes a background daemon process and creates a socket named as "hybrid runtime", and the running environment can run the rpk format file.
2. And calling an adb start-server command in an adb (android debug bridge) tool through a node JS service on the first terminal, and starting a background application program of the first terminal, wherein the background application program is used for managing each application program on the first terminal.
3. And calling an 'adb devices' command in an adb tool through the node JS service on the first terminal to detect whether other terminals are connected to the first terminal.
4. The second terminal is connected with the first terminal through a USB connecting line.
5. After detecting that the second terminal is connected to the first terminal, the first terminal acquires the identification information of the second terminal, calls an ' adb query ' hybrid runtime ' command in an adb tool through the node JS service, and queries the name of a socket created by the second terminal.
6. And after receiving the ' adb query ' hybrid run ' command, the second terminal sends the name ' hybrid run ' of the socket to the first terminal through the background daemon.
7. The first terminal creates a long connection between the node JS service and the runtime environment of the second terminal according to the received name of the socket.
8. The second terminal sends the preset path to the first terminal through the long connection.
9. And after receiving the preset path sent by the second terminal through the long connection, the first terminal stores the preset path.
10. When the first terminal generates a first program file of the application program, an 'adb push' command in an adb tool is called through a node JS service, the first program file is pushed to a preset storage space indicated by a preset path, and after the pushing is completed, the first terminal sends an operation instruction to the second terminal through the long connection.
11. And after receiving the operation instruction sent by the first terminal, the second terminal loads the first program file in the preset storage space and operates the first program file.
The above embodiments are only examples when the first terminal generates the first program file and currently establishes a communication connection with the second terminal. In step 502, when the first terminal generates the first program file and has not established a communication connection with the second terminal, the first terminal stores the first program file. And then, when the first terminal establishes communication connection with the second terminal, the first terminal sends a transmission instruction to the second terminal through the communication connection and also sends an operation instruction to the second terminal through the communication connection. The second terminal receives the transmission instruction and the operation instruction sent by the first terminal through the communication connection, stores the first program file sent by the first terminal in the preset storage space according to the transmission instruction, and operates the first program file stored in the preset storage space according to the operation instruction.
According to the method provided by the embodiment of the disclosure, a first terminal acquires a preset path, generates a first program file of an application program, sends a transmission instruction and an operation instruction carrying the first program file to a second terminal through a communication connection established between the first terminal and the second terminal, and the second terminal stores the first program file in a preset storage space after receiving the transmission instruction and the operation instruction sent by the first terminal according to the communication connection and operates the first program file stored in the preset storage space. In the embodiment of the disclosure, the first terminal and the second terminal interact through the communication connection established between the first terminal and the second terminal, when the first terminal generates the first program file, the second terminal can store the first program file into the preset storage space, and can automatically run the first program file stored in the preset storage space, so that a technician does not need to respectively execute multi-step operations on the first terminal and the second terminal, the operation is simplified, and the consumed human resources are reduced.
And the first terminal and the plurality of second terminals are in communication connection, so that the first terminal and the plurality of second terminals do not need to be connected each time, and the operation of technical personnel is simplified. Moreover, the first terminal can control the plurality of second terminals to respectively run different program files generated by the first terminal, so that the plurality of second terminals are conveniently managed, synchronous testing of the plurality of program files is realized, a testing process can be accelerated, and testing time is shortened.
In addition, in the embodiment of the disclosure, the second terminal and the first terminal can be in communication connection through the USB connection line, the first terminal and the second terminal do not need to be connected to the internet, the first terminal and the second terminal do not need to be in the same local area network, the program file can be run even without network connection, the running result is obtained, and the operation is simple and easy.
Fig. 7 is a flowchart illustrating a program file operation method according to an exemplary embodiment, which is applied to the first terminal in the embodiment illustrated in fig. 2, and as illustrated in fig. 7, includes the following steps:
in step 701, a program file acquisition instruction sent by the second terminal is received through a communication connection with the second terminal, the program file acquisition instruction is sent when the second terminal detects an operation on the first program file of the application program, and the program file acquisition instruction carries application configuration information of the application program.
In step 702, according to the application configuration information, a second program file corresponding to the application configuration information is queried.
In step 703, a program file response instruction is sent to the second terminal through the communication connection, where the program file response instruction carries a second program file, and the second terminal is configured to replace the first program file with the second program file and run the second program file.
In the method provided by the embodiment of the present disclosure, when the second terminal detects an operation on a first program file of an application program, a program file acquisition instruction carrying application configuration information of the application program is sent to the first terminal through a communication connection with the first terminal, when the first terminal receives the program file acquisition instruction, the second program file corresponding to the application configuration information is queried according to the application configuration information, a program file response instruction carrying the second program file is sent to the second terminal through the communication connection, and the second terminal replaces the first program file with the second program file to operate the second program file. When the technician triggers the operation on the first program file, the program file can be automatically updated through interaction through the communication connection established between the first terminal and the second terminal, so that the second terminal operates the updated program file, the test effect is improved, the technician does not need to respectively execute multi-step operation on the first terminal and the second terminal, the operation is simplified, and the consumed human resources are reduced.
In one possible implementation, the method further includes:
and when the program file corresponding to the application configuration information is not inquired according to the application configuration information, sending an inquiry failure message to the second terminal.
Fig. 8 is a flowchart illustrating a program file operating method according to an exemplary embodiment, which is applied to the second terminal in the embodiment illustrated in fig. 2, and as illustrated in fig. 8, includes the following steps:
in step 801, when an operation of running a first program file of an application program is detected, a program file acquisition instruction is sent to the first terminal through a communication connection with the first terminal, where the program file acquisition instruction carries application configuration information of the application program.
In step 802, a program file response instruction sent by the first terminal is received through the communication connection, where the program file response instruction carries the second program file queried according to the application configuration information.
In step 803, the first program file is replaced with the second program file, and the second program file is run.
In the method provided by the embodiment of the present disclosure, when the second terminal detects an operation on a first program file of an application program, a program file acquisition instruction carrying application configuration information of the application program is sent to the first terminal through a communication connection with the first terminal, when the first terminal receives the program file acquisition instruction, the second program file corresponding to the application configuration information is queried according to the application configuration information, a program file response instruction carrying the second program file is sent to the second terminal through the communication connection, and the second terminal replaces the first program file with the second program file to operate the second program file. When the technician triggers the operation on the first program file, the interaction can be carried out through the communication connection established between the first terminal and the second terminal, the updating of the program file is automatically realized, the updated program file is operated, the test effect is improved, the technician does not need to respectively execute multistep operation on the first terminal and the second terminal, the operation is simplified, and the consumed human resources are reduced.
In one possible implementation, the method further includes:
when receiving a query failure message sent by a first terminal through communication connection, operating a first program file; alternatively, the first and second electrodes may be,
and when the communication connection with the first terminal is not established, the first program file is operated.
Fig. 9 is a flowchart illustrating a program file running method according to an exemplary embodiment, which is applied to the first terminal and the second terminal in the embodiment illustrated in fig. 2, and as illustrated in fig. 9, includes the following steps:
in step 901, when the second terminal detects an operation on a first program file of an application program, a program file acquisition instruction is sent to the first terminal through a communication connection with the first terminal.
The second terminal stores at least one program file of an application program, and when a technician needs to run a first program file of a certain application program, the technician can trigger the running operation of the first program file, wherein the running operation is used for indicating to run the first program file, and can be a click operation, a double click operation, a sliding operation or other operations on the first program file.
The second terminal can now directly run the first program file. However, considering that the first terminal may store the updated second program file of the application program, when the second terminal detects the operation, the second terminal does not operate the first program file first, but transmits a program file acquisition instruction to the first terminal through a communication connection with the first terminal to acquire the updated second program file of the application program stored in the first terminal in order to execute the updated second program file.
The second program file on the first terminal can be sent to the first terminal by other terminals, or generated by the first terminal according to instructions input by technicians. The first program file on the second terminal may be sent to the second terminal by other terminals or generated by the second terminal according to instructions input by a technician. The difference lies in that: the second program file is the updated program file of the first program file.
The program file acquisition instruction carries application configuration information of the application program and is used for indicating the first terminal to send the program file corresponding to the application configuration information to the second terminal. The application configuration information is used to describe the corresponding application program, and may include the name, publisher, category, version information, unique identifier of the application program, and the like of the application program.
For example, when the technician wants to test application a, the first program file of application a already stored on the second terminal is clicked. When the second terminal detects that a user clicks the first program file of the application program A, whether communication connection is established with the first terminal is detected, if the communication connection with the first terminal is established currently, a program file acquisition instruction is sent to the first terminal, and the program file acquisition instruction carries application configuration information of the application program A and is used for indicating the first terminal to return a program file corresponding to the application configuration information of the application program A.
In step 902, the first terminal receives a program file acquisition instruction sent by the second terminal through a communication connection with the second terminal.
In step 903, the first terminal queries a second program file corresponding to the application configuration information according to the application configuration information, and sends a program file response instruction to the second terminal through communication connection.
After receiving a program file acquisition instruction sent by a second terminal, a first terminal queries a second program file corresponding to application configuration information according to the application configuration information carried by the program file acquisition instruction, wherein the second program file is a program file of the application program. When the second program file corresponding to the application configuration information is inquired, the first terminal sends a program file response instruction to the second terminal through communication connection between the first terminal and the second terminal, the program file response instruction carries the inquired second program file, and the second terminal is used for replacing the first program file with the second program file and running the second program file.
In step 904, the second terminal receives a program file response command sent by the first terminal through the communication connection, replaces the first program file with the second program file, and runs the second program file.
The second terminal receives a program file response instruction sent by the first terminal through communication connection with the first terminal, and the program file response instruction carries a second program file inquired according to the application configuration information, so that after the second terminal receives the program file response instruction, the first program file is replaced by the second program file, the second program file is operated, an operation result is obtained, the operation result can also be displayed for a technician to check, and the subsequent technician can perform optimization improvement on the application program according to the operation result.
In a possible implementation manner, in order to ensure that the second program file is the updated program file of the first program file, after the second terminal acquires the second program file, the generation time of the second program file and the generation time of the first program file are acquired first, and when it is determined that the generation time of the second program file is later than the generation time of the first program file, the first program file is replaced by the second program file, and the second program file is run to obtain a running result.
Or, after the second terminal acquires the second program file, acquiring version information in the second program file and version information in the first program file, and when the version of the second program file is determined to be higher than that of the first program file according to the version information of the second program file and the version information of the first program file, replacing the first program file with the second program file, and operating the second program file to obtain an operation result.
In a possible implementation manner, the second program file replaces the first program file by deleting the first program file stored in the preset storage space, and storing the second program file carried by the program file response instruction in the preset storage space.
The above is only an example in which the second terminal establishes a communication connection with the first terminal, and the first terminal queries the corresponding program file according to the application configuration information carried in the received program file acquisition instruction. And when the second terminal does not establish communication connection with the first terminal, the second terminal runs the first program file. Or, in step 903, when the second terminal establishes a communication connection with the first terminal, but the first terminal does not query the program file corresponding to the application configuration information according to the application configuration information, it indicates that there is no updated program file of the first program file on the first terminal, and sends a query failure message to the second terminal, and when the second terminal receives the query failure message sent by the first terminal through the communication connection, the first program file is run.
In consideration of the situation that the first terminal establishes communication connection with the plurality of second terminals, a technician may store an updated program file of a developed application program in the first terminal, and the first terminal may interact with the plurality of second terminals, so as to provide the updated program file for each of the second terminals. And when any one of the plurality of second terminals runs the program file subsequently, the updated program file can be run.
According to the method provided by the embodiment of the disclosure, a communication connection is established between a first terminal and a second terminal, and when the second terminal detects the operation of a first program file of an application program, a program file acquisition instruction carrying application configuration information of the application program is sent to the first terminal through the communication connection. After receiving the program file acquisition instruction, the first terminal queries a second program file corresponding to the application configuration information according to the application configuration information, sends a program file response instruction carrying the second program file to the second terminal through the communication connection, and the second terminal replaces the first program file with the second program file to operate the second program file. When the technician triggers the operation on the first program file, the technician can interact through the communication connection established between the first terminal and the second terminal, replace the first program file with the second program file, automatically realize the updating of the program file, operate the updated program file, improve the test effect, and do not need to respectively execute multi-step operation on the first terminal and the second terminal, thereby simplifying the operation and reducing the consumed human resources.
And the first terminal and the plurality of second terminals are in communication connection, so that the first terminal and the plurality of second terminals do not need to be connected each time, and the operation of technical personnel is simplified. Moreover, the first terminal can control the plurality of second terminals to respectively run different program files generated by the first terminal, so that the plurality of second terminals are conveniently managed, synchronous testing of the plurality of program files is realized, a testing process can be accelerated, and testing time is shortened.
In addition, in the embodiment of the disclosure, the second terminal and the first terminal can be in communication connection through the USB connection line, the first terminal and the second terminal do not need to be connected to the internet, the first terminal and the second terminal do not need to be in the same local area network, the program file can be run even without network connection, the running result is obtained, and the operation is simple and easy.
It should be noted that the embodiment shown in fig. 5 provides a scheme for running the program file generated by the first terminal on the second terminal, and the embodiment shown in fig. 9 provides a scheme for running the updated program file on the second terminal by the first terminal providing the updated program file for the second terminal.
In another embodiment, the two approaches described above may be combined. For example, when the first terminal generates a program file in a case where the first terminal and the second terminal have established a communication connection, the embodiment shown in fig. 5 may be adopted to run the program file on the second terminal.
However, when the first terminal and the second terminal do not establish a communication connection, the first terminal stores the program file when generating the program file, and after the first terminal and the second terminal establish a communication connection, if a technician triggers to run another program file of an earlier version on the second terminal, the embodiment shown in fig. 9 may be adopted to run the program file of an updated version stored on the first terminal on the second terminal.
Fig. 10 is a schematic structural diagram of a program file running apparatus according to an exemplary embodiment, which is applied to the first terminal shown in fig. 2, and as shown in fig. 10, the apparatus includes a path obtaining module 1001, a first sending module 1002, and a second sending module 1003.
A path obtaining module 1001, configured to obtain a preset path, where the preset path is used to indicate a preset storage space of a second terminal;
a first sending module 1002, configured to send a transmission instruction to a second terminal through a communication connection with the second terminal when a first program file of an application program is generated, where the transmission instruction carries the first program file, and the transmission instruction is used to instruct to store the first program file in a preset storage space;
the second sending module 1003 is configured to send an operation instruction to the second terminal through the communication connection, where the operation instruction is used to instruct the second terminal to operate the first program file stored in the preset storage space.
In one possible implementation manner, the path obtaining module includes:
and the path receiving unit is used for receiving the preset path sent by the second terminal through communication connection when the communication connection is established with the second terminal.
In another possible implementation manner, the first sending module 1002 includes:
and the first sending unit is used for sending a transmission instruction to the second terminal through communication connection when the first program file is generated and the communication connection with the second terminal is established currently.
In another possible implementation manner, the apparatus further includes:
the storage module is used for storing the first program file when the first program file is generated and communication connection with the second terminal is not established;
the first sending module 1002 is further configured to send a transmission instruction to the second terminal through the communication connection when the communication connection is established with the second terminal;
the second sending module 1003 is further configured to send the operation instruction to the second terminal through the communication connection.
In another possible implementation manner, the apparatus further includes:
the receiving module is used for receiving a program file acquisition instruction sent by the second terminal through communication connection, the program file acquisition instruction is sent when the second terminal detects the operation of a first program file of the application program, and the program file acquisition instruction carries application configuration information of the application program;
the query module is used for querying a second program file corresponding to the application configuration information according to the application configuration information;
and the third sending module is used for sending a program file response instruction to the second terminal through communication connection, wherein the first program file response instruction carries a second program file, and the second terminal is used for replacing the first program file with the second program file and running the second program file.
In another possible implementation manner, the apparatus further includes:
and the fourth sending module is used for sending a query failure message to the second terminal when the program file corresponding to the application configuration information is not queried according to the application configuration information.
In another possible implementation manner, the first sending module 1002 includes:
and the calling unit is used for calling a pushing interface of the communication connection based on the first program file and the preset path and pushing the first program file to the preset storage space.
Fig. 11 is a schematic structural diagram of a program file execution device according to an exemplary embodiment, which is applied to the second terminal shown in fig. 2, and as shown in fig. 11, the device includes a first receiving module 1101, a storage module 1102, a second receiving module 1103 and an execution module 1104.
A first receiving module 1101, configured to receive a transmission instruction sent by a first terminal through a communication connection with the first terminal, where the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used to indicate a preset storage space of a second terminal;
the storage module 1102 is configured to store the first program file in a preset storage space according to the transmission instruction;
a second receiving module 1103, configured to receive, through a communication connection, an operation instruction sent by the first terminal;
an operation module 1104, configured to operate the first program file stored in the preset storage space according to the operation instruction
In one possible implementation manner, the apparatus further includes:
the first sending module is used for sending the preset path to the first terminal through the communication connection when the communication connection is established with the first terminal.
In another possible implementation manner, the apparatus further includes:
the second sending module is used for sending a program file acquisition instruction to the first terminal through communication connection when the running operation of the first program file is detected, wherein the program file acquisition instruction carries application configuration information of an application program;
the third receiving module is used for receiving a program file response instruction sent by the first terminal through communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
the running module 1104 is further configured to replace the first program file with the second program file and run the second program file.
In another possible implementation manner, the running module 1104 is further configured to run the first program file when receiving a query failure message sent by the first terminal through the communication connection; or when the communication connection with the first terminal is not established, the first program file is operated.
Fig. 12 is a schematic structural diagram of a program file running apparatus according to an exemplary embodiment, which is applied to the first terminal shown in fig. 2, and as shown in fig. 12, the apparatus includes a receiving module 1201, a querying module 1202, and a first sending module 1203.
A receiving module 1201, configured to receive, through a communication connection with a second terminal, a program file acquisition instruction sent by the second terminal, where the program file acquisition instruction is sent when the second terminal detects an operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
the query module 1202 is configured to query, according to the application configuration information, a second program file corresponding to the application configuration information;
the first sending module 1203 is configured to send a program file response instruction to the second terminal through a communication connection, where the program file response instruction carries a second program file, and the second terminal is configured to replace the first program file with the second program file and run the second program file.
In one possible implementation manner, the apparatus further includes:
and the second sending module is used for sending a query failure message to the second terminal when the program file corresponding to the application configuration information is not queried according to the application configuration information.
Fig. 13 is a schematic structural diagram of a program file running apparatus according to an exemplary embodiment, which is applied to the second terminal shown in fig. 2, and as shown in fig. 13, the apparatus includes a sending module 1301, a receiving module 1302, and a running module 1303.
A sending module 1301, configured to send a program file acquisition instruction to a first terminal through a communication connection with the first terminal when detecting an operation on a first program file of an application program, where the program file acquisition instruction carries application configuration information of the application program;
a receiving module 1302, configured to receive, through a communication connection, a program file response instruction sent by a first terminal, where the program file response instruction carries a second program file queried according to application configuration information;
and the running module 1303 is configured to replace the first program file with the second program file and run the second program file.
In a possible implementation manner, the running module 1303 is further configured to run the first program file when receiving a query failure message sent by the first terminal through the communication connection; or when the communication connection with the first terminal is not established, the first program file is operated.
Fig. 14 is a block diagram illustrating a terminal 1400 in accordance with an example embodiment. For example, terminal 1400 can be a mobile phone, computer, digital broadcaster, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
Referring to fig. 14, terminal 1400 can include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input/output (I/O) interface 1412, a sensor component 1414, and a communication component 1416.
Processing component 1402 generally controls overall operation of terminal 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1402 can include one or more modules that facilitate interaction between processing component 1402 and other components. For example, the processing component 1402 can include a multimedia module to facilitate interaction between the multimedia component 1408 and the processing component 1402.
Memory 1404 is configured to store various types of data to support operations at terminal 1400. Examples of such data include instructions for any application or method operating on terminal 1400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1404 may be implemented by any type of volatile or non-volatile storage device or combination of devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1406 provide power to the various components of terminal 1400. Power components 1406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 1400.
The multimedia component 1408 comprises a screen providing an output interface between the terminal 1400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1408 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 1400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1410 is configured to output and/or input audio signals. For example, audio component 1410 includes a Microphone (MIC) configured to receive external audio signals when terminal 1400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1404 or transmitted via the communication component 1416. In some embodiments, audio component 1410 further includes a speaker for outputting audio signals.
I/O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 1414 includes one or more sensors for providing various aspects of state assessment for terminal 1400. For example, sensor component 1414 can detect an open/closed state of terminal 1400, a relative positioning of components, such as a display and keypad of terminal 1400, a change in position of terminal 1400 or a component of terminal 1400, the presence or absence of user contact with terminal 1400, orientation or acceleration/deceleration of terminal 1400, and a change in temperature of terminal 1400. The sensor assembly 1414 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1414 may also include a photosensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 1416 is configured to facilitate communications between terminal 1400 and other devices in a wired or wireless manner. Terminal 1400 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1416 further includes a Near Field Communication (NFC) module to facilitate short-range communications.
In an exemplary embodiment, the terminal 1400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described program file execution methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 1404 that includes instructions executable by the processor 1420 of the terminal 1400 to perform the above-described methods. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
There is also provided a computer readable storage medium having instructions which, when executed by a processor of a first terminal, enable the first terminal to perform the method of the above embodiments, the method comprising:
acquiring a preset path, wherein the preset path is used for indicating a preset storage space of a second terminal;
when a first program file of an application program is generated, a transmission instruction is sent to a second terminal through communication connection with the second terminal, the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in a preset storage space;
and sending an operation instruction to the second terminal through communication connection, wherein the operation instruction is used for instructing the second terminal to operate the first program file stored in the preset storage space.
There is also provided a computer readable storage medium having instructions which, when executed by a processor of a second terminal, enable the second terminal to perform the method of the above embodiments, the method comprising:
receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
storing the first program file in a preset storage space according to the transmission instruction;
receiving an operation instruction sent by a first terminal through communication connection;
and operating the first program file stored in the preset storage space according to the operation instruction.
There is also provided a computer readable storage medium having instructions which, when executed by a processor of a first terminal, enable the first terminal to perform the method of the above embodiments, the method comprising:
receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries a second program file, and the second terminal is used for replacing the first program file with the second program file and operating the second program file.
There is also provided a computer readable storage medium having instructions which, when executed by a processor of a second terminal, enable the second terminal to perform the method of the above embodiments, the method comprising:
when the operation of a first program file of an application program is detected, a program file acquisition instruction is sent to the first terminal through communication connection with the first terminal, and the program file acquisition instruction carries application configuration information of the application program;
receiving a program file response instruction sent by the first terminal through communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in an acquisition machine readable storage medium, and the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only exemplary of the embodiments of the present disclosure and should not be taken as limiting the disclosure, and any modifications, equivalents, improvements and the like that are within the spirit and principle of the embodiments of the present disclosure are intended to be included within the scope of the embodiments of the present disclosure.

Claims (35)

1. A program file running method is applied to a first terminal, and comprises the following steps:
acquiring a preset path, wherein the preset path is used for indicating a preset storage space of a second terminal;
when a first program file of an application program is generated, sending a transmission instruction to the second terminal through communication connection with the second terminal, wherein the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in the preset storage space;
and sending an operation instruction to the second terminal through the communication connection, wherein the operation instruction carries application configuration information, and the operation instruction is used for instructing the second terminal to match and operate the first program file stored in the preset storage space based on the application configuration information so as to test the first program file.
2. The method of claim 1, wherein the obtaining the preset path comprises:
and when the communication connection is established with the second terminal, receiving the preset path sent by the second terminal through the communication connection.
3. The method according to claim 1, wherein the sending a transmission instruction to the second terminal through a communication connection with the second terminal when generating the first program file of the application program comprises:
and when the first program file is generated and the communication connection is established with the second terminal currently, sending the transmission instruction to the second terminal through the communication connection.
4. The method of claim 1, further comprising:
when the first program file is generated and the communication connection with the second terminal is not established, storing the first program file;
when the communication connection is established with the second terminal, the transmission instruction is sent to the second terminal through the communication connection;
and sending the operation instruction to the second terminal through the communication connection.
5. The method according to any one of claims 1-4, further comprising:
receiving a program file acquisition instruction sent by the second terminal through the communication connection, wherein the program file acquisition instruction is sent when the second terminal detects the operation of a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and operating the second program file.
6. The method of claim 5, further comprising:
and when the program file corresponding to the application configuration information is not inquired according to the application configuration information, sending an inquiry failure message to the second terminal.
7. The method according to any of claims 1-4, wherein said sending a transmission instruction to the second terminal via the communication connection with the second terminal comprises:
and calling a pushing interface of the communication connection based on the first program file and the preset path, and pushing the first program file to the preset storage space.
8. A program file running method is applied to a second terminal, and comprises the following steps:
receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
storing the first program file in the preset storage space according to the transmission instruction;
receiving an operation instruction sent by the first terminal through the communication connection; the operation instruction carries application configuration information;
and matching and operating the first program file stored in the preset storage space according to the application configuration information in the operating instruction so as to realize the test of the first program file.
9. The method of claim 8, further comprising:
and when the communication connection is established with the first terminal, the preset path is sent to the first terminal through the communication connection.
10. The method of claim 8, further comprising:
when the operation of the first program file is detected, sending a program file acquisition instruction to the first terminal through the communication connection, wherein the program file acquisition instruction carries application configuration information of the application program;
receiving a program file response instruction sent by the first terminal through the communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file.
11. The method of claim 10, further comprising:
when receiving a query failure message sent by the first terminal through the communication connection, operating the first program file; alternatively, the first and second electrodes may be,
and when the communication connection with the first terminal is not established, the first program file is operated.
12. A program file running method is applied to a first terminal, and comprises the following steps:
receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program; the operation is to send an operation instruction carrying the application configuration information to the second terminal;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and running the second program file so as to realize the test of the second program file.
13. The method of claim 12, further comprising:
and when the program file corresponding to the application configuration information is not inquired according to the application configuration information, sending an inquiry failure message to the second terminal.
14. A program file running method is applied to a second terminal, and comprises the following steps:
when the operation of a first program file of an application program is detected, sending a program file acquisition instruction to a first terminal through communication connection with the first terminal, wherein the program file acquisition instruction carries application configuration information of the application program; the operation means that the first terminal sends an operation instruction carrying the application configuration information;
receiving a program file response instruction sent by the first terminal through the communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file to realize the test of the second program file.
15. The method of claim 14, further comprising:
when receiving a query failure message sent by the first terminal through the communication connection, operating the first program file; alternatively, the first and second electrodes may be,
and when the communication connection with the first terminal is not established, the first program file is operated.
16. A program file execution apparatus, comprising:
the path acquisition module is used for acquiring a preset path, and the preset path is used for indicating a preset storage space of the second terminal;
the first sending module is used for sending a transmission instruction to the second terminal through communication connection with the second terminal when a first program file of an application program is generated, wherein the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in the preset storage space;
and the second sending module is used for sending an operation instruction to the second terminal through the communication connection, wherein the operation instruction carries application configuration information, and the operation instruction is used for indicating the second terminal to match and operate the first program file stored in the preset storage space based on the application configuration information so as to test the first program file.
17. The apparatus of claim 16, wherein the path acquisition module comprises:
and the path receiving unit is used for receiving the preset path sent by the second terminal through the communication connection when the communication connection is established with the second terminal.
18. The apparatus of claim 16, wherein the first sending module comprises:
and the first sending unit is used for sending the transmission instruction to the second terminal through the communication connection when the first program file is generated and the communication connection is established with the second terminal currently.
19. The apparatus of claim 16, further comprising:
the storage module is used for storing the first program file when the first program file is generated and the communication connection with the second terminal is not established;
the first sending module is further configured to send the transmission instruction to the second terminal through the communication connection when the communication connection is established with the second terminal;
and the second sending module is further configured to send the operation instruction to the second terminal through the communication connection.
20. The apparatus of any one of claims 16-19, further comprising:
a receiving module, configured to receive, through the communication connection, a program file acquisition instruction sent by the second terminal, where the program file acquisition instruction is sent when the second terminal detects an operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program;
the query module is used for querying a second program file corresponding to the application configuration information according to the application configuration information;
and the third sending module is configured to send a program file response instruction to the second terminal through the communication connection, where the first program file response instruction carries the second program file, and the second terminal is configured to replace the first program file with the second program file and run the second program file.
21. The apparatus of claim 20, further comprising:
and the fourth sending module is used for sending a query failure message to the second terminal when the program file corresponding to the application configuration information is not queried according to the application configuration information.
22. The apparatus according to any of claims 16-19, wherein the first sending module comprises:
and the calling unit is used for calling a pushing interface of the communication connection based on the first program file and the preset path and pushing the first program file to the preset storage space.
23. A program file execution apparatus, comprising:
the first receiving module is used for receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
the storage module is used for storing the first program file in the preset storage space according to the transmission instruction;
the second receiving module is used for receiving the operation instruction sent by the first terminal through the communication connection; the operation instruction carries application configuration information;
and the operation module is used for matching and operating the first program file stored in the preset storage space according to the application configuration information in the operation instruction so as to realize the test of the first program file.
24. The apparatus of claim 23, further comprising:
and the first sending module is used for sending the preset path to the first terminal through the communication connection when the communication connection is established with the first terminal.
25. The apparatus of claim 23, further comprising:
a second sending module, configured to send a program file obtaining instruction to the first terminal through the communication connection when detecting an operation on the first program file, where the program file obtaining instruction carries application configuration information of the application program;
a third receiving module, configured to receive, through the communication connection, a program file response instruction sent by the first terminal, where the program file response instruction carries a second program file queried according to the application configuration information;
the running module is further configured to replace the first program file with the second program file, and run the second program file.
26. The apparatus according to claim 25, wherein the running module is further configured to run the first program file when receiving a query failure message sent by the first terminal through the communication connection; or, when the communication connection with the first terminal is not established, the first program file is operated.
27. A program file execution apparatus, comprising:
the receiving module is used for receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program; the operation is to send an operation instruction carrying the application configuration information to the second terminal;
the query module is used for querying a second program file corresponding to the application configuration information according to the application configuration information;
the first sending module is configured to send a program file response instruction to the second terminal through the communication connection, where the program file response instruction carries the second program file, and the second terminal is configured to replace the first program file with the second program file and run the second program file, so as to implement a test on the second program file.
28. The apparatus of claim 27, further comprising:
and the second sending module is used for sending a query failure message to the second terminal when the program file corresponding to the application configuration information is not queried according to the application configuration information.
29. A program file execution apparatus, comprising:
the device comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a program file acquisition instruction to a first terminal through communication connection with the first terminal when the operation of a first program file of an application program is detected, and the program file acquisition instruction carries application configuration information of the application program; the operation means that the first terminal sends an operation instruction carrying the application configuration information;
a receiving module, configured to receive, through the communication connection, a program file response instruction sent by the first terminal, where the program file response instruction carries a second program file queried according to the application configuration information;
and the operation module is used for replacing the first program file with the second program file and operating the second program file so as to realize the test of the second program file.
30. The apparatus according to claim 29, wherein the running module is further configured to run the first program file when receiving a query failure message sent by the first terminal through the communication connection; or, when the communication connection with the first terminal is not established, the first program file is operated.
31. A first terminal, characterized in that the first terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a preset path, wherein the preset path is used for indicating a preset storage space of a second terminal;
when a first program file of an application program is generated, sending a transmission instruction to the second terminal through communication connection with the second terminal, wherein the transmission instruction carries the first program file, and the transmission instruction is used for indicating that the first program file is stored in the preset storage space;
and sending an operation instruction to the second terminal through the communication connection, wherein the operation instruction carries application configuration information, and the operation instruction is used for instructing the second terminal to match and operate the first program file stored in the preset storage space based on the application configuration information so as to test the first program file.
32. A second terminal, characterized in that the second terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a transmission instruction sent by a first terminal through communication connection with the first terminal, wherein the transmission instruction carries a first program file of an application program and a preset path, and the preset path is used for indicating a preset storage space of a second terminal;
storing the first program file in the preset storage space according to the transmission instruction;
receiving an operation instruction sent by the first terminal through the communication connection; the operation instruction carries application configuration information;
and matching and operating the first program file stored in the preset storage space according to the application configuration information in the operating instruction so as to realize the test of the first program file.
33. A first terminal, characterized in that the first terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a program file acquisition instruction sent by a second terminal through communication connection with the second terminal, wherein the program file acquisition instruction is sent when the second terminal detects operation on a first program file of an application program, and the program file acquisition instruction carries application configuration information of the application program; the operation is to send an operation instruction carrying the application configuration information to the second terminal;
inquiring a second program file corresponding to the application configuration information according to the application configuration information;
and sending a program file response instruction to the second terminal through the communication connection, wherein the program file response instruction carries the second program file, and the second terminal is used for replacing the first program file with the second program file and running the second program file so as to realize the test of the second program file.
34. A second terminal, characterized in that the second terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the operation of a first program file of an application program is detected, sending a program file acquisition instruction to a first terminal through communication connection with the first terminal, wherein the program file acquisition instruction carries application configuration information of the application program; the operation means that the first terminal sends an operation instruction carrying the application configuration information;
receiving a program file response instruction sent by the first terminal through the communication connection, wherein the program file response instruction carries a second program file inquired according to the application configuration information;
and replacing the first program file with the second program file, and operating the second program file to realize the test of the second program file.
35. A computer-readable storage medium having stored therein at least one instruction, the instruction being loaded and executed by a processor to implement:
operations performed in a program file execution method according to any one of claims 1 to 7, or operations performed in a program file execution method according to any one of claims 8 to 11, or operations performed in a program file execution method according to any one of claims 12 to 13, or operations performed in a program file execution method according to any one of claims 14 to 15.
CN201811635114.8A 2018-12-29 2018-12-29 Program file operation method, device, terminal and storage medium Active CN109684112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811635114.8A CN109684112B (en) 2018-12-29 2018-12-29 Program file operation method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811635114.8A CN109684112B (en) 2018-12-29 2018-12-29 Program file operation method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109684112A CN109684112A (en) 2019-04-26
CN109684112B true CN109684112B (en) 2021-06-29

Family

ID=66191117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811635114.8A Active CN109684112B (en) 2018-12-29 2018-12-29 Program file operation method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109684112B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502225B (en) * 2019-08-29 2024-01-23 合肥格易集成电路有限公司 Development board routine demonstration method and device, development board and storage medium
CN114301899B (en) * 2020-09-22 2022-10-25 荣耀终端有限公司 Data transmission method, system, electronic device and storage medium
CN117785498A (en) * 2022-09-20 2024-03-29 华为技术有限公司 Data access method, electronic device, and computer-readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system
CN107688534A (en) * 2017-07-26 2018-02-13 平安科技(深圳)有限公司 Zonal testing method, apparatus, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100375059C (en) * 2005-05-13 2008-03-12 中兴通讯股份有限公司 Automatic testing system of person digital aid cell phone function and method thereof
CN103699481A (en) * 2013-12-03 2014-04-02 华为技术有限公司 Code debugging method and code debugging system
CN106598835B (en) * 2015-10-19 2019-12-20 广州爱九游信息技术有限公司 Application testing method, device and system
US10860464B2 (en) * 2017-03-10 2020-12-08 Micro Focus Llc Test selection for application commit
CN107491321A (en) * 2017-07-03 2017-12-19 北京奇安信科技有限公司 A kind of processing method and processing device for being used to realize automatic software updating

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620565A (en) * 2008-07-04 2010-01-06 福建升腾资讯有限公司 Method for automatically testing functions of terminal system
CN107688534A (en) * 2017-07-26 2018-02-13 平安科技(深圳)有限公司 Zonal testing method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109684112A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN107370772B (en) account login method and device and computer readable storage medium
US20170013456A1 (en) Method and device for testing a terminal
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN107562500B (en) Debugging device, method and equipment
CN111752598A (en) Page generation method and device, electronic equipment and storage medium
CN115185717A (en) Interface calling method and device, electronic equipment and storage medium
CN109344051B (en) Data processing method and device, electronic equipment and storage medium
CN110795354A (en) Information processing method, device and storage medium
CN110704030A (en) Interface configuration information generation method and device, electronic equipment and storage medium
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN110928854A (en) Data import method and device and electronic equipment
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
CN111596980B (en) Information processing method and device
CN110989987B (en) Portal webpage generation method and device, client, server and storage medium
CN113626321A (en) Bridging test method, device, system and storage medium
CN113626322A (en) Interface test method, device, equipment and medium based on binary data communication
CN107193622B (en) Code compiling processing method and device and terminal
CN112631695A (en) Data verification method and device, electronic equipment and storage medium
CN111338961A (en) Application debugging method and device, electronic equipment and storage medium
CN109739763B (en) Code segment operation method, device, terminal and storage medium
CN111221559B (en) Application updating method, device, storage medium, terminal and server
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN115002227B (en) User access request response method, storage medium and electronic device
CN109947640B (en) Regression test-based core function coverage statistical 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