CN114968279A - Automatic installation method and device of software to be tested - Google Patents

Automatic installation method and device of software to be tested Download PDF

Info

Publication number
CN114968279A
CN114968279A CN202110209272.2A CN202110209272A CN114968279A CN 114968279 A CN114968279 A CN 114968279A CN 202110209272 A CN202110209272 A CN 202110209272A CN 114968279 A CN114968279 A CN 114968279A
Authority
CN
China
Prior art keywords
information
installation
control
intelligent terminal
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110209272.2A
Other languages
Chinese (zh)
Inventor
陆帅忠
李秋林
金伟光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202110209272.2A priority Critical patent/CN114968279A/en
Publication of CN114968279A publication Critical patent/CN114968279A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/453Help systems

Abstract

The application provides an automatic installation method and device of software to be tested, and belongs to the technical field of testing. The method comprises the following steps: receiving an installation package of software to be tested, which is sent by testing equipment; the method comprises the steps of calling an interface of an intelligent terminal through a monitoring tool to complete interactive operation corresponding to a first step in the installation process, wherein the monitoring tool is installed on the intelligent terminal and used for monitoring the installation process of test software, the installation process comprises the first step and a second step, and the second step is the step of entering after the interactive operation. According to the method and the device, the interactive operation on the display interface of the intelligent terminal is completed through the monitoring tool, the interactive operation is not required to be manually completed, the installation efficiency of the to-be-tested software installation package is improved, and therefore the test efficiency of the to-be-tested software is also improved.

Description

