CN111858302B - Method and device for testing small program, electronic equipment and storage medium - Google Patents

Method and device for testing small program, electronic equipment and storage medium Download PDF

Info

Publication number
CN111858302B
CN111858302B CN202010508049.3A CN202010508049A CN111858302B CN 111858302 B CN111858302 B CN 111858302B CN 202010508049 A CN202010508049 A CN 202010508049A CN 111858302 B CN111858302 B CN 111858302B
Authority
CN
China
Prior art keywords
applet
program
parent program
package
running environment
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
CN202010508049.3A
Other languages
Chinese (zh)
Other versions
CN111858302A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010508049.3A priority Critical patent/CN111858302B/en
Publication of CN111858302A publication Critical patent/CN111858302A/en
Application granted granted Critical
Publication of CN111858302B publication Critical patent/CN111858302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a test method and device of an applet, electronic equipment and a storage medium, and relates to the field of artificial intelligence and applet problem positioning. The specific scheme is as follows: when the problem report information of the applet sent by the first device is received, cloning a program package of the applet and a current running environment of a parent program attached to the applet in the first device, acquiring a debugging version package of the parent program, loading the parent program and a test program in an adjusting version package, installing the applet in the parent program, modifying the running environment of the parent program according to the cloned current running environment information, further starting the applet and testing the applet by using the test program, realizing the restoration of the applet running environment, and reproducing the problem scene of the applet to locate the problem by acquiring the current running environment information of the attached parent program, thereby realizing the intelligent detection of the applet problem, rapidly positioning the problem, and avoiding repeated communication between a problem reporter and a problem solver.

Description

