CN109213681A - Test macro, method, equipment and readable storage medium storing program for executing - Google Patents

Test macro, method, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109213681A
CN109213681A CN201811005361.XA CN201811005361A CN109213681A CN 109213681 A CN109213681 A CN 109213681A CN 201811005361 A CN201811005361 A CN 201811005361A CN 109213681 A CN109213681 A CN 109213681A
Authority
CN
China
Prior art keywords
test
business object
businessman
module
feature
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
Application number
CN201811005361.XA
Other languages
Chinese (zh)
Inventor
付潼
李震
田洋
赵帅
王瑞芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201811005361.XA priority Critical patent/CN109213681A/en
Publication of CN109213681A publication Critical patent/CN109213681A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The present invention provides a kind of test macro, method, equipment and readable storage medium storing program for executing, comprising: receives the business object interface characteristics that businessman sends;Receive the business object feature that businessman sends;According to the business object interface characteristics and the business object feature, multiple business object test cases are generated;Traversal test is executed using multiple business object test cases, obtains actual test result.It solves the flow testing that all products in the prior art all use a set of fixation, causes not generate use-case targetedly, test result surveys incomplete or indeterminable problem.

Description

Test macro, method, equipment and readable storage medium storing program for executing
Technical field
The present embodiments relate to system testing field more particularly to a kind of test macro, method, equipment and readable storages Medium.
Background technique
Online travel agency and cooperation supplier carry out both sides' system docking, and admission ticket is carried out in the form of interface real-time, interactive and is sold The running for selling each link, the link being directed to include that single, user places an order and pays, order reimbursement, order use core on product The processes such as pin need to carry out automatic test before docking, with detect the docking of various functions whether normal operation.Wherein, it automates Test refers to that the automation of software test, software test are exactly that operating system or application program, assessment on a preset condition based are run As a result, condition should include normal condition and exceptional condition in advance.
In the prior art, when whether test both sides' system docking is successful, almost it is indifferent to the interface features of docking both sides (system performance) and supplier's different product characteristic (business feature), and only with a general a set of or test case into Row universal test.Test be expected to use-case walk it is logical, then it is assumed that docking it is without exception.
However, in the prior art all products be all using the flow testing of a set of fixation, and the characteristic of some products survey Examination less than or test result determine it is wrong.If not generating use-case targetedly when test, test result is frequently not Survey is not exactly indeterminacy entirely.
Summary of the invention
The present invention provides a kind of test macro, carries out both sides to solve online travel agency and cooperation supplier in first technology Test result surveys incomplete or indeterminable problem when testing in system docking.
According to the first aspect of the invention, a kind of test macro is provided, the system comprises:
Interface characteristics receiving module, for receiving the business object interface characteristics of businessman's transmission;
Business object feature receiving module, for receiving the business object feature of businessman's transmission;
Test cases technology module, for generating according to the business object interface characteristics and the business object feature Multiple business object test cases;
Test module obtains actual test knot for executing traversal test using multiple business object test cases Fruit.
According to the second aspect of the invention, a kind of test method is provided, which comprises
Receive the business object interface characteristics request that businessman sends;
Receive the business object feature that businessman sends;
According to the business object interface characteristics and the business object feature, multiple business object test cases are generated;
Traversal test is executed using multiple business object test cases, obtains actual test result.
According to the third aspect of the invention we, a kind of equipment is provided, comprising:
Processor, memory and it is stored in the computer journey that can be run on the memory and on the processor Sequence, which is characterized in that the processor realizes test macro as the aforementioned when executing described program.
According to the fourth aspect of the invention, provide a kind of readable storage medium storing program for executing, when the instruction in the storage medium by When the processor of electronic equipment executes, so that electronic equipment can be realized test macro above-mentioned.
A kind of test method, system, equipment and readable storage medium storing program for executing provided in an embodiment of the present invention receive what businessman sent Business object interface characteristics;Receive the business object feature that businessman sends;According to the business object interface characteristics and the industry Business characteristics of objects, generates multiple business object test cases;Traversal test is executed using multiple business object test cases, Obtain actual test result.The embodiment of the present invention solves all products in the prior art and is all surveyed with the process of a set of fixation Examination, generating use-case does not have specific aim, and test result surveys incomplete or indeterminable problem, realizes to have and targetedly test Use-case is tested, and is obtained accurately without the beneficial effect of the test result of redundancy.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of test method provided in an embodiment of the present invention;
Figure 1A is testing process schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart of test method provided in an embodiment of the present invention;
Fig. 2A is that traversal test sequence diagram provided in an embodiment of the present invention is intended to;
Fig. 2 B is test case characteristic selection schematic diagram provided in an embodiment of the present invention;
Fig. 2 C is test case template list schematic diagram provided in an embodiment of the present invention;
Fig. 2 D is traversal test front-end interface schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of test macro provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of test macro provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, it illustrates a kind of step flow charts of test method, the specific steps of which are as follows:
Step 101, the business object interface characteristics that businessman sends are received;
In the embodiment of the present invention, as shown in Figure 1A, OTA (Xian Shang travel agency) and cooperation supplier carry out both sides' system pair It connects, the running that admission ticket sells each link is carried out in the form of interface real-time, interactive.The link being related to includes on product under single, user It is single to be checked and write off with payment, order reimbursement, order use.
It is to be appreciated that carry out the docking test of various functions, and usually using certainly before both sides' system docking Dynamicization test to reduce cost of labor, and improves execution efficiency.
Wherein, automatic test generally refers to the automation of software test, and software test is exactly to run on a preset condition based System or application program assess operation result, and preparatory condition should include normal condition and exceptional condition.
So, for the demand of merchant product, receiving the interface characteristics that businessman sends, i.e. interface before being tested Configuring request.
Wherein, to include businessman tell Xian Shang travel agency to want to dock OTA to interface configuring request by front end page fill message Which interface, while informing interface IP address, Convenient interface request processing.
Step 102, the business object feature that businessman sends is received;
In the embodiment of the present invention, as shown in Figure 1A, in order to preferably dock test, it is also necessary to which businessman, which provides, needs online production The characteristic of product makes specific aim processing to dock with OTA when test.
Wherein, businessman submits the page by the products configuration that OTA is provided, and submits the product characteristic contained by oneself corresponding Feature request, i.e. business object feature, it is subsequent that specific aim processing can be made according to this feature after OTA receives this feature.
Step 103, according to the business object interface characteristics and the business object feature, multiple business objects is generated and are surveyed Example on probation;
Specifically, OTA according to automatic test system by the interface configuring request received and business object feature, according to from The rule for helping test macro to conclude generates test case.
Wherein, as shown in Figure 1A, interface features and product characteristic that direct-connected automatic test system background is informed according to businessman, It can must need which scene to be tested has, generate test case according to rule is concluded, test case includes the sequence of test, surveys The contents such as the judgement of content, result of examination.
Step 104, traversal test is executed using multiple business object test cases, obtains actual test result.
Specifically, as shown in Figure 1A, according to the test case program automatically generated, sequence executes test automatically according to the rules, For each test case, request body can be constructed automatically according to existing information or returns to body.
It is to be appreciated that businessman will be authenticated by BA first before carrying out automatic test, wherein BA, which is authenticated, is The abbreviation of HTTP Basic Auth, be HTTP header encrypt by way of so that verifying both sides all pass through password authentification after, Automatic test step can just be carried out.Businessman can be verified password first before testing, to obtain test permission, It can be authenticated by BA.
In conclusion a kind of test method provided in an embodiment of the present invention, it is special to receive the business object interface that businessman sends Sign;Receive the business object feature that businessman sends;According to the business object interface characteristics and the business object feature, generate Multiple business object test cases;Traversal test is executed using multiple business object test cases, obtains actual test knot Fruit.It solves the flow testing that all products in the prior art all use a set of fixation, causes not generate use-case targetedly, survey Test result surveys incomplete or indeterminable problem.Realize to have targetedly that test case is tested, obtain it is accurate and The not beneficial effect of the test result of redundancy.
Embodiment two
Referring to Fig. 2, it illustrates a kind of step flow charts of test method, the specific steps of which are as follows:
Step 201, the business object interface characteristics that businessman sends are received;
This step is identical as step 101, and this will not be detailed here.
Step 202, the business object feature that businessman sends is received.
This step is identical as step 102, and this will not be detailed here.
Step 203, according to the business object interface characteristics and the business object feature, multiple business objects is generated and are surveyed Example on probation;
This step is identical as step 103, and this will not be detailed here.
Step 204, receive businessman's transmission adds or deletes the business object interface characteristics, and updates the business pair As interface characteristics.
In the embodiment of the present invention, after generating business object test case, businessman is also possible to that product function can be carried out It deletes or adds, so corresponding may modify to the interface of calling.
Wherein, after having generated business object test case, automatic test system receives what businessman configured interface It deletes or addition operates, then update corresponding interface configuration in automatic test system.
Specifically, businessman selects test interface and address, saves corresponding data in service provider routing open-tech.If Interface is updated after having generated test case, then use-case is also updated, such as is added to reimbursement interface after businessman's more new interface, that The corresponding test case of reimbursement is added in test case, vice versa.Wherein, open-tech is service provider's routing project, specially Door provides the basic data of supplier, technology quotient and corresponding interface.
Step 205, the request for the change business object feature that businessman sends is received, and it is special to update the business object Sign.
Similarly, after generating business object test case, businessman be also possible to product function can be deleted or Addition, so corresponding may modify to properties of product.
Wherein, after having generated business object test case, automatic test system receives businessman to properties of product It deletes or addition operates, then update corresponding business object feature in automatic test system.
Specifically, businessman creates test product type, is saving corresponding data from survey seine.If modifying product type Or test product is deleted, it will be updated test case, such as delete product A, the corresponding test case of A is all deleted.Wherein, Seine is the direct-connected self-measuring system of travelling entrance ticket, provides businessman's sandbox environment of test.
Step 206, it according to the business object interface characteristics of the update or the business object feature of the update, updates Each business object test case.
Specifically, after having generated business object test case, businessman is received to business object interface characteristics, or The update of business object feature operates, then corresponding update business object test case.
Wherein, each interface provisioning API for aiming at test businessman comprehensively that test case is generated from survey platform, according to The actual characteristic (must not check and write off before payment) of admission ticket business and the needs of not retest, by all possible test case Example is set as template and is stored in test case template table case_model, as shown in Figure 2 C;According to recording when businessman tests Product is searched suitable test case in template table and is tested.
Specifically, current each test case represents a kind of life cycle, shows as an order from creation and moves towards final state, Such as test case " creation order -> synchronization payment -> synchronization reimbursement ", exhaustive interface features are as follows: creation order-order closes It closes-synchronizes the asynchronous refunded message-of reimbursement-partial refund-of the asynchronous payment of payment-- synchronization reimbursement-and check and write off notice-inquiry and check and write off.
Wherein, for each characteristic, use 0 indicates that use-case indicates to use this characteristic without using this characteristic, 1, then uses Example template, as shown in Figure 2 B, " creation order -> synchronization payment -> synchronization reimbursement " can be expressed as 1010100000.
Where it is assumed that businessman A has order down interface, products configuration is as shown below, then its characteristic is represented by 1110100001, then it is same for corresponding characteristic or can all be matched without using the use-case template of (0), use-case template, such as Shown in Fig. 2 C, " creation order -> order close " 1100000000 and " creating order -> synchronous payment -> inquiry to check and write off " 1010000001 all match with product.
It is to be appreciated that the renewal process of test case as the generating process of test case, is all by existing Links in interface configuring request and business object feature, and step is executed, generate corresponding test case.
Step 207, traversal test is executed using multiple business object test cases, obtains actual test result.
In the embodiment of the present invention, as shown in Figure 2 A, according to the test case automatically generated, such as 1010000001 according to the rules Sequence executes test automatically, for each use-case, request body can be constructed automatically according to existing information or returns to body.
Specifically, test case template, traversal test process are described as follows as shown in fig. 2 c:
A. enter traversal test page, the supplier currently all test cases are inquired in front end, include testing process, operation Type, state, result, details are checked.
B. traversal test is executed, synchronizes and returns in the execution of front end;And booking centre is called to initiate to request to businessman, request Estimated center, request and response is sent to by dispatch to be stored in via gateway open-gateway from the table for surveying seine In, response results are given via mock asynchronism callback from seine is surveyed, and according to the progress next step operation of test case type or are finished. Wherein, dispatch is the path that current request is forwarded to other services, when mock refers to one object A of test, construction Virtual objects simulate the interaction between A, and the behavior of mock object is preset by related technical personnel.
C. after traversal test, front end timing inquiry back end test situation, the only each use-case of businessman enters successfully/mistake Lose/state to be handled manually can just return to front end concrete outcome, during other returns execute;The request of use-case is inquired after time-out And response, if businessman have data but reservation do not return, to merchant data build single structure verify and return unsuccessfully original Cause.
D. retest or execute test for the execution of single use-case, test case regenerate order request businessman until Success/failure/wait handle manually.
Step 208, if the actual test result is consistent with default test result, the business object passes through test.
In the embodiment of the present invention, according to foregoing description, the expected results and reality of the program meeting each test case of automatic comparison Border needs to handle as a result, judge whether system quotient passes through test, or inform which link is out of joint.
It is to be appreciated that each test case represents a kind of life cycle, an order is shown as from creation and moves towards final state, And each test case includes multiple links, i.e. each link in a test case is walked lead to after, show the test use Example is walked logical.
It so in contrast test result, is compared for the test results of the links of each test case , and the actual test result of all links of the test case is all consistent with default test result, then the test case is walked logical.
Preferably, step 208, comprising: sub-step A1-A2;
Each actual test result and default test result are compared, obtain each test case by sub-step A1 Test comparison result;
Specifically, after traversal test, front end timing inquiry back end test situation, the only each use-case of businessman enters into Function/failure/state to be handled manually can just return to front end concrete outcome.
Wherein, success/failure of test case/state to be handled manually all is the reality of each link in test case Test result is compared with default test result, obtained preset state.
For example, the default test result after link one is B, and actual test result is also B in test case, that After link one is smooth, into link two.
Sub-step A2, if each test comparison result is consistent, the business object passes through test.
Specifically, the actual test result after each link in test case and default test result one It causes, then the testing case passes through.Similarly, if all test cases for a business object all pass through survey Examination, then the business object passes through test.
It is to be appreciated that a business object is a type of product, the type product is due to special comprising multiple attributes Sign, then correspond to multiple life cycles, that is, correspond to multiple test cases.
For example, product type A: admission ticket can not be moved back, possible life cycle has: 1: being created to cancellation 2: being created to use Deng.
Product type B: can move back the possible life cycle of admission ticket has: 1: being created to cancellation 2: being created to be created to using 3. and move back Money etc..
As described above, the attribute of product type determines the life cycle of test, and every kind of possible period is pair Answer a test case.Being such as the corresponding test case of product type A includes being created to cancellation test case, and be created to use Test case.
Preferably, further includes:
Step B1, if each test comparison result there are inconsistent, in each business object test case, is extracted couple Answer the target service object test case of the inconsistent test comparison result;
Specifically, traversal as shown in Figure 2 D tests leading portion interface schematic diagram, shows the execution state of test case, therefrom It can be seen that the execution state and implementing result of each test case template.
In the embodiment of the present invention, after traversal test, front end timing inquiry back end test situation, the only each use-case of businessman Front end concrete outcome can just be returned to by all entering successfully/failure/state to be handled manually.
Wherein, success/failure of test case/state to be handled manually all is the reality of each link in test case Test result is compared with default test result, obtained preset state.
Specifically, when actual test result be failure or state to be handled manually, then extract the corresponding survey of the result phase Example on probation, and cause the specific link of failure.
Step B2 re-executes the target service object test case.
Specifically, the specific link in the test case of said extracted is re-executed.
It is to be appreciated that being re-executed if the link is whole inalienable part in the test case The test case.
Step 209, the online request of application that businessman sends is received;
In the embodiment of the present invention, as shown in Figure 1A, after the completion of test, program understands the pre- of every 1 test case of automatic comparison Phase result and actual result, judge whether system quotient passes through test, or inform which link is out of joint, need to handle. Report comprising above-mentioned test comparison content becomes test quality report.
Wherein, the system quotient or supplier passed through is tested, formal online application can be transmitted.
Step 210, if the business object allows the business pair according to the online request of application by test As on-line running.
Specifically, system quotient or supplier are checked after OTA receives the system quotient perhaps online application of supplier Test report, if showing system quotient or supplier in test quality report by test, examination & approval can after passing through It is formally online to sell.
In conclusion a kind of test method provided in an embodiment of the present invention, is connect by receiving the business object that businessman sends Mouth feature;Receive the business object feature that businessman sends;According to the business object interface characteristics and the business object feature, Generate multiple business object test cases;Traversal test is executed using multiple business object test cases, obtains practical survey Test result.This motion realizes by the test case of targetedly generation business object and covers whole different user behaviors The purpose of test scene.If the actual test result is consistent with default test result, the business object passes through test.It connects Receive the online request of application that businessman sends;If the business object allows institute according to the online request of application by test State business object on-line running.This motion realizes covering all not by the test case of targetedly generation business object With the purpose of the test scene of user behavior.
Embodiment three
It is specific as follows it illustrates a kind of structural block diagram of test macro referring to Fig. 3:
Interface characteristics receiving module 301, for receiving the business object interface characteristics of businessman's transmission;
Business object feature receiving module 302, for receiving the business object feature of businessman's transmission;
Test cases technology module 303, for according to the business object interface characteristics and the business object feature, life At multiple business object test cases;
Test module 304 obtains actual test for executing traversal test using multiple business object test cases As a result.
It is specific as follows it illustrates the structural block diagram of another test macro based on Fig. 3 embodiment referring to Fig. 4:
Interface characteristics receiving module 401, for receiving the business object interface characteristics of businessman's transmission;
Business object feature receiving module 402, for receiving the business object feature of businessman's transmission;
Test cases technology module 403, for according to the business object interface characteristics and the business object feature, life At multiple business object test cases;
Interface update module 404 adds or deletes the business object interface characteristics for receive businessman's transmission, and more The new business object interface characteristics.
Feature update module 405, the request of the change business object feature for receiving businessman's transmission, and update institute State business object feature.
Test case update module 406, for according to the business object interface characteristics of the update or the industry of the update Business characteristics of objects, updates each business object test case.
Test module 407 obtains actual test for executing traversal test using multiple business object test cases As a result.
Test result determination module 408, if consistent with default test result for the actual test result, the industry Business object passes through test.
Preferably, further includes:
Test case extraction module, if being surveyed for each test comparison result there are inconsistent in each business object In example on probation, the target service object test case of the corresponding inconsistent test comparison result is extracted;
Module is retested, for re-executing the target service object test case.
Apply for online request receiving module 409, for receiving the online request of application of businessman's transmission;
Wire module 410 in business object, if being asked by test according to the application is online for the business object It asks, allows the business object on-line running.
The embodiment of the present invention also provides a kind of equipment, comprising: processor, memory and is stored on the memory simultaneously The computer program that can be run on the processor, which is characterized in that the processor is realized as above when executing described program Test macro described in the one or more stated.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, when the instruction in the storage medium is by electronic equipment When processor executes, so that electronic equipment is able to carry out test macro as mentioned.
In conclusion a kind of test macro provided in an embodiment of the present invention, by interface characteristics receiving module, for receiving The business object interface characteristics that businessman sends;Business object feature receiving module, the business object for receiving businessman's transmission are special Sign;Test cases technology module, for generating multiple industry according to the business object interface characteristics and the business object feature Business object test case;Interface update module, for receive businessman transmission add or delete the business object interface characteristics, And update the business object interface characteristics.Feature update module, the change business object for receiving businessman's transmission are special The request of sign, and update the business object feature.Test case update module, for being connect according to the business object of the update Mouth feature or the business object feature of the update, update each business object test case.Test module, for using Multiple business object test cases execute traversal test, obtain actual test result.Test result determination module, if for The actual test result is consistent with default test result, then the business object passes through test.Module is retested, for weight Newly execute the target service object test case.Apply for online request receiving module, for receiving the application of businessman's transmission Line request;Wire module in business object, if being permitted by test according to the online request of application for the business object Perhaps the described business object on-line running.It is complete to realize covering by the test case of targetedly generation business object for this motion The purpose of the test scene of portion's different user behavior.It has the advantages that
First, test case covers the order life-cycle that may occur under all user behaviors and corresponding behavior, more have Practical significance is best understood from, also more comprehensively.
Second, use-case is targetedly enabled according to the technical characteristic and business feature of different businessmans, so that test is more smart It is quasi-.
Thirdly, found out the fault-tolerant ability of businessman to a certain extent, preferably ensure that joint quality, promoted formal online Rear user experience reduces maintenance cost.
Four, use-case formwork structure is managed collectively by template library.If subsequent especially business, which changes, increases new function Can, when increasing new test scene newly, a new template is directly entered, without changing a Codabar code.
For system embodiments, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
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 the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize one in payment information processing equipment according to an embodiment of the present invention The some or all functions of a little or whole components.The present invention is also implemented as executing method as described herein Some or all equipment or system program (for example, computer program and computer program commodity data).It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.If several in these systems can be through the same hardware branch in the unit claim for listing dry systems To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of system and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of test macro, which is characterized in that the system comprises:
Interface characteristics receiving module, for receiving the business object interface characteristics of businessman's transmission;
Business object feature receiving module, for receiving the business object feature of businessman's transmission;
Test cases technology module, for generating multiple according to the business object interface characteristics and the business object feature Business object test case;
Test module obtains actual test result for executing traversal test using multiple business object test cases.
2. system according to claim 1, which is characterized in that further include:
Test result determination module, if consistent with default test result for the actual test result, the business object Pass through test.
3. system according to claim 2, which is characterized in that further include:
Apply for online request receiving module, for receiving the online request of application of businessman's transmission;
Wire module in business object, if allowing institute according to the online request of application by test for the business object State business object on-line running.
4. system according to claim 1, which is characterized in that further include:
Interface update module, the business object interface characteristics that add or delete for receiving businessman's transmission are requested, and are updated The business object interface characteristics.
5. system according to claim 1, which is characterized in that further include:
Feature update module, the request of the change business object feature for receiving businessman's transmission, and update the business Characteristics of objects.
6. system according to claim 4 or 5, which is characterized in that further include:
Test case update module, for according to the business object interface characteristics of the update and the business pair of the update As feature, the business object test case of at least one update is generated.
7. system according to claim 2, which is characterized in that further include:
Test case extraction module, if testing and using in each business object for each test comparison result there are inconsistent In example, the target service object test case of the corresponding inconsistent test comparison result is extracted;
Module is retested, for re-executing the target service object test case.
8. a kind of test method, which is characterized in that the described method includes:
Receive the business object interface characteristics that businessman sends;
Receive the business object feature that businessman sends;
According to the business object interface characteristics and the business object feature, multiple business object test cases are generated;
Traversal test is executed using multiple business object test cases, obtains actual test result.
9. a kind of equipment characterized by comprising
Processor, memory and it is stored in the computer program that can be run on the memory and on the processor, It is characterized in that, the processor realizes described in any item test macros such as claim 1-7 when executing described program.
10. a kind of readable storage medium storing program for executing, which is characterized in that when the instruction in the storage medium is held by the processor of electronic equipment When row, so that electronic equipment can be realized described in any item test macros such as claim 1-7.
CN201811005361.XA 2018-08-30 2018-08-30 Test macro, method, equipment and readable storage medium storing program for executing Pending CN109213681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811005361.XA CN109213681A (en) 2018-08-30 2018-08-30 Test macro, method, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811005361.XA CN109213681A (en) 2018-08-30 2018-08-30 Test macro, method, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109213681A true CN109213681A (en) 2019-01-15

