Method and device for testing applet communication interface and medium

A communication interface and small program technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve problems such as inability to accurately obtain main program login status information, difficult communication interface testing, etc., and achieve low access costs and convenience The effect of the test

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

AI Technical Summary

Problems solved by technology

[0005] In order to solve the technical problem in the prior art that it is difficult to test the communication interface of the applet in the main program due to the inability to accurately obtain the login status information of the main program, the embodiment of the present invention provides a communication interface for the applet Method, device and medium for testing

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 communication interface and medium
  • Method and device for testing applet communication interface and medium
  • Method and device for testing applet communication 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 device for testing an applet communication interface and a medium. The method comprises the steps of: obtaining an applet to be tested, and newly building an applet test page running in a main program corresponding to the applet to be tested; extracting a communication interface in the applet to be tested to obtain a communication interface set; obtaining a test case for testing each communication interface in the communication interface set to obtain a test case set corresponding to the communication interface set; and implementing each test case in the test case set in the applet test page in a function form to obtain a test case method corresponding to the test case, and running the test case by calling the test case method in the applet test page. According to the invention, the communication interface of the applet to be tested can be called without limitation, the communication interfaces of various applets can be tested, the access cost is low, and environmental problems and configuration problems which may occur when other test frameworks are accessed do not exist.

Description

technical field [0001] The invention relates to the field of unit testing, in particular to a method, device and medium for testing a small program communication interface. Background technique [0002] Many business scenarios in the applet need to use the communication interface to interact with other devices. For the sake of security and business needs, the communication request sent by the communication interface in the applet needs to verify the login of the main program corresponding to the applet. state, but the traditional test framework cannot freely obtain the login state of the main program, so that the traditional test framework in the prior art cannot test the communication interface in the applet. [0003] In the prior art, it is also possible to provide a special test framework dedicated to a certain small program, and the special test framework can provide a login state dedicated to a certain main program, thereby realizing the test of the communication interf...

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): H04L12/26
CPCH04L43/50H04L43/045
Inventor 陈俊杰黄晶
Owner TENCENT TECH (SHENZHEN) 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