Method and device for testing small program, electronic equipment and storage medium
Technical Field
Embodiments of the present application relate generally to the field of internet applications and, more particularly, to the field of applet problem localization.
Background
With the rapid development of the applet market, the online diverse applets have created a number of problems while meeting a large number of drop-like demands. For the case that remote debugging cannot meet the requirements of developers for locating problems, many developers report problem phenomena to development engineers of the applet bottom framework, and the development engineers conduct problem location.
However, in practical applications, the problem reporter is often an online Release package (i.e., release package) user, and since the Release package is an optimal package of online Release applets, a development engineer cannot utilize the Release package to debug to locate the problem, but can only gradually locate the problem by continuously communicating details with the problem reporter, which is time-consuming, labor-consuming and inefficient.
Disclosure of Invention
The application provides a test method and device of an applet, electronic equipment and a storage medium.
According to a first aspect, there is provided a method of testing an applet, comprising:
receiving problem report information of an applet sent by a first device;
cloning a program package of the applet and current running environment information of a parent program to which the applet is attached from the first device according to the problem report information;
Acquiring a debugging version package of the parent program, and loading the parent program and a test program in the debugging version package;
installing the applet in the parent program according to the package of the applet, and modifying the running environment of the parent program according to the current running environment information; and
and starting the applet, and testing the applet through the test program.
According to a second aspect, there is provided an applet testing apparatus comprising:
the receiving module is used for receiving the problem report information of the applet sent by the first equipment;
the cloning module is used for cloning a program package of the applet and current running environment information of a parent program to which the applet is attached from the first device according to the problem report information;
the loading module is used for acquiring the debugging version package of the parent program and loading the parent program and the test program in the debugging version package;
the installation module is used for installing the applet in the parent program according to the package of the applet and modifying the running environment of the parent program according to the current running environment information; and
And the test module is used for starting the small program and testing the small program through the test program.
According to a third aspect, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of testing the applet as in the first aspect.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the test method of the applet as in the first aspect.
According to a fifth aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of testing an applet as in the first aspect.
The method, the device, the electronic equipment and the storage medium for testing the small program provided by the application have the following beneficial effects:
when the problem report information of the applet sent by the first device is received, cloning a program package of the applet in the first device and a current running environment of a parent program attached to the applet, acquiring a debugging version package of the parent program, then loading the parent program and a test program in the adjusting version package, installing the applet in the parent program, modifying the running environment of the parent program according to the cloned current running environment information, starting the applet, and testing the applet by using the test program, thereby realizing the restoration of the applet running environment, reproducing the problem scene of the applet, being capable of quickly carrying out problem positioning, carrying out problem positioning by restoring the problem scene of the applet, avoiding repeated communication between a problem reporter and a problem solver, saving time and labor, improving the speed and efficiency of problem positioning, having high timeliness, and solving the technical problems of the prior art that a development engineer needs to continuously communicate with the problem reporter to gradually position the problem, consuming time and effort and low efficiency.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a flow chart of a testing method of an applet according to a first embodiment of the application;
FIG. 2 is a flow chart of a test method of an applet according to a second embodiment of the application;
FIG. 3 is a flow chart of a test method of an applet according to a third embodiment of the application;
FIG. 4 is a flow chart of a testing method of an applet according to a fourth embodiment of the application;
FIG. 5 is a flow chart of a test method of an applet according to a fifth embodiment of the application;
FIG. 6 is an exemplary diagram of an interaction process between a problem reporter and a problem solver when the problem localization is performed on the applet by the applet test method provided by the present application;
FIG. 7 is a diagram showing an example of cloning and installation processes;
FIG. 8 is a schematic diagram of a test apparatus of an applet in accordance with a sixth embodiment of the application;
Fig. 9 is a schematic structural view of a test device of an applet according to a seventh embodiment of the application;
FIG. 10 is a schematic diagram of a test apparatus of an applet according to an eighth embodiment of the application;
FIG. 11 is a schematic structural view of a test apparatus of an applet according to a ninth embodiment of the application;
FIG. 12 is a schematic view of a test apparatus of an applet in accordance with a tenth embodiment of the application;
fig. 13 is a block diagram of an electronic device for implementing the test method of the applet in an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The test method, apparatus, electronic device, and storage medium of the applet of the present application are described below with reference to the accompanying drawings.
With the high-speed development of the applet market, intelligent applets integrated in applications such as WeChat, payment treasures and mobile phones are also expanding on a large scale. Taking the mobile phone hundred degrees as an example, more than 10 ten thousand small programs are already resident in the mobile phone hundred degrees.
The online diverse applets can meet different requirements of 120 vertical industries, and meanwhile, many problems are generated, and users or developers often report the problems. At present, for testing and locating the reported problems, the following methods are generally adopted:
(1) For the problem of debugging version package (i.e. Debug package), because Debug information is contained in Debug package and Debug package is not optimized, it is convenient for programmer to Debug, and programmer can directly Debug breakpoint after getting Debug package to locate problem. For example, when the problems of non-opening of the applet and unequal page layout of the applet are encountered, using the Debug package, a programmer can connect a compiler to perform breakpoint debugging, check specific operation error reporting information, and then locate specific problem causes according to the error reporting information.
(2) For the problem of the Release package, if the running scene of the applet can be stably reproduced, a development engineer can acquire the Debug package of the applet and view the problem according to the breakpoint of the reproduced scene.
(3) For the problem of Release package, if the operation scene of the applet cannot be stably reproduced, the electronic equipment used by the problem reporter needs to be taken, and the breakpoint debugging is performed by covering and installing the application program with the same version (the application program is the application program where the applet with the problem resides); if the electronic equipment used by the problem reporter is not available, the development engineer can only find the model of the electronic equipment, the version of the installed application program, the related information of the applet with the problem, etc. required by the problem reporter, and the problem is gradually located by repeatedly communicating the details, which is time-consuming and labor-consuming.
Therefore, under the condition that the operation scene of the applet cannot be reproduced, breakpoint debugging can be performed only by taking the electronic equipment used by the problem reporter, but in practical application, due to the influence of factors such as geographic position, user privacy and the like, a development engineer often has difficulty in taking the electronic equipment of the problem reporter, and can gradually position the problem only by continuously communicating with details of the problem reporter, so that the problem is time-consuming and labor-consuming, and the problem positioning efficiency is lower.
In view of the above problems, the application discloses a method for testing a applet, which clones a program package of the applet in a first device and a current running environment of a parent program to which the applet is attached when receiving problem report information of the applet sent by the first device, and obtains a debugging version package of the parent program, then loads the parent program and the test program in the adjusting version package, installs the applet in the parent program, and modifies the running environment of the parent program according to the cloned current running environment information, and then starts the applet to test the applet, thereby realizing the restoration of the applet running environment, reproducing the problem scene of the applet, being capable of rapidly performing problem positioning, avoiding repeated communication between a problem reporter and a problem solver by restoring the problem scene of the applet, saving time and labor, improving the speed and efficiency of problem positioning, and having high timeliness.
Fig. 1 is a flow chart of a method for testing an applet according to a first embodiment of the present application, which may be executed by a test device for an applet provided by the present application, or may be executed by an electronic device provided by the present application, where the electronic device may include, but is not limited to, a mobile phone, a tablet computer, a wearable device, etc. The application is explained below by taking as an example a test method for executing the applet provided by the application by an electronic device which can be held by a problem-solving person (such as a development engineer, programmer, etc.) to find a solution to the problem located and to solve the problem in time.
As shown in fig. 1, the method for testing the applet may include the following steps:
step 101, receiving problem report information of an applet sent by a first device.
The first device is an electronic device used by a problem reporter (such as a user), and may be, for example, a mobile phone, a tablet computer, etc. When a user uses any applet in the application programs, if the applet is found to have problems, such as the applet cannot be opened and flash backed, the problem report information of the applet can be sent to report the problems.
As an example, the problem report information reported by the first device may include, but is not limited to, information of names of applets, problem types, and the like, where the problem types may be, for example, open-not-open, page layout-not-paired, flash-back, and the like.
And 102, cloning the package of the applet and the current running environment information of the parent program to which the applet is attached from the first device according to the problem report information.
In this embodiment, after the electronic device receives the problem report information sent by the first device, the package of the applet and the current running environment of the parent program to which the applet is attached may be cloned from the first device according to the problem report information.
The package of the applet includes all information such as code environment, swanCore, extensionCore, user memory, etc. used by the applet, and the current running environment information includes, but is not limited to, database information, AB experiment, log information, etc. Wherein SwanCore is a software development kit (Software Development Kit, SDK) for communication between the front end of the applet runtime (Javascript code of the applet developer) and the client (operating system such as android, iOS, etc.); extensionCore is a supplement to Swancore, and business parties using an open source SDK can extend to use self-defined functions; the user memory stores data which need to be stored in the sandbox in the process of operating the applet by the user; the database information comprises download of all small programs of a user on a parent program and download use records of Swancore, extensionCore; the AB experiment means that AB verification is performed on functions on line in a refined mode, and the reliability and the income of the new functions are verified to accord with expectations; the log information is information generated in the operation process of the user and is used for recording information on a key operation path and is mainly used for positioning problems.
In this embodiment, after the electronic device receives the problem report information sent by the first device, the name of the applet may be determined from the problem report information, and the package of the corresponding applet is cloned from the first device according to the determined name of the applet, and the current running environment information of the parent program to which the applet is attached is cloned.
As an example, the electronic device may generate a corresponding clone two-dimensional code according to the name of the applet determined from the problem report information, and send the clone two-dimensional code to the first device, after the first device scans the clone two-dimensional code, the first device may automatically clone the package of the applet and the current running environment information of the attached parent program, further package the cloned package and the current running environment information and upload the package to a specified platform (such as an Aegis platform), and the electronic device logs in the specified platform to take the package, thereby obtaining the cloned package and the current running environment information.
Step 103, obtaining a debugging version package of the parent program, and loading the parent program and the test program in the debugging version package.
As an example, the version number of the parent program to which the applet package is attached may be obtained from the first device, for example, when the applet package and the current running environment information of the attached parent program are cloned from the first device, the version number of the parent program may be obtained, and further, the debug version package of the parent program corresponding to the version number may be obtained according to the version number. When the debugging version package of the parent program is obtained, the website can be logged in according to the website address of the website storing the debugging version package of each version, and the debugging version package matched with the version number can be searched and downloaded from the website.
In this embodiment, after the electronic device obtains the debug version package of the parent program, the parent program and the test program in the debug version package may be loaded.
Step 104, installing the applet in the parent program according to the package of the applet, and modifying the running environment of the parent program according to the current running environment information.
In this embodiment, after the electronic device loads the parent program, the applet may be installed in the parent program according to the installation package of the cloned applet, and the running environment of the loaded parent program may be modified according to the current running environment information of the clone.
In practical application, when the applet is installed in the parent program, each file in the package of the applet may be copied to a corresponding location in the storage unit of the electronic device, and assembled into a new applet. When the running environment of the parent program is modified, different information in the acquired current running environment information can be utilized to replace the content under the corresponding file in the running environment of the parent program, so that the updating of the running environment of the parent program is realized.
Therefore, the method realizes the restoration of the operating environment of the applet, reproduces the problem scene of the applet and is beneficial to accurately positioning the problem by loading the applet in the applet and installing the applet in the applet and modifying the operating environment of the applet into the current operating environment information according to the current operating environment information.
Step 105, starting the applet, and testing the applet by the test program.
In this embodiment, after the applet is installed in the parent program and the running environment of the parent program is modified, the applet can be started, and the applet is tested by the test program. Therefore, the problem scene of the user can be quickly reproduced by installing the applet in the parent program of the same version as the parent program used by the user and modifying the running environment of the parent program to be consistent with the current running environment of the parent program used by the user, and the problem cause can be conveniently and quickly positioned by starting the applet in the same problem scene and testing, thereby being beneficial to timely stopping damage.
According to the embodiment of the application, the problem scene of the applet is reproduced by acquiring the current running environment information of the attached parent program to locate the problem, so that the problem in the running process of the applet can be automatically located without repeated communication between a problem reporter and a problem solver, intelligent detection of the problem of the applet is realized, the problem location can be rapidly carried out, and the speed and efficiency of the problem location are improved.
According to the method for testing the applet, the problem report information of the applet sent by the first device is received, the program package of the applet and the current running environment information of the parent program to which the applet is attached are cloned from the first device according to the problem report information, the debugging version package of the parent program is obtained, the parent program and the test program in the debugging version package are loaded, the applet is installed in the parent program according to the program package of the applet, the running environment of the parent program is modified according to the current running environment information, the applet is started, and the applet is tested through the test program. Therefore, when the problem report information of the applet sent by the first device is received, the program package of the applet in the first device and the current running environment of the parent program attached to the applet are cloned, the debugging version package of the parent program is obtained, then the parent program and the test program in the adjusting version package are loaded, the applet is installed in the parent program, the running environment of the parent program is modified according to the cloned current running environment information, the applet is started, the test program is utilized to test the applet, and therefore, the reduction of the applet running environment is realized, the problem scene of the applet is reproduced, the problem location can be rapidly carried out, the problem location is carried out through reducing the problem scene of the applet, the repeated communication between the problem reporter and the problem solver is avoided, time and labor are saved, the speed and efficiency of the problem location are improved, the timeliness is high, and the technical problems that in the prior art, a development engineer needs to continuously communicate with the problem reporter to gradually locate the problem, time and labor are consumed, and the efficiency is low are solved.
In order to more clearly describe the specific implementation process of the current running environment information of the applet and the parent program to which the applet is attached in the foregoing embodiment, the description is made with reference to fig. 2.
Fig. 2 is a flow chart of a testing method of an applet according to a second embodiment of the application. As shown in fig. 2, step 102 may include the following steps, based on the embodiment shown in fig. 1:
step 201, a cloning instruction is sent to a parent program of the first device, wherein the parent program of the first device establishes a cloning file package according to the cloning instruction, acquires a program package and current running environment information of an applet in the first device, and adds the program package and the current running environment information of the applet to the cloning file package.
In this embodiment, after receiving the problem report information sent by the first device, the electronic device may send a cloning instruction to a parent program of the first device, where the parent program of the first device establishes a cloning file package according to the cloning instruction, obtains a program package of the small program in the first device and current running environment information, and adds the obtained program package and current running environment information to the cloning file package.
As an example, the cloning instruction may be a cloning two-dimensional code, after the electronic device receives the problem report information sent by the first device, determines an applet with a problem reported by the user according to the problem report information, obtains an application program interface verification sequence number Appkey of the applet, determines a corresponding cloning protocol according to the Appkey, and further generates a cloning two-dimensional code according to the cloning protocol, and sends the cloning two-dimensional code to a parent program of the first device.
After receiving the clone two-dimension code, the parent program of the first device recognizes the clone two-dimension code to obtain a clone protocol, then starts the clone protocol to start the clone process, establishes a clone file package, obtains the program package and the current running environment information of the applet, and further adds the program package and the current running environment information of the applet into the clone file package.
Step 202, receiving a clone file package sent by a parent program of a first device, and extracting a program package of an applet and current running environment information from the clone file package.
In this embodiment, after the parent program of the first device generates the clone package containing the applet package and the current running environment information, the clone package may be sent to the electronic device, so that the electronic device receives the clone package.
As an example, the electronic device may obtain the clone file package sent by the parent program of the first device by directly interacting with the parent program of the first device in a manner that the electronic device receives the clone file package sent by the parent program of the first device.
As another example, the electronic device receiving the clone file package sent by the parent program of the first device may be accomplished through a third party platform. Specifically, after the first device generates the clone package containing the applet and the current running environment information, the clone package may be uploaded to a designated platform, for example, to an Aegis platform, and the electronic device logs into the Aegis platform to download the clone package. In addition, when the first device uploads the clone file package, the clone file package can be compressed and then uploaded, so that the flow can be saved, the uploading speed is improved, and the clone file package can be encrypted through a preset encryption algorithm before being uploaded and then uploaded, so that the safety is ensured.
Then, after receiving the clone file package, the electronic device may extract the package of the applet and the current operating environment information from the clone file package.
It can be understood that if the clone file packet received by the electronic device is a compressed file packet, the clone file packet may be decompressed first, and then the program packet and the current running environment information of the applet may be extracted from the decompressed clone file packet; if the received clone file package is an encrypted file package, the received clone file package can be decrypted through a decryption tool, and then the program package and the current running environment information of the small program are extracted from the decrypted clone file package.
According to the method for testing the applet, the clone instruction is sent to the parent program of the first device, the parent program of the first device establishes the clone file package according to the clone instruction, the program package and the current running environment information of the applet in the first device are obtained, the program package and the current running environment information of the applet are added to the clone file package, the clone file package sent by the parent program of the first device is received, the program package and the current running environment information of the applet are extracted from the clone file package, and therefore the program package and the current running environment information of the applet in the first device can be obtained through cloning only by sending the clone instruction to the parent program of the first device, and the method is convenient and quick, complete in obtained running environment information and favorable for accurately positioning problems.
The version of each application is usually not unique, and the application program merchant can frequently update the application program to repair the vulnerability of the application program, so that the use experience of the user is improved. Different versions of the application program correspond to different debugging version packages so as to purposefully debug the application program. Thus, in one possible implementation manner of the embodiment of the present application, version information of the parent program may be obtained to determine the corresponding debug version package. The explanation is made below with reference to fig. 3.
Fig. 3 is a flow chart of a testing method of an applet according to a third embodiment of the application, as shown in fig. 3, in step 103, obtaining a debug version package of a parent program may include the following steps:
in step 301, version information of a parent program is acquired.
Typically, an online published application (i.e., a parent program in the present application) will be updated frequently, and updated application versions will be published periodically or aperiodically, and users may choose to update or not update applications currently installed in the device according to the needs, and thus the versions used by different users may be different for the same application.
In this embodiment, in order to accurately restore the running environment of the applet, version information of the parent program to which the applet is attached may be obtained to obtain an application program of the same version as the parent program to which the applet is attached. The version information may be, for example, a version number, and the version information of the acquired WeChat is 2.9.0.121.
As an example, when version information of the parent program is acquired, it may be acquired through a clone upload interface. When the electronic device clones the current running environment information of the parent program attached to the applet from the first device, the version information of the parent program can be obtained at the same time.
Step 302, obtaining a debugging version package of the parent program corresponding to the version information according to the version information of the parent program.
To facilitate debugging of different versions of an application, typically, for each version of the application, a debug version package of the corresponding version is maintained. For example, an application program with a version number of 11.19 corresponds to an 11.19 debug version package, an application program with a version number of 11.22 corresponds to an 11.22 debug version package, each version of the debug version package can be kept on a specific website, and when a certain version of the debug version package needs to be obtained, the website can be accessed for downloading.
Thus, in this embodiment, after the version information of the parent program is obtained, the debug version package of the parent program matched with the version information may be obtained according to the version information of the parent program.
According to the test method of the applet, the version information of the applet is obtained, the debugging version package of the applet corresponding to the version information is obtained according to the version information of the applet, the debugging version package of the same version as the applet attached to the applet in the first device is obtained, conditions are provided for accurately restoring the running environment of the applet, and problem positioning is facilitated accurately.
After the parent program is loaded in the electronic device, the parent program can be in a started state or a non-started state, and for different running states, different embodiments are provided to modify the running environment of the parent program, which is described in detail below with reference to fig. 4.
Fig. 4 is a flowchart of a testing method of an applet according to a fourth embodiment of the application, as shown in fig. 4, and in step 104, modifying the running environment of the parent program according to the current running environment information based on the embodiment shown in fig. 1, may include the following steps:
step 401, obtaining the current running state of the parent program.
The current running state is a starting state or a non-starting state.
As an example, the electronic device may determine whether the parent program is currently in a foreground running state, and if so, determine that the current running state of the parent program is a startup state; otherwise, determining the current running state of the parent program as an unactuated state.
The method for judging whether the parent program is currently in the foreground running state may be various, for example, for an electronic device of the android system, actigyLifeCycleCallbacks may be used to monitor an application program currently in the foreground running state, if the application program currently in the foreground running state is consistent with the identifier of the parent program, it is determined that the parent program is currently in the starting state, otherwise, it is determined that the parent program is currently in the non-starting state.
Step 402, if the current running state of the parent program is the start-up state, reloading the current running environment information to make the running environment of the parent program consistent with the running environment of the parent program of the first device.
In this embodiment, when it is determined that the current running state of the parent program is the start-up state, the reloading operation may be performed on the current running environment information in the parent program, so that the current configuration information, database information, AB experiment and the like of the parent program are replaced with corresponding information in the current running environment information obtained by cloning, and the running environment of the replaced parent program is consistent with the running environment of the parent program in the first device, so that the running environment of the applet is accurately restored. The above-described process may be referred to as a hot update process.
Step 403, if the current running state of the parent program is the un-started state, eliminating the process corresponding to the parent program, loading the current running environment information to make the running environment of the parent program consistent with the running environment of the parent program of the first device, and starting the parent program.
In this embodiment, when it is determined that the current running state of the parent program is an un-started state, the process corresponding to the parent program is killed, and then the cloned current running environment information is loaded in the parent program, so that the current configuration information, database information, AB experiment and the like of the parent program are replaced by corresponding information in the cloned current running environment information, and the running environment of the replaced parent program is consistent with the running environment of the parent program in the first device, so that the running environment of the applet is accurately restored. The above-described process may be referred to as a cold start process.
After the loading operation of the current running environment information is completed, since the current parent program is still in an un-started state, the parent program can be started for subsequent testing.
According to the method for testing the applet, the current running state of the parent program is obtained, and when the current running state of the parent program is the starting state, the current running environment information is reloaded so that the running environment of the parent program is consistent with the running environment of the parent program of the first device; when the current running state of the parent program is the non-starting state, eliminating the corresponding process of the parent program, loading the current running environment information to enable the running environment of the parent program to be consistent with that of the parent program of the first equipment, and starting the parent program, so that the corresponding running environment loading mode is adopted for the parent program in different states, the flexibility of the method is improved, the running environment of the parent program is consistent with that of the parent program in the first equipment through loading the current running environment information, the accurate restoration of the running scene of the applet is realized, and the problem of accurate positioning is facilitated.
Generally, log information generated in the operation process of a user records operation information on some critical paths in the operation process and can be used for positioning problems, so that in a possible implementation manner of the embodiment of the application, the log information of a small program in a first device can be acquired for testing, thereby facilitating problem positioning. The following is a detailed description with reference to fig. 5.
Fig. 5 is a flow chart of a testing method of an applet according to a fifth embodiment of the application, as shown in fig. 5, in step 105, the applet is tested by the testing program on the basis of the embodiment shown in fig. 1, and may include the following steps:
step 501, obtaining log information of an applet in a first device.
As an example, the log information of the applet in the first device may be obtained by interacting with the first device while the electronic device clones the package of the applet and the current running environment information of the parent program to which the applet is attached from the first device.
As an example, when the first device receives the clone instruction sent by the electronic device, the first device may obtain, in addition to the package of the applet and the current running environment information of the parent program, log information of the applet, and add the log information to the clone package, upload the clone package and the current running environment information of the applet and the parent program to a specified platform, and the electronic device may obtain the log information of the applet in the first device from the specified platform.
Therefore, the log information of the applet is obtained together while the current running environment information of the applet and the parent program are cloned from the first equipment, and the information required for problem location can be obtained only by one-time interaction with the first equipment, so that the interaction times are reduced, and the problem location efficiency is improved.
Step 502, the applet is operated according to the log information to test the applet.
In this embodiment, after the electronic device obtains log information of the applet in the first device, the applet may be operated according to the log information to test the applet.
As an example, after the electronic device receives the log information of the applet in the first device, the log information may be displayed to a development engineer, and the development engineer operates the applet in the electronic device according to the operation of the applet by the user recorded in the log information, so as to restore the process of operating the applet by the user, and according to the problem phenomenon occurring in the operation process, the problem of the applet can be located, and a specific cause of the problem is determined.
As an example, the electronic device may use a log information reading tool to read the content in the obtained log information, identify the operation process included in the log information, and execute the identified operation process on the applet, so as to achieve the purpose of simulating the process of operating the applet on the first device by the user, and according to the problem phenomenon occurring in the operation process, the problem of the applet can be located, and the specific cause causing the problem is determined. Therefore, automation of problem positioning is realized, manual participation is reduced, and the probability of inaccurate problem positioning caused by manual misoperation can be reduced.
According to the method for testing the applet, the applet is tested by acquiring the log information of the applet in the first device and operating the applet according to the log information, and because the operation information on the critical path is recorded in the log information, the problem can be conveniently positioned, so that the applet is tested by operating the applet according to the log information in the embodiment, the problem reproduction and positioning under the same environment and the same operation path are realized, and the problem positioning efficiency is higher.
The implementation process of the applet test method provided by the application in practical application is explained below by taking the parent program attached by the applet as a mobile phone hundred degree APP (hereinafter referred to as "hand hundred") as an example with reference to fig. 6 and 7.
FIG. 6 is an exemplary diagram of an interaction process between a problem reporter and a problem solver when the problem localization is performed on the applet by the applet test method provided by the present application; fig. 7 is a diagram showing an example of cloning and installation. As shown in fig. 6, the problem reporter may send a message "my a applet presents a problem" to the problem resolver to report the problem, and after receiving the problem reported by the problem reporter, the problem resolver sends a clone two-dimensional code to the problem reporter and operations that the problem reporter needs to perform, such as: "I give you a two-dimensional code, later sweep down with the hand. The generation process of the cloned two-dimensional code is shown as the content displayed in the area 1 in fig. 6, the electronic device firstly executes the step 1 to obtain the App Key of the applet a, and the obtaining modes can be three, namely, the App Key is obtained by entering the corresponding platform through the website designated in fig. 6; secondly, for the application developer (i.e. NA development in FIG. 6), the Debug package of the A applet can be opened to obtain; thirdly, for a tester (i.e., QA in fig. 6), the App Key can be obtained by means of packet grabbing or 606 dotting, wherein 606 dotting refers to a statistical way of data unification. After the App Key of the applet is obtained, step 2 may be executed, and a cloning protocol is generated according to the obtained App Key, so that step 3 is executed, and a two-dimensional code generator, such as a website https in fig. 6, is utilized: the two-dimensional code generator provided in// cli. Im/generates a cloned two-dimensional code. The generation process of the clone two-dimensional code displayed in the area 1 is not displayed to the problem reporter in practical application, and the process is shown in fig. 6 only for explaining how the clone two-dimensional code is generated, and cannot be used as information sent to the problem reporter by the problem solver.
After receiving the message and the clone two-dimensional code sent by the problem-solving person, the problem reporter scans the clone two-dimensional code by using the hand in the held device, and executes the cloning process shown in fig. 7. After the two-dimension codes are cloned by using the manual scanning in the held device, the cloning protocol is intercepted, and the cloning protocol is started to start cloning, wherein the cloning process is automatically executed without concern of the problem reporter. Before cloning, a clone cache file clone file clone_App Key is created under a cache directory, a clone empty folder clone_Zip is created under a memory card sdcard directory, and then an IO thread is started to start cloning, wherein the clone content comprises a small program package, swanCore, extensionCore, a configuration file (Sp file), database information (Db information), ab experiments and the like. And uniformly packaging cloned information to generate a zip file, encrypting by an advanced encryption standard (Advanced Encryption Standard, AES), uploading to an Aegis platform, and finally generating a Toast prompt message 'successful feedback'. After seeing the prompt message of 'successful feedback', the problem reporter can send the message of 'successful feedback after one sweep' to the problem solver, and the problem solver informs the problem reporter of the positioning result later.
When the problem solver performs problem location, the steps shown in area 2 in fig. 6 are executed to restore the applet operating environment, and the problem scenario of the applet is reproduced. Specifically, a designated website is opened first to log in the Aegis platform, and the applet package uploaded by the problem feedback person (i.e. the problem reporter) is obtained according to the code scanning time interval of the problem feedback person or the App Key of the a applet, if necessary, the obtained applet package can be filtered by asking the problem reporter for the called user identification number (Called User IDentification number, CUID) of the problem reporter. The applet package is downloaded from the Aegis platform, for example, the downloaded file may be named xxxx. Then, a decompression tool swan_dycrypt. Py is downloaded from a download link (not shown in fig. 6), and a command "> python swan_dycrypt. Py xxxx.zipfiles" is run in the terminal to decompress the xxxx.zipfiles file, the decompression path is a swan_feedback_filename, and the clonzip file under the decompression path is sent to a storage card sd root directory of the terminal (such as a mobile phone), so that a cloning applet is installed. Before installing the cloning applet, an installation protocol is generated, and then a two-dimensional code generator is utilized, such as a website https in fig. 6: the two-dimensional code generator provided in the// cli.im/generates an installation two-dimensional code, and after the installation of the Debug package with the same hand hundred version is found, the installation two-dimensional code is scanned. In the installation process shown in fig. 7, after the two-dimensional code is scanned and installed, an installation protocol is intercepted, a cloneZip is decompressed, whether an applet in the cloneZip and an App Key in the installation protocol are legal or not is checked, cloning information is copied to a corresponding file when the applet is legal, the Sp file and Db data are reloaded, and then the positioning problem can be started.
The content displayed in the area 2 is not displayed to the problem reporter in practical use, and the content is displayed in fig. 6 only for explaining the operation performed by the apparatus held by the problem solver, and cannot be used as information transmitted from the problem solver to the problem reporter.
After the problem positioning is finished, the problem solver sends a message of 'the problem is positioned and is caused by XX reasons' to the problem reporter so as to inform the problem reporter that the reasons of the problem are located, and the problem reporter can conveniently solve the problem.
The small program testing method provided by the application can be applied to the scenes of Yu Baibing detection, on-line problem reproduction and the like, can be used for rapidly positioning the problems, is high in efficiency, and provides beneficial help for timely stopping damage on the line and improving the stability of the frame.
According to the embodiment of the application, the application further provides a test device of the applet.
Fig. 8 is a schematic structural view of a test apparatus for an applet according to a sixth embodiment of the application. As shown in fig. 8, the test device 60 of the applet includes: a receiving module 610, a cloning module 620, a loading module 630, an installing module 640, and a testing module 650.
The receiving module 610 is configured to receive problem report information of an applet sent by the first device;
A cloning module 620, configured to clone, from among the first devices, a package of the applet and current running environment information of a parent program to which the applet is attached according to the problem report information;
a loading module 630, configured to obtain a debug version package of the parent program, and load the parent program and a test program in the debug version package;
an installation module 640, configured to install the applet in the parent program according to a package of the applet, and modify an operating environment of the parent program according to the current operating environment information; and
and the test module 650 is used for starting the applet and testing the applet through the test program.
In one possible implementation manner of the embodiment of the present application, as shown in fig. 9, the cloning module 620 may include, based on the embodiment shown in fig. 8:
a sending unit 621 configured to send a clone instruction to the parent program of the first device, where the parent program of the first device creates a clone file package according to the clone instruction, acquires a package of the applet and current running environment information in the first device, and adds the package of the applet and the current running environment information to the clone file package; and
And a receiving unit 622, configured to receive the clone package sent by the parent program of the first device, and extract a package of the applet and current running environment information from the clone package.
In one possible implementation manner of the embodiment of the present application, as shown in fig. 10, on the basis of the embodiment shown in fig. 8, the loading module 630 includes:
a first obtaining unit 631 for obtaining version information of the parent program; and
a second obtaining unit 632, configured to obtain, according to the version information of the parent program, a debug version package of the parent program corresponding to the version information.
In one possible implementation manner of the embodiment of the present application, as shown in fig. 11, on the basis of the embodiment shown in fig. 8, the installation module 640 includes:
a state acquisition unit 641 for acquiring a current running state of the parent program;
a reloading unit 642 configured to reload the current running environment information to make the running environment of the parent program coincide with the running environment of the first device parent program if the current running state of the parent program is a start-up state;
and a cold start unit 643, configured to eliminate a process corresponding to the parent program if the current running state of the parent program is an inactive state, load the current running environment information so that the running environment of the parent program is consistent with the running environment of the parent program of the first device, and start the parent program.
In one possible implementation manner of the embodiment of the present application, as shown in fig. 12, based on the embodiment shown in fig. 8, a test module 650 includes:
a log obtaining unit 651 for obtaining log information of the applet in the first device; and
and the test unit 652 is configured to operate on the applet according to the log information to test the applet.
It should be noted that the foregoing explanation of the embodiment of the method for testing the applet is also applicable to the device for testing the applet in this embodiment, and the implementation principle is similar, which is not repeated here.
According to the small program testing device, when the problem report information of the small program sent by the first device is received, the program package of the small program in the first device and the current running environment of the parent program attached to the small program are cloned, the debugging version package of the parent program is obtained, then the parent program and the testing program in the adjusting version package are loaded, the small program is installed in the parent program, the running environment of the parent program is modified according to the cloned current running environment information, the small program is started, the small program is tested by the testing program, and therefore the small program running environment is restored, the problem scene of the small program is reproduced, the problem positioning can be quickly carried out, the problem positioning is carried out by restoring the problem scene of the small program, repeated communication between a problem reporter and a problem solver is avoided, time and labor are saved, the speed and efficiency of problem positioning are improved, the timeliness is high, and the technical problems that in the prior art, a development engineer needs to continuously communicate with the detail of the problem reporter to position the problem gradually, time and labor are consumed, and the efficiency is low are solved.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
As shown in fig. 13, a block diagram of an electronic device for implementing the test method of the applet in an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 13, the electronic device includes: one or more processors 701, memory 702, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 701 is illustrated in fig. 13.
Memory 702 is a non-transitory computer readable storage medium provided by the present application. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the test method of the applet provided by the application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the test method of the applet provided by the present application.
The memory 702 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the receiving module 610, the cloning module 620, the loading module 630, the installing module 640, and the testing module 650 shown in fig. 8) corresponding to the testing method of the applet in the embodiment of the application. The processor 701 executes various functional applications of the server and data processing, i.e., implements the test method of the applet in the method embodiments described above, by running non-transitory software programs, instructions, and modules stored in the memory 702.
Memory 702 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device performing the test method of the applet, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 optionally includes memory remotely located relative to processor 701, which may be connected to the electronic device performing the test method of the applet over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device performing the test method of the applet may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or otherwise, in fig. 13 by way of example.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device performing the test method of the applet, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, etc. input devices. The output device 704 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, when the problem report information of the applet sent by the first device is received, the program package of the applet and the current running environment of the parent program attached to the applet in the first device are cloned, the debugging version package of the parent program is obtained, the parent program and the test program in the adjusting version package are loaded, the applet is installed in the parent program, the running environment of the parent program is modified, the applet is tested, the reduction of the running environment of the applet is realized, the problem scene of the applet is reproduced, the problem location can be performed quickly, the repeated communication between the problem reporter and the problem solver is avoided by reducing the problem scene of the applet, time and labor are saved, the speed and efficiency of the problem location are improved, and the timeliness is high.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of testing an applet, comprising:
receiving problem report information of an applet sent by a first device;
cloning a program package of the applet and current running environment information of a parent program to which the applet is attached from the first device according to the problem report information;
acquiring a debugging version package of the parent program, and loading the parent program and a test program in the debugging version package;
installing the applet in the parent program according to the package of the applet, and modifying the running environment of the parent program according to the current running environment information; and
starting the applet, and testing the applet through the test program;
wherein the modifying the running environment of the parent program according to the current running environment information includes:
Acquiring the current running state of the parent program;
if the current running state of the parent program is a starting state, reloading the current running environment information to enable the running environment of the parent program to be consistent with the running environment of the parent program of the first device;
and if the current running state of the parent program is an un-started state, eliminating the process corresponding to the parent program, loading the current running environment information to enable the running environment of the parent program to be consistent with that of the parent program of the first device, and starting the parent program.
2. The method for testing an applet according to claim 1, wherein the cloning of the applet package and the current running environment information of the parent program to which the applet is attached from among the first devices according to the problem report information comprises:
sending a cloning instruction to the parent program of the first device, wherein the parent program of the first device establishes a cloning file package according to the cloning instruction, acquires a program package and current running environment information of the applet in the first device, and adds the program package and the current running environment information of the applet to the cloning file package; and
And receiving the clone file package sent by the parent program of the first device, and extracting the package of the small program and the current running environment information from the clone file package.
3. The method for testing an applet according to claim 1, wherein the obtaining a debug version package of the parent program comprises:
acquiring version information of the parent program; and
and acquiring a debugging version package of the parent program corresponding to the version information according to the version information of the parent program.
4. The method for testing an applet according to claim 1, wherein the testing the applet by the test program comprises:
acquiring log information of the applet in the first device; and
and operating the applet according to the log information to test the applet.
5. An applet testing apparatus comprising:
the receiving module is used for receiving the problem report information of the applet sent by the first equipment;
the cloning module is used for cloning a program package of the applet and current running environment information of a parent program to which the applet is attached from the first device according to the problem report information;
The loading module is used for acquiring the debugging version package of the parent program and loading the parent program and the test program in the debugging version package;
the installation module is used for installing the applet in the parent program according to the package of the applet and modifying the running environment of the parent program according to the current running environment information; and
the test module is used for starting the applet and testing the applet through the test program;
wherein, the installation module includes:
the state acquisition unit is used for acquiring the current running state of the parent program;
the reloading unit is used for reloading the current running environment information to enable the running environment of the parent program to be consistent with the running environment of the parent program of the first device if the current running state of the parent program is a starting state;
and the cold starting unit is used for eliminating the process corresponding to the parent program if the current running state of the parent program is an un-started state, loading the current running environment information to enable the running environment of the parent program to be consistent with that of the parent program of the first equipment, and starting the parent program.
6. The applet testing device according to claim 5, wherein the cloning module comprises:
a sending unit, configured to send a cloning instruction to the parent program of the first device, where the parent program of the first device establishes a cloning file package according to the cloning instruction, obtains a package of the applet and current running environment information in the first device, and adds the package of the applet and the current running environment information to the cloning file package; and
and the receiving unit is used for receiving the clone file package sent by the parent program of the first device and extracting the program package and the current running environment information of the small program from the clone file package.
7. The applet testing device according to claim 5, wherein the loading module comprises:
the first acquisition unit is used for acquiring version information of the parent program; and
the second acquisition unit is used for acquiring the debugging version package of the parent program corresponding to the version information according to the version information of the parent program.
8. The applet testing device according to claim 5, wherein the testing module comprises:
A log obtaining unit configured to obtain log information of the applet in the first device; and
and the test unit is used for operating the applet according to the log information so as to test the applet.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of testing the applet according to any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the test method of the applet of any one of claims 1-4.
CN202010508049.3A 2020-06-05 2020-06-05 Method and device for testing small program, electronic equipment and storage medium Active CN111858302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010508049.3A CN111858302B (en) 2020-06-05 2020-06-05 Method and device for testing small program, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010508049.3A CN111858302B (en) 2020-06-05 2020-06-05 Method and device for testing small program, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111858302A CN111858302A (en) 2020-10-30
CN111858302B true CN111858302B (en) 2023-12-12