Family

ID=64987019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811005361.XA Pending CN109213681A (en) 2018-08-30 2018-08-30 Test macro, method, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109213681A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933534A (en) * 2019-03-26 2019-06-25 上海上湖信息技术有限公司 A kind of method and device of determining financial test object
CN110069395A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and computer equipment for simulating asynchronous interface
CN110209571A (en) * 2019-04-25 2019-09-06 深圳壹账通智能科技有限公司 Test method and device, storage medium, the computer equipment of more new interface
CN112069054A (en) * 2020-07-22 2020-12-11 北京思特奇信息技术股份有限公司 Method and system for end-to-end configuration test of configuration requirement class
CN113722691A (en) * 2021-09-14 2021-11-30 京东科技控股股份有限公司 Method and device for realizing self-service access of merchant data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706751A (en) * 2009-11-23 2010-05-12 中兴通讯股份有限公司 Method and system for calculating coverage rate of service functions of software
CN102104894A (en) * 2009-12-16 2011-06-22 中国移动通信集团公司 Mobile service protocol testing device and method
CN103377101A (en) * 2012-04-18 2013-10-30 百度在线网络技术(北京)有限公司 Testing system and testing method
CN104407977A (en) * 2014-12-08 2015-03-11 北京航空航天大学 Model detection based automatic joint debugging test method for staged task system
US20170220455A1 (en) * 2016-01-29 2017-08-03 Mentor Graphics Corporation Test case generation using a constraint graph solver
CN107844411A (en) * 2016-09-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of method of testing and relevant apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706751A (en) * 2009-11-23 2010-05-12 中兴通讯股份有限公司 Method and system for calculating coverage rate of service functions of software
CN102104894A (en) * 2009-12-16 2011-06-22 中国移动通信集团公司 Mobile service protocol testing device and method
CN103377101A (en) * 2012-04-18 2013-10-30 百度在线网络技术(北京)有限公司 Testing system and testing method
CN104407977A (en) * 2014-12-08 2015-03-11 北京航空航天大学 Model detection based automatic joint debugging test method for staged task system
US20170220455A1 (en) * 2016-01-29 2017-08-03 Mentor Graphics Corporation Test case generation using a constraint graph solver
CN107844411A (en) * 2016-09-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of method of testing and relevant apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069395A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and computer equipment for simulating asynchronous interface
CN110069395B (en) * 2019-03-12 2023-07-25 平安科技(深圳)有限公司 Method and device for simulating asynchronous interface, storage medium and computer equipment
CN109933534A (en) * 2019-03-26 2019-06-25 上海上湖信息技术有限公司 A kind of method and device of determining financial test object
CN109933534B (en) * 2019-03-26 2023-02-24 上海上湖信息技术有限公司 Method and device for determining financial test object
CN110209571A (en) * 2019-04-25 2019-09-06 深圳壹账通智能科技有限公司 Test method and device, storage medium, the computer equipment of more new interface
CN112069054A (en) * 2020-07-22 2020-12-11 北京思特奇信息技术股份有限公司 Method and system for end-to-end configuration test of configuration requirement class
CN112069054B (en) * 2020-07-22 2023-11-21 北京思特奇信息技术股份有限公司 Method and system for testing end-to-end configuration of configuration requirement class
CN113722691A (en) * 2021-09-14 2021-11-30 京东科技控股股份有限公司 Method and device for realizing self-service access of merchant data

