CN109801155A - It makes loans verification method, device and the computer equipment of interface - Google Patents
It makes loans verification method, device and the computer equipment of interface Download PDFInfo
- Publication number
- CN109801155A CN109801155A CN201811536855.0A CN201811536855A CN109801155A CN 109801155 A CN109801155 A CN 109801155A CN 201811536855 A CN201811536855 A CN 201811536855A CN 109801155 A CN109801155 A CN 109801155A
- Authority
- CN
- China
- Prior art keywords
- interface
- loans
- making loans
- message
- making
- 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
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000012795 verification Methods 0.000 title claims abstract description 33
- 238000012360 testing method Methods 0.000 claims abstract description 119
- 238000005516 engineering process Methods 0.000 claims abstract description 13
- 230000005540 biological transmission Effects 0.000 claims abstract description 4
- 238000013507 mapping Methods 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 10
- 238000007689 inspection Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000005291 magnetic effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
Present applicant proposes verification method, device and the computer equipments of a kind of interface of making loans, wherein, the verification method of above-mentioned interface of making loans includes: to generate the corresponding message of making loans of the loan product by calling the corresponding interface of making loans of loan product, include the interface of making loans in the message of making loans;It makes loans described in transmission message, to trigger the execution of the corresponding test case of the loan product;The test case is executed, according to the Test cases technology test packet, the test packet includes interface of making loans;Interface of making loans in the test packet is compared with the interface of making loans in the message of making loans, is verified with the correctness to interface of making loans in the message of making loans.The correctness that interface of making loans corresponding to loan product may be implemented in the application is verified automatically, and coverage area is complete, improves the efficiency and accuracy rate of verifying.
Description
[technical field]
This application involves loan verification technique field more particularly to a kind of verification method, device and the calculating of interface of making loans
Machine equipment.
[background technique]
For loan transaction, general every money loan product docks more capitals, in order to test between loan product and capital
Make loans the correctness of interface, it is existing in the related technology, to the correctness progress for interface of making loans generally using manual verification by the way of
Verifying.
But when loan product is more, correspondingly, the capital of loan product docking is also more, and between the two in this way puts
The quantity of money interface is also more, is at this moment verified, is spent to the correctness for interface of making loans by the way of manual verification
Verification time is longer, and the accuracy rate verified is lower.
[summary of the invention]
The embodiment of the present application provides verification method, device and the computer equipment of a kind of interface of making loans, to realize to loan
The correctness of the corresponding interface of making loans of money product is verified automatically, and coverage area is complete, improves the efficiency and standard of verifying
True rate.
In a first aspect, the embodiment of the present application provides a kind of verification method of interface of making loans, comprising: by calling loan to produce
The corresponding interface of making loans of product, generates the corresponding message of making loans of the loan product, includes that described make loans connects in the message of making loans
Mouthful;It makes loans described in transmission message, to trigger the execution of the corresponding test case of the loan product;The test case is executed,
According to the Test cases technology test packet, the test packet includes interface of making loans;By making loans in the test packet
Interface is compared with the interface of making loans in the message of making loans, and is carried out with the correctness to interface of making loans in the message of making loans
Verifying.
Wherein in a kind of possible embodiment, described according to the Test cases technology test packet includes: basis
The mapping relations of the loan product and capital that are configured in the test case, the mapping relations of database value logical AND field and
Must defeated field, generate test packet, include that mapping relations, the database value of loan product and capital is patrolled in the test packet
Volume with the mapping relations of field and must defeated field.
Wherein in a kind of possible embodiment, make loans interface and the report of making loans by the test packet
Interface of making loans in text compares, and carrying out verifying with the correctness to interface of making loans in the message of making loans includes: comparison institute
The loan product in test packet and the message of making loans and the mapping relations of capital are stated, to provide a loan in message of making loans described in determination
The correctness of the mapping relations of product and capital;And according to the message that must make loans described in defeated field inspection in the test packet
In whether include it is described must defeated field, and closed according to the mapping of the database value logical AND field in the test packet
System, determine described in the correctness of the value logic of field made loans in message.
Wherein in a kind of possible embodiment, make loans interface and the report of making loans by the test packet
After interface of making loans in text compares, further includes: the verification result of the interface of making loans in message of making loans described in output.
Wherein in a kind of possible embodiment, the report that message is JavaScript object numbered musical notation format of making loans
Text.
Second aspect, the embodiment of the present application provide a kind of verifying device of interface of making loans, comprising: generation module, for leading to
The corresponding interface of making loans of calling loan product is crossed, the corresponding message of making loans of the loan product is generated, is wrapped in the message of making loans
Include the interface of making loans;Sending module, the message of making loans generated for sending the generation module, to trigger the loan product
The execution of corresponding test case;Execution module is tested according to the Test cases technology and is reported for executing the test case
Text, the test packet include interface of making loans;Contrast module, for by make loans interface and the generation in the test packet
The interface of making loans in message of making loans that module generates compares, and is carried out with the correctness to interface of making loans in the message of making loans
Verifying.
Wherein in a kind of possible embodiment, the execution module, specifically for matching according in the test case
The mapping relations of the loan product and capital set, the mapping relations of database value logical AND field and must defeated field, generate survey
Message is tried, includes the mapping of loan product and the mapping relations, database value logical AND field of capital in the test packet
Relationship and must defeated field.
Wherein in a kind of possible embodiment, the contrast module is specifically used for comparing the test packet and institute
The loan product in message of making loans and the mapping relations of capital are stated, with reflecting for loan product in message of making loans described in determination and capital
Penetrate the correctness of relationship;And according to whether including described in the message that must make loans described in defeated field inspection in the test packet
Must defeated field, and according to the mapping relations of the database value logical AND field in the test packet, determine described in make loans
The correctness of the value logic of field in message.
Wherein in a kind of possible embodiment, described device further include: output module, in the contrast module
After interface of making loans in make loans interface and the message of making loans in the test packet is compared, make loans described in output
The verification result of interface of making loans in message.
Wherein in a kind of possible embodiment, the report that message is JavaScript object numbered musical notation format of making loans
Text.
The third aspect, the embodiment of the present application provide a kind of computer equipment, including memory, processor and are stored in described
It is real when the processor executes the computer program on memory and the computer program that can run on the processor
Now method as described above.
Fourth aspect, the embodiment of the present application provide a kind of non-transitorycomputer readable storage medium, are stored thereon with meter
Calculation machine program, the computer program realize method as described above when being executed by processor.
In above technical scheme, by calling the corresponding interface of making loans of loan product, it is corresponding to generate above-mentioned loan product
It makes loans after message, sends above-mentioned message of making loans and then executed with triggering the execution of the corresponding test case of above-mentioned loan product
Above-mentioned test case puts the interface of making loans in above-mentioned test packet with above-mentioned according to above-mentioned Test cases technology test packet
Interface of making loans in money message compares, and is verified with the correctness to interface of making loans in above-mentioned message of making loans, so as to
To realize that the correctness for making loans interface corresponding to loan product is verified automatically, and coverage area is complete, improves verifying
Efficiency and accuracy rate.
[Detailed description of the invention]
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 be the application make loans interface verification method one embodiment flow chart;
Fig. 2 is that the application makes loans the flow chart of another embodiment of the verification method of interface;
Fig. 3 be the application make loans interface verification method further embodiment flow chart;
Fig. 4 be the application make loans interface verifying device one embodiment structural schematic diagram;
Fig. 5 be the application make loans interface verifying another embodiment of device structural schematic diagram;
Fig. 6 is the structural schematic diagram of the application computer equipment one embodiment.
[specific embodiment]
In order to better understand the technical solution of the application, the embodiment of the present application is retouched in detail with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Base
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall in the protection scope of this application.
The term used in the embodiment of the present application is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The application.In the embodiment of the present application and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
Fig. 1 be the application make loans interface verification method one embodiment flow chart, as shown in Figure 1, above-mentioned make loans connects
Mouthful verification method may include:
Step 101, by calling the corresponding interface of making loans of loan product, the corresponding report of making loans of above-mentioned loan product is generated
Text includes above-mentioned interface of making loans in above-mentioned message of making loans.
In the present embodiment, for loan product, after making loans and being approved, wait which before making loans, credit system can pass through
The corresponding interface of making loans of loan product is called, generates the corresponding message of making loans of above-mentioned loan product, above-mentioned message of making loans is for leading to
Know that bank makes loans.Wherein, above-mentioned message of making loans is JavaScript object numbered musical notation (JavaScript Object
Notation;Hereinafter referred to as: the JSON) message of format.
Step 102, above-mentioned message of making loans is sent, to trigger the execution of the corresponding test case of above-mentioned loan product.
Specifically, sending above-mentioned message of making loans can be with are as follows: and credit system sends above-mentioned message of making loans to bank, so as to
Transmitting bank makes loans.
In the present embodiment, the trigger condition of implementation of test cases can be pre-configured with to send above-mentioned message of making loans, in this way,
Send above-mentioned loan product it is corresponding make loans message when, so that it may trigger holding for the corresponding test case of above-mentioned loan product
Row.
Step 103, above-mentioned test case is executed, according to above-mentioned Test cases technology test packet, above-mentioned test packet packet
Include interface of making loans.
Step 104, the interface of making loans in above-mentioned test packet is compared with the interface of making loans in above-mentioned message of making loans,
It is verified with the correctness to interface of making loans in above-mentioned message of making loans.
In the verification method of above-mentioned interface of making loans, by calling the corresponding interface of making loans of loan product, above-mentioned loan is generated
After the corresponding message of making loans of product, above-mentioned message of making loans is sent, to trigger holding for the corresponding test case of above-mentioned loan product
Row, then executes above-mentioned test case, according to above-mentioned Test cases technology test packet, making loans in above-mentioned test packet is connect
Mouth is compared with the interface of making loans in above-mentioned message of making loans, and is tested with the correctness to interface of making loans in above-mentioned message of making loans
Card, so as to realize that the correctness of interface of making loans corresponding to loan product is verified automatically, and coverage area is complete, mentions
The high efficiency and accuracy rate of verifying.
Fig. 2 is that the application makes loans the flow chart of another embodiment of the verification method of interface, as shown in Fig. 2, the application Fig. 1
In illustrated embodiment, step 103 can be with are as follows:
Step 201, above-mentioned test case is executed, according to the mapping of the loan product and capital that configure in above-mentioned test case
Relationship, the mapping relations of database value logical AND field and must defeated field, generate test packet.
In the present embodiment, in order to verify to interface of making loans, test case is preset, and in above-mentioned test case
Configure the mapping relations of loan product and capital, the mapping relations of database value logical AND field and must defeated field, in this way, holding
After the above-mentioned test case of row, so that it may generate test packet, include the mapping of loan product and capital in above-mentioned test packet
Relationship, mapping relations of database value logical AND field and must defeated field, wherein must defeated field may include in order to loan
Interface of making loans between product and capital carries out verifying required field.
Fig. 3 be the application make loans interface verification method further embodiment flow chart, as shown in figure 3, the application Fig. 1
In illustrated embodiment, step 104 can be with are as follows:
Step 301, the loan product in above-mentioned test packet and above-mentioned message of making loans and the mapping relations of capital are compared, with
Determine the correctness of the mapping relations of loan product and capital in above-mentioned message of making loans;And according in above-mentioned test packet must
Defeated field check in above-mentioned message of making loans whether include it is above-mentioned must defeated field, and taken according to the database in above-mentioned test packet
It is worth the mapping relations of logical AND field, determines the correctness of the value logic of the field in above-mentioned message of making loans.
Further, after step 104, can also include:
Step 302, the verification result of the interface of making loans in above-mentioned message of making loans is exported.
The execution of automatic trigger test case may be implemented in the verification method of above-mentioned interface of making loans, according to test packet to putting
Interface of making loans in money message is verified, and exports verification result automatically, and coverage area is complete, improve verifying efficiency and
Accuracy rate.
Fig. 4 be the application make loans interface verifying device one embodiment structural schematic diagram, making loans in the present embodiment
The verification method of interface provided by the embodiments of the present application of making loans may be implemented in the verifying device of interface.As shown in figure 4, above-mentioned make loans
The verifying device of interface may include: generation module 41, sending module 42, execution module 43 and contrast module 44;
Generation module 41, for it is corresponding to generate above-mentioned loan product by calling the corresponding interface of making loans of loan product
It makes loans message, includes the interface of making loans in the message of making loans;In the present embodiment, for loan product, it is approved making loans
Later, wait which before making loans, credit system can generate above-mentioned loan product pair by calling the corresponding interface of making loans of loan product
The message of making loans answered, above-mentioned message of making loans are made loans for transmitting bank.Wherein, the above-mentioned report that message is JSON format of making loans
Text.
Sending module 42, it is corresponding to trigger above-mentioned loan product for sending the message of making loans of the generation of generation module 41
The execution of test case;Specifically, sending module 42 send above-mentioned message of making loans can be with are as follows: credit system sends above-mentioned report of making loans
Text gives bank, makes loans so as to transmitting bank.
In the present embodiment, the trigger condition of implementation of test cases can be pre-configured with to send above-mentioned message of making loans, in this way,
Sending module 42 send above-mentioned loan product it is corresponding make loans message when, so that it may trigger the corresponding test of above-mentioned loan product
The execution of use-case.
Execution module 43, for executing above-mentioned test case, according to above-mentioned Test cases technology test packet, above-mentioned test
Message includes interface of making loans;
Contrast module 44, in the message of making loans that interface is generated with generation module 41 that will make loans in above-mentioned test packet
Interface of making loans compare, verified with the correctness to interface of making loans in above-mentioned message of making loans.
In the verifying device of above-mentioned interface of making loans, generation module 41 is raw by calling the corresponding interface of making loans of loan product
After the corresponding message of making loans of above-mentioned loan product, sending module 42 sends above-mentioned message of making loans, and is produced with triggering above-mentioned loan
The execution of the corresponding test case of product, then execution module 43 executes above-mentioned test case, is surveyed according to above-mentioned Test cases technology
Try message, contrast module 44 carries out the interface of making loans in make loans interface and the above-mentioned message of making loans in above-mentioned test packet pair
Than being verified with the correctness to interface of making loans in above-mentioned message of making loans, so as to realize put corresponding to loan product
The correctness of money interface is verified automatically, and coverage area is complete, improves the efficiency and accuracy rate of verifying.
Fig. 5 be the application make loans interface verifying another embodiment of device structural schematic diagram, in the present embodiment, execute
Module 43, specifically for being patrolled according to mapping relations, the database value of the loan product and capital that are configured in above-mentioned test case
Volume with the mapping relations of field and must defeated field, generation test packet.
In the present embodiment, in order to verify to interface of making loans, test case is preset, and in above-mentioned test case
Configure the mapping relations of loan product and capital, the mapping relations of database value logical AND field and must defeated field, in this way, holding
Row module 43 executes after above-mentioned test case, so that it may generate test packet, include loan product in above-mentioned test packet with
The mapping relations of capital, mapping relations of database value logical AND field and must defeated field, wherein must defeated field may include
In order to carry out verifying required field to the interface of making loans between loan product and capital.
In the present embodiment, contrast module 44, specifically for comparing the loan in above-mentioned test packet and above-mentioned message of making loans
The mapping relations of product and capital, with the correctness of the mapping relations of loan product and capital in the above-mentioned message of making loans of determination;With
And according in above-mentioned test packet must defeated field check in above-mentioned message of making loans whether include it is above-mentioned must defeated field, and according to
The mapping relations of database value logical AND field in above-mentioned test packet, determine the value of the field in above-mentioned message of making loans
The correctness of logic.
Further, the verifying device of above-mentioned interface of making loans can also include: output module 45;
Output module 45, for that will make loans in above-mentioned test packet in interface and above-mentioned message of making loans in contrast module 44
Interface of making loans compare after, export the verification result of the interface of making loans in above-mentioned message of making loans.
The execution of automatic trigger test case may be implemented in the verifying device of above-mentioned interface of making loans, according to test packet to putting
Interface of making loans in money message is verified, and exports verification result automatically, and coverage area is complete, improve verifying efficiency and
Accuracy rate.
Fig. 6 is the structural schematic diagram of the application computer equipment one embodiment, and above-mentioned computer equipment may include depositing
Reservoir, processor and it is stored in the computer program that can be run on above-mentioned memory and on above-mentioned processor, above-mentioned processor
When executing above-mentioned computer program, the verification method of interface provided by the embodiments of the present application of making loans may be implemented.
Wherein, above-mentioned computer equipment can be server, such as: Cloud Server, or electronic equipment, such as:
Smart phone, personal computer (Personal Computer;Hereinafter referred to as: PC) or the smart machines such as tablet computer, this implementation
Example is not construed as limiting the specific form of above-mentioned computer equipment.
Fig. 6 shows the block diagram for being suitable for the exemplary computer device 12 for being used to realize the application embodiment.Fig. 6 is shown
Computer equipment 12 be only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to: one or more processor or processing unit 16, system storage 28 connect different system components
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (Industry Standard
Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below
Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards
Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component
Interconnection;Hereinafter referred to as: PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Computer equipment 12
It may further include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only conduct
Citing, storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 6 do not show, commonly referred to as " hard disk
Driver ").Although being not shown in Fig. 6, the magnetic for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided
Disk drive, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read Only
Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only
Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 60 can store in such as memory 28
In, such program module 60 includes --- but being not limited to --- operating system, one or more application program, other programs
It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould
Block 60 usually executes function and/or method in embodiments described herein.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make
The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as:
LAN), wide area network (Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.Such as figure
Shown in 6, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.Although should be understood that in Fig. 6 not
It shows, other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to: microcode, equipment are driven
Dynamic device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize the verification method of interface provided by the embodiments of the present application of making loans.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey
The verification method of interface provided by the embodiments of the present application of making loans may be implemented in sequence, above-mentioned computer program when being executed by processor.
Above-mentioned non-transitorycomputer readable storage medium can appointing using one or more computer-readable media
Meaning combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer can
Reading storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device
Or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:
Electrical connection, portable computer diskette, hard disk, random access memory (RAM), read-only storage with one or more conducting wires
Device (Read Only Memory;Hereinafter referred to as: ROM), erasable programmable read only memory (Erasable
Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disc are read-only deposits
Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer
Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device
Either device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (Local
Area Network;Hereinafter referred to as: LAN) or wide area network (Wide Area Network;Hereinafter referred to as: WAN) it is connected to user
Computer, or, it may be connected to outer computer (such as being connected using ISP by internet).
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
It should be noted that terminal involved in the embodiment of the present application can include but is not limited to personal computer
(Personal Computer;Hereinafter referred to as: PC), personal digital assistant (Personal Digital Assistant;Below
Referred to as: PDA), radio hand-held equipment, tablet computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc..
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the application
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory;Hereinafter referred to as: ROM), random access memory (Random Access Memory;Hereinafter referred to as: RAM),
The various media that can store program code such as magnetic or disk.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of verification method for interface of making loans characterized by comprising
By calling the corresponding interface of making loans of loan product, the corresponding message of making loans of the loan product, the report of making loans are generated
It include the interface of making loans in text;
It makes loans described in transmission message, to trigger the execution of the corresponding test case of the loan product;
The test case is executed, according to the Test cases technology test packet, the test packet includes interface of making loans;
Interface of making loans in the test packet is compared with the interface of making loans in the message of making loans, to make loans described
The correctness of interface of making loans in message is verified.
2. the method according to claim 1, wherein described according to the Test cases technology test packet packet
It includes:
It is reflected according to the mapping relations of the loan product and capital that are configured in the test case, database value logical AND field
Penetrate relationship and must defeated field, generate test packet, include mapping relations, the data of loan product and capital in the test packet
Mapping relations of library value logical AND field and must defeated field.
3. according to the method described in claim 2, it is characterized in that, it is described by the test packet make loans interface with it is described
The interface of making loans made loans in message compares, and carries out verifying with the correctness to interface of making loans in the message of making loans and includes:
The loan product in the test packet and the message of making loans and the mapping relations of capital are compared, to make loans described in determination
The correctness of the mapping relations of loan product and capital in message;And
According in the message that must make loans described in defeated field inspection in the test packet whether include it is described must defeated field, Yi Jigen
According to the mapping relations of the database value logical AND field in the test packet, determine described in the field made loans in message take
It is worth the correctness of logic.
4. method according to claim 1 to 3, which is characterized in that described by making loans in the test packet
After interface of making loans in interface and the message of making loans compares, further includes:
The verification result for the interface of making loans made loans in message described in output.
5. a kind of verifying device for interface of making loans characterized by comprising
Generation module, for generating the corresponding report of making loans of the loan product by calling the corresponding interface of making loans of loan product
Text includes the interface of making loans in the message of making loans;
Sending module, the message of making loans generated for sending the generation module, to trigger the corresponding test of the loan product
The execution of use-case;
Execution module, for executing the test case, according to the Test cases technology test packet, the test packet packet
Include interface of making loans;
Contrast module, for by putting in the message of making loans that interface is generated with the generation module of making loans in the test packet
Money interface compares, and is verified with the correctness to interface of making loans in the message of making loans.
6. device according to claim 5, which is characterized in that
The execution module, specifically for the mapping relations according to the loan product and capital that are configured in the test case, number
According to library value logical AND field mapping relations and must defeated field, generate test packet, include that loan produces in the test packet
The mapping relations of product and capital, mapping relations of database value logical AND field and must defeated field.
7. device according to claim 6, which is characterized in that
The contrast module, specifically for compare the test packet in the message of making loans loan product and capital reflect
Relationship is penetrated, with the correctness of the mapping relations of loan product and capital in message of making loans described in determination;And according to the test
In the message that must make loans described in defeated field inspection in message whether include it is described must defeated field, and according in the test packet
Database value logical AND field mapping relations, determine described in the correctness of the value logic of field made loans in message.
8. according to device described in claim 5-7 any one, which is characterized in that further include:
Output module, in the contrast module by make loans interface and the putting in the message of making loans in the test packet
The verification result for the interface of making loans made loans in message after money interface compares, described in output.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, when the processor executes the computer program, is realized as in claim 1-4
Any method.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the meter
The method as described in any in claim 1-4 is realized when calculation machine program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536855.0A CN109801155A (en) | 2018-12-14 | 2018-12-14 | It makes loans verification method, device and the computer equipment of interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536855.0A CN109801155A (en) | 2018-12-14 | 2018-12-14 | It makes loans verification method, device and the computer equipment of interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109801155A true CN109801155A (en) | 2019-05-24 |
Family
ID=66556860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811536855.0A Pending CN109801155A (en) | 2018-12-14 | 2018-12-14 | It makes loans verification method, device and the computer equipment of interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109801155A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102131164A (en) * | 2011-01-25 | 2011-07-20 | 宁波征信金电信息技术有限公司 | System for performing loan transaction service based on mobile phone short message |
US20150052033A1 (en) * | 2013-08-13 | 2015-02-19 | PointServ, Inc. | Method, system, service, and computer program product for verification and delivery of income tax return information |
CN106815725A (en) * | 2016-12-30 | 2017-06-09 | 中国银联股份有限公司 | A kind of transaction verification method and device |
CN107871281A (en) * | 2017-11-24 | 2018-04-03 | 丰德金融平台有限公司 | The debt-credit match system and method for air control are realized based on network platform circle of friends credit |
CN108111368A (en) * | 2017-12-19 | 2018-06-01 | 中国银联股份有限公司 | The function test method and device of a kind of transaction system |
CN108255738A (en) * | 2018-04-09 | 2018-07-06 | 平安普惠企业管理有限公司 | Automated testing method, device, computer equipment and storage medium |
CN108470267A (en) * | 2017-09-27 | 2018-08-31 | 上海维信荟智金融科技有限公司 | Automate method and system of making loans |
CN108664396A (en) * | 2018-05-08 | 2018-10-16 | 平安普惠企业管理有限公司 | Bank's interactive interface verification method, device, computer equipment and storage medium |
CN113536319A (en) * | 2021-07-07 | 2021-10-22 | 上海浦东发展银行股份有限公司 | Interface risk prediction method and device, computer equipment and storage medium |
-
2018
- 2018-12-14 CN CN201811536855.0A patent/CN109801155A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102131164A (en) * | 2011-01-25 | 2011-07-20 | 宁波征信金电信息技术有限公司 | System for performing loan transaction service based on mobile phone short message |
US20150052033A1 (en) * | 2013-08-13 | 2015-02-19 | PointServ, Inc. | Method, system, service, and computer program product for verification and delivery of income tax return information |
CN106815725A (en) * | 2016-12-30 | 2017-06-09 | 中国银联股份有限公司 | A kind of transaction verification method and device |
CN108470267A (en) * | 2017-09-27 | 2018-08-31 | 上海维信荟智金融科技有限公司 | Automate method and system of making loans |
CN107871281A (en) * | 2017-11-24 | 2018-04-03 | 丰德金融平台有限公司 | The debt-credit match system and method for air control are realized based on network platform circle of friends credit |
CN108111368A (en) * | 2017-12-19 | 2018-06-01 | 中国银联股份有限公司 | The function test method and device of a kind of transaction system |
CN108255738A (en) * | 2018-04-09 | 2018-07-06 | 平安普惠企业管理有限公司 | Automated testing method, device, computer equipment and storage medium |
CN108664396A (en) * | 2018-05-08 | 2018-10-16 | 平安普惠企业管理有限公司 | Bank's interactive interface verification method, device, computer equipment and storage medium |
CN113536319A (en) * | 2021-07-07 | 2021-10-22 | 上海浦东发展银行股份有限公司 | Interface risk prediction method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10656909B2 (en) | Learning intended user actions | |
CN106373564A (en) | Individualized hotword detection models | |
CN109960541A (en) | Start method, equipment and the computer storage medium of small routine | |
CN109599095A (en) | A kind of mask method of voice data, device, equipment and computer storage medium | |
CN109885825A (en) | Name entity recognition method, device and computer equipment based on attention mechanism | |
CN109698751A (en) | Digital signature generates and sign test method, computer equipment and storage medium | |
CN110363810A (en) | Establish the method, apparatus, equipment and computer storage medium of image detection model | |
CN108269567A (en) | For generating the method, apparatus of far field voice data, computing device and computer readable storage medium | |
US20230070762A1 (en) | Data encryption method and apparatus, computer device, and storage medium | |
CN110009321A (en) | A kind of transfer account method and system based on block chain intelligence contract | |
CN110378346A (en) | Establish the method, apparatus, equipment and computer storage medium of Text region model | |
CN107886320A (en) | It is a kind of to handle the method, equipment and computer-readable storage medium for tying up card | |
CN110009488A (en) | Order processing method, apparatus, equipment and storage medium | |
CN109815947A (en) | Test method, device and the computer equipment of application | |
CN107885661A (en) | The terminal transparency method of testing and system of Mobile solution, equipment, medium | |
CN109951553A (en) | Data processing method, system, electronic equipment and computer readable storage medium | |
CN110207643B (en) | Folding angle detection method and device, terminal and storage medium | |
CN108595412A (en) | Correction processing method and device, computer equipment and readable medium | |
CN110471740A (en) | Execute method, apparatus, equipment and the computer storage medium of machine learning task | |
CN107402720A (en) | A kind of processing method of hard disk, device and terminal | |
CN109816512A (en) | Verification method, device and the computer equipment of reconciliation result | |
CN107463929A (en) | Processing method, device, equipment and the computer-readable recording medium of speech data | |
CN110348827A (en) | The direct-connected method of medium and small bank, minuscule-type-enterprise and relevant device based on third-party application | |
CN109684103A (en) | A kind of interface call method, device, server and storage medium | |
CN109033456A (en) | A kind of condition query method, apparatus, electronic equipment and storage medium |
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 |