Applet testing method, device and system, equipment and medium

A small program and technology to be tested, applied in the computer field, can solve the problems of limited control ability of small programs, and achieve the effect of expanding the controllable range and improving the convenience.

Active Publication Date: 2020-02-04
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF13 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, to adopt the above solution, it is necessary to enable the remote debugging protocol switch of chrome on the source code of the host program of the applet, otherwise, the automatic test of the applet cannot be performed, and at the same time, it will be limited by the chrome debugging protocol, so the ability to control the applet is relatively poor. limited

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Applet testing method, device and system, equipment and medium
  • Applet testing method, device and system, equipment and medium
  • Applet testing method, device and system, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0082] Figure 1B It is a flow chart of a small program testing method in Embodiment 1 of the present application, and this embodiment of the present application is applicable to the automatic testing of small programs in the host program. The method is executed by a small program testing device, which is realized by software and / or hardware, and is specifically configured in a test engine of a host program installed with the small program, and the test engine can be configured in an electronic device installed with the host program .

[0083] Such as Figure 1B A small program testing method is shown, including:

[0084] S101. When the applet to be tested in the host program is in the running state, obtain the test engine master control code file and the test engine slave control code file to be injected.

[0085] Wherein, at least one applet is loaded in the host program installed in the terminal device, so that the applet can be used without downloading and installing th...

Embodiment 2

[0104] figure 2 It is a flow chart of a small program testing method in Embodiment 2 of the present application. This embodiment of the present application is optimized and improved on the basis of the technical solutions of the above-mentioned embodiments.

[0105] Further, the operation "receive the test instruction sent by the external module, and execute the test instruction or notify the slave process to execute the test instruction" is refined to "receive the test from the test driver module forwarded by the external test agent module Instruction; determine that the operation indicated by the test instruction is a runtime environment manipulation operation or a page manipulation operation; if it is a runtime environment manipulation operation, then execute the test instruction, and if it is a page manipulation operation, then notify the slave process to execute the test Instructions" to clarify the manipulation category of the master-slave process to ensure the orderlin...

Embodiment 3

[0122] image 3 It is a flow chart of a small program testing method in Embodiment 3 of the present application. This embodiment of the present application is optimized and improved on the basis of the technical solutions of the above-mentioned embodiments.

[0123] Further, the following operation is added in the applet testing process: "monitor the page event through the slave process, and send the page event information to the main process when the page event is monitored; send the page event information to the main process through the main process Send to an external test agent module, so as to send the page event information to the test driver module through the test agent module, so as to further enrich the function of the slave process of the applet to be tested.

[0124] Such as image 3 A small program testing method is shown, including:

[0125] S301. When the applet to be tested in the host program is in the running state, obtain the test engine master control code ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an applet testing method, device and system, equipment and a medium, and relates to the technical field of software testing, and the specific implementation scheme is as follows: when an applet to be tested in a host program is in a running state, obtaining a test engine master control code file and a test engine slave control code file to be injected; running the test engine main control code file through a main process of the to-be-tested applet to receive a test instruction sent by an external module, and executing the test instruction or notifying a slave process toexecute the test instruction; and running the test engine slave control code file through the slave process of the to-be-tested applet so as to receive and execute a test instruction sent by the master process. According to the technical scheme provided by the embodiment of the invention, the convenience of automatically testing the applet is improved, and meanwhile, the controllable range of testing the applet is expanded.

Description

technical field [0001] This application relates to computer technology, in particular to the technical field of software testing. Background technique [0002] A mini program is an application that can be used without downloading and installing. It realizes the dream of an application "at your fingertips". Users can open the application by scanning or searching. The small program automation test engine refers to a technology that allows small programs to have the ability to be automated. [0003] In the prior art, the automated testing engine of small and medium programs is packaged based on traditional h5 / iOS / android-side automated testing tools appium, selenium, etc., or directly packaged on the basis of the chrome debugging protocol. [0004] However, to adopt the above solution, it is necessary to enable the remote debugging protocol switch of chrome on the source code of the host program of the applet, otherwise, the automatic test of the applet cannot be performed, an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3672Y02D10/00
Inventor 邱立楷张成郭金华
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products