Automatic installation method and device of software to be tested
Technical Field
The present application relates to the field of software testing technologies, and in particular, to an automatic installation method and apparatus for software to be tested.
Background
Before the newly developed application software is put into the market formally, a technician is required to perform performance test on the application software on a terminal, and because different terminals have different characteristics, the performance test on the application software is required to be performed on different terminals respectively in order to avoid the problem that the application software is incompatible.
At present, before formal testing is put into practice, the application software needs to be downloaded to terminals of various brands and models manually, and the downloading process of the application software is complicated, so that the manual downloading efficiency is low, and the testing speed of the application software is reduced.
Disclosure of Invention
The embodiment of the application aims to provide an automatic installation method and device of software to be tested, so as to solve the problem of low testing speed of application software. The specific technical scheme is as follows:
in a first aspect, there is provided an automatic installation system for software to be tested, the system comprising:
the testing equipment is connected with the intelligent terminal and used for sending the installation package of the software to be tested to the intelligent terminal;
the intelligent terminal is provided with a monitoring tool, the monitoring tool is used for monitoring the installation process of software to be tested and finishing the interactive operation corresponding to the first step in the installation process through calling an interface of the intelligent terminal, wherein the installation process comprises the continuous first step and the continuous second step, the first step is an automatic execution step in the installation process, and the second step is an automatic execution step entering after the interactive operation.
Optionally, the monitoring tool is configured to call an interface of the intelligent terminal to operate a control element in an installation control when a display interface of the intelligent terminal monitors interface information associated with the installation package, so as to complete automatic installation of the installation package, where the interface information is information displayed on the display interface when the installation control pops up.
Optionally, the system further comprises: the server is connected with the intelligent terminal and used for sending authentication information corresponding to the equipment information of the intelligent terminal to the intelligent terminal;
the monitoring tool is further configured to send preset authentication information to the installation control when the intelligent terminal is determined to be the first terminal and the interface information is monitored to be the input information, and trigger a confirmation button in the installation control when the interface information is monitored to be the click information, wherein the first terminal is a terminal which needs to supplement the authentication information.
Optionally, the monitoring tool is further configured to trigger a confirmation element in the installation control when it is determined that the intelligent terminal is a second terminal and it is monitored that the interface information is click information, where the second terminal is a terminal that does not need to supplement authentication information.
In a second aspect, a method for automatically installing software to be tested is provided, the method comprising:
receiving an installation package of software to be tested, which is sent by testing equipment;
the method comprises the steps of calling an interface of an intelligent terminal through a monitoring tool to complete interactive operation corresponding to a first step in the installation process, wherein the monitoring tool is installed on the intelligent terminal and used for monitoring the installation process of test software, the installation process comprises the first step and a second step, and the second step is the step of entering after the interactive operation.
Optionally, the interactive operation corresponding to the first step is to operate a control element in an installation control, and the completing the interactive operation corresponding to the first step in the installation process on a display interface of the intelligent terminal by calling the interface of the intelligent terminal includes:
and under the condition that interface information associated with the installation package is monitored on a display interface of the intelligent terminal through a monitoring tool, calling an interface of the intelligent terminal to operate a control element in an installation control to complete automatic installation of the installation package, wherein the interface information is information displayed on the display interface when the installation control is popped up.
Optionally, the invoking the interface of the intelligent terminal to operate the control element in the installation control includes:
under the condition of monitoring the interface information, determining the control type of the installation control according to the interface information;
and carrying out corresponding operation on the control element in the installation control according to the control type.
Optionally, the interface information includes at least one of input information and click information, the control element includes an input box and a confirmation button, and determining the control type of the installation control according to the interface information includes, in the case of monitoring the interface information: monitoring the input information through the monitoring tool under the condition that the intelligent terminal is determined to be a first terminal, wherein the first terminal is a terminal needing to supplement authentication information; determining the control type of the installation control as an input control under the condition of monitoring the input information;
the operating the control element in the installation control according to the control type comprises: sending preset authentication information to an input box of the input control through the monitoring tool;
and under the condition that the click information is monitored by the monitoring tool, determining the installation control as a confirmation control, and triggering a confirmation button in the confirmation control by the monitoring tool.
Optionally, the interface information includes click information, the control element includes confirmation information, and determining the control type of the installation control according to the interface information includes: under the condition that the intelligent terminal is determined to be a second terminal, click information is monitored through the monitoring tool, wherein the second terminal is a terminal which does not need to supplement authentication information; under the condition that the click information is monitored, determining the installation control as a confirmation control;
the operation on the control element in the installation control according to the control type comprises the following steps: and triggering a confirmation button in the confirmation control through the monitoring tool.
Optionally, the inputting preset authentication information into the input box of the input control through the monitoring tool includes:
acquiring authentication information matched with the equipment information of the intelligent equipment, wherein the authentication information comprises at least one of an account and a password;
confirming the authentication type of the authentication information to be input in the input control;
and selecting corresponding authentication information according to the authentication type and sending the authentication information to the input box of the input control.
Optionally, the obtaining of the authentication information matched with the device information of the smart device includes:
acquiring equipment information of the intelligent terminal through a monitoring tool;
sending an inquiry request carrying the equipment information to a server, wherein the server stores the equipment information of a plurality of terminals needing information input and authentication information corresponding to the equipment information, and the inquiry request is used for inquiring whether the equipment information exists in the equipment information in the server;
and acquiring authentication information corresponding to the equipment information of the intelligent terminal from a server.
In a third aspect, an automatic installation apparatus for software to be tested is provided, the apparatus comprising:
the receiving module is used for receiving an installation package of the software to be tested, which is sent by the testing equipment;
the interaction module is used for calling an interface of the intelligent terminal through a monitoring tool to complete the interaction operation corresponding to the first step in the installation process, wherein the monitoring tool is installed on the intelligent terminal and used for monitoring the installation process of the test software, the installation process comprises the first step and the second step, and the second step is the step of entering after the interaction operation.
Optionally, the interactive operation corresponding to the first step is an operation on a control element in an installation control, and the interactive module includes:
and the interaction unit is used for calling an interface of the intelligent terminal to operate a control element in an installation control to complete automatic installation of the installation package under the condition that interface information associated with the installation package is monitored on a display interface of the intelligent terminal through a monitoring tool, wherein the interface information is information displayed on the display interface when the installation control is popped up.
In a fourth aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of automatically installing any software to be tested when the program stored in the memory is executed.
In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the method steps of automatic installation of any one of the software to be tested.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides an automatic installation method of software to be tested, which comprises the following steps: the method comprises the steps that an intelligent terminal receives an installation package of software to be tested, the installation package is sent by testing equipment, then an interface of the intelligent terminal is called through a monitoring tool to complete interactive operation corresponding to a first step in an installation process on a display interface of the intelligent terminal, the monitoring tool is installed on the intelligent terminal and used for monitoring the installation process of the testing software, the installation process comprises the continuous first step and a second step, and the second step is a step which is started after the interactive operation is completed. According to the method and the device, the monitoring tool is used for finishing the interactive operation on the display interface of the intelligent terminal, the manual interactive operation is not needed, the installation efficiency of the to-be-tested software installation package is improved, the test efficiency of the to-be-tested software is improved, in addition, the monitoring tool is used for performing the interactive operation, and the accuracy of the interactive operation is improved.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of an automatic installation method of software to be tested according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for automatically installing software to be tested according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of input information provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating click information provided by an embodiment of the present application;
FIG. 5 is a flowchart of an automatic installation method of software to be tested according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an automatic installation apparatus for software to be tested according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
In order to solve the problems mentioned in the background art, according to an aspect of an embodiment of the present application, there is provided an automatic installation system of software to be tested, the system including: the intelligent terminal is connected with the testing equipment, the testing equipment is stored with an installation package of software to be tested, and the intelligent terminal needs to complete installation operation of the installation package of the software to be tested. The method comprises the steps that a test device sends an installation package of software to be tested to an intelligent terminal, a monitoring tool is installed on the intelligent terminal, the monitoring tool is sent to the intelligent terminal by the test device and used for monitoring the installation process of the software to be tested, interactive operation corresponding to a first step in the installation process is completed on a display interface of the intelligent terminal by calling an interface of the intelligent terminal, wherein the first step is to operate a control element in an installation control popped up on the display interface, the installation process comprises a continuous first step and a continuous second step, the second step is a step which is entered after the interactive operation is completed, and specifically is the installation operation of the installation package of the software to be tested.
Optionally, after the installation package of the software to be tested is downloaded to the intelligent terminal, the display interface of the intelligent terminal pops up interface information associated with the installation package, where the interface information includes the installation control and other information in the display interface, and the other information includes characters and pictures related to the software to be tested. At the moment, the control elements in the installation control need to be operated, interface information is monitored through a monitoring tool on a display interface of the intelligent terminal, if the monitoring tool monitors the interface information and indicates that the installation control pops out, the monitoring tool calls the interface of the intelligent terminal to operate the control elements in the installation control, and automatic installation of the installation package is executed after the operation is completed. The interface information is information displayed on the display interface when the installation control pops up.
The system also comprises a server connected with the intelligent terminal, and the intelligent terminal can acquire authentication information corresponding to the equipment information from the server. Before monitoring interface information, the monitoring tool needs to judge whether the intelligent terminal is a first terminal needing to supplement authentication information, and input information is specifically the authentication information of the first terminal.
If the monitoring tool determines that the intelligent terminal is the first terminal, the fact that the input information of the intelligent terminal needs to be monitored is shown, when the monitoring tool monitors that the interface information is the input information, the obtained authentication information is sent to the installation control, then monitoring is continued, and when the interface information is monitored to be click information, a confirmation key in the installation control is triggered.
If the monitoring tool determines that the intelligent terminal is the second terminal, wherein the second terminal is a terminal which does not need to supplement authentication information, the monitoring tool indicates that the monitoring tool only needs to monitor whether the interface information is click information, and when the monitoring tool monitors that the interface information is the click information, a confirmation key in the installation control is triggered.
Alternatively, in the embodiment of the present application, the above-mentioned automatic installation method of software to be tested may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services for the terminal or a client installed on the terminal, and a database 105 may be provided on the server or separately from the server, and is used to provide data storage services for the server 103, and the network includes but is not limited to: wide area network, metropolitan area network, or local area network, and the terminal 101 includes but is not limited to a PC, a cell phone, a tablet computer, and the like.
The embodiment of the application provides an automatic installation method of software to be tested, which can be applied to an intelligent terminal and is used for automatically installing the software to be tested.
The following describes in detail an automatic installation method of software to be tested provided in an embodiment of the present application with reference to a specific embodiment, and as shown in fig. 2, the specific steps are as follows:
step 201: and receiving an installation package of the software to be tested, which is sent by the testing equipment.
In the application, an installation package of software to be tested is integrated on the testing equipment, the testing equipment sends the installation package to the intelligent terminal, wherein the testing equipment can be a computer, the intelligent terminal can be a mobile phone, and the computer sends the installation package of the software to be tested to the mobile phone through the USB interface.
Step 202: and calling an interface of the intelligent terminal through the monitoring tool to finish the interactive operation corresponding to the first step in the installation process on a display interface of the intelligent terminal.
The intelligent terminal is provided with a monitoring tool, the monitoring tool is used for monitoring the installation process of the test software, the installation process comprises a first step and a second step, and the second step is a step which is entered after the interactive operation is completed.
The intelligent terminal is provided with a monitoring tool, and the monitoring tool can be installed on the intelligent terminal in advance or can be sent to the intelligent terminal by test equipment. Illustratively, the listening tool may be uiautomator1, the uiautomator1 is an Android automation framework, the testing device pushes a jar packet of the uiautomator1 to the smart terminal, and the uiautomator1 is in the form of the jar packet and therefore can be directly started without installation. The uiautomator2 is in the form of an apk, and requires the installation of an apk to be followed, and direct start-up cannot be achieved.
The monitoring tool is used for monitoring the installation process of the test software, the installation process comprises a first step and a second step which are continuous, the first step is interactive operation with the intelligent terminal, the second step is a step which is entered after the interactive operation, the interactive operation corresponding to the first step in the installation process is mainly completed on a display interface of the intelligent terminal through the monitoring tool, and then automatic installation of the installation package corresponding to the subsequent second step is automatically executed.
According to the method and the device, the interactive operation on the display interface of the intelligent terminal is completed through the monitoring tool, the interactive operation is not required to be manually completed, the installation efficiency of the software installation package to be tested is improved, and the accuracy of the interactive operation is improved.
As an optional implementation manner, the interactive operation corresponding to the first step is to operate a control element in the installation control, and the completing of the interactive operation corresponding to the first step in the installation process at the display interface of the intelligent terminal by calling the interface of the intelligent terminal includes: and under the condition that the monitoring tool monitors the interface information associated with the installation package on the display interface of the intelligent terminal, calling the interface of the intelligent terminal to operate the control element in the installation control to complete the automatic installation of the installation package, wherein the interface information is the information displayed on the display interface when the installation control is popped up.
In the installation process of the installation package of the software to be tested, the display interface of the intelligent terminal pops up interface information associated with the installation package, wherein the interface information comprises control information in the installation control and information, such as pictures, characters and the like, outside the installation control and associated with the installation package. Optionally, the installation control is a pop-up box popped up from the display interface, the installation control includes at least one of an input control and a confirmation control, the installation control has a control element for performing an interactive operation, the control element in the input control is an input box, and the control element in the confirmation control is a confirmation button.
After monitoring the interface information associated with the installation package, the monitoring tool indicates that the display interface of the intelligent terminal pops up the installation control, and at the moment, the monitoring tool can call the interface of the intelligent terminal to operate the control element in the installation control, complete the interactive operation in the installation process of the installation package, and then automatically install the installation package.
In the application, the interface information not only comprises the control information in the installation control, but also comprises the information such as pictures, characters and the like which are associated with the installation package except the installation control, and because the interface information is associated with the installation package, the identification accuracy of the interface information can be improved, and information identification errors can be avoided.
As an optional implementation manner, invoking an interface of the intelligent terminal to operate a control element in the installation control includes: determining the control type of the installation control according to the interface information under the condition of monitoring the interface information; and carrying out corresponding operation on the control element in the installation control according to the control type.
When the monitoring tool monitors the interface information, the monitoring tool determines the control type of the popped case control according to the interface information, wherein the control type comprises an input control and a confirmation control, then the monitoring tool performs corresponding operation according to the control element in the installation control according to the control type, specifically, if the control type is the input control, the authentication information is input in an input frame in the input control, and if the control type is the confirmation control, a confirmation key in the confirmation control is triggered.
For intelligent terminals of different brands and different models, some intelligent terminals need to input authentication information when installing application software, and some intelligent terminals do not need to input authentication information, so that certain obstacles exist in automatic monitoring.
As an optional implementation manner, after the monitoring tool is started on the intelligent terminal, it is first determined whether the intelligent terminal belongs to a first terminal or a second terminal, where the first terminal is a terminal that needs to supplement authentication information, and the second terminal is a terminal that does not need to supplement authentication information, the authentication information includes an account or a password corresponding to device information of the intelligent terminal, or a password corresponding to the device information, and the specific authentication information may be determined according to an authentication type of the authentication information to be input in the input control.
The monitoring tool obtains the device information of the intelligent terminal after being started, where the device information may be a device model, a device type, or an International Mobile Equipment Identity (IMEI) of the intelligent terminal. The monitoring tool can determine whether the intelligent terminal belongs to the first terminal or the second terminal through the device information. The server stores the equipment information of a plurality of terminals needing information input and the authentication information corresponding to the equipment information, and the server does not need to store the equipment information of the terminals needing no information input, so that the occupation of a memory is avoided. The terminal that needs to input information may be a terminal of a certain brand or a terminal of a certain model.
If the monitoring tool determines that the equipment information exists in the stored equipment information, the intelligent terminal is a first terminal needing authentication information input, and if the monitoring tool determines that the equipment information does not exist in the stored equipment information, the intelligent terminal is a second terminal needing no authentication information input. And if the intelligent terminal is the first terminal, the monitoring tool acquires the authentication information of the intelligent terminal from the server.
The interface information includes at least one of input information and click information, and the control element includes an input box and a confirmation button. After the monitoring tool determines that the intelligent terminal is the first terminal and indicates that the intelligent terminal needs to supplement authentication information, continuously monitoring input information on the intelligent terminal, after the input information is monitored, determining that the control type of the popped installation control is an input control, judging the authentication type of the authentication information to be input in the input control by the monitoring tool, and if the authentication type is judged by the monitoring tool to be an account number and a password, sending the acquired account number and password of the intelligent terminal to an input frame of the input control; and if the monitoring tool judges that the authentication type is only the password, the acquired password of the intelligent terminal is sent to an input box of the input control. After the server inputs the authentication information, the server can continue to monitor click information on the intelligent terminal, after the server monitors the click information, the server indicates that the confirmation control is popped up on the display interface, and then the server triggers a confirmation button in the confirmation control to indicate that the installation of the installation package is allowed.
Exemplarily, fig. 3 is a schematic diagram of input information, and it can be seen that the display interface of the intelligent terminal includes an input control, and further includes a picture, a name, a source, a version, and a size of an installation package displayed behind the input control. And the input control needs to input the account number and the password of the intelligent terminal. Fig. 4 is a schematic diagram of click information. It can be seen that a confirmation control is included on the display interface of the intelligent terminal, and control elements of the confirmation control include "prohibit" and "allow". For the first terminal, the listening means will listen for the incoming information and the click information in turn.
After the monitoring tool determines that the intelligent terminal is the second terminal, the monitoring tool indicates that the intelligent terminal does not need to supplement authentication information, continuously monitors click information on the intelligent terminal, and after the server monitors the click information, the server indicates that the confirmation control pops up on the display interface, and then the server triggers a confirmation button in the confirmation control to indicate that installation of the installation package is allowed.
As an optional implementation manner, the determining that the device information belongs to the preset information includes: sending an inquiry request to a server, wherein the inquiry request carries equipment information of the intelligent terminal, and the inquiry request is used for inquiring whether the equipment information exists in preset information in the server; receiving confirmation information sent by a server, wherein the confirmation information is used for indicating that the equipment information exists in the preset information; and determining that the equipment information belongs to the preset information according to the confirmation information.
After acquiring the equipment information of the intelligent terminal, the monitoring tool sends an equipment information query request to the server, and the server stores the equipment information of a plurality of terminals needing information input and authentication information corresponding to the equipment information. The server determines whether the equipment information exists in the existing equipment information, if the server determines that the equipment information exists in the existing equipment information, the server sends authentication information corresponding to the equipment information of the intelligent terminal to the intelligent terminal, and the intelligent terminal determines that the intelligent terminal is a first terminal after receiving the authentication information; and if the server determines that the equipment information does not exist in the existing equipment information, sending feedback information to the intelligent terminal, wherein the feedback information is used for indicating that the intelligent terminal is a second terminal which does not need to input authentication information.
For intelligent terminals of different types and models, the same account can be provided for all the intelligent terminals, the problem that effective passwords cannot be obtained due to desensitization of information is avoided, and automation can be improved by unifying the accounts of the intelligent terminals. The intelligent terminal can also adopt the account number and the password of the intelligent terminal and store the account number and the password in the server in advance.
Optionally, an embodiment of the present application further provides a processing flow chart of automatic installation of software to be tested, as shown in fig. 5, and the specific steps are as follows.
Step 501: and the monitoring equipment sends the installation package of the software to be tested to the intelligent terminal.
Step 502: the testing equipment pushes the monitoring tool uiautomator1 to the intelligent terminal, and the uiautomator1 is started.
Step 503: the uiautomator1 obtains the device information of the intelligent device and sends a query request to the server.
Step 504: and the uiautomator1 receives a matching result of the intelligent device sent by the server, wherein the matching result is used for indicating whether the intelligent device is a first device or a second device.
Step 505: when the uiautomator1 determines that the intelligent device is the first device, step 506 and 509 are performed, and when the uiautomator1 determines that the intelligent device is the second device, step 508 and 509 are performed.
Step 506: the uiautomator1 monitors input information on the display interface, and determines that the installation control is an input control when the input information is monitored.
Step 507: and sending the account number, the password or the password to an input box of the input control.
Step 508: and monitoring click information on the display interface, and confirming that the installation control is a confirmation control under the condition of monitoring the click information.
Step 509: and triggering a click button in the confirmation control.
Wherein, the sequence of step 501 and step 502 is not sequential.
Optionally, the ui automation 1 in this application needs to monitor interface information, and for some intelligent terminals of special models, the ui automation 1 may not be able to comprehensively identify the interface information, and monitoring may be omitted, which may cause inaccurate monitoring, and therefore, for some intelligent terminals of special models, this application adopts an OCR (Optical Character Recognition) mode to identify the interface information.
Based on the same technical concept, an embodiment of the present application further provides an automatic installation apparatus for software to be tested, as shown in fig. 6, the apparatus includes:
a receiving module 601, configured to receive an installation package of software to be tested, where the installation package is sent by a testing device;
the interaction module 602 is used for calling an interface of the intelligent terminal through the monitoring tool to complete the interaction operation corresponding to the first step in the installation process on a display interface of the intelligent terminal, wherein the monitoring tool is installed on the intelligent terminal and is used for monitoring the installation process of the test software, the installation process comprises a first step and a second step which are continuous, the first step is an automatic execution step in the installation process, and the second step is an automatic execution step entering after the interaction operation.
Optionally, the interactive operation corresponding to the first step is to operate a control element in the installation control, and the interactive module 602 includes:
and the interaction unit is used for calling the interface of the intelligent terminal to operate the control element in the installation control to complete the automatic installation of the installation package under the condition that the monitoring tool monitors the interface information associated with the installation package on the display interface of the intelligent terminal, wherein the interface information is the information displayed by the display interface when the installation control is popped up.
Optionally, the interaction unit comprises:
the determining subunit is used for determining the control type of the installation control according to the interface information under the condition of monitoring the interface information;
and the operation subunit is used for carrying out corresponding operation on the control element in the installation control according to the control type.
Optionally, the interface information includes at least one of input information and click information, the control element includes an input box and a confirmation button,
the determining subunit includes: the monitoring submodule is used for monitoring input information through a monitoring tool under the condition that the intelligent terminal is determined to be a first terminal, wherein the first terminal is a terminal needing to supplement authentication information;
the first determining submodule is used for determining the control type of the installation control as an input control under the condition of monitoring the input information;
the operation subunit includes: the input sub-module is used for sending preset authentication information to an input box of the input control through a monitoring tool;
and the clicking module is used for determining the installation control as a confirmation control under the condition that clicking information is monitored by the monitoring tool, and triggering a confirmation key in the confirmation control by the monitoring tool.
Optionally, the interface information includes click information, the control element includes confirmation information, and the determining the subunit includes: the monitoring submodule is used for monitoring click information through a monitoring tool under the condition that the intelligent terminal is determined to be a second terminal, wherein the second terminal is a terminal which does not need to supplement authentication information;
the second determining submodule is used for determining the installation control as a confirmation control under the condition of monitoring the click information;
the operation subunit includes: and the click submodule is used for triggering a confirmation button in the confirmation control through the monitoring tool.
Optionally, the input submodule comprises:
the intelligent equipment comprises an acquisition sub-device and a processing sub-device, wherein the acquisition sub-device acquires authentication information matched with equipment information of the intelligent equipment, and the authentication information comprises at least one of an account and a password;
the confirming sub-device is used for confirming the authentication type of the authentication information to be input in the input control;
and the selecting sub-device is used for selecting corresponding authentication information according to the authentication type and sending the authentication information to the input frame of the input control.
Optionally, the obtaining sub-apparatus includes:
the acquisition sub-module is used for acquiring the equipment information of the intelligent terminal through the monitoring tool;
the system comprises a sending submodule and a receiving submodule, wherein the sending submodule is used for sending an inquiry request carrying equipment information to a server, the server stores the equipment information of a plurality of terminals needing information input and authentication information corresponding to the equipment information, and the inquiry request inquires whether the equipment information exists in the equipment information in the server or not;
and the acquisition sub-module is used for acquiring authentication information corresponding to the equipment information of the intelligent terminal from the server.
According to another aspect of the embodiments of the present application, an electronic device is provided, as shown in fig. 7, and includes a memory 703, a processor 701, a communication interface 702, and a communication bus 704, where a computer program operable on the processor 701 is stored in the memory 703, the memory 703 and the processor 701 communicate with each other through the communication interface 702 and the communication bus 704, and the steps of the method are implemented when the processor 701 executes the computer program.
The memory and the processor in the electronic equipment are communicated with the communication interface through a communication bus. The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
There is also provided, in accordance with yet another aspect of an embodiment of the present application, a computer-readable medium having non-volatile program code executable by a processor.
Optionally, in an embodiment of the present application, a computer readable medium is configured to store program code for the processor to execute the above method.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
When the embodiments of the present application are specifically implemented, reference may be made to the above embodiments, and corresponding technical effects are achieved.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within 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), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, which are essential or part of the technical solutions contributing to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes. It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. An automatic installation system for software to be tested, the system comprising:
the testing equipment is connected with the intelligent terminal and used for sending the installation package of the software to be tested to the intelligent terminal;
the intelligent terminal is provided with a monitoring tool, the monitoring tool is used for monitoring the installation process of software to be tested and finishing the interactive operation corresponding to the first step in the installation process through calling an interface of the intelligent terminal, wherein the installation process comprises the continuous first step and the continuous second step, the first step is an automatic execution step in the installation process, and the second step is an automatic execution step entering after the interactive operation.
2. The system of claim 1,
the monitoring tool is used for calling an interface of the intelligent terminal to operate a control element in an installation control under the condition that an interface information associated with the installation package is monitored on a display interface of the intelligent terminal, so that the second step is automatically started after the first step is automatically executed, and the automatic installation of the installation package is completed, wherein the interface information is information displayed by the display interface when the installation control is popped up.
3. The system of claim 1,
the system further comprises: the server is connected with the intelligent terminal and used for sending authentication information corresponding to the equipment information of the intelligent terminal to the intelligent terminal;
the monitoring tool is further configured to send preset authentication information to the installation control when the intelligent terminal is determined to be the first terminal and the interface information is monitored to be the input information, and trigger a confirmation button in the installation control when the interface information is monitored to be the click information, wherein the first terminal is a terminal which needs to supplement the authentication information.
4. The system of claim 1,
the monitoring tool is further configured to trigger a confirmation element in the installation control when the intelligent terminal is determined to be a second terminal and the interface information is monitored to be click information, wherein the second terminal is a terminal which does not need to supplement authentication information.
5. A method for automatic installation of software to be tested, the method comprising:
receiving an installation package of software to be tested, which is sent by testing equipment;
the method comprises the steps of calling an interface of an intelligent terminal through a monitoring tool to complete interactive operation corresponding to a first step in the installation process, wherein the monitoring tool is installed on the intelligent terminal and used for monitoring the installation process of test software, the installation process comprises the first step and a second step, and the second step is the step of entering after the interactive operation.
6. The method according to claim 5, wherein the interactive operation corresponding to the first step is an operation on a control element in an installation control, and the completing the interactive operation corresponding to the first step in the installation process on a display interface of an intelligent terminal by calling an interface of the intelligent terminal comprises:
and under the condition that interface information associated with the installation package is monitored on a display interface of the intelligent terminal through a monitoring tool, calling an interface of the intelligent terminal to operate a control element in an installation control to complete automatic installation of the installation package, wherein the interface information is information displayed on the display interface when the installation control is popped up.
7. The method of claim 6, wherein invoking the interface of the smart terminal to operate the control element in the installation control comprises:
under the condition of monitoring the interface information, determining the control type of the installation control according to the interface information;
and carrying out corresponding operation on the control element in the installation control according to the control type.
8. The method of claim 7, wherein the interface information includes at least one of input information and click information, wherein the control element includes an input box and a confirmation button, and wherein determining the control type of the installation control from the interface information in the event that the interface information is monitored comprises: monitoring the input information through the monitoring tool under the condition that the intelligent terminal is determined to be a first terminal, wherein the first terminal is a terminal needing to supplement authentication information; determining the control type of the installation control as an input control under the condition of monitoring the input information;
the operating the control element in the installation control according to the control type comprises: sending preset authentication information to an input box of the input control through the monitoring tool;
and under the condition that the click information is monitored by the monitoring tool, determining that the installation control is a confirmation control, and triggering a confirmation key in the confirmation control by the monitoring tool.
9. The method of claim 7, wherein the interface information includes click information, wherein the control element includes confirmation information, and wherein determining the control type of the installation control from the interface information, if the interface information is monitored, comprises: under the condition that the intelligent terminal is determined to be a second terminal, click information is monitored through the monitoring tool, wherein the second terminal is a terminal which does not need to supplement authentication information; under the condition that the click information is monitored, determining the installation control as a confirmation control;
the operating the control element in the installation control according to the control type comprises: and triggering a confirmation button in the confirmation control through the monitoring tool.
10. The method according to claim 8 or 9, wherein the inputting preset authentication information into the input box of the input control through the listening tool comprises:
acquiring authentication information matched with the equipment information of the intelligent equipment, wherein the authentication information comprises at least one of an account and a password;
confirming the authentication type of the authentication information to be input in the input control;
and selecting corresponding authentication information according to the authentication type and sending the authentication information to the input box of the input control.
11. The method of claim 10, wherein obtaining authentication information that matches the device information of the smart device comprises:
acquiring equipment information of the intelligent terminal through a monitoring tool;
sending an inquiry request carrying the equipment information to a server, wherein the server stores equipment information of a plurality of terminals needing information input and authentication information corresponding to the equipment information, and the inquiry request is used for inquiring whether the equipment information exists in the equipment information in the server;
and acquiring authentication information corresponding to the equipment information of the intelligent terminal from a server.
12. An apparatus for automatic installation of software to be tested, the apparatus comprising:
the receiving module is used for receiving an installation package of the software to be tested, which is sent by the testing equipment;
the interaction module is used for calling an interface of the intelligent terminal through a monitoring tool to complete the interaction operation corresponding to the first step in the installation process, wherein the monitoring tool is installed on the intelligent terminal and used for monitoring the installation process of the test software, the installation process comprises the first step and the second step, and the second step is the step of entering after the interaction operation.
13. The apparatus of claim 12, wherein the interactive operation corresponding to the first step is an operation on a control element in an installation control, and wherein the interactive module comprises:
and the interaction unit is used for calling an interface of the intelligent terminal to operate a control element in an installation control to complete automatic installation of the installation package under the condition that interface information associated with the installation package is monitored on a display interface of the intelligent terminal through a monitoring tool, wherein the interface information is information displayed on the display interface when the installation control is popped up.
14. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 5 to 11 when executing a program stored in the memory.
15. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 5-11.
CN202110209272.2A 2021-02-24 2021-02-24 Automatic installation method and device of software to be tested Pending CN114968279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110209272.2A CN114968279A (en) 2021-02-24 2021-02-24 Automatic installation method and device of software to be tested

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110209272.2A CN114968279A (en) 2021-02-24 2021-02-24 Automatic installation method and device of software to be tested

