Unlock instant, AI-driven research and patent intelligence for your innovation.

Program testing method and device

A program testing and virtual testing technology, applied in the Internet field, can solve the problem of high verification cost and achieve the effect of saving verification cost

Active Publication Date: 2019-01-11
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a program testing method and device to at least solve the technical problem of using real resources for resource transfer verification and high verification costs

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
  • Program testing method and device
  • Program testing method and device
  • Program testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] According to an embodiment of the present invention, an embodiment of a method for processing wireless network information is provided. It should be noted that the steps shown in the flow charts of the drawings can be executed in a computer system such as a set of computer-executable instructions, Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0030] Optionally, in this embodiment, the above-mentioned program testing method is applied to such as figure 2 In the network environment shown. The network environment includes a first terminal 201 and a server 203 (the server can be a server or cloud platform for network connection applications), and a third terminal 205, wherein the terminal can establish a connection with the server through the network, the first terminal, the second terminal Processors can be set on both the server and the s...

test Embodiment cas

[0071] Let's take the payment application as an example, combined with Figure 5 to Figure 7 To describe the embodiment of the present invention in detail, optionally, the client of this application can also verify the results of each interface through joint debugging of the interface connected to the resource transfer platform, such as Figure 5 As shown, for the payment application, the merchant invokes the payment production environment API to initiate order placement, payment initiation, refund initiation, etc., and verify the verification requests initiated by the merchant client through the payment server (such as Figure 5 As shown in the verification order, verification payment, verification refund), and return the result; preferably, use such as Figure 6 In the shown virtual test system, in this embodiment, the path of the sandbox sandbox is configured on the interface of the merchant's program or configuration to access nginx, and the sandbox request is routed to th...

Embodiment 2

[0079] According to an embodiment of the present invention, a program testing device for implementing the above program testing method is also provided, such as Figure 8 As shown, the device includes:

[0080] The obtaining unit 81 is used for the virtual test system to obtain the test request sent by the client, wherein the test request is used to request the execution of the target test case;

[0081] Execution unit 83, the virtual test system and the client execute the target test case, wherein the target test case is used to test whether the client executes the resource transfer event in compliance with the execution rules;

[0082] The processing unit 85, the virtual test system records the operation information of the client, and determines whether the execution of the resource transfer event by the client conforms to the execution rules based on the operation information, wherein the operation information includes the operation behavior and generation of the client dur...

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 a program. The method comprises the steps that a testing request sent by a client side is acquired by a virtual testing system, wherein the testing request is used for requesting for executing a target test case; the virtual testing system and the client side execute the target test case, wherein the target test case is used for testing whether a client side executing resource transfer event meets an executing rule or not; the virtual testing system records operating information of the client side and determines whether the client side executing resource transfer event meets the executing rule or not based on the operating information, wherein the operating information comprises an operating behavior occurring in the process that the clients side executes the target test case and a generated operating result. By means of the method and device, the problem that due to the fact that true resources are used for resource transfer verification in the prior art, verification cost is high is solved, and therefore verification cost is reduced.

Description

technical field [0001] The present invention relates to the Internet field, in particular to a program testing method and device. Background technique [0002] With the rise of O2O and the development of resource transfer platforms, a large number of users (such as merchants) access resource transfer platforms (such as WeChat payment), however, there are various resource transfer scenarios on resource transfer platforms, facing a large number of resource transfer scenarios , Many users do not know how to complete the verification of access to the resource transfer platform; for some typical resource transfer scenarios, users cannot handle it; the handling of typical payment exception scenarios is not perfect; they do not know how to ensure the security of resource transfer, etc. [0003] Specifically, users of the resource transfer platform (which can be merchants who use the resource transfer platform, that is, users who transfer resources through the resource transfer plat...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/3672
Inventor 赖峥嵘
Owner TENCENT TECH (SHENZHEN) CO LTD