Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for testing applet method interface, and medium

A technology of applet and interface, which is applied in the field of testing the method interface of applet, which can solve the problems of inability to reach various interfaces of applet and insufficient support for applet testing.

Pending Publication Date: 2021-03-30
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the technical problems that the various testing frameworks in the prior art cannot touch the various interfaces of the applet, there are test blind spots, and the test support for the applet developed in a non-native way is insufficient, the embodiment of the present invention provides A method, device and medium for testing applet method interfaces

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
  • Method and device for testing applet method interface, and medium
  • Method and device for testing applet method interface, and medium
  • Method and device for testing applet method interface, and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0031] It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrate...

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 a method and a device for testing an applet method interface, and a medium. The method comprises the steps of obtaining a to-be-tested page of an applet; when the to-be-testedpage of the applet meets the condition of newly establishing a test page, newly establishing an applet test page running in a main program corresponding to the applet; adding the to-be-tested page into the applet test page as a component, and establishing an association relationship between the to-be-tested page and the applet test page; and implementing a test case for testing the to-be-tested page in the applet test page in a function form to obtain a test case method, and running the test case by calling the test case method in the applet test page. According to the invention, free testingcan be carried out on a method interface of a native applet or a non-native applet, and the compatibility is good.

Description

technical field [0001] The invention relates to the field of unit testing, in particular to a method, device and medium for testing the method interface of a small program. Background technique [0002] With the increasing popularity of small programs, the demand for testing small programs is also becoming more and more urgent. However, the testing framework specially applied to small programs in the prior art is not yet mature, and the existing front-end testing frameworks cannot adapt to the testing of small programs. [0003] For example, classic front-end testing frameworks such as JEST and Mocha cannot obtain the login status of the main program corresponding to the applet, so the interface in the applet cannot be tested independently. Automator, a test framework dedicated to small programs, can only run in the development tool at present, and cannot be independently transplanted to a real machine to run; nor can it touch all internal interfaces, such as internal metho...

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/3672
Inventor 陈俊杰黄晶
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products