Publications (1)

Publication Number Publication Date
CN114968279A true CN114968279A (en) 2022-08-30

Family

ID=82974156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110209272.2A Pending CN114968279A (en) 2021-02-24 2021-02-24 Automatic installation method and device of software to be tested

Country Status (1)

Country Link
CN (1) CN114968279A (en)

Similar Documents

Publication Publication Date Title
US8959394B2 (en) Electronic device, system, and method for testing exception handling mechanism
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN113312064B (en) Method and device for installing and configuring physical machine and computer readable medium
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN112738046B (en) One-key login method, terminal and system server
CN112054822B (en) Bluetooth test method and device, electronic equipment and storage medium
CN110059007B (en) System vulnerability scanning method and device, computer equipment and storage medium
CN108668241B (en) Information reminding method and device, storage medium and electronic equipment
CN111405006A (en) Method and device for processing remote login failure and remote login system
CN110704311B (en) Application program testing method and device, electronic equipment and readable storage medium
CN112948224A (en) Data processing method, device, terminal and storage medium
CN111338951A (en) Wireless intelligent household appliance detection method and system
CN113986256A (en) Method and device for issuing application program, electronic equipment and storage medium
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
CN114968279A (en) Automatic installation method and device of software to be tested
CN110659082A (en) Application program interface display method and device, terminal and storage medium
CN112650557B (en) Command execution method and device
CN115098116A (en) Simulation operation method and device of application program, terminal and storage medium
CN114675876A (en) Business processing method and device, electronic equipment and storage medium
CN110262813B (en) Method and apparatus for installing applications
CN109039813B (en) Method, system and equipment for detecting internet access
CN112307466A (en) Application program detection method and device, electronic equipment and storage medium
CN111638888B (en) Android application package APK installation method and first terminal
CN112148606B (en) Buried point test method, buried point test device, buried point test equipment and computer readable medium
CN108111611B (en) Client detection method and device and electronic equipment

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