[go: up one dir, main page]

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
program
applet
package
parent
information
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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3698Environments for analysis, debugging or testing of software
    • 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

Landscapes

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

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

小程序的测试方法、装置、电子设备及存储介质Test methods, devices, electronic equipment and storage media for small programs

技术领域Technical field

本申请的实施例总体上涉及互联网应用领域,并且更具体地,涉及小程序问题定位领域。Embodiments of the present application generally relate to the field of Internet applications, and more specifically, to the field of mini program problem location.

背景技术Background technique

随着小程序市场的高速发展,线上形形色色的小程序在满足大众多垂类需求的同时,也产生了很多问题。对于远程调试无法满足开发者定位问题的诉求的情况,很多开发者会把问题现象报给小程序底层框架的开发工程师,由开发工程师进行问题定位。With the rapid development of the mini program market, various online mini programs have created many problems while meeting the needs of the masses. For situations where remote debugging cannot meet the developer's request to locate the problem, many developers will report the problem to the development engineer of the underlying framework of the mini program, who will then locate the problem.

然而,在实际应用中,问题报告者多是线上发布版本包(即Release包)用户,由于Release包是线上发布的小程序的最优包,开发工程师无法利用Release包进行调试以定位问题,只能通过不断地与问题报告者沟通细节来逐步定位问题,耗时耗力,效率低。However, in actual applications, most of the problem reporters are users of online released version packages (i.e. Release packages). Since the Release package is the optimal package for online released small programs, development engineers cannot use the Release package for debugging to locate the problem. , the problem can only be gradually located by continuously communicating details with the problem reporter, which is time-consuming, labor-intensive and inefficient.

发明内容Contents of the invention

本申请提供了一种小程序的测试方法、装置、电子设备及存储介质。This application provides a test method, device, electronic equipment and storage medium for a small program.

根据第一方面,提供了一种小程序的测试方法,包括:According to the first aspect, a small program testing method is provided, including:

接收第一设备发送的小程序的问题报告信息;Receive the problem report information of the applet sent by the first device;

根据所述问题报告信息从所述第一设备之中克隆所述小程序的程序包以及所述小程序所依附的母程序的当前运行环境信息;Clone the program 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;

获取所述母程序的调试版本包,并加载所述调试版本包之中的所述母程序和测试程序;Obtain the debug version package of the mother program, and load the mother program and test program in the debug version package;

在所述母程序之中根据所述小程序的程序包安装所述小程序,并根据所述当前运行环境信息修改所述母程序的运行环境;以及Install the applet in the mother program according to the program package of the applet, and modify the operating environment of the mother program according to the current operating environment information; and

启动所述小程序,通过所述测试程序对所述小程序进行测试。Start the applet and test the applet through the test program.

根据第二方面,提供了一种小程序的测试装置,包括:According to the second aspect, a small program testing device is provided, including:

接收模块,用于接收第一设备发送的小程序的问题报告信息;A receiving module, configured to receive the problem report information of the applet sent by the first device;

克隆模块,用于根据所述问题报告信息从所述第一设备之中克隆所述小程序的程序包以及所述小程序所依附的母程序的当前运行环境信息;A cloning module, configured to clone the program 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;

加载模块,用于获取所述母程序的调试版本包,并加载所述调试版本包之中的所述母程序和测试程序;Loading module, used to obtain the debug version package of the mother program, and load the mother program and test program in the debug version package;

安装模块,用于在所述母程序之中根据所述小程序的程序包安装所述小程序,并根据所述当前运行环境信息修改所述母程序的运行环境;以及An installation module, configured to install the applet in the parent program according to the program package of the applet, and modify the operating environment of the parent program according to the current operating environment information; and

测试模块,用于启动所述小程序,通过所述测试程序对所述小程序进行测试。A test module is used to start the applet and test the applet through the test program.

根据第三方面,提供了一种电子设备,包括:According to a third aspect, an electronic device is provided, including:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如第一方面所述的小程序的测试方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform testing of the applet as described in the first aspect method.

根据第四方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行如第一方面所述的小程序的测试方法。According to a fourth aspect, there is provided a non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to execute the test method of the applet as described in the first aspect.

根据第五方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现如第一方面所述的小程序的测试方法。According to a fifth aspect, a computer program product is provided, including a computer program that implements the applet testing method as described in the first aspect when executed by a processor.

本申请提供的小程序的测试方法、装置、电子设备及存储介质,存在如下有益效果:The test methods, devices, electronic equipment and storage media of the small program provided by this application have the following beneficial effects:

通过在接收到第一设备发送的小程序的问题报告信息时,克隆第一设备中小程序的程序包,以及小程序所依附的母程序的当前运行环境,并获取母程序的调试版本包,之后,加载调整版本包中的母程序和测试程序,并在母程序中安装小程序,以及根据克隆的当前运行环境信息修改母程序的运行环境,进而启动小程序,利用测试程序对小程序进行测试,由此,实现了小程序运行环境的还原,复现了小程序的问题场景,能够快速进行问题定位,通过还原小程序的问题场景进行问题定位,避免了问题报告者与问题解决者之间的反复沟通,省时省力,提高了问题定位的速度和效率,时效性高,解决了现有技术中,开发工程师需要不断地与问题报告者沟通细节来逐步定位问题,耗时耗力,效率低的技术问题。By receiving the problem report information of the applet sent by the first device, cloning the program package of the applet in the first device and the current running environment of the parent program to which the applet is attached, and obtaining the debug version package of the parent program, and then , load the mother program and test program in the adjusted version package, install the applet in the mother program, modify the operating environment of the mother program based on the cloned current operating environment information, then start the applet, and use the test program to test the applet , thus realizing the restoration of the mini program's running environment, reproducing the problem scenario of the mini program, and enabling quick problem location. By restoring the problem scenario of the mini program, the problem can be located, thus avoiding the conflict between the problem reporter and the problem solver. Repeated communication saves time and effort, improves the speed and efficiency of problem location, and has high timeliness. In the existing technology, development engineers need to constantly communicate details with the problem reporter to gradually locate the problem, which is time-consuming, labor-intensive, and efficient. Low technical issues.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application. in:

图1是根据本申请第一实施例的小程序的测试方法的流程示意图;Figure 1 is a schematic flowchart of a test method for an applet according to the first embodiment of the present application;

图2是根据本申请第二实施例的小程序的测试方法的流程示意图;Figure 2 is a schematic flowchart of a test method for an applet according to the second embodiment of the present application;

图3是根据本申请第三实施例的小程序的测试方法的流程示意图;Figure 3 is a schematic flowchart of a test method for an applet according to the third embodiment of the present application;

图4是根据本申请第四实施例的小程序的测试方法的流程示意图;Figure 4 is a schematic flowchart of a test method for an applet according to the fourth embodiment of the present application;

图5是根据本申请第五实施例的小程序的测试方法的流程示意图;Figure 5 is a schematic flowchart of a test method for an applet according to the fifth embodiment of the present application;

图6是采用本申请提供的小程序的测试方法对小程序进行问题定位时,问题报告者与问题解决者之间的交互过程示例图;Figure 6 is an example diagram of the interaction process between the problem reporter and the problem solver when locating problems in the mini program using the mini program testing method provided by this application;

图7是克隆过程和安装过程是示例图;Figure 7 is an example of the cloning process and installation process;

图8是根据本申请第六实施例的小程序的测试装置的结构示意图;Figure 8 is a schematic structural diagram of a test device for an applet according to the sixth embodiment of the present application;

图9是根据本申请第七实施例的小程序的测试装置的结构示意图;Figure 9 is a schematic structural diagram of a test device for an applet according to the seventh embodiment of the present application;

图10是根据本申请第八实施例的小程序的测试装置的结构示意图;Figure 10 is a schematic structural diagram of a test device for an applet according to the eighth embodiment of the present application;

图11是根据本申请第九实施例的小程序的测试装置的结构示意图;Figure 11 is a schematic structural diagram of a test device for an applet according to the ninth embodiment of the present application;

图12是根据本申请第十实施例的小程序的测试装置的结构示意图;Figure 12 is a schematic structural diagram of a test device for an applet according to the tenth embodiment of the present application;

图13是用来实现本申请实施例的小程序的测试方法的电子设备的框图。Figure 13 is a block diagram of an electronic device used to implement the applet testing method according to the embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and they should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

下面参考附图描述本申请的小程序的测试方法、装置、电子设备及存储介质。The following describes the testing method, device, electronic equipment and storage medium of the applet of this application with reference to the accompanying drawings.

随着小程序市场的高速发展,微信、支付宝、手机百度等应用程序中集成的智能小程序也迎来了规模性地扩展。以手机百度为例,已经有10万多的小程序入驻手机百度。With the rapid development of the mini program market, smart mini programs integrated in applications such as WeChat, Alipay, and mobile Baidu have also experienced large-scale expansion. Take mobile Baidu as an example. There are already more than 100,000 small programs on mobile Baidu.

线上形形色色的小程序在满足大众120多个垂类行业的不同需求的同时,也产生了很多问题,经常有用户或者开发者进行问题上报。目前,对于上报的问题的测试和定位,通常采用以下几种方法实现:While various online mini programs meet the different needs of the public in more than 120 vertical industries, they also cause many problems, and users or developers often report problems. Currently, the following methods are usually used to test and locate reported problems:

(1)对于调试版本包(即Debug包)的问题,由于Debug包中包含调试信息,且Debug包未作任何优化,因此便于程序员进行调试,程序员可以在拿到Debug包之后直接进行断点调试来定位问题所在。比如,当遇到小程序打不开、小程序页面布局不对等问题时,使用Debug包,程序员可以连接编译器进行断点调试,查看具体的运行报错信息,进而根据报错信息去定位具体的问题原因。(1) Regarding the debug version package (i.e. Debug package), since the Debug package contains debugging information and has not been optimized in any way, it is convenient for programmers to debug. Programmers can directly break after getting the Debug package. Click Debug to locate the problem. For example, when encountering problems such as the inability to open the mini program and the unequal layout of the mini program pages, using the Debug package, programmers can connect to the compiler for breakpoint debugging, view specific running error information, and then locate specific errors based on the error information. problem causes.