Family

ID=72986102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010508049.3A Active CN111858302B (en) 2020-06-05 2020-06-05 Method and device for testing small program, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111858302B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882945A (en) * 2021-03-12 2021-06-01 百度在线网络技术(北京)有限公司 Applet data processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473894B1 (en) * 1999-01-29 2002-10-29 International Business Machines Corporation Dynamic runtime and test architecture for Java applets
US9262300B1 (en) * 2014-06-24 2016-02-16 Google Inc. Debugging computer programming code in a cloud debugger environment
CN108829581A (en) * 2018-05-22 2018-11-16 平安科技(深圳)有限公司 Applied program testing method, device, computer equipment and storage medium
CN109739770A (en) * 2019-01-04 2019-05-10 百度在线网络技术(北京)有限公司 The adjustment method and device of small routine
CN110471853A (en) * 2019-08-15 2019-11-19 平安普惠企业管理有限公司 APP test method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473894B1 (en) * 1999-01-29 2002-10-29 International Business Machines Corporation Dynamic runtime and test architecture for Java applets
US9262300B1 (en) * 2014-06-24 2016-02-16 Google Inc. Debugging computer programming code in a cloud debugger environment
CN108829581A (en) * 2018-05-22 2018-11-16 平安科技(深圳)有限公司 Applied program testing method, device, computer equipment and storage medium
CN109739770A (en) * 2019-01-04 2019-05-10 百度在线网络技术(北京)有限公司 The adjustment method and device of small routine
CN110471853A (en) * 2019-08-15 2019-11-19 平安普惠企业管理有限公司 APP test method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小程序测试设计特点;洪泽勇;刘厚磊;;现代经济信息(23);全文 *

