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

Method and device for testing program

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

Active Publication Date: 2016-07-20
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF3 Cites 14 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
  • Method and device for testing program
  • Method and device for testing program
  • Method and device for testing program

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 flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, And, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.

[0030] Optionally, in this embodiment, the above program testing method is applied to figure 2 In the network environment shown. The network environment includes a first terminal 201 and a server 203 (the server may be a server or a 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 and the second terminal Processors can be set on both server and server.

[0031] The aforementioned netwo...

test Embodiment cas

[0071] Take the payment application as an example, combined with Figure 5 to Figure 7 The embodiments of the present invention are described in detail. Optionally, the client of the present application may also verify the results of each interface through the interface joint debugging of the docking resource transfer platform, such as Figure 5 As shown, for payment applications, merchants call the payment production environment API to initiate orders, payments, refunds, etc., and verify the verification requests initiated by the merchant client through the payment server (such as Figure 5 The shown verification order, verification payment, verification refund), and return the result; preferably, adopt Image 6 In the virtual test system shown, in this embodiment, the path of the sandbox is configured in the interface of the merchant's program or configuration to access nginx, and the sandbox request is routed to the sandbox environment. Further, through the web server software...

Embodiment 2

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

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

[0081] Execution unit 83, the virtual test system and the client execute target test cases, where the target test case is used to test whether the execution resource transfer event of the client meets the execution rules;

[0082] The processing unit 85, the virtual test system records the operation information of the client, and based on the operation information, determines whether the execution resource transfer event of the client complies with the execution rules. The operation information includes the operation behavior and generation of the client during the execution of the targ...

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 the resource transfer platform, 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; users cannot handle some typical resource transfer scenarios; the handling of typical payment exception scenarios is imperfect; they do not know how to ensure the security of resource transfer, etc. [0003] Specifically, users of the resource transfer platform (may be merchants who use the resource transfer platform, that is, users who transfer resources through the resource transfer platform, such as receivi...

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
IPC IPC(8): G06F11/36
CPCG06F11/3664G06F11/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