(2)对于Release包的问题,如果能够稳定复现小程序的运行场景,则开发工程师可以获取小程序的Debug包,根据复现场景断点查看问题所在。(2) For problems with the Release package, if the running scenario of the mini program can be stably reproduced, the development engineer can obtain the Debug package of the mini program and check the problem based on the breakpoints of the reproduced scenario.

(3)对于Release包的问题,如果不能稳定复现小程序的运行场景,则需要拿到问题报告者所使用的电子设备,覆盖安装相同版本的应用程序(该应用程序为出现问题的小程序所入驻的应用程序)来进行断点调试;而如果拿不到问题报告者所使用的电子设备,则开发工程师只能找问题报告者索要电子设备的机型、安装的应用程序的版本、出现问题的小程序的相关信息等,通过反复沟通细节来逐步定位问题,耗时耗力。(3) For issues with the Release package, if the running scenario of the mini program cannot be reproduced stably, you need to obtain the electronic device used by the problem reporter and overwrite and install the same version of the application (the application is the mini program in question) application) to perform breakpoint debugging; if the electronic device used by the problem reporter cannot be obtained, the development engineer can only ask the problem reporter for the model of the electronic device, the version of the installed application, and the appearance of the electronic device. Information related to the mini program in question, etc., is gradually located through repeated communication of details, which is time-consuming and labor-intensive.

可见,对于无法复现小程序的运行场景的情况,需要拿到问题报告者使用的电子设备才可能进行断点调试,但实际应用中,由于地理位置、用户隐私等因素的影响,开发工程师往往很难拿到问题报告者的电子设备,只能通过不断地与问题报告者沟通细节来逐步定位问题,耗时耗力,问题定位的效率较低。It can be seen that if the running scenario of the mini program cannot be reproduced, it is necessary to obtain the electronic equipment used by the problem reporter to conduct breakpoint debugging. However, in actual applications, due to factors such as geographical location and user privacy, development engineers often It is difficult to obtain the electronic equipment of the problem reporter. The problem can only be gradually located by continuously communicating details with the problem reporter. This is time-consuming and labor-intensive, and the efficiency of problem location is low.

针对上述问题,本申请公开了一种小程序的测试方法,通过在接收到第一设备发送的小程序的问题报告信息时,克隆第一设备中小程序的程序包,以及小程序所依附的母程序的当前运行环境,并获取母程序的调试版本包,之后,加载调整版本包中的母程序和测试程序,并在母程序中安装小程序,以及根据克隆的当前运行环境信息修改母程序的运行环境,进而启动小程序,利用测试程序对小程序进行测试,由此,实现了小程序运行环境的还原,复现了小程序的问题场景,能够快速进行问题定位,通过还原小程序的问题场景进行问题定位,避免了问题报告者与问题解决者之间的反复沟通,省时省力,提高了问题定位的速度和效率,时效性高。In response to the above problems, the present application discloses a method for testing an applet, by cloning the program package of the applet in the first device and the parent program to which the applet is attached when receiving the problem report information of the applet sent by the first device. The current running environment of the program and obtain the debug version package of the parent program. After that, load the parent program and test program in the adjusted version package, install the small program in the parent program, and modify the parent program based on the cloned current operating environment information. running environment, then start the mini program, and use the test program to test the mini program. This achieves the restoration of the mini program's running environment, reproduces the problem scenarios of the mini program, and can quickly locate the problem. By restoring the problems of the mini program Scenario-based problem locating avoids repeated communication between problem reporters and problem solvers, saves time and effort, improves the speed and efficiency of problem locating, and is highly timely.

图1是根据本申请第一实施例的小程序的测试方法的流程示意图,该方法可以由本申请提供的小程序的测试装置执行,也可以由本申请提供的电子设备执行,其中,电子设备可以包括但不限于手机、平板电脑、可穿戴设备等。下面以由电子设备执行本申请提供的小程序的测试方法为例来解释说明本申请,该电子设备可以由问题解决者(比如开发工程师、程序员等)持有,以针对定位的问题寻找解决方案,及时解决问题。Figure 1 is a schematic flowchart of a test method for an applet according to the first embodiment of the present application. The method can be executed by the test device of the applet provided by the present application or by the electronic device provided by the present application. The electronic device may include But it is not limited to mobile phones, tablets, wearable devices, etc. This application is explained below by taking the test method of executing the small program provided by this application by an electronic device as an example. The electronic device can be held by a problem solver (such as a development engineer, programmer, etc.) to find solutions to the localized problems. plan and solve problems in a timely manner.

如图1所示,该小程序的测试方法,可以包括以下步骤:As shown in Figure 1, the test method of this applet can include the following steps:

步骤101,接收第一设备发送的小程序的问题报告信息。Step 101: Receive the problem report information of the applet sent by the first device.

其中,第一设备是问题报告者(比如用户)使用的电子设备,比如可以是手机、平板电脑等。第一设备中安装有允许入驻小程序的应用程序,比如微信、支付宝等,当用户在使用应用程序中的任一小程序时,若发现该小程序出现问题,比如小程序无法打开、闪退等问题,则可以发送小程序的问题报告信息,进行问题上报。Among them, the first device is an electronic device used by the problem reporter (such as the user), such as a mobile phone, a tablet computer, etc. The first device is installed with applications that allow mini programs to be installed, such as WeChat, Alipay, etc. When the user is using any mini program in the application, if there is a problem with the mini program, such as the mini program cannot be opened or crashes. If you have any problems, you can send the problem report information of the mini program to report the problem.

作为一种示例,第一设备上报的问题报告信息中可以包括但不限于出现问题的小程序的名称、问题类型等信息,其中,问题类型比如可以是打不开、页面布局不对、闪退等。As an example, the problem report information reported by the first device may include but is not limited to the name of the applet in which the problem occurred, the problem type and other information. The problem type may be, for example, failure to open, incorrect page layout, crash, etc. .

步骤102,根据问题报告信息从第一设备之中克隆小程序的程序包以及小程序所依附的母程序的当前运行环境信息。Step 102: Clone the program package of the applet and the current running environment information of the parent program to which the applet is attached from the first device based on the problem report information.

本实施例中,电子设备接收到第一设备发送的问题报告信息后,可以根据问题报告信息从第一设备中克隆小程序的程序包和小程序所依附的母程序的当前运行环境。In this embodiment, after receiving the problem report information sent by the first device, the electronic device can clone the program package of the applet and the current running environment of the parent program to which the applet is attached from the first device based on the problem report information.

其中,小程序的程序包中包括小程序运行使用的所有的代码环境、SwanCore、ExtensionCore、用户存储器等信息,当前运行环境信息中包括但不限于数据库信息、AB实验、日志信息等。其中,SwanCore是小程序运行时前端(指小程序开发者的Javascript代码)与客户端(指安卓、iOS等操作系统)通信的一个软件开发工具包(Software DevelopmentKit,SDK);ExtensionCore是对Swancore的补充,使用开源SDK的业务方可以进行扩展使用自己定义的功能;用户存储器中存储的是用户操作小程序的过程中沙盒需要保存的数据;数据库信息中包括母程序上用户所有小程序的下载、Swancore、ExtensionCore的下载使用记录;AB实验是指精细化对线上的功能进行AB验证,验证新功能的可靠性和收益符合预期;日志信息是用户操作过程中产生的信息,用于记录关键操作路径上的信息,主要用于定位问题。Among them, the mini program package includes all code environments, SwanCore, ExtensionCore, user memory and other information used by the mini program to run. The current running environment information includes but is not limited to database information, AB experiments, log information, etc. Among them, SwanCore is a software development kit (SDK) that communicates between the front end of the mini program (referring to the Javascript code of the mini program developer) and the client (referring to operating systems such as Android and iOS); ExtensionCore is an extension of Swancore. In addition, business parties using the open source SDK can expand and use their own defined functions; the user memory stores the data that the sandbox needs to save when the user operates the mini program; the database information includes the download of all user mini programs on the parent program. , Swancore, and ExtensionCore download and usage records; AB experiments refer to refined AB verification of online functions to verify that the reliability and benefits of new functions are in line with expectations; log information is information generated during user operations and is used to record key The information on the operation path is mainly used to locate problems.

本实施例中,电子设备接收到第一设备发送的问题报告信息后,可以从问题报告信息中确定出小程序的名称,根据确定的小程序名称从第一设备中克隆对应小程序的程序包,并克隆小程序所依附的母程序的当前运行环境信息。In this embodiment, after receiving the problem report information sent by the first device, the electronic device can determine the name of the applet from the problem report information, and clone the program package corresponding to the applet from the first device based on the determined name of the applet. , and clone the current running environment information of the parent program to which the applet is attached.

作为一种示例,电子设备可以根据从问题报告信息中确定的小程序的名称生成对应的克隆二维码,并将克隆二维码发送给第一设备,第一设备扫描克隆二维码后,即可自动克隆小程序的程序包和所依附的母程序的当前运行环境信息,进而将克隆的程序包和当前运行环境信息进行打包并上传至指定的平台(比如Aegis平台),电子设备登录指定的平台进行取包,即可获取克隆的程序包和当前运行环境信息。As an example, the electronic device can generate a corresponding cloned QR code based on the name of the applet determined from the problem report information, and send the cloned QR code to the first device. After the first device scans the cloned QR code, It can automatically clone the program package of the mini program and the current running environment information of the attached parent program, then package the cloned program package and the current running environment information and upload it to the designated platform (such as Aegis platform), and the electronic device logs in to specify If you fetch the package from the platform, you can obtain the cloned program package and current running environment information.

步骤103,获取母程序的调试版本包,并加载调试版本包之中的母程序和测试程序。Step 103: Obtain the debug version package of the mother program, and load the mother program and test program in the debug version package.

作为一种示例,可以从第一设备获取小程序包所依附的母程序的版本号,比如,可以在从第一设备克隆小程序的程序包和所依附的母程序的当前运行环境信息时,获取母程序的版本号,进而根据版本号获取与版本号对应的母程序的调试版本包。其中,获取母程序的调试版本包时,可以根据存放各个版本的调试版本包的网站的网址,登录该网站,从网站上查找并下载与版本号匹配的调试版本包。As an example, the version number of the parent program to which the applet package is attached can be obtained from the first device. For example, when cloning the program package of the applet and the current running environment information of the attached parent program from the first device, Obtain the version number of the parent program, and then obtain the debug version package of the parent program corresponding to the version number based on the version number. Among them, when obtaining the debug version package of the parent program, you can log in to the website according to the URL of the website where the debug version package of each version is stored, and search and download the debug version package matching the version number from the website.

调试版本包中不仅包括母程序,还包括测试程序,进而,本实施例中,电子设备获取了母程序的调试版本包后,可以加载调试版本包中的母程序和测试程序。The debug version package includes not only the mother program but also the test program. Furthermore, in this embodiment, after the electronic device obtains the debug version package of the mother program, it can load the mother program and the test program in the debug version package.

步骤104,在母程序之中根据小程序的程序包安装小程序,并根据当前运行环境信息修改母程序的运行环境。Step 104: Install the applet in the parent program according to the program package of the applet, and modify the operating environment of the parent program according to the current operating environment information.

本实施例中,电子设备加载了母程序后,可以根据克隆的小程序的安装包,在母程序中安装小程序,并根据克隆的当前运行环境信息,对加载的母程序的运行环境进行修改。In this embodiment, after the electronic device loads the parent program, it can install the applet in the parent program according to the installation package of the cloned applet, and modify the operating environment of the loaded parent program based on the cloned current operating environment information. .

实际应用中,在母程序中安装小程序时,可以将小程序的程序包中的各个文件拷贝至电子设备的存储单元中的对应位置,组装成新的小程序。在修改母程序的运行环境时,可以利用获取的当前运行环境信息中的不同信息,替换母程序的运行环境中对应文件下的内容,以实现母程序运行环境的更新。In practical applications, when installing an applet in a parent program, each file in the applet's program package can be copied to the corresponding location in the storage unit of the electronic device and assembled into a new applet. When modifying the operating environment of the parent program, different information in the current operating environment information obtained can be used to replace the contents of the corresponding files in the operating environment of the parent program to update the operating environment of the parent program.

从而,通过加载母程序并在母程序中安装小程序,以及根据当前运行环境信息修改母程序的运行环境为当前运行环境信息,实现了小程序的运行环境的还原,复现了小程序的问题场景,有利于准确定位问题。Therefore, by loading the main program and installing the small program in the main program, and modifying the running environment of the main program to the current running environment information according to the current running environment information, the running environment of the small program is restored and the problem of the small program is reproduced. Scenarios are helpful for accurately locating problems.

步骤105,启动小程序,通过测试程序对小程序进行测试。Step 105: Start the applet and test the applet through the test program.

本实施例中,在母程序中安装了小程序,并修改了母程序的运行环境之后,即可启动小程序,通过测试程序对小程序进行测试。从而,通过在与用户使用的相同版本的母程序中安装小程序,并修改母程序的运行环境与用户所使用的母程序的当前运行环境一致,能够快速复现用户的问题场景,通过在相同的问题场景中启动小程序并进行测试,能够方便、快速地定位出问题原因所在,有益于及时止损。In this embodiment, after the mini program is installed in the parent program and the operating environment of the parent program is modified, the mini program can be started and tested through the test program. Therefore, by installing the mini program in the same version of the main program used by the user, and modifying the running environment of the main program to be consistent with the current running environment of the main program used by the user, the user's problem scenario can be quickly reproduced, by using the same version of the main program. Launching the mini program and testing it in the problem scenario can easily and quickly locate the cause of the problem, which is helpful to stop losses in time.

本申请实施例中,通过获取所依附母程序的当前运行环境信息来复现小程序的问题场景以定位问题,从而无需问题报告者与问题解决者之间进行反复沟通即可自动地定位出小程序运行过程中出现的问题,实现了小程序问题的智能检测,能够快速进行问题定位,提高问题定位的速度和效率。In the embodiment of this application, the problem scenario of the mini program is reproduced to locate the problem by obtaining the current running environment information of the attached parent program, so that the mini program can be automatically located without repeated communication between the problem reporter and the problem solver. For problems that arise during program operation, intelligent detection of small program problems is realized, which can quickly locate problems and improve the speed and efficiency of problem location.

本实施例的小程序的测试方法,通过接收第一设备发送的小程序的问题报告信息,根据问题报告信息从第一设备之中克隆小程序的程序包以及小程序所依附的母程序的当前运行环境信息,获取母程序的调试版本包,并加载调试版本包之中的母程序和测试程序,进而在母程序之中根据小程序的程序包安装小程序,并根据当前运行环境信息修改母程序的运行环境,启动小程序,通过测试程序对小程序进行测试。由此,通过在接收到第一设备发送的小程序的问题报告信息时,克隆第一设备中小程序的程序包,以及小程序所依附的母程序的当前运行环境,并获取母程序的调试版本包,之后,加载调整版本包中的母程序和测试程序,并在母程序中安装小程序,以及根据克隆的当前运行环境信息修改母程序的运行环境,进而启动小程序,利用测试程序对小程序进行测试,由此,实现了小程序运行环境的还原,复现了小程序的问题场景,能够快速进行问题定位,通过还原小程序的问题场景进行问题定位,避免了问题报告者与问题解决者之间的反复沟通,省时省力,提高了问题定位的速度和效率,时效性高,解决了现有技术中,开发工程师需要不断地与问题报告者沟通细节来逐步定位问题,耗时耗力,效率低的技术问题。The testing method of the applet in this embodiment receives the problem report information of the applet sent by the first device, and clones the program package of the applet and the current value of the parent program to which the applet is attached from the first device according to the problem report information. Run environment information, obtain the debug version package of the mother program, and load the mother program and test program in the debug version package, then install the applet in the mother program according to the applet package, and modify the mother program according to the current running environment information. The running environment of the program, start the mini program, and test the mini program through the test program. Therefore, when receiving the problem report information of the applet sent by the first device, the program package of the applet in the first device and the current running environment of the parent program to which the applet is attached are cloned, and the debug version of the parent program is obtained. package, and then load the mother program and test program in the adjusted version package, install the small program in the mother program, and modify the operating environment of the mother program based on the cloned current operating environment information, then start the small program, and use the test program to test the small program. The program is tested, thus realizing the restoration of the mini program's running environment, reproducing the problem scenarios of the mini program, and quickly locating the problem. By restoring the problem scenario of the mini program, the problem can be located, avoiding the problem reporter and problem solver. Repeated communication between reporters saves time and effort, improves the speed and efficiency of problem location, and has high timeliness. It solves the problem in the existing technology that development engineers need to constantly communicate details with the problem reporter to gradually locate the problem, which is time-consuming and time-consuming. technical problems of low power and low efficiency.

为了更加清楚的说明前述实施例中根据问题报告信息从第一设备之中克隆小程序的程序包以及小程序所依附的母程序的当前运行环境信息的具体实现过程,下面结合附图2进行详细说明。In order to more clearly explain the specific implementation process of cloning the program package of the applet from the first device according to the problem report information and the current operating environment information of the parent program to which the applet is attached in the foregoing embodiments, the details will be described below in conjunction with Figure 2 illustrate.

图2是根据本申请第二实施例的小程序的测试方法的流程示意图。如图2所示,在如图1所示实施例的基础上,步骤102可以包括以下步骤:Figure 2 is a schematic flowchart of a test method for an applet according to the second embodiment of the present application. As shown in Figure 2, based on the embodiment shown in Figure 1, step 102 may include the following steps:

步骤201,向第一设备的母程序发送克隆指令,其中,第一设备的母程序根据克隆指令建立克隆文件包,并获取第一设备之中小程序的程序包和当前运行环境信息,以及将小程序的程序包和当前运行环境信息添加至克隆文件包。Step 201: Send a cloning instruction to the mother program of the first device. The mother program of the first device creates a clone file package according to the cloning instruction, obtains the program package and current running environment information of the applet in the first device, and transfers the applet to the first device. The program's package and current running environment information are added to the cloned file package.

本实施例中,电子设备接收到第一设备发送的问题报告信息后,可以向第一设备的母程序发送克隆指令,由第一设备的母程序根据克隆指令建立克隆文件包,并获取第一设备中小程序的程序包和当前运行环境信息添加至克隆文件包中。In this embodiment, after receiving the problem report information sent by the first device, the electronic device can send a cloning instruction to the mother program of the first device, and the mother program of the first device creates a clone file package according to the cloning instruction and obtains the first The package and current running environment information of the applet in the device are added to the cloned file package.

作为一种示例,克隆指令可以是一个克隆二维码,电子设备接收到第一设备发送的问题报告信息后,根据问题报告信息确定出用户上报的出现问题的小程序,并获取小程序的应用程序接口验证序号Appkey,并根据Appkey确定对应的克隆协议,进而根据克隆协议生成克隆二维码,将克隆二维码发送给第一设备的母程序。As an example, the cloning instruction may be a clone QR code. After receiving the problem report information sent by the first device, the electronic device determines the problematic applet reported by the user based on the problem report information and obtains the application of the applet. The program interface verifies the serial number Appkey, determines the corresponding cloning protocol based on the Appkey, generates a clone QR code based on the cloning protocol, and sends the clone QR code to the parent program of the first device.

第一设备的母程序接收到克隆二维码后,识别克隆二维码以获取克隆协议,接着启动克隆协议开始克隆过程,建立克隆文件包,并获取小程序的程序包及当前运行环境信息,进而将小程序的程序包和当前运行环境信息添加至克隆文件包中。After receiving the clone QR code, the mother program of the first device recognizes the clone QR code to obtain the cloning protocol, then starts the cloning protocol to start the cloning process, creates a clone file package, and obtains the applet's package and current operating environment information. Then add the applet's package and current running environment information to the cloned file package.

步骤202,接收第一设备的母程序发送的克隆文件包,并从克隆文件包之中提取小程序的程序包和当前运行环境信息。Step 202: Receive the clone file package sent by the parent program of the first device, and extract the program package and current running environment information of the applet from the clone file package.

本实施例中,第一设备的母程序生成包含小程序的程序包和当前运行环境信息的克隆文件包之后,可以将克隆文件包发送给电子设备,以使电子设备接收该克隆文件包。In this embodiment, after the mother program of the first device generates a clone file package containing the program package of the applet and the current running environment information, the clone file package can be sent to the electronic device, so that the electronic device receives the clone file package.

作为一种示例,电子设备接收第一设备的母程序发送的克隆文件包的方式,可以通过直接与第一设备中的母程序进行交互,来获取第一设备的母程序发送的克隆文件包。As an example, the electronic device may receive the clone file package sent by the mother program of the first device by directly interacting with the mother program in the first device to obtain the clone file package sent by the mother program of the first device.

作为另一种示例,电子设备接收第一设备的母程序发送的克隆文件包,可以通过第三方平台完成。具体地,第一设备生成包含小程序的程序包和当前运行环境信息的克隆文件包之后,可以将克隆文件包上传至指定的平台,比如上传至Aegis平台,电子设备登录Aegis平台来下载克隆文件包。此外,第一设备上传克隆文件包时,可以对克隆文件包进行压缩后再进行上传,由此能够节省流量,提高上传速度,并且,在上传前,还可以通过预设的加密算法进行加密后再进行上传,以保证安全性。As another example, the electronic device receives the clone file package sent by the mother program of the first device, which can be accomplished through a third-party platform. Specifically, after the first device generates a clone file package containing the program package of the applet and the current operating environment information, the clone file package can be uploaded to a designated platform, such as to the Aegis platform, and the electronic device logs in to the Aegis platform to download the clone file. Bag. In addition, when the first device uploads the cloned file package, it can compress the cloned file package before uploading, which can save traffic and increase the upload speed. Moreover, before uploading, it can also be encrypted by a preset encryption algorithm. Upload again to ensure security.

接着,电子设备接收到克隆文件包之后,可以从克隆文件包中提取出小程序的程序包和当前运行环境信息。Then, after receiving the cloned file package, the electronic device can extract the applet package and current running environment information from the cloned file package.

能够理解的是,如果电子设备接收到的克隆文件包为压缩后的文件包,则可以先对克隆文件包进行解压缩,再从解压缩后的克隆文件包中提取小程序的程序包和当前运行环境信息;如果接收到的克隆文件包为加密的文件包,则可以先通过解密工具进行解密,之后再从解密后的克隆文件包中提取小程序的程序包和当前运行环境信息。It can be understood that if the clone file package received by the electronic device is a compressed file package, the clone file package can be decompressed first, and then the applet program package and the current file package can be extracted from the decompressed clone file package. Running environment information; if the received cloned file package is an encrypted file package, you can first decrypt it with the decryption tool, and then extract the applet package and current running environment information from the decrypted cloned file package.

本实施例的小程序的测试方法,通过向第一设备的母程序发送克隆指令,其中,第一设备的母程序根据克隆指令建立克隆文件包,并获取第一设备之中小程序的程序包和当前运行环境信息,以及将小程序的程序包和当前运行环境信息添加至所述克隆文件包,接收第一设备的母程序发送的克隆文件包,并从克隆文件包之中提取小程序的程序包和当前运行环境信息,由此,只需向第一设备的母程序发送克隆指令即可克隆得到第一设备中小程序的程序包和当前运行环境信息,方便快捷,获取的运行环境信息齐全,有利于准确地进行问题定位。The test method of the applet in this embodiment is to send a cloning instruction to the mother program of the first device. The mother program of the first device creates a clone file package according to the cloning instruction and obtains the program package and program package of the applet in the first device. Current running environment information, and adding the program package of the applet and the current running environment information to the clone file package, receiving the clone file package sent by the mother program of the first device, and extracting the program of the applet from the clone file package package and current running environment information. Therefore, you only need to send a cloning instruction to the mother program of the first device to clone the program package and current running environment information of the small program in the first device. It is convenient and fast, and the obtained running environment information is complete. Conducive to accurate problem location.

每个应用程序的版本通常不是唯一的,应用程序商会经常更新应用程序以修复应用程序的漏洞,提高用户的使用体验。不同版本的应用程序对应不同的调试版本包,以有针对性地对应用程序进行调试。从而,在本申请实施例一种可能的实现方式中,可以获取母程序的版本信息来确定对应的调试版本包。下面结合附图3进行解释说明。The version of each application is usually not unique. Application vendors often update applications to fix application vulnerabilities and improve user experience. Different versions of applications correspond to different debugging version packages to debug the application in a targeted manner. Therefore, in a possible implementation manner of the embodiment of the present application, the version information of the parent program can be obtained to determine the corresponding debug version package. The explanation will be given below with reference to Figure 3.

图3是根据本申请第三实施例的小程序的测试方法的流程示意图,如图3所示,在如图1所示实施例的基础上,步骤103中,获取母程序的调试版本包,可以包括以下步骤:Figure 3 is a schematic flow chart of a test method for a small program according to the third embodiment of the present application. As shown in Figure 3, on the basis of the embodiment shown in Figure 1, in step 103, the debug version package of the parent program is obtained, The following steps can be included:

步骤301,获取母程序的版本信息。Step 301: Obtain the version information of the parent program.

通常,线上发布的应用程序(即本申请中的母程序)会经常更新,定期或不定期地发布更新的应用程序版本,用户可以根据需求选择更新或不更新当前设备中所安装的应用程序,由此,对于同一应用程序,不同的用户使用的版本可能不同。Usually, applications published online (i.e., the parent program in this application) are frequently updated, and updated application versions are released regularly or irregularly. Users can choose to update or not update the applications currently installed on their devices according to their needs. ,Thus, for the same application, different users may use ,different versions.

本实施例中,为了准确地还原小程序的运行环境,可以获取小程序所依附的母程序的版本信息,以获取与小程序所依附的母程序相同版本的应用程序。其中,版本信息比如可以是版本号,例如,获取的微信的版本信息为2.9.0.121。In this embodiment, in order to accurately restore the running environment of the mini program, the version information of the parent program to which the mini program is attached can be obtained to obtain an application program of the same version as the parent program to which the mini program is attached. The version information may be, for example, a version number. For example, the obtained version information of WeChat is 2.9.0.121.

作为一种示例,获取母程序的版本信息时,可以通过克隆上传接口来获取。电子设备从第一设备中克隆小程序所依附的母程序的当前运行环境信息时,可以同时获取母程序的版本信息。As an example, when obtaining the version information of the parent program, you can obtain it through the clone upload interface. When the electronic device clones the current running environment information of the parent program to which the applet is attached from the first device, it can obtain the version information of the parent program at the same time.

步骤302,根据母程序的版本信息获取版本信息对应的母程序的调试版本包。Step 302: Obtain the debug version package of the parent program corresponding to the version information according to the version information of the parent program.

为了便于对不同版本的应用程序进行调试,通常,针对每个版本的应用程序,均保留对应版本的调试版本包。比如,版本号为11.19的应用程序对应一个11.19的调试版本包,版本号为11.22的应用程序对应一个11.22的调试版本包,各个版本的调试版本包可以保留在一个专门的网址上,当需要获取某版本的调试版本包时,可以进入该网址进行下载。In order to facilitate debugging of different versions of applications, usually, for each version of the application, a debug version package of the corresponding version is retained. For example, an application with version number 11.19 corresponds to a debug version package of 11.19, and an application with version number 11.22 corresponds to a debug version package of 11.22. The debug version packages of each version can be kept on a special URL, and can be obtained when needed. When debugging a certain version of the package, you can enter this URL to download it.

从而,本实施例中,获取了母程序的版本信息后,可以根据母程序的版本信息获取与版本信息匹配的母程序的调试版本包。Therefore, in this embodiment, after obtaining the version information of the parent program, the debug version package of the parent program that matches the version information can be obtained according to the version information of the parent program.

本实施例的小程序的测试方法,通过获取母程序的版本信息,根据母程序的版本信息获取版本信息对应的母程序的调试版本包,实现了获取与小程序在第一设备中依附的母程序相同版本的调试版本包,为准确地还原小程序的运行环境提供了条件,有利于准确地进行问题定位。The test method of the applet in this embodiment achieves the acquisition of the parent program attached to the applet in the first device by obtaining the version information of the mother program and obtaining the debug version package of the mother program corresponding to the version information according to the version information of the mother program. The debug version package of the same version of the program provides conditions for accurately restoring the running environment of the mini program, which is conducive to accurate problem location.

电子设备中加载了母程序之后,母程序可以处于启动状态或未启动状态,针对不同的运行状态,本申请提供了不同的实施方案来修改母程序的运行环境,下面结合附图4进行详细说明。After the mother program is loaded into the electronic device, the mother program can be in a started state or an unstarted state. For different operating states, this application provides different implementations to modify the operating environment of the mother program, which will be described in detail below with reference to Figure 4 .

图4是根据本申请第四实施例的小程序的测试方法的流程示意图,如图4所示,在如图1所示实施例的基础上,步骤104中,根据当前运行环境信息修改母程序的运行环境,可以包括以下步骤:Figure 4 is a schematic flow chart of a test method for a small program according to the fourth embodiment of the present application. As shown in Figure 4, based on the embodiment shown in Figure 1, in step 104, the parent program is modified according to the current running environment information. The operating environment can include the following steps:

步骤401,获取母程序的当前运行状态。Step 401: Obtain the current running status of the parent program.

其中,当前运行状态为启动状态或未启动状态。Among them, the current running state is started state or not started state.

作为一种示例,电子设备可以判断母程序当前是否处前台运行状态,若是,则确定母程序的当前运行状态为启动状态;否则,则确定母程序的当前运行状态为未启动状态。As an example, the electronic device can determine whether the main program is currently running in the foreground. If so, determine that the current running state of the main program is the started state; otherwise, determine that the current running state of the main program is the unstarted state.

其中,判断母程序当前是否处于前台运行状态的方式可以有多种,例如,对于安卓系统的电子设备,可以使用ActivityLifecycleCallbacks来监听当前处于前台运行的应用程序,如果当前处于前台运行的应用程序与母程序的标识一致时,则确定母程序当前为启动状态,否则确定母程序当前为未启动状态。Among them, there are many ways to determine whether the parent program is currently running in the foreground. For example, for electronic devices in the Android system, ActivityLifecycleCallbacks can be used to monitor the application currently running in the foreground. If the application currently running in the foreground is different from the parent program, When the identifiers of the programs are consistent, it is determined that the parent program is currently in a started state; otherwise, it is determined that the parent program is currently in an unstarted state.

步骤402,如果母程序的当前运行状态为启动状态,则重加载当前运行环境信息以使得母程序的运行环境与第一设备母程序的运行环境一致。Step 402: If the current running state of the parent program is the startup state, reload the current running environment information so that the running environment of the parent program is consistent with the running environment of the first device parent program.

本实施例中,当确定母程序的当前运行状态为启动状态时,可以将当前运行环境信息在母程序中执行重加载操作,使得母程序当前的配置信息、数据库信息、AB实验等,替换为克隆获得的当前运行环境信息中的相应信息,替换后的母程序的运行环境与第一设备中母程序的运行环境一致,准确还原了小程序的运行环境。上述过程可以称为热更新过程。In this embodiment, when it is determined that the current running status of the parent program is the startup state, the current running environment information can be reloaded in the parent program, so that the current configuration information, database information, AB experiments, etc. of the parent program are replaced with Corresponding information in the current operating environment information obtained by cloning, the operating environment of the replaced parent program is consistent with the operating environment of the parent program in the first device, and the operating environment of the mini program is accurately restored. The above process can be called a hot update process.

步骤403,如果母程序的当前运行状态为未启动状态,则消除母程序对应的进程,并加载当前运行环境信息以使得母程序的运行环境与第一设备母程序的运行环境一致,以及启动母程序。Step 403: If the current running status of the parent program is not started, eliminate the process corresponding to the parent program, load the current running environment information so that the running environment of the parent program is consistent with the running environment of the first device parent program, and start the parent program. program.

本实施例中,当确定母程序的当前运行状态为未启动状态时,则先杀死母程序对应的进程,之后再在母程序中加载克隆的当前运行环境信息,使得母程序当前的配置信息、数据库信息、AB实验等,替换为克隆获得的当前运行环境信息中的相应信息,替换后的母程序的运行环境与第一设备中母程序的运行环境一致,准确还原了小程序的运行环境。上述过程可以称为冷启动过程。In this embodiment, when it is determined that the current running status of the parent program is not started, the process corresponding to the parent program is first killed, and then the cloned current operating environment information is loaded in the parent program, so that the current configuration information of the parent program , database information, AB experiments, etc., are replaced with the corresponding information in the current operating environment information obtained by cloning. The operating environment of the replaced parent program is consistent with the operating environment of the parent program in the first device, accurately restoring the operating environment of the mini program. . The above process can be called a cold start process.

在完成当前运行环境信息的加载操作之后,由于当前母程序仍处于未启动状态,则可以启动母程序,以进行后续的测试。After completing the loading operation of the current running environment information, since the current parent program is still not started, the parent program can be started for subsequent testing.

本实施例的小程序的测试方法,通过获取母程序的当前运行状态,在母程序的当前运行状态为启动状态时,重加载当前运行环境信息以使得母程序的运行环境与第一设备母程序的运行环境一致;当母程序的当前运行状态为未启动状态时,消除母程序对应的进程,并加载当前运行环境信息以使得母程序的运行环境与第一设备母程序的运行环境一致,以及启动母程序,由此,实现了针对不同状态的母程序采用对应的运行环境加载方式,提高了方法的灵活性,通过加载当前运行环境信息以使母程序的运行环境与第一设备中母程序的运行环境一致,实现了小程序的运行场景的准确还原,有利于准确定位问题所在。The test method of the small program in this embodiment obtains the current running status of the main program, and when the current running status of the main program is the startup state, reloads the current running environment information so that the running environment of the main program is consistent with the first device parent program. The operating environment of the mother program is consistent; when the current operating state of the mother program is not started, the process corresponding to the mother program is eliminated, and the current operating environment information is loaded so that the operating environment of the mother program is consistent with the operating environment of the mother program of the first device, and Starting the mother program, thus realizing the corresponding operating environment loading method for the mother program in different states, improving the flexibility of the method, and loading the current operating environment information to make the operating environment of the mother program the same as the mother program in the first device The running environment is consistent, achieving accurate restoration of the running scenario of the mini program, which is conducive to accurately locating the problem.

通常,用户操作过程中产生的日志信息,会记录操作过程中的一些关键路径上的操作信息,可以用于定位问题,从而,在本申请实施例一种可能的实现方式中,可以获取第一设备中小程序的日志信息来进行测试,以方便问题定位。下面结合附图5进行详细说明。Usually, the log information generated during the user operation will record some operation information on the critical path during the operation, which can be used to locate problems. Therefore, in a possible implementation manner of the embodiment of the present application, the first step can be obtained. Use the log information of small programs in the device to conduct testing to facilitate problem location. Detailed description will be given below in conjunction with Figure 5.

图5是根据本申请第五实施例的小程序的测试方法的流程示意图,如图5所示,在如图1所示实施例的基础上,步骤105中,通过测试程序对小程序进行测试,可以包括以下步骤:Figure 5 is a schematic flow chart of a test method for an applet according to the fifth embodiment of the present application. As shown in Figure 5, based on the embodiment shown in Figure 1, in step 105, the applet is tested through a test program. , can include the following steps:

步骤501,获取第一设备之中小程序的日志信息。Step 501: Obtain log information of the applet in the first device.

作为一种示例,第一设备中小程序的日志信息,可以在电子设备从第一设备中克隆小程序的程序包和小程序所依附的母程序的当前运行环境信息时,同时克隆小程序的日志信息,通过与第一设备交互来获取小程序的日志信息。As an example, the log information of the applet in the first device can be cloned when the electronic device clones the program package of the applet and the current running environment information of the parent program to which the applet is attached from the first device. Information, obtain the log information of the applet by interacting with the first device.

作为一种示例,可以在第一设备接收到电子设备发送的克隆指令时,除了获取小程序的程序包和母程序的当前运行环境信息外,还获取小程序的日志信息,并将日志信息添加至克隆文件包中,与小程序的程序包和母程序的当前运行环境信息一起上传至指定的平台中,电子设备可以从指定的平台中获取第一设备中小程序的日志信息。As an example, when the first device receives the cloning instruction sent by the electronic device, in addition to acquiring the program package of the applet and the current running environment information of the parent program, it can also acquire the log information of the applet, and add the log information In the clone file package, the program package of the applet and the current running environment information of the parent program are uploaded to the designated platform, and the electronic device can obtain the log information of the applet in the first device from the designated platform.

由此,通过在从第一设备中克隆小程序的程序包和母程序的当前运行环境信息的同时,一起获取小程序的日志信息,只需与第一设备进行一次交互即可完成问题定位所需信息的获取,减少了交互次数,有利于提高问题定位效率。Therefore, by cloning the applet's program package and the current running environment information of the parent program from the first device, and obtaining the log information of the applet together, the problem locating process can be completed with only one interaction with the first device. Obtaining required information reduces the number of interactions and helps improve problem location efficiency.

步骤502,根据日志信息对小程序进行操作,以对小程序进行测试。Step 502: Operate the applet according to the log information to test the applet.

本实施例中,电子设备获取了第一设备中小程序的日志信息后,可以根据日志信息对小程序进行操作,以对小程序进行测试。In this embodiment, after the electronic device obtains the log information of the applet in the first device, it can operate the applet based on the log information to test the applet.

作为一种示例,电子设备接收到第一设备中小程序的日志信息后,可以将日志信息展示给开发工程师,由开发工程师根据日志信息中记录的用户对小程序的操作在电子设备中操作小程序,以还原用户操作小程序的过程,根据操作过程中出现的问题现象,即可定位出小程序的问题所在,确定导致问题出现的具体原因。As an example, after receiving the log information of the applet in the first device, the electronic device can display the log information to the development engineer, and the development engineer operates the applet in the electronic device according to the user's operation of the applet recorded in the log information. , to restore the user's process of operating the mini program. Based on the problems that occur during the operation, the problem of the mini program can be located and the specific cause of the problem can be determined.

作为一种示例,电子设备可以采用日志信息读取工具来读取获取的日志信息中的内容,识别出日志信息中所包含的操作过程,并在小程序上执行识别到的操作过程,达到模拟用户在第一设备上操作小程序的过程的目的,根据操作过程中出现的问题现象,即可定位出小程序的问题所在,确定导致问题出现的具体原因。由此,实现了问题定位的自动化,减少了人工的参与,从而能够降低因人工误操作导致问题定位不准的概率。As an example, the electronic device can use a log information reading tool to read the content of the obtained log information, identify the operation process contained in the log information, and execute the identified operation process on the mini program to achieve simulation The purpose of the user's operation of the mini program on the first device is to locate the problem of the mini program and determine the specific cause of the problem based on the problems that occur during the operation. As a result, the automation of problem location is realized, reducing manual participation, thereby reducing the probability of inaccurate problem location due to manual misoperation.

本实施例的小程序的测试方法,通过获取第一设备之中小程序的日志信息,根据日志信息对小程序进行操作,以对小程序进行测试,由于日志信息中记录了关键路径上的操作信息,能够方便问题定位,从而本实施中根据日志信息对小程序进行操作以对小程序进行测试,实现了相同环境、相同操作路径下问题的复现与定位,问题定位效率更高。The test method of the applet in this embodiment is to obtain the log information of the applet in the first device and operate the applet according to the log information to test the applet, because the log information records the operation information on the critical path. , can facilitate problem location, so in this implementation, the applet is operated according to the log information to test the applet, realizing the recurrence and location of the problem under the same environment and the same operation path, and the problem location is more efficient.

下面结合附图6和附图7,以小程序所依附的母程序为手机百度APP(以下简称“手百”)为例,解释说明本申请提供的小程序的测试方法在实际应用中的实现过程。In the following, with reference to Figures 6 and 7, the implementation of the test method of the applet provided by this application in practical applications will be explained, taking the parent program to which the applet is attached to be the mobile Baidu APP (hereinafter referred to as "Houbai") as an example. process.

图6是采用本申请提供的小程序的测试方法对小程序进行问题定位时,问题报告者与问题解决者之间的交互过程示例图;图7是克隆过程和安装过程是示例图。如图6所示,问题报告者可以向问题解决者发送“我的A小程序出现***问题了”的消息来报告问题,问题解决者接收到问题报告者上报的问题后,向问题报告者发送克隆二维码以及问题报告者需要进行的操作,如:“我给你个二维码,稍后用手百扫下”。其中,克隆二维码的生成过程如图6中区域1内显示的内容所示,电子设备先执行步骤1,获取A小程序的App Key,获取方式可以有三种,一是通过图6中指定的网址进入对应的平台获取;二是对于应用程序开发者(即图6中的NA开发),可以打开A小程序的Debug包来获取;三是对于测试人员(即图6中的QA),可以通过抓包或者606打点的方式来获取App Key,其中606打点指的是数据统一的一种统计方式。获取到小程序的App Key后,可以执行步骤2,根据获取的App Key生成克隆协议,进而执行步骤3,利用二维码生成器,比如图6中网址https://cli.im/中提供的二维码生成器来生成克隆二维码。需要说明的是,区域1中显示的克隆二维码的生成过程在实际应用中是不会显示给问题报告者的,图6中显示该过程仅用于说明克隆二维码是如何生成的,而不能作为问题解决者向问题报告者发送的信息。Figure 6 is an example diagram of the interaction process between the problem reporter and the problem solver when locating the problem of the mini program using the mini program testing method provided by this application; Figure 7 is an example diagram of the cloning process and the installation process. As shown in Figure 6, the problem reporter can send the message "My A applet has a *** problem" to the problem solver to report the problem. After receiving the problem reported by the problem reporter, the problem solver reports the problem to the problem solver. Send the cloned QR code and the operations that the problem reporter needs to perform, such as: "I will give you a QR code, scan it with your hand later." Among them, the generation process of the cloned QR code is shown in area 1 in Figure 6. The electronic device first performs step 1 to obtain the App Key of the A applet. There are three ways to obtain it. One is through the specified method in Figure 6. Enter the corresponding platform URL to obtain it; secondly, for application developers (i.e., NA development in Figure 6), you can open the Debug package of the A applet to obtain it; thirdly, for testers (i.e., QA in Figure 6), App Key can be obtained through packet capture or 606 scoring, where 606 scoring refers to a statistical method of data unification. After obtaining the App Key of the mini program, you can perform step 2 to generate a cloning protocol based on the obtained App Key, and then perform step 3 to use a QR code generator, such as the URL https://cli.im/ in Figure 6. QR code generator to generate clone QR codes. It should be noted that the generation process of the cloned QR code shown in Area 1 will not be shown to the problem reporter in actual applications. The process shown in Figure 6 is only used to illustrate how the cloned QR code is generated. It is not intended as a message from the problem solver to the problem reporter.

问题报告者收到问题解决者发送的消息和克隆二维码之后,使用所持的设备中的手百扫描该克隆二维码,执行如图7所示的克隆过程。问题报告者使用所持设备中的手百扫描克隆二维码后,会拦截到克隆协议,启动克隆协议开始克隆,其中,克隆过程完全不需要问题报告者关心,会自动执行。在克隆之前,先在缓存cache目录下创建克隆缓存文件cloneFolder_{App Key},并在存储卡sdcard目录下创造克隆空文件夹cloneZip.zip,之后启动IO线程开始克隆,克隆内容包括小程序包、SwanCore、ExtensionCore、配置文件(Sp文件)、数据库信息(Db信息)、Ab实验等。之后,将克隆的信息统一打包生成zip文件,再经过高级加密标准(Advanced Encryption Standard,AES)加密后上传至Aegis平台,最后生成Toast提示消息“反馈成功”。问题报告者看到“反馈成功”的提示消息后,可以向问题解决者发送“扫一扫后提示反馈成功了”的信息,问题解决者告知问题报告者稍后告诉其定位结果。After the problem reporter receives the message and clone QR code sent by the problem solver, he or she scans the clone QR code using the smartphone in the device he holds, and performs the cloning process as shown in Figure 7. After the problem reporter uses the smartphone on the device to scan the cloning QR code, the cloning protocol will be intercepted and the cloning protocol will be started to start cloning. The cloning process does not require the problem reporter to care at all and will be executed automatically. Before cloning, first create the clone cache file cloneFolder_{App Key} in the cache directory, and create the clone empty folder cloneZip.zip in the sdcard directory of the memory card. Then start the IO thread to start cloning. The clone content includes small program packages, SwanCore, ExtensionCore, configuration file (Sp file), database information (Db information), Ab experiment, etc. After that, the cloned information is packaged to generate a zip file, which is then encrypted by Advanced Encryption Standard (AES) and uploaded to the Aegis platform. Finally, a Toast message "Feedback Successful" is generated. After the problem reporter sees the prompt message "Feedback Successful", he can send the message "Feedback Successful After Scanning" to the problem solver, and the problem solver will inform the problem reporter to tell him the positioning result later.

问题解决者在进行问题定位时,执行图6中区域2所示的步骤进行小程序运行环境的还原,复现小程序的问题场景。具体地,先打开指定的网址登录Aegis平台,根据问题反馈者(即问题报告者)的扫码时间区间或者A小程序的App Key获取问题反馈者上传的小程序包,有必要地话,还可以向问题报告者索要其被叫用户识别号(Called UserIDentification number,CUID)来过滤获取的小程序包。从Aegis平台下载小程序包,比如,下载文件的名称可以为XXXX.zipFiles。之后,从下载链接中(图6中未显示)下载解压工具swan_dycrypt.py,并在终端中运行命令“>python swan_dycrypt.py XXXX.zipFiles”来解压XXXX.zipFiles文件,解压路径为swan_feedback_文件名,将解压路径下的cloneZip.zip文件发送至终端(如手机)的存储卡sd根目录下,进而安装克隆小程序。其中,在安装克隆小程序前,先生成安装协议,再利用二维码生成器,比如图6中网址https://cli.im/中提供的二维码生成器来生成安装二维码,找个相同手百版本的Debug包安装手百后,扫一扫安装二维码即可。如图7所示的安装过程,扫描安装二维码后,会拦截到安装协议,并解压cloneZip.zip,校验cloneZip中的小程序与安装协议中的App Key是否合法,并在合法时开始拷贝克隆的信息至对应文件,以及重新加载Sp文件和Db数据,之后即可开始定位问题。When locating the problem, the problem solver performs the steps shown in area 2 in Figure 6 to restore the mini program's running environment and reproduce the problem scenario of the mini program. Specifically, first open the designated website to log in to the Aegis platform, and obtain the mini program package uploaded by the problem feedback person (i.e., the problem reporter) based on the scanning time interval or the App Key of the A mini program. If necessary, You can ask the problem reporter for his or her Called UserIDentification number (CUID) to filter the obtained mini-program packages. Download the small program package from the Aegis platform. For example, the name of the downloaded file can be XXXX.zipFiles. After that, download the decompression tool swan_dycrypt.py from the download link (not shown in Figure 6), and run the command ">python swan_dycrypt.py XXXX.zipFiles" in the terminal to decompress the XXXX.zipFiles file. The decompression path is swan_feedback_filename , send the cloneZip.zip file in the decompression path to the SD root directory of the memory card of the terminal (such as a mobile phone), and then install the cloning applet. Among them, before installing the clone applet, first generate the installation agreement, and then use a QR code generator, such as the QR code generator provided at https://cli.im/ in Figure 6 to generate the installation QR code. Find a Debug package of the same version and install it, then scan the installation QR code. As shown in the installation process in Figure 7, after scanning the installation QR code, the installation protocol will be intercepted, cloneZip.zip will be decompressed, and the mini program in cloneZip and the App Key in the installation protocol will be verified to be legal, and start when legal. Copy the cloned information to the corresponding file, and reload the Sp file and Db data, and then start locating the problem.

需要说明的是,区域2中显示的内容在实际应用中是不会显示给问题报告者的,图6中显示该内容仅用于说明问题解决者所持的设备执行的操作,而不能作为问题解决者向问题报告者发送的信息。It should be noted that the content displayed in area 2 will not be displayed to the problem reporter in actual applications. The content shown in Figure 6 is only used to illustrate the operations performed by the device held by the problem solver and cannot be used as a solution to the problem. The message sent by the reporter to the person who reported the problem.

问题定位完成后,问题解决者向问题报告者发送“问题定位了,是XX原因导致的”消息,以告知问题报告者问题的原因所在,方便问题报告者解决问题。After the problem is located, the problem solver sends the message "The problem has been located and is caused by XX" to the problem reporter to inform the problem reporter of the cause of the problem and facilitate the problem reporter to solve the problem.

本申请提供的小程序的测试方法,可以应用于白屏检测、线上问题复现等场景,能够快速定位问题,效率高,为线上及时止损,提升框架稳定性提供了有益的帮助。The small program testing method provided in this application can be applied to scenarios such as white screen detection and online problem recurrence. It can quickly locate problems and is highly efficient. It provides useful help for timely stop losses online and improving framework stability.

根据本申请的实施例,本申请还提供了一种小程序的测试装置。According to an embodiment of the present application, the present application also provides a test device for an applet.

图8是根据本申请第六实施例的小程序的测试装置的结构示意图。如图8所示,该小程序的测试装置60包括:接收模块610、克隆模块620、加载模块630、安装模块640以及测试模块650。Figure 8 is a schematic structural diagram of a test device for an applet according to the sixth embodiment of the present 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 installation module 640 and a testing module 650 .

其中,接收模块610,用于接收第一设备发送的小程序的问题报告信息;Among them, the receiving module 610 is used to receive the problem report information of the applet sent by the first device;

克隆模块620,用于根据所述问题报告信息从所述第一设备之中克隆所述小程序的程序包以及所述小程序所依附的母程序的当前运行环境信息;The cloning module 620 is configured to clone the program 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;

加载模块630,用于获取所述母程序的调试版本包,并加载所述调试版本包之中的所述母程序和测试程序;Loading module 630 is used to obtain the debug version package of the mother program, and load the mother program and test program in the debug version package;

安装模块640,用于在所述母程序之中根据所述小程序的程序包安装所述小程序,并根据所述当前运行环境信息修改所述母程序的运行环境;以及The installation module 640 is configured to install the applet in the parent program according to the program package of the applet, and modify the operating environment of the parent program according to the current operating environment information; and

测试模块650,用于启动所述小程序,通过所述测试程序对所述小程序进行测试。The test module 650 is used to start the applet and test the applet through the test program.

在本申请实施例一种可能的实现方式中,如图9所示,在如图8所示实施例的基础上,克隆模块620可以包括:In a possible implementation of the embodiment of the present application, as shown in Figure 9, based on the embodiment shown in Figure 8, the cloning module 620 may include:

发送单元621,用于向所述第一设备的所述母程序发送克隆指令,其中,所述第一设备的所述母程序根据所述克隆指令建立克隆文件包,并获取所述第一设备之中所述小程序的程序包和当前运行环境信息,以及将所述小程序的程序包和当前运行环境信息添加至所述克隆文件包;以及Sending unit 621, configured to send a cloning instruction to the parent program of the first device, wherein the parent program of the first device creates a clone file package according to the cloning instruction and obtains the first device wherein the program package and current running environment information of the applet are added, and the program package and current running environment information of the applet are added to the cloned file package; and

接收单元622,用于接收所述第一设备的所述母程序发送的所述克隆文件包,并从所述克隆文件包之中提取所述小程序的程序包和当前运行环境信息。The receiving unit 622 is configured to receive the clone file package sent by the parent program of the first device, and extract the program package and current running environment information of the applet from the clone file package.

在本申请实施例一种可能的实现方式中,如图10所示,在如图8所示实施例的基础上,加载模块630,包括:In a possible implementation of the embodiment of this application, as shown in Figure 10, based on the embodiment shown in Figure 8, the loading module 630 includes:

第一获取单元631,用于获取所述母程序的版本信息;以及The first obtaining unit 631 is used to obtain the version information of the parent program; and

第二获取单元632,用于根据所述母程序的版本信息获取所述版本信息对应的所述母程序的调试版本包。The second obtaining unit 632 is configured to obtain the debug version package of the main program corresponding to the version information according to the version information of the main program.

在本申请实施例一种可能的实现方式中,如图11所示,在如图8所示实施例的基础上,安装模块640,包括:In a possible implementation of the embodiment of this application, as shown in Figure 11, based on the embodiment shown in Figure 8, the installation module 640 includes:

状态获取单元641,用于获取所述母程序的当前运行状态;Status acquisition unit 641, used to acquire the current running status of the parent program;

重加载单元642,用于如果所述母程序的当前运行状态为启动状态,则重加载所述当前运行环境信息以使得所述母程序的运行环境与所述第一设备母程序的运行环境一致;Reloading unit 642, configured to reload the current running environment information so that the running environment of the parent program is consistent with the running environment of the first device parent program if the current running state of the parent program is a startup state. ;

冷启动单元643,用于如果所述母程序的当前运行状态为未启动状态,则消除所述母程序对应的进程,并加载所述当前运行环境信息以使得所述母程序的运行环境与所述第一设备母程序的运行环境一致,以及启动所述母程序。The cold start unit 643 is used to eliminate the process corresponding to the parent program if the current running status of the parent program is not started, and load the current running environment information so that the running environment of the parent program is consistent with that of the parent program. The operating environment of the first device mother program is consistent, and the mother program is started.

在本申请实施例一种可能的实现方式中,如图12所示,在如图8所示实施例的基础上,测试模块650,包括:In a possible implementation of the embodiment of this application, as shown in Figure 12, based on the embodiment shown in Figure 8, the test module 650 includes:

日志获取单元651,用于获取所述第一设备之中所述小程序的日志信息;以及Log acquisition unit 651, used to acquire log information of the applet in the first device; and

测试单元652,用于根据所述日志信息对所述小程序进行操作,以对所述小程序进行测试。The testing unit 652 is used to operate the applet according to the log information to test the applet.

需要说明的是,前述对小程序的测试方法实施例的解释说明,也适用于该实施例的小程序的测试装置,其实现原理类似,此处不再赘述。It should be noted that the foregoing explanation of the embodiment of the applet testing method also applies to the applet testing device of this embodiment. The implementation principles are similar and will not be described again here.

本申请实施例的小程序的测试装置,通过在接收到第一设备发送的小程序的问题报告信息时,克隆第一设备中小程序的程序包,以及小程序所依附的母程序的当前运行环境,并获取母程序的调试版本包,之后,加载调整版本包中的母程序和测试程序,并在母程序中安装小程序,以及根据克隆的当前运行环境信息修改母程序的运行环境,进而启动小程序,利用测试程序对小程序进行测试,由此,实现了小程序运行环境的还原,复现了小程序的问题场景,能够快速进行问题定位,通过还原小程序的问题场景进行问题定位,避免了问题报告者与问题解决者之间的反复沟通,省时省力,提高了问题定位的速度和效率,时效性高,解决了现有技术中,开发工程师需要不断地与问题报告者沟通细节来逐步定位问题,耗时耗力,效率低的技术问题。The test device of the applet in the embodiment of the present application clones the program package of the applet in the first device and the current running environment of the parent program to which the applet is attached when receiving the problem report information of the applet sent by the first device. , and obtain the debug version package of the mother program, and then load the mother program and test program in the adjusted version package, install the small program in the mother program, and modify the operating environment of the mother program based on the cloned current operating environment information, and then start The mini program uses the test program to test the mini program, thereby realizing the restoration of the mini program's running environment, reproducing the problem scenarios of the mini program, and quickly locating the problem, and locating the problem by restoring the problem scenario of the mini program. It avoids repeated communication between the problem reporter and the problem solver, saves time and effort, improves the speed and efficiency of problem location, has high timeliness, and solves the problem in the existing technology that development engineers need to constantly communicate details with the problem reporter To gradually locate the problem, it is a time-consuming and labor-intensive technical problem with low efficiency.

根据本申请的实施例,本申请还提供了一种电子设备和一种可读存储介质。According to embodiments of the present application, the present application also provides an electronic device and a readable storage medium.

如图13所示,是用来实现本申请实施例的小程序的测试方法的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in Figure 13, it is a block diagram of an electronic device used to implement the applet testing method in the embodiment of the present application. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit the implementation of the present application as described and/or claimed herein.

如图13所示,该电子设备包括:一个或多个处理器701、存储器702,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图13中以一个处理器701为例。As shown in Figure 13, the electronic device includes: one or more processors 701, memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be mounted on a common motherboard or otherwise mounted as desired. The processor may process instructions executed 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 with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices can be connected, each device providing part of the necessary operation (eg, as a server array, a set of blade servers, or a multi-processor system). In Figure 13, a processor 701 is taken as an example.

存储器702即为本申请所提供的非瞬时计算机可读存储介质。其中,所述存储器存储有可由至少一个处理器执行的指令,以使所述至少一个处理器执行本申请所提供的小程序的测试方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的小程序的测试方法。The memory 702 is the non-transitory computer-readable storage medium provided by this application. The memory stores instructions that can be executed by at least one processor, so that the at least one processor executes the applet testing method provided by this application. The non-transitory computer-readable storage medium of this application stores computer instructions, which are used to cause the computer to execute the test method of the applet provided by this application.

存储器702作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的小程序的测试方法对应的程序指令/模块(例如,附图8所示的接收模块610、克隆模块620、加载模块630、安装模块640以及测试模块650)。处理器701通过运行存储在存储器702中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的小程序的测试方法。As a non-transitory computer-readable storage medium, the memory 702 can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions/modules corresponding to the test methods of the applet in the embodiments of the present application (for example, , the receiving module 610, the cloning module 620, the loading module 630, the installation module 640 and the testing module 650 shown in Figure 8). The processor 701 executes various functional applications and data processing of the server by running non-transient software programs, instructions and modules stored in the memory 702, that is, implementing the applet testing method in the above method embodiment.

存储器702可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据执行小程序的测试方法的电子设备的使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器702可选包括相对于处理器701远程设置的存储器,这些远程存储器可以通过网络连接至执行小程序的测试方法的电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 702 may include a stored program area and a stored data area, wherein the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created according to the use of an electronic device that executes the test method of the applet. data, etc. In addition, memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 702 optionally includes memory located remotely relative to the processor 701, and these remote memories may be connected through a network to an electronic device that performs the test method of the applet. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

执行小程序的测试方法的电子设备还可以包括:输入装置703和输出装置704。处理器701、存储器702、输入装置703和输出装置704可以通过总线或者其他方式连接,图13中以通过总线连接为例。The electronic device that executes the test method of the applet may also 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 can be connected through a bus or other means. In Figure 13, connection through a bus is taken as an example.

输入装置703可接收输入的数字或字符信息,以及产生与执行小程序的测试方法的电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置704可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 703 can receive input numeric or character information, and generate key signal input related to user settings and function control of the electronic device that executes the test method of the applet, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, Input devices such as a pointing stick, one or more mouse buttons, a trackball, and a joystick. Output devices 704 may include display devices, auxiliary lighting devices (eg, LEDs), tactile feedback devices (eg, vibration motors), and the like. 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.

此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein may be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.

用于实施本申请的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that the program codes, when executed by the processor or controller, cause the functions specified in the flowcharts and/or block diagrams/ The operation is 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.

这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computing programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine language Calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or means for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLD)), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.

根据本申请实施例的技术方案,通过在接收到第一设备发送的小程序的问题报告信息时,克隆第一设备中小程序的程序包以及小程序所依附的母程序的当前运行环境,并获取母程序的调试版本包,加载调整版本包中的母程序和测试程序,在母程序中安装小程序并修改母程序的运行环境,进而对小程序进行测试,实现了小程序运行环境的还原,复现了小程序的问题场景,能够快速进行问题定位,通过还原小程序的问题场景进行问题定位,避免了问题报告者与问题解决者之间的反复沟通,省时省力,提高了问题定位的速度和效率,时效性高。According to the technical solution of the embodiment of the present application, when receiving the problem report information of the applet sent by the first device, the program package of the applet in the first device and the current running environment of the parent program to which the applet is attached are cloned and obtained The debug version package of the main program loads the main program and test program in the adjusted version package, installs the mini program in the main program and modifies the running environment of the main program, and then tests the mini program, realizing the restoration of the mini program running environment. It reproduces the problem scenario of the mini program and can quickly locate the problem. By restoring the problem scenario of the mini program to locate the problem, it avoids repeated communication between the problem reporter and the problem solver, saves time and effort, and improves the accuracy of problem location. Speed and efficiency, high timeliness.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present application can be executed in parallel, sequentially, or in a different order. As long as the desired results of the technical solution disclosed in the present application can be achieved, there is no limitation here.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of protection of the present application. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application shall be included in the protection scope of this application.

Claims (10)

1.一种小程序的测试方法,包括:1. A small program testing method, including: 接收第一设备发送的小程序的问题报告信息;Receive the problem report information of the applet sent by the first device; 根据所述问题报告信息从所述第一设备之中克隆所述小程序的程序包以及所述小程序所依附的母程序的当前运行环境信息;Clone the program 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; 获取所述母程序的调试版本包,并加载所述调试版本包之中的所述母程序和测试程序;Obtain the debug version package of the mother program, and load the mother program and test program in the debug version package; 在所述母程序之中根据所述小程序的程序包安装所述小程序,并根据所述当前运行环境信息修改所述母程序的运行环境;以及Install the applet in the mother program according to the program package of the applet, and modify the operating environment of the mother program according to the current operating environment information; and 启动所述小程序,通过所述测试程序对所述小程序进行测试;Start the applet and test the applet through the test program; 其中,所述根据所述当前运行环境信息修改所述母程序的运行环境,包括:Wherein, modifying the running environment of the parent program according to the current running environment information includes: 获取所述母程序的当前运行状态;Obtain the current running status of the parent program; 如果所述母程序的当前运行状态为启动状态,则重加载所述当前运行环境信息以使得所述母程序的运行环境与所述第一设备母程序的运行环境一致;If the current running state of the parent program is a startup state, reload the current running environment information so that the running environment of the parent program is consistent with the running environment of the first device parent program; 如果所述母程序的当前运行状态为未启动状态,则消除所述母程序对应的进程,并加载所述当前运行环境信息以使得所述母程序的运行环境与所述第一设备母程序的运行环境一致,以及启动所述母程序。If the current running status of the parent program is an unstarted state, the process corresponding to the parent program is eliminated, and the current running environment information is loaded so that the running environment of the parent program is consistent with that of the first device parent program. The operating environment is consistent and the parent program is started. 2.如权利要求1所述小程序的测试方法,其中,所述根据所述问题报告信息从所述第一设备之中克隆所述小程序的程序包以及所述小程序所依附的母程序的当前运行环境信息,包括:2. The testing method of the applet according to claim 1, wherein the program package of the applet and the parent program to which the applet is attached are cloned from the first device according to the problem report information. Current operating environment information, including: 向所述第一设备的所述母程序发送克隆指令,其中,所述第一设备的所述母程序根据所述克隆指令建立克隆文件包,并获取所述第一设备之中所述小程序的程序包和当前运行环境信息,以及将所述小程序的程序包和当前运行环境信息添加至所述克隆文件包;以及Send a cloning instruction to the mother program of the first device, wherein the mother program of the first device creates a clone file package according to the cloning instruction and obtains the applet in the first device The program package and current running environment information of the applet, and adding the program package and current running environment information of the applet to the cloned file package; and 接收所述第一设备的所述母程序发送的所述克隆文件包,并从所述克隆文件包之中提取所述小程序的程序包和当前运行环境信息。Receive the clone file package sent by the parent program of the first device, and extract the program package and current running environment information of the applet from the clone file package. 3.如权利要求1所述小程序的测试方法,其中,所述获取所述母程序的调试版本包,包括:3. The testing method of the applet according to claim 1, wherein said obtaining the debug version package of the parent program includes: 获取所述母程序的版本信息;以及Obtain the version information of the parent program; and 根据所述母程序的版本信息获取所述版本信息对应的所述母程序的调试版本包。Obtain the debug version package of the parent program corresponding to the version information according to the version information of the parent program. 4.如权利要求1所述小程序的测试方法,其中,所述通过所述测试程序对所述小程序进行测试,包括:4. The test method of the applet according to claim 1, wherein the testing of the applet through the test program includes: 获取所述第一设备之中所述小程序的日志信息;以及Obtain the log information of the applet in the first device; and 根据所述日志信息对所述小程序进行操作,以对所述小程序进行测试。The applet is operated according to the log information to test the applet. 5.一种小程序的测试装置,包括:5. A test device for small programs, including: 接收模块,用于接收第一设备发送的小程序的问题报告信息;A receiving module, configured to receive the problem report information of the applet sent by the first device; 克隆模块,用于根据所述问题报告信息从所述第一设备之中克隆所述小程序的程序包以及所述小程序所依附的母程序的当前运行环境信息;A cloning module, configured to clone the program 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; 加载模块,用于获取所述母程序的调试版本包,并加载所述调试版本包之中的所述母程序和测试程序;Loading module, used to obtain the debug version package of the mother program, and load the mother program and test program in the debug version package; 安装模块,用于在所述母程序之中根据所述小程序的程序包安装所述小程序,并根据所述当前运行环境信息修改所述母程序的运行环境;以及An installation module, configured to install the applet in the parent program according to the program package of the applet, and modify the operating environment of the parent program according to the current operating environment information; and 测试模块,用于启动所述小程序,通过所述测试程序对所述小程序进行测试;A test module, used to start the applet and test the applet through the test program; 其中,所述安装模块,包括:Among them, the installation module includes: 状态获取单元,用于获取所述母程序的当前运行状态;A status acquisition unit, used to acquire the current running status of the parent program; 重加载单元,用于如果所述母程序的当前运行状态为启动状态,则重加载所述当前运行环境信息以使得所述母程序的运行环境与所述第一设备母程序的运行环境一致;A reloading unit configured to, if the current running state of the parent program is a startup state, reload the current running environment information so that the running environment of the parent program is consistent with the running environment of the first device parent program; 冷启动单元,用于如果所述母程序的当前运行状态为未启动状态,则消除所述母程序对应的进程,并加载所述当前运行环境信息以使得所述母程序的运行环境与所述第一设备母程序的运行环境一致,以及启动所述母程序。A cold start unit, configured to eliminate the process corresponding to the parent program if the current running status of the parent program is not started, and load the current running environment information so that the running environment of the parent program is consistent with the The operating environment of the first device mother program is consistent, and the mother program is started. 6.如权利要求5所述的小程序的测试装置,其中,所述克隆模块,包括:6. The applet testing device according to claim 5, wherein the cloning module includes: 发送单元,用于向所述第一设备的所述母程序发送克隆指令,其中,所述第一设备的所述母程序根据所述克隆指令建立克隆文件包,并获取所述第一设备之中所述小程序的程序包和当前运行环境信息,以及将所述小程序的程序包和当前运行环境信息添加至所述克隆文件包;以及A sending unit configured to send a cloning instruction to the parent program of the first device, wherein the parent program of the first device creates a clone file package according to the cloning instruction and obtains the clone file package of the first device. The program package and current running environment information of the applet, and adding the program package and current running environment information of the applet to the clone file package; and 接收单元,用于接收所述第一设备的所述母程序发送的所述克隆文件包,并从所述克隆文件包之中提取所述小程序的程序包和当前运行环境信息。A receiving unit configured to receive the clone file package sent by the parent program of the first device, and extract the program package and current running environment information of the applet from the clone file package. 7.如权利要求5所述的小程序的测试装置,其中,所述加载模块,包括:7. The applet testing device according to claim 5, wherein the loading module includes: 第一获取单元,用于获取所述母程序的版本信息;以及The first acquisition unit is used to acquire the version information of the parent program; and 第二获取单元,用于根据所述母程序的版本信息获取所述版本信息对应的所述母程序的调试版本包。The second acquisition unit is configured to acquire the debug version package of the parent program corresponding to the version information according to the version information of the parent program. 8.如权利要求5所述的小程序的测试装置,其中,所述测试模块,包括:8. The applet testing device according to claim 5, wherein the testing module includes: 日志获取单元,用于获取所述第一设备之中所述小程序的日志信息;以及A log acquisition unit, configured to acquire log information of the applet in the first device; and 测试单元,用于根据所述日志信息对所述小程序进行操作,以对所述小程序进行测试。A testing unit is used to operate the applet according to the log information to test the applet. 9. 一种电子设备,包括:9. An electronic device, including: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-4中任一项所述的小程序的测试方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1-4. Test methods for small programs. 10.一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行权利要求1-4中任一项所述的小程序的测试方法。10. A non-transitory computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to execute the test method of the applet according to 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882945B (en) * 2021-03-12 2024-06-04 百度在线网络技术(北京)有限公司 Applet data processing method, device, equipment and storage medium
CN114356759A (en) * 2021-12-24 2022-04-15 北京百度网讯科技有限公司 Applet debugging method, device, device, medium and computer program product

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
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
US9658944B2 (en) Generic test automation for graphical user interface (GUI) applications
CN110531962A (en) Development process method, equipment and the computer readable storage medium of small routine
CN109992496B (en) A data processing method and device for automated testing
CN112035282B (en) API management method, device and equipment applied to cloud platform and storage medium
US11994972B2 (en) System and method for testing applications
CN103984626A (en) Method and device for generating test-case script
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN110752968A (en) Performance benchmarking method, apparatus, electronic device and storage medium
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
CN113778897A (en) Automatic test method, device, equipment and storage medium of interface
CN111858302B (en) Method and device for testing small program, electronic equipment and storage medium
CN114035829B (en) Page component updating method, device, electronic device and storage medium
CN113741954A (en) System software generation method and device, electronic equipment and storage medium
CN115145831B (en) Non-invasive test data recovery method and system
WO2024001594A1 (en) Operator development method and apparatus, operator processing method and apparatus, and electronic device, system and storage medium
US9946853B1 (en) Techniques for application code obfuscation
CN104536892B (en) A kind of software on-line debugging method and system
CN118093435A (en) Interface testing method and device, electronic equipment and storage medium
CN112486460A (en) Method, system, device and medium for automatically importing interface documentation
Ridene et al. A DSML for mobile phone applications testing
CN115904981A (en) Automated unit test method, automated unit test device, electronic apparatus, and storage medium
CN112532747B (en) Method, apparatus, device and storage medium for outputting information
CN120216350A (en) Interface dynamic simulation method, device, electronic device and storage medium
CN114741294A (en) Page debugging method, device, equipment and storage medium

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