CN112882945A - Applet data processing method, device, equipment and storage medium - Google Patents

Applet data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112882945A
CN112882945A CN202110270309.2A CN202110270309A CN112882945A CN 112882945 A CN112882945 A CN 112882945A CN 202110270309 A CN202110270309 A CN 202110270309A CN 112882945 A CN112882945 A CN 112882945A
Authority
CN
China
Prior art keywords
applet
page
target host
host program
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110270309.2A
Other languages
Chinese (zh)
Inventor
赵华淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
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 CN202110270309.2A priority Critical patent/CN112882945A/en
Publication of CN112882945A publication Critical patent/CN112882945A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The disclosure provides a small program data processing method, a device, equipment and a storage medium, and relates to the technical field of big data, information flow and the like. The specific implementation scheme is as follows: acquiring running data generated when the applet runs on the target host program; obtaining a path of running failure of the applet on the target host program according to running data generated when the applet runs on the target host program, wherein the path of running failure at least comprises a first page of running capability failure of the applet on the target host program and a running failure component included in the first page; and generating the small program test data aiming at the target host program according to the operation failure path. The method and the device can provide accurate test data for the host program provider, and reduce the time for the host program provider to find problems.

Description

Applet data processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to the field of big data, information flow, and the like.
Background
The applet is an application which can be used without downloading and installing, can run on the host program, realizes the dream of 'being reachable by a touch' of the application, and can be opened by scanning or searching by a user. The concept of 'running after running' is also embodied, and a user does not need to be concerned about whether too many applications are installed. Through the applet, the application will be ubiquitous, readily available, but does not require installation and uninstallation.
As the number of applets increases, so does the host program provider's desire to distribute more and more applets. However, proper functioning of the applet requires the corresponding capabilities or functions of the host. When an applet fails to operate on a host program, it may be difficult for the host program provider to find problems in the operation of the applet due to the large number of functions or capabilities of the applet.
Disclosure of Invention
The disclosure provides an applet data processing method, device, equipment and storage medium.
According to an aspect of the present disclosure, there is provided an applet data processing method including:
acquiring running data generated when the applet runs on the target host program;
obtaining a path of running failure of the small program on the target host program according to running data generated when the small program runs on the target host program, wherein the path of running failure at least comprises a first page of running capability failure of the small program on the target host program and a component of running capability failure on the first page;
and generating the small program test data aiming at the target host program according to the path of the operation failure.
According to another aspect of the present disclosure, there is provided an applet data processing apparatus including:
the first operation data acquisition module is used for acquiring operation data generated when the small program operates on the target host program;
the path module is used for obtaining a path of the running failure of the small program on the target host program according to running data generated when the small program runs on the target host program, wherein the path of the running failure at least comprises a first page of the small program on the target host program and a component of the first page, which is included in the first page and has the running capability failure;
and the test data module is used for generating the small program test data aiming at the target host program according to the path of the operation failure.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method in any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
According to the technology disclosed by the invention, the test data can be generated according to the path of the running failure of the applet on the target host program, so that the host program provider can be helped to find the problem of the running failure of the applet on the target host program, and the operation time and steps for testing the applet by the host program provider are saved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic flow diagram of an applet data processing method according to an embodiment of the disclosure;
FIG. 2 is a schematic flow chart diagram of an applet data processing method according to another embodiment of the disclosure;
FIG. 3 is a schematic flow chart diagram of an applet data processing method according to yet another embodiment of the present disclosure;
FIG. 4 is a flowchart illustration of an applet data processing method according to an example of the disclosure;
FIGS. 5A, 5B are schematic diagrams of applet data processing methods information processing according to an example of the present disclosure;
FIG. 6 is a schematic diagram of an applet data processing apparatus according to an example of the present disclosure;
FIG. 7 is a schematic diagram of an applet data processing apparatus according to another example of the present disclosure;
FIG. 8 is a schematic diagram of an applet data processing apparatus according to yet another example of the present disclosure;
FIG. 9 is a schematic diagram of an applet data processing apparatus according to yet another example of the present disclosure;
FIG. 10 is a schematic diagram of an applet data processing apparatus according to yet another example of the present disclosure;
fig. 11 is a block diagram of an electronic device for implementing an applet data processing method of an embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The embodiment of the present disclosure first provides an applet data processing method, as shown in fig. 1, including:
step S11: acquiring running data generated when the applet runs on the target host program;
step S12: obtaining a path of running failure of the small program on the target host program according to running data generated when the small program runs on the target host program, wherein the path of running failure at least comprises a first page of running capability failure of the small program on the target host program and a component of running capability failure on the first page;
step S13: and generating the small program test data aiming at the target host program according to the path of the operation failure.
In this embodiment, the target host program may be a program that can be installed on the terminal, that is, a program that can be run without relying on other host programs.
In another possible implementation, the target host program may also be an applet.
In this embodiment, the applet may be a program that can operate depending on another program.
In this embodiment, the obtaining of the running data generated when the applet runs on the target host program may be that the applet running on the target host program of the client reports the running data generated in the running process of the applet running on the target host program of the client when the target host program runs on the client.
In another possible implementation manner, the operation data generated when the applet runs on the target host program may be obtained, or the environment of the target host program may be simulated on the server side, and in the simulated environment of the target host program, the applet is run and the operation data generated when the applet runs on the target host program is obtained.
In one possible implementation, the operation data generated when the applet operates on the target host program may only contain operation data with operation failure. For example, when the applet runs on the target host program, if there is a failure or fault in the page a, the page a and the related fault information are reported, so that the receiving device on the server side obtains the running data.
In another possible implementation, the operation data generated by the applet when running on the target host program may include any data at runtime. And after receiving the running data, the server side identifies and judges by itself and analyzes whether the small program fails or fails when running on the target host program.
In this embodiment, the operation capability may refer to a specific function, for example, a payment function, an upload function, a comment function, a play function, a scan function, a shooting function, a download function, a face recognition function, a fingerprint recognition function, an iris recognition function, a voiceprint recognition function, or the like.
In a possible implementation manner, a path of the running failure of the applet on the target host program is obtained according to running data generated when the applet runs on the target host program, and it may be determined that a condition of capability failure exists when the applet runs on the target host program, for example, the applet cannot pay, cannot upload, cannot send comments, cannot play, cannot scan, cannot start a terminal camera to shoot, cannot download, or the like according to the running data generated when the applet runs on the target host program. And in the case of determining that the capability of the small program fails to run on the target host program, further obtaining a path of the failure of the small program to run on the target host program.
In another possible implementation manner, the path of the applet failing to run on the target host program is obtained according to the running data generated when the applet runs on the target host program, where the path of the applet failing to run on the target host program may be obtained by determining a first page according to the running data generated when the applet runs on the target host program, and further obtaining the path of the applet failing to run on the target host program according to the first page.
In one possible implementation manner, the failed-run component included in the first page may be a button of the first page where a capability failure occurs, such as a payment function button, an upload function button, a comment function button, a play function button, a scan function button, a shooting function button, a download function button, and the like.
In another possible implementation manner, the failed-run component included on the first page may be a function that can be realized without a button on the first page, such as an auto-play function, an auto-jump function, and the like.
In one possible implementation, the applet test data for the target host program is generated according to the path of the operation failure, and the path of the operation failure may be used as the test data for the applet of the target host program. For example, for the host program B, the test data of the applet C is, path: page a-button D.
In an applet open source scene, different applet running frameworks are generated because different hosts integrate different swansdks (Swan Software Development Kit, Swan application Development Kit), and the compatibility of the host program bottom layer to the applet is different, so that the running compatibility generated after the same applet is distributed in different hosts is different.
The capability registry of the applet can be used for matching the capabilities of the applet and the host program, and after the capability registry generates information of the missing capability of the applet which is not supported by the host, the host program provider cannot manually perform full-scale scenic applet running recurrence. For example, there may be an extremely large number of buttons or modules on a page that fails to run, and it is difficult for the host program provider to find a failed button or module that specifically causes a failure problem among the extremely large number of buttons.
In this embodiment, the test data can be generated according to the path of the applet failing to run on the target host program, so that the host program provider can be helped to find the problem of the applet failing to run on the target host program, and the operation time and steps for the host program provider to test the applet are saved.
In one embodiment, obtaining a path of a failure of the applet to run on the target host program according to the running data generated when the applet runs on the target host program comprises:
under the condition that the small program is determined to fail to operate on the target host program according to the operation data, taking a small program page generating the operation failure condition as a first page;
and carrying out simulation user operation test according to the first page to obtain the component with failed operation capability.
In this embodiment, the simulation user operation test is performed according to the selectable buttons in the first page, which may be a click test performed by a simulation user on all clickable buttons in the first page.
In this embodiment, the component with failed operation capability may be a button with failed operation capability. Specifically, the button may be a button on the first page.
In this embodiment, a test for simulating a user operation can be performed according to the selectable button on the first page, so that an operation failure button can be found from the selectable button, and a host program provider can be helped to master the operation failure condition.
In one embodiment, as shown in fig. 2, before obtaining the running data generated when the applet runs on the target host program, the method further includes:
step S21: simulating and operating a target host program;
step S22: and running the small program on the simulation running target host program, wherein the running data generated when the small program runs on the target host program is the running data under the simulation environment.
In this embodiment, the simulating operation of the target host program may be downloading or acquiring a program package of the target host program, and the simulating operation of the client is performed after the installation.
In this embodiment, the running data generated when the applet runs on the target host program can be obtained by simulating the environment of the target host program, so that the test data of the applet for the target host program can be quickly generated.
In one embodiment, before obtaining the running data generated when the applet runs on the target host program, as shown in fig. 3, the method further includes:
step S31; acquiring running data of the applet on a specified host program;
step S32: determining a second page of the small program which has capacity operation failure on the specified host program according to the operation data of the small program on the specified host program; wherein the first page is determined based on the second page.
In this embodiment, for a host with a small distribution amount of applets, the applets may be run on the designated host program first, so that it is not necessary to obtain data packets of different host programs one by one, and the speed of obtaining the applet test data for different target host programs is increased.
In one embodiment, obtaining the operation data generated by the small program when the small program runs on the target host program further comprises:
calling a second page to obtain a calling result of the second page in the process that the small program runs on the target host program, and obtaining running data generated when the small program runs on the target host program according to the calling result of the second page;
obtaining a path of the applet which fails to run on the target host program according to the running data generated when the applet runs on the target host program, and further comprising:
and determining that the second page is used as the first page under the condition that the small program fails to run on the target host program according to the running data generated when the small program runs on the target host program.
In a possible implementation manner, the calling result of the second page indicates that the second page also fails to run on the target host program, and in this case, the path identified by running the second page is directly used as the path of the applet that fails to run on the target host program.
In one possible implementation, in the event of a failure to run on the specified host program, the applet may not have a failure to run on the target host program, and the applet test data for the target host program may not be obtained.
In another possible implementation manner, in the case of operation failure on the specified host program, the second page of the applet may also have operation failure on the target host program, and therefore the applet test data for the target host program can be quickly acquired through the second page.
In one embodiment, generating applet test data for a target host program according to a path of a run failure comprises:
generating a calling link of a first page according to the basic information of the applet and the operation failure path;
the call link and the path of failed execution will be used as the applet test data for the target host program.
The basic information of the applet can include information of basic conditions of the applet, such as name, version number, attribute, running environment and the like of the applet.
Specifically, the call link of the first page directly enters the connection of the first page of the applet without entering the first page of the applet.
In this embodiment, the call link and the path of the failed operation are used as the applet test data for the target host program, so that the host program provider can conveniently and quickly locate the applet page of the failed operation, and the test time of the host program provider is saved.
In one embodiment, the path of the failed run further comprises: path from the applet home page to the first page.
In a possible implementation manner, the path from the applet home page to the first page may be a unique path or a plurality of selectable paths.
In this embodiment, a path from the applet home page to the first page can be provided, so that more comprehensive test data can be provided to the host program provider.
In one example of the present disclosure, the applet data processing method comprises the steps as shown in fig. 4:
step S41: and acquiring the dotting data of the capability use condition of the small program in the running process on the target host program. In this example, the capability usage dotting data may be the operation data in the foregoing embodiment, and may be obtained or reported by the applet according to the operation record of the applet on the target host program, or directly obtained from the operation record reported by the applet.
In this step, after obtaining the dotting data of the capability use condition of the small program in operation on the target host program, summarizing and counting the failure pages of the actual operation capability of the small program, and generating the statistical data of the target host program, the small program, the version of the small program, the capability and the page Scheme (address).
Step S42: and for the Scheme page which is failed to run on the target host program actually, executing real machine detection under the host program host actual environment (running after downloading the host program package), simulating the access and click of a user, and detecting an actual abnormal path.
And reporting the actually abnormal first page and the failure path as small program test data aiming at the target host program, and providing the small program test data for a host program provider to inquire and use.
For example: and if the small program lacks the payment capacity on the target host program, performing real machine reproduction on the order payment page operated by the small program on the target host program. And detecting the first page generated, clicking a payment button, and reproducing the abnormal full path of the payment.
Step S43: the running data of the applet on the designated host program is obtained.
If the distribution magnitude on the host is less, the calling dotting condition without missing capability on the host is caused. And summarizing and counting success and failure pages of the actual running capacity of the small program by using the dotting data of the capacity use condition of the small program in running on the target platform (the designated host program), and generating statistical data of the small program, the version of the small program, the capacity and the page Scheme. And executing real machine detection in an actual host environment by using a Scheme page running on a specified host program, simulating the access and click of a user, and detecting an actual abnormal path. And taking the actually abnormal first page and the failure path as the small program test data aiming at the target host program, reporting the small program test data, and providing the small program test data for the target host program to inquire and use.
In a possible implementation manner, after the test data is sent to the provider of the target host program, for the manual host review process, tools for displaying the actual calling capability by operations such as page loading, button clicking and the like are provided to assist the host in positioning the capability use.
In one example, one capability of an applet may correspond to multiple pages, such as multiple applet pages all relating to payment capabilities, with a payment button.
As shown in fig. 5A, for an applet running on a host (including a real target host program or a simulated target host program), reporting dotting data through the applet, where the dotting data may include information of a capability call error page, that is, a first page included in a failure of the applet running on the target host program, where the first page may relate to a plurality of capabilities, such as capability a, capability B, capability C, and the like. The first page can be provided with a plurality of addresses, such as Scheme1, Scheme2 and Scheme3 … …, which relate to a plurality of addresses, and the true machine detection is carried out according to dotting data reported by the small programs, and a recurrence path of abnormal calling is obtained to be used as a failure path.
As shown in fig. 5B, for an applet running on a specified host program (specified host), reporting dotting data through the applet, where the dotting data may include information of a full number of pages called by a capability, that is, all pages including failure and success of the applet running on the specified host program, and the full number of pages may relate to a plurality of capabilities, such as capability a, capability B, capability C, and the like. And determining a second page of the applet, which fails to run on the specified host program, from the full amount of pages, and according to the second page. The second page can be multiple and relates to multiple addresses, for example, Scheme1, Scheme2 and Scheme3 … … perform real machine detection according to the small program full page, and obtain a recurrence path of abnormal calling as a failure path.
An embodiment of the present disclosure further provides an applet data processing apparatus, as shown in fig. 6, including:
a first operation data obtaining module 61, configured to obtain operation data generated when the applet operates on the target host program;
the path module 62 is configured to obtain a path of a failed operation of the applet on the target host program according to operation data generated when the applet operates on the target host program, where the path of the failed operation at least includes a first page where the applet fails in operation capability on the target host program and a component included in the first page and having the failed operation capability;
and the test data module 63 is configured to generate applet test data for the target host program according to the path of the operation failure.
In one embodiment, as shown in fig. 7, the path module includes:
a first page unit 71 configured to, in a case where it is determined from the execution data that the applet fails to execute on the target host program, take, as a first page, an applet page in which an execution failure case occurs;
and the button unit 72 is used for carrying out a simulation user operation test according to the first page and obtaining a component with failed operation capability.
In one embodiment, as shown in fig. 8, the applet data processing apparatus further comprises:
a first simulation operation module 81 for simulating and operating the target host program;
and the second simulation running module 82 is used for running the applet on the simulation running target host program, and the running data generated when the applet runs on the target host program is the running data in the simulation environment.
In one embodiment, as shown in fig. 9, the applet data processing apparatus further comprises:
a second operation data obtaining module 91, configured to obtain operation data of the applet on the designated host program;
a second page module 92, configured to determine, according to the running data of the applet on the specified host program, a second page where a capability running failure of the applet on the specified host program occurs; wherein the first page is determined based on the second page.
In one embodiment, the first operation data obtaining module is further configured to:
calling a second page to obtain a calling result of the second page in the process that the small program runs on the target host program, and obtaining running data generated when the small program runs on the target host program according to the calling result of the second page;
the path module is further to:
and determining that the second page is used as the first page under the condition that the small program fails to run on the target host program according to the running data generated when the small program runs on the target host program.
In one embodiment, as shown in FIG. 10, the test data module includes:
a first generating unit 101, configured to generate a call link of a first page according to basic information of an applet and a path of operation failure;
and the second generating unit 102 is used for taking the call link and the path with the operation failure as the applet test data aiming at the target host program.
In one embodiment, the path of the failed run further comprises: path from the applet home page to the first page.
The functions of each unit, module or sub-module in each device in the embodiments of the present disclosure may refer to the corresponding description in the data processing method, and are not described herein again.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 11 illustrates a schematic block diagram of an example electronic device 110 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 11, the electronic device 110 includes a computing unit 111 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)112 or a computer program loaded from a storage unit 118 into a Random Access Memory (RAM) 113. In the RAM 113, various programs and data necessary for the operation of the electronic apparatus 110 can also be stored. The calculation unit 111, the ROM 112, and the RAM 113 are connected to each other by a bus 114. An input/output (I/O) interface 115 is also connected to bus 114.
A number of components in electronic device 110 are connected to I/O interface 115, including: an input unit 116 such as a keyboard, a mouse, and the like; an output unit 117 such as various types of displays, speakers, and the like; a storage unit 118, such as a magnetic disk, optical disk, or the like; and a communication unit 119 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 119 allows the electronic device 110 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 111 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 111 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 111 executes the respective methods and processes described above, such as the applet data processing method. For example, in some embodiments, the applet data processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 118. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 110 via the ROM 112 and/or the communication unit 119. When the computer program is loaded into the RAM 113 and executed by the computing unit 111, one or more steps of the applet data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 111 may be configured to perform the applet data processing method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure 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 apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. An applet data processing method comprising:
acquiring running data generated when the applet runs on the target host program;
obtaining a path of running failure of the applet on the target host program according to running data generated when the applet runs on the target host program, wherein the path of running failure at least comprises a first page of running capability failure of the applet on the target host program and a component of running capability failure on the first page;
and generating the small program test data aiming at the target host program according to the operation failure path.
2. The method of claim 1, wherein the obtaining a path of a failure of the applet to run on the target host program according to the running data generated by the applet when running on the target host program comprises:
under the condition that the small program fails to operate on the target host program according to the operation data, taking a small program page generating the operation failure condition as the first page;
and carrying out simulation user operation test according to the first page to obtain the component with failed operation capability.
3. The method of claim 1, wherein the obtaining the operational data generated by the applet when running on the target host program further comprises:
simulating to run the target host program;
and running the small program on the target host program for simulating running, wherein the running data generated when the small program runs on the target host program is the running data under the simulation environment.
4. The method of claim 1, wherein the obtaining the operational data generated by the applet when running on the target host program further comprises:
acquiring running data of the applet on a specified host program;
determining a second page of the small program with capacity operation failure on a specified host program according to the operation data of the small program on the specified host program; wherein the first page is determined based on the second page.
5. The method of claim 4, wherein the obtaining operational data generated by the applet when running on the target host program comprises:
in the process that the small program runs on the target host program, calling the second page to obtain a calling result of the second page, and obtaining running data generated when the small program runs on the target host program according to the calling result of the second page;
the obtaining, according to operation data generated when the applet operates on the target host program, a path on which the applet fails to operate on the target host program includes:
and determining that the second page is taken as the first page under the condition that the calling result of the second page fails to run on the target host program according to running data generated when the applet runs on the target host program, so as to obtain a path of the applet which fails to run on the target host program.
6. The method of any one of claims 1-5, wherein the generating applet test data for the target host program according to the path of the operation failure comprises:
generating a calling link of the first page according to the basic information of the applet and the operation failure path;
and taking the call link and the operation failure path as the small program test data aiming at the target host program.
7. The method of any of claims 1-5, wherein the path of operational failure further comprises: a path from the applet home page to the first page.
8. An applet data processing apparatus comprising:
the first operation data acquisition module is used for acquiring operation data generated when the small program operates on the target host program;
the path module is used for obtaining a path of the applet which fails to run on the target host program according to running data generated when the applet runs on the target host program, wherein the path of the applet which fails to run at least comprises a first page of the applet which fails to run on the target host program and a component which fails to run on the first page and comprises a running capability failure;
and the test data module is used for generating the small program test data aiming at the target host program according to the path of the operation failure.
9. The apparatus of claim 8, wherein the path module comprises:
a first page unit, configured to, when it is determined that the applet fails to operate on the target host program according to the operation data, take an applet page in which an operation failure occurs as the first page;
and the button unit is used for carrying out simulation user operation test according to the first page and obtaining the component with failed operation capability.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the first simulation operation module is used for simulating and operating the target host program;
and the second simulation operation module is used for operating the small program on the target host program for simulation operation, and the operation data generated when the small program operates on the target host program is the operation data in the simulation environment.
11. The apparatus of claim 8, wherein the apparatus further comprises:
the second operation data acquisition module is used for acquiring the operation data of the small program on the specified host program;
the second page module is used for determining a second page of the small program, which has capacity operation failure condition on the appointed host program, according to the operation data of the small program on the appointed host program; wherein the first page is determined based on the second page.
12. The apparatus of claim 11, wherein the first operational data acquisition module is further configured to: in the process that the small program runs on the target host program, calling the second page to obtain a calling result of the second page, and obtaining running data generated when the small program runs on the target host program according to the calling result of the second page;
the path module is further to: and according to the operation data generated when the small program operates on the target host program, determining that the second page is used as the first page under the condition that the small program fails to operate on the target host program.
13. The apparatus of any of claims 8-12, wherein the test data module comprises:
the first generation unit is used for generating a calling link of the first page according to the basic information of the applet and the operation failure path;
and the second generation unit is used for taking the call link and the path of the operation failure as the applet test data aiming at the target host program.
14. The apparatus of any of claims 8-12, wherein the path of operational failure further comprises: a path from the applet home page to the first page.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202110270309.2A 2021-03-12 2021-03-12 Applet data processing method, device, equipment and storage medium Pending CN112882945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110270309.2A CN112882945A (en) 2021-03-12 2021-03-12 Applet data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110270309.2A CN112882945A (en) 2021-03-12 2021-03-12 Applet data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112882945A true CN112882945A (en) 2021-06-01

