CN110347607A - A kind of data cochain test method - Google Patents
A kind of data cochain test method Download PDFInfo
- Publication number
- CN110347607A CN110347607A CN201910641385.2A CN201910641385A CN110347607A CN 110347607 A CN110347607 A CN 110347607A CN 201910641385 A CN201910641385 A CN 201910641385A CN 110347607 A CN110347607 A CN 110347607A
- Authority
- CN
- China
- Prior art keywords
- data
- cochain
- public key
- type
- jwt
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000012360 testing method Methods 0.000 claims abstract description 14
- 238000003860 storage Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 11
- 238000012544 monitoring process Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000002360 preparation method Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 13
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000004590 computer program Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000000875 corresponding effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
Data cochain test method disclosed by the invention, it is related to data cochain the field of test technology, by the whole flow process of Java language analogue data cochain on testing tool, find out the cochain failure occurred during data cochain, the problems such as more concurrent cochain used times are too long the reason of.It is that analog can simulate the process of data cochain under different business scenarios and find out problem in laboratory, problem is avoided to expand, save the cost that enterprise solves the problems, such as, improves user experience, the quality public praise of guarantee company's product.
Description
Technical field
The invention belongs to data cochain the field of test technology, and in particular to a kind of data cochain test method.
Background technique
Block chain is the technology newly risen, and does the companies of block chain technology for majority, they often only focus in
The realization of block chain technical functionality, due to flow chart of data processing is complicated, performance scene is not easy simulation etc., enterprise is without very
It is good to complete to be tested for the property or cause performance that corresponding index is not achieved since test is not in place, cause after product is issued,
The exposure in actual scene of many an open questions, to the experience that user is poor, finally causes company performance very bad
It influences.If this problem is repaired in the later period by enterprise, need to pay very high cost, and is likely to occur data entanglement, data
Lose the other problems such as repetition.
Summary of the invention
In view of the defects existing in the prior art, the embodiment of the invention provides a kind of data cochain test method, this method
The following steps are included:
(1) data preparation stage
Using java language, obtains current time and generate the timestamp of setting digit and using the timestamp as business
Mark;
Using pressure test tool Jmeter, obtains the public key of local host storage and sends connection request to database,
Obtain the corresponding private key of public key;
According to the public key, contract address and user identifier are obtained;
It treats uplink data to be encrypted with fixed format, generates encryption data;
(2) data processing stage
The public key, the contract address and company information are put into the file publishing issuer of json data back
In, issuer and the encryption data are put into the statement file claims of json data back, wherein company information packet
Include enterprise name and digital identity;
Using JWT data creation function, company information and statement file claims are put into data back and are added
It is close, generate the data of JWT format;
Uplink data is waited for the data and this of the service identification, the user identifier and the JWT format respectively
Type carries out standardization processing;
Obtain the Nonce value and Gas value of this data cochain needs;
It is Biginteger type by the data type conversion of the Gas value;
The data of the JWT format, the Nonce value and the Gas value are put into things, signed data is generated;
(3) cochain test phase
Obtain the data type to uplink data;
The service identification, the user identifier, the signed data, the data type are carried out by cochain interface
Cochain;
Using pressure test tool Jmeter, monitors the performance parameter during cochain in real time and generate monitoring log;
According to the monitoring log, judge whether this data cochain succeeds, if it is not, then obtaining from the monitoring log
Cochain failure cause.
Preferably, the method also includes:
After to the success of uplink data cochain, the successful data of cochain are decrypted using the private key.
Data cochain test method provided in an embodiment of the present invention, has the advantages that
By the whole flow process of Java language analogue data cochain on testing tool, appearance during data cochain is found out
Cochain failure, the problems such as more concurrent cochain used time is too long the reason of.It is that analog can simulate different industry in laboratory
The process of data cochain and problem is found out under business scene, avoids problem from expanding, save the cost that solves the problems, such as of enterprise, raising user
Experience, the quality public praise of guarantee company's product.
Detailed description of the invention
Fig. 1 is the flow diagram of data cochain test method provided in an embodiment of the present invention.
Specific embodiment
Specific introduce is made to the present invention below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, data cochain test method provided in an embodiment of the present invention the following steps are included:
S101 prepares data
S1011, using java language, obtain current time and generate setting digit timestamp and using the timestamp as
Service identification.
Wherein, timestamp is noun, when being Beijing time 1970 01 month 01 day 08 00 divide 00 second to present total
Number of seconds, generating process are as follows:
Present system time is read, present system time is converted to the time format of 13 data.
It is further possible to utilize the timestamp of the language generations such as C++, javascript setting digit.
S1012 obtains the public key of local host storage and sends connection to database using pressure test tool Jmeter
Request obtains the corresponding private key of public key.
S1013 obtains contract address and user identifier according to public key.
S1014 is treated uplink data and is encrypted with fixed format, and encryption data is generated.
As a specific embodiment, the formats of encrypted data can be with are as follows:
C9568308E43825372F0F30B446556EA96834A7A61A88820B739C24B5F82338705096
C3146454E4A3F7D70E1BFDAF60518367DF04B0F1C8348B1692E10F1F3FEF88AC0800D6A239B0
7DBA033EE3A25D470814D0DF045ECE5F04A536501EDDB74027E767F4BD7BFA4F4BAC1F27F6CF
F4CE960392C281D8EB4D2026D9989F59BCC9993E6263BFF5F452ADA9EC17B71E0357BC54D78D
64927B75606FBADA533C9416C78422A4885D3911AF3ED5FFDA48FB8EA145CC0E5F6FA149D737
59402E988DC27EBA5021CE7F13F2CE84C3DD7A043E2B417AC488999A8F3DBD0330FFD2102E85
931EAEB2DA6F4442D264AC0AEB5F8819CBA924036CBF51C28C3A586096184E49DBBA1ADC5734
632DE5A0DFC7280AD0ED2B9F0708EFF6AD3922647A32313127B1959888A5BC29296747232E40
C409DD9989F288728EF3013C37158126F5AC5C8F26A60442DA53CE4F9AFB68A648C38E24F7A8
DCCCB4CB41E65E0BF87F17263FDA4D1C9D73EF4F7E0EBB7DFD77956056E60F76B2165CFD6E40
C5559DFB672B89FB6527F319C5377F17E91D5CA7328E8E8052AED7193D91777DBA26B7F2DFAD
C49C。
S102 handles data
The public key, contract address and company information are put into the file publishing issuer of json data back by S1021
In, issuer and encryption data are put into the statement file claims of json data back, wherein company information includes enterprise
Industry title and digital identity.
Company information and statement file claims are put into data back by S1022 using JWT data creation function
It is encrypted, generates the data of JWT format.
S1023, respectively the data to service identification, user identifier and JWT format and this wait for the type of uplink data into
Row standardization processing.
S1024 obtains the Nonce value and Gas value of this data cochain needs.
The data type conversion of Gas value is Biginteger type by S1025.
The data of JWT format, Nonce value and Gas value are put into things by S1026, generate signed data.
Wherein, the number of transaction that Nonce value record current account is sent out;Gas value includes the price of Gas and this transaction can
With the Gas upper limit of consumption, execute certain movements need how many workload for measuring, these workloads are exactly dynamic in order to execute this
Pay the expense volume of network.
S103 obtains data cochain result
S1031 obtains the data type to uplink data.
Service identification, user identifier, signed data, data type are carried out cochain by cochain interface by S1032.
Wherein, data type is different according to the property of enterprise, and by taking automobile leasing industry as an example, data type includes user
Order data information and the violation data information of user etc..
S1033 monitors the performance parameter during cochain in real time and generates monitoring day using pressure test tool Jmeter
Will.
S1034 judges whether this data cochain succeeds, if it is not, then obtaining from the monitoring log according to monitoring log
Take cochain failure cause.
Optionally, this method further include:
After to the success of uplink data cochain, the successful data of cochain are decrypted using private key.
Data cochain test method provided in an embodiment of the present invention, through Java language on testing tool in analogue data
The whole flow process of chain, find out the cochain failure occurred during data cochain, the problems such as more concurrent cochain used times are too long the reason of.
It is that analog can simulate the process of data cochain under different business scenarios and find out problem in laboratory, problem is avoided to expand
Greatly, the cost that enterprise solves the problems, such as is saved, user experience, the quality public praise of guarantee company's product are improved.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.The technology people of fields
Member can be understood that, for convenience and simplicity of description, the specific works mistake of the system, apparatus, and unit of foregoing description
Journey can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In addition, memory may include the non-volatile memory in computer-readable medium, random access memory
(RAM) and/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes extremely
A few storage chip.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
It should be noted that the above embodiments do not limit the invention in any form, it is all to use equivalent replacement or equivalent change
The mode changed technical solution obtained, falls within the scope of protection of the present invention.
Claims (2)
1. a kind of data cochain test method characterized by comprising
(1) data preparation stage
Using java language, obtains current time and generate the timestamp of setting digit and using the timestamp as business mark
Know;
Using pressure test tool Jmeter, obtains the public key of local host storage and send connection request to database, obtain
The corresponding private key of public key;
According to the public key, contract address and user identifier are obtained;
It treats uplink data to be encrypted with fixed format, generates encryption data;
(2) data processing stage
The public key, the contract address and company information are put into the file publishing issuer of json data back, it will
Issuer and the encryption data are put into the statement file claims of json data back, wherein company information includes enterprise
Industry title and digital identity;
Using JWT data creation function, company information and statement file claims are put into data back and are encrypted, it is raw
At the data of JWT format;
The type of uplink data is waited for the data and this of the service identification, the user identifier and the JWT format respectively
Carry out standardization processing;
Obtain the Nonce value and Gas value of this data cochain needs;
It is Biginteger type by the data type conversion of the Gas value;
The data of the JWT format, the Nonce value and the Gas value are put into things, signed data is generated;
(3) cochain test phase
Obtain the data type to uplink data;
The service identification, the user identifier, the signed data, the data type are carried out by cochain interface
Chain;
Using pressure test tool Jmeter, monitors the performance parameter during cochain in real time and generate monitoring log;
According to the monitoring log, judge whether this data cochain succeeds, if it is not, then obtaining cochain from the monitoring log
Failure cause.
2. data cochain test method according to claim 1, which is characterized in that the method also includes:
After to the success of uplink data cochain, the successful data of cochain are decrypted using the private key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910641385.2A CN110347607A (en) | 2019-07-16 | 2019-07-16 | A kind of data cochain test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910641385.2A CN110347607A (en) | 2019-07-16 | 2019-07-16 | A kind of data cochain test method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347607A true CN110347607A (en) | 2019-10-18 |
Family
ID=68175451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910641385.2A Pending CN110347607A (en) | 2019-07-16 | 2019-07-16 | A kind of data cochain test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347607A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459825A (en) * | 2020-04-03 | 2020-07-28 | 银清科技有限公司 | Block chain application system, method and device for payment service |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6898709B1 (en) * | 1999-07-02 | 2005-05-24 | Time Certain Llc | Personal computer system and methods for proving dates in digital data files |
CN108416577A (en) * | 2018-03-02 | 2018-08-17 | 上海汉得信息技术股份有限公司 | A kind of block chain service system |
CN109299188A (en) * | 2018-08-21 | 2019-02-01 | 平安科技(深圳)有限公司 | Utilize block chain date storage method, device and electronic equipment |
CN109325331A (en) * | 2018-09-13 | 2019-02-12 | 北京航空航天大学 | Transaction system is acquired based on the big data of block chain and credible calculating platform |
CN109344172A (en) * | 2018-08-31 | 2019-02-15 | 深圳市元征科技股份有限公司 | A kind of high concurrent data processing method, device and client-server |
CN109639521A (en) * | 2018-12-05 | 2019-04-16 | 北京京东金融科技控股有限公司 | Test method, device, equipment and the storage medium of block chain performance |
CN109831479A (en) * | 2018-12-20 | 2019-05-31 | 深圳智乾区块链科技有限公司 | The data processing method and system of block chain |
-
2019
- 2019-07-16 CN CN201910641385.2A patent/CN110347607A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6898709B1 (en) * | 1999-07-02 | 2005-05-24 | Time Certain Llc | Personal computer system and methods for proving dates in digital data files |
CN108416577A (en) * | 2018-03-02 | 2018-08-17 | 上海汉得信息技术股份有限公司 | A kind of block chain service system |
CN109299188A (en) * | 2018-08-21 | 2019-02-01 | 平安科技(深圳)有限公司 | Utilize block chain date storage method, device and electronic equipment |
CN109344172A (en) * | 2018-08-31 | 2019-02-15 | 深圳市元征科技股份有限公司 | A kind of high concurrent data processing method, device and client-server |
CN109325331A (en) * | 2018-09-13 | 2019-02-12 | 北京航空航天大学 | Transaction system is acquired based on the big data of block chain and credible calculating platform |
CN109639521A (en) * | 2018-12-05 | 2019-04-16 | 北京京东金融科技控股有限公司 | Test method, device, equipment and the storage medium of block chain performance |
CN109831479A (en) * | 2018-12-20 | 2019-05-31 | 深圳智乾区块链科技有限公司 | The data processing method and system of block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459825A (en) * | 2020-04-03 | 2020-07-28 | 银清科技有限公司 | Block chain application system, method and device for payment service |
CN111459825B (en) * | 2020-04-03 | 2023-10-31 | 银清科技有限公司 | Block chain application system, method and device for payment service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9569288B2 (en) | Application pattern discovery | |
JP5607743B2 (en) | Generate automated test execution plans | |
US10592368B2 (en) | Missing values imputation of sequential data | |
US20130191105A1 (en) | Virtual systems testing | |
US9424403B2 (en) | Obtaining software asset insight by analyzing collected metrics using analytic services | |
US10545847B2 (en) | Grouping and isolating software changes to increase build quality | |
CN108694238A (en) | Business data processing method, device based on block chain and storage medium | |
CN105791178B (en) | Message assemble method and device | |
US10158725B2 (en) | Differentiated service identification in a networked computing environment | |
US20160267411A1 (en) | Creating sustainable innovation platforms based on service first and service now approach | |
US9921930B2 (en) | Using values of multiple metadata parameters for a target data record set population to generate a corresponding test data record set population | |
GB2603574A (en) | Synthetic system fault generation | |
CN107578338A (en) | A kind of service publishing method, device and equipment | |
US11302096B2 (en) | Determining model-related bias associated with training data | |
US10769281B2 (en) | Compliant software component infrastructure deployment | |
US20190166029A1 (en) | Tracking usage of computing resources | |
CN110347607A (en) | A kind of data cochain test method | |
US10878804B2 (en) | Voice controlled keyword generation for automated test framework | |
Strodl et al. | Digital preservation of a process and its application to e-science experiments | |
Halboob et al. | Dynamically changing service level agreements (SLAs) management in cloud computing | |
CN110457318A (en) | The update method of data field, device, medium, electronic equipment in block chain | |
CN109669829A (en) | A kind of diagnosis adjustment method, device and server based on BMC | |
US11182606B2 (en) | Converting chart data | |
Svorobej et al. | Towards automated data-driven model creation for cloud computing simulation | |
US20180004629A1 (en) | Run time smf/rmf statistical formula methodology for generating enhanced workload data points for customer profiling visualization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |