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

Program testing method, program testing device, electronic equipment and storage medium

A program test and program technology, applied in the Internet field, to achieve the effect of improving test accuracy and test efficiency

Active Publication Date: 2020-09-18
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention proposes a program testing method, program testing device, electronic equipment and storage medium, which solves the problem of testing and predicting the randomness of the block generation node selection algorithm, so as to accurately verify the randomness and reliability of the program testing node selection algorithm sex

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, program testing device, electronic equipment and storage medium
  • Program testing method, program testing device, electronic equipment and storage medium
  • Program testing method, program testing device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] 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 creative efforts fall within the protection scope of the present invention.

[0034] Blockchain (Block Chain) is a multi-party joint maintenance, using cryptography to ensure transmission and access security, and can achieve consistent data storage, difficult to tamper, and prevent denial of accounting technology, that is, distributed ledger technology.

[0035] See Figure 1A , Figure 1A It is a schematic structural diagram of a blockchain data sharing system provided by an embodiment of the present invention. The data sharing system 100 re...

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 embodiment of the invention provides a program testing method, a program testing device, electronic equipment and a storage medium. The program testing method specifically comprises the steps of acquiring a block generation node random algorithm program, wherein the block generation node random algorithm program comprises a random function and a random seed; running a block generation node random algorithm program to obtain a first test result; generating a test program according to the random function and the random seed, and running the test program to obtain a second test result; and determining the program performance of the block generation node random algorithm program according to the first test result and the second test result. The embodiment of the invention provides a program testing method. According to the method, a metamorphic test idea is adopted, an automatic framework is introduced, random functions and random seeds in a blockchain project program are automaticallymined, a corresponding test program is automatically generated, and the problem of test prediction of randomness of a block generation node selection algorithm is solved, so that the randomness and reliability of the metamorphic test node selection algorithm are improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a program testing method, a program testing device, electronic equipment and a storage medium. Background technique [0002] Blockchain is a multi-party maintenance, uses cryptography to ensure transmission and access security, and can achieve consistent data storage, difficult to tamper, and prevent denial of accounting technology, that is, distributed ledger technology. In blockchain technology, block proposals are initiated by block generation nodes (that is, bookkeeping nodes), and other nodes verify blocks. If the election of block generation nodes is too concentrated, it will increase the number of single points of failure and key nodes will do evil. The risk of centralization, so the random selection of block generation nodes is crucial. [0003] At present, the block generation node selection algorithm is used to determine the block generation node. The traditional ...

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/3688
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