Also Published As

Publication number Publication date
CN111858302A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US20160283353A1 (en) Automated software testing
US9898396B2 (en) Automated software testing and validation via graphical user interface
US8533691B2 (en) Managing non-common features for program code translation
CN111984476B (en) Test method and device
US20190087310A1 (en) Mobile application program testing method, server, terminal, and storage medium
US20200183683A1 (en) Application architecture generation
US20230333965A1 (en) System and Method for Testing Applications
CN111176629A (en) Application development method and device
CN111752843A (en) Method, device, electronic equipment and readable storage medium for determining influence surface
CN115454869A (en) Interface automation test method, device, equipment and storage medium
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
CN111913889A (en) Test system building method and test system
CN111666217A (en) Method and apparatus for testing code
JP6891780B2 (en) Software quality judgment device, software quality judgment method, and software quality judgment program
CN115658529A (en) Automatic testing method for user page and related equipment
EP3447635A1 (en) Application architecture generation
CN110727575B (en) Information processing method, system, device and storage medium
CN111858302B (en) Method and device for testing small program, electronic equipment and storage medium
CN113138768B (en) Application package generation method and device, electronic equipment and readable storage medium
CN114035829A (en) Page component updating method and device, electronic equipment and storage medium
CN112506793A (en) Embedded software unit testing method, system, readable medium and electronic equipment
US10216619B2 (en) System and method for test automation using a decentralized self-contained test environment platform
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN114416578A (en) Test method and device
CN114661274A (en) Method and device for generating intelligent contract

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