Similar Documents

Publication Publication Date Title
CN109213681A (en) Test macro, method, equipment and readable storage medium storing program for executing
US9218270B2 (en) Functional software testing framework for determinate level testing
CN109446071A (en) Interface test method, interface test device, electronic equipment and storage medium
CN105302716B (en) Test method, device under the development mode of interflow
CN110347395A (en) Software distribution method and device based on cloud computing platform
US20140013306A1 (en) Computer Load Generator Marketplace
US20130282545A1 (en) Marketplace for Monitoring Services
WO2014171979A1 (en) Marketplace for monitoring services
CN110401634A (en) A kind of web application hole detection regulation engine implementation method and terminal
CN109240908A (en) Abnormality test use-case template establishment method and device
US10846210B1 (en) Automation of platform release
KR101320264B1 (en) Automation appratus for developing and testing software based on web
CN110968437A (en) Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract
CN106557878B (en) Development project management method and device
EP1548581A2 (en) Methods, apparatus and programs for system development
US20220269595A1 (en) Testing iot-applications based on a fleet of iot-devices
CN109325744A (en) Payment processing method, device, medium and electronic equipment
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN109254791A (en) Develop management method, computer readable storage medium and the terminal device of data
WO2016048294A1 (en) Infrastructure rule generation
CN109947642A (en) Automated hierarchical test method based on case classification, apparatus and system
CN109101408A (en) The detection method and device of service availability in joint debugging environment
Zhang et al. Model Checking and Verification of the Internet Payment System with SPIN.
US20230083195A1 (en) Modification of a dockerfile to repair vulnerabilities existing in the dockerfile
US11501046B2 (en) Pre-silicon chip model of extracted workload inner loop instruction traces

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: 20190115