Family

ID=76042130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110270309.2A Pending CN112882945A (en) 2021-03-12 2021-03-12 Applet data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112882945A (en)

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
US20180275986A1 (en) * 2017-03-24 2018-09-27 Accenture Global Solutions Limited Application management platform
CN109614342A (en) * 2019-01-23 2019-04-12 四川虹美智能科技有限公司 A kind of method and test case management platform of application program automatic test
CN109783345A (en) * 2018-12-03 2019-05-21 百度在线网络技术(北京)有限公司 A kind of small routine performance test methods and system
CN111858302A (en) * 2020-06-05 2020-10-30 百度在线网络技术(北京)有限公司 Method and device for testing small program, electronic 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
US20180275986A1 (en) * 2017-03-24 2018-09-27 Accenture Global Solutions Limited Application management platform
CN109783345A (en) * 2018-12-03 2019-05-21 百度在线网络技术(北京)有限公司 A kind of small routine performance test methods and system
CN109614342A (en) * 2019-01-23 2019-04-12 四川虹美智能科技有限公司 A kind of method and test case management platform of application program automatic test
CN111858302A (en) * 2020-06-05 2020-10-30 百度在线网络技术(北京)有限公司 Method and device for testing small program, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁久琛: "企业级通用小程序管理平台设计与实现", 信息科技辑 *

Similar Documents

Publication Publication Date Title
CN110765024A (en) Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN108111364B (en) Service system testing method and device
CN111752843A (en) Method, device, electronic equipment and readable storage medium for determining influence surface
CN108897496B (en) Disk array configuration management method and device, computer equipment and storage medium
CN114546738B (en) Universal test method, system, terminal and storage medium for server
CN111984476A (en) Test method and device
CN111309343A (en) Development deployment method and device
CN112100079A (en) Test method and system based on simulation data calling and electronic equipment
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
CN111796978B (en) Interface detection method, device, system, equipment and storage medium
CN111666217A (en) Method and apparatus for testing code
CN111241111B (en) Data query method and device, data comparison method and device, medium and equipment
CN112799939A (en) Incremental code coverage rate testing method and device, storage medium and electronic equipment
CN109408361A (en) Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN112860566A (en) Applet detection method, device, electronic equipment and readable medium
CN112149828A (en) Operator precision detection method and device based on deep learning framework
CN112882945A (en) Applet data processing method, device, equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN111858302B (en) Method and device for testing small program, electronic equipment and storage medium
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN114116688A (en) Data processing and data quality inspection method, device and readable storage medium
CN115129575A (en) Code coverage result generation method and device
CN113138906A (en) Call chain data acquisition method, device, equipment and storage medium
CN113127284A (en) Server pressure testing method and system, electronic 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