The content of the invention
The application proposes a kind of business method of calibration, and the method includes:
Receive the business verification request for executed business that client sends;The business verification request
Including the mark of the sub- checker for the executed business configuration;
Corresponding sub- checker is locally being searched according to the mark of the sub- checker;Wherein, local son
The business verification script encapsulation that each service sub-system of the checker based on the executed business is uploaded is formed;
Business verification is carried out to the executed business based on the sub- checker for finding, and to the client
End sends corresponding business check results.
Optionally, methods described also includes:
Receive the business verification script that each service sub-system of the executed business is uploaded;
By the business for receiving verification script be locally packaged into it is right respectively with each service sub-system
The sub- checker answered, and mark is set for the sub- checker;
Mark based on the sub- checker creates sub- checker with the corresponding relation of each service sub-system
List, and the sub- checker list is sent to into the client, so that the client is based on institute
Sub- checker list is stated for the corresponding sub- checker of the executed business configuration.
Optionally, it is described that business verification bag is carried out to the executed business based on the sub- checker for finding
Include:
The business verification script encapsulated in the sub- checker that operation finds enters industry to the executed business
Business verification.
The application also proposes a kind of business method of calibration, and the method includes:
The business verification request for executed business is sent to service end;The business verification request includes
For the mark of the sub- checker of the executed business configuration;
Receive the business check results corresponding with business verification request that the service end sends;
The business check results for receiving are exported in default boundary user oriented.
Optionally, methods described also includes:
Receive the sub- checker list corresponding with the executed business that the service end sends;The son
Checker list includes that the mark of some sub- checkers is right with each service sub-system of the executed business
Should be related to;
The sub- checker list is exported at default interface;
Obtain the mark that user is the sub- checker of the executed business configuration in the sub- checker list
Know.
The application also proposes a kind of business calibration equipment, and the device includes:
First receiver module, for receiving the business verification request for executed business of client transmission;
The business verification request includes the mark of the sub- checker for the executed business configuration;
Searching modul, for locally searching corresponding sub- checker according to the mark of the sub- checker;
Wherein, the business verification that each service sub-system of the local sub- checker based on the executed business is uploaded
Script encapsulation is formed;
Correction verification module, for carrying out business verification to the executed business based on the sub- checker for finding,
And send corresponding business check results to the client.
Optionally, described device also includes:
Second receiver module, the business school that each service sub-system for receiving the executed business is uploaded
Test script;
Package module, for the business for receiving verification script to be locally packaged into and each industry
Business subsystem distinguishes corresponding sub- checker, and arranges mark for the sub- checker;
Creation module, closes for the mark based on the sub- checker to be corresponding with each service sub-system
System creates sub- checker list, and the sub- checker list is sent to into the client, so that institute
It is the corresponding sub- checker of the executed business configuration that client is stated based on the sub- checker list.
Optionally, the correction verification module specifically for:
The business verification script encapsulated in the sub- checker that operation finds enters industry to the executed business
Business verification.
The application also proposes a kind of business calibration equipment, and the device includes:
Sending module, for sending the business verification request for executed business to service end;The industry
Business verification request includes the mark of the sub- checker for the executed business configuration;
3rd receiver module, for receiving the corresponding with business verification request of the service end transmission
Business check results;
Output module, for the business check results for receiving to be exported in default boundary user oriented.
Optionally, described device also includes:
4th receiver module, for receiving the son corresponding with the executed business that the service end sends
Checker list;The sub- checker list includes the mark and the executed business of some sub- checkers
Each service sub-system corresponding relation;
Output module, for the sub- checker list to be exported at default interface;
Acquisition module, is the executed business configuration for obtaining user in the sub- checker list
Sub- checker mark.
In the application, by receiving the business verification request for executed business that client sends, and
The mark for the sub- checker for having performed business configuration in the business verification request is locally being looked into
Look for corresponding sub- checker;After corresponding sub- checker is found, the son verification for finding can be based on
Device carries out business verification to the executed business, and sends corresponding business check results to client.
In the application, because local sub- checker is the industry that each service sub-system based on executed business is uploaded
Business verification script encapsulation is formed, therefore is easy to manage the sub- checker of each service sub-system concentratedly,
So as to when business verification is carried out for executed business, the complexity of business verification can be reduced, it is easy to
Tester carries out overall scheduling to each sub- checker, and to the verification situation of all subsystems global is carried out
Control.
Specific embodiment
In some large-scale operation systems, because calling for system is usually relatively complex, and business chain
Road is generally long, therefore business verification is carried out in large-scale operation system checking whether business is located
Reason is correct, is generally all by the tester of each service sub-system in the operation system, for each business
System is individually verified respectively.
However, individually being verified respectively for each service sub-system, checking procedure is more complicated, needs pin
Each subsystem is verified respectively, therefore tester cannot carry out the dependency inspection between each subsystem
Look into, and after the completion of business verification, the school of all subsystems of control that tester also can not be global
Test situation.
In view of this, the application proposes a kind of business method of calibration, by receiving being directed to for client transmission
The business verification request of executed business, and performed business for this in the business verification request
The mark of the sub- checker of configuration is locally searching corresponding sub- checker;When finding corresponding sub- verification
After device, can be based on the sub- checker for finding carries out business verification to the executed business, and to client
End sends corresponding business check results.In this application, because local sub- checker is to be based on to hold
The business verification script encapsulation that each service sub-system of industry business is uploaded is formed, therefore is easy to each business
The sub- checker of system is managed concentratedly, so as to for executed business carry out business verify when, can
To reduce the complexity of business verification, it is easy to tester to carry out overall scheduling to each sub- checker, to institute
The verification situation for having subsystem carries out global control.
The application is described below by specific embodiment and with reference to specific application scenarios.
Refer to Fig. 1, Fig. 1 is a kind of business method of calibration that the embodiment of the application one is provided, the side
Method performs following steps:
Step 101, client sends the business verification request for executed business to service end;It is described
Business verification request includes the mark of the sub- checker for the executed business configuration;
Step 102, service end is locally searching corresponding sub- checker according to the mark of the sub- checker;
Wherein, the business verification that each service sub-system of the local sub- checker based on the executed business is uploaded
Script encapsulation is formed;
Step 103, service end carries out business school based on the sub- checker for finding to the executed business
Test, and corresponding business check results are sent to the client;
Step 104, client exports the business check results for receiving in default boundary user oriented.
In the present embodiment, above-mentioned client can include providing business verification service towards tester
Client software;For example, the verification client software can be developer's exploitation for towards test
Personnel provide the business calibration tool of business verification service.Wherein, the hardware of above-mentioned client software is carried
Environment, is not particularly limited in the present embodiment;For example, it may be PC main frames.Above-mentioned service end
Can include providing the verification server for servicing, server cluster or based on server for the client
The cloud platform of aggregated structure.
In large-scale operation system, it will usually including various different service sub-systems, performing one
During business, it usually needs according to the dispatching sequence of each service sub-system, enter respectively in each service sub-system
After row is processed, the business can be performed smoothly.
For example, by taking payment transaction as an example, in large-scale payment system, according to the general flow of payment transaction
Journey, can generally include that cash register subsystem, order submit subsystem, book keeping operation subsystem and management of balance to
The subsystems such as subsystem.When user initiates an order by payment client terminal, can be according to above-mentioned each
The dispatching sequence of subsystem, dispatches respectively above-mentioned each subsystem and the order is processed, when the order exists
After the completion of processing in above-mentioned each subsystem, now the order could successful execution.
For carried traffic, tester can by carrying out business verification to the executed business,
To detect the business during execution, whether each service sub-system has carried out correct place to the business
Reason.
Tester can be selected when business verification is carried out to the executed business by above-mentioned client
Selecting needs the subsystem of verification, and for the subsystem of selection configuring corresponding sub- checker.When configuring
Cheng Hou, can be interacted by the client with above-mentioned service end, locally called from service end and matched somebody with somebody
The sub- checker put, to carry out business verification to the executed business.
Hereinafter the sub- checker being configured is locally called from service end to client, to executed business
The interaction of the business of carrying out verification is described in detail.
In an initial condition, the system manager of each service sub-system, can be in respective business subsystem
In the system environmentss of system, the business verification script for being verified to current subsystem is edited respectively,
Then the business for completing verification script will be edited by current subsystem and will upload to service end.
Wherein, the business verification script can include that system manager is performing industry for current sub-system
Business checking either the business verification operation such as regression test when the executable code of reference format edited or
Program etc..
After service end receives the business verification script that each service sub-system is uploaded, locally will can receive
The business for arriving verifies script individual packages into corresponding sub- checker, and the sub- checker to be packaged into is arranged
After mark, locally preserved, managed concentratedly with convenient service end.Wherein, service end is son
Exist between the mark that checker is arranged, with the subsystem for uploading the business verification script in the sub- checker
Corresponding relation.
What deserves to be explained is, the system manager of each service sub-system can also be to editing the business that complete
Verification script carries out real-time servicing, if the system environmentss of current business subsystem change, system pipes
Reason personnel can also update business verification script, and the business for updating verification script is sent to
Service end, encapsulation is re-started to be updated to original sub- checker by service end.
In the present embodiment, for local each sub- checker is stored in, service end can be based on each sub- school
The corresponding relation tested between the mark of device and above-mentioned each service sub-system creates a sub- checker list, this
When the sub- checker list in can include the mark and above-mentioned each business of all sub- checkers being packaged into
Corresponding relation between system.
For the sub- checker list for generating, service end can send the sub- checker list to above-mentioned
Client, such that it is able to provide sub- checker towards above-mentioned client service is called.As above-mentioned client
Termination is received after the sub- checker list of service end transmission, can be by the sub- checker list in the client
Exported to tester in the visible user interface that end provides, tester can intuitively at this
Select this subsystem for being verified of needs in sub- checker list, and for the subsystem of selection matching somebody with somebody
Put corresponding sub- checker.
Wherein, if tester needs to carry out full link verification, now tester can be in the sub- school
Test in device list and all of subsystem is selected into the subsystem to need to be verified.If conversely, surveyed
Examination personnel need not carry out full link verification, and now tester can select according to actual verification demand
The subsystem that one or more subsystems are verified as needs.
On the one hand, when tester have selected the subsystem for needing to be verified in the sub- checker list,
And the subsystem for selection is configured with after corresponding sub- checker, client can be configured based on tester
Information generate a corresponding business verification request, now can be including the survey in business verification request
The mark of the sub- checker of the subsystem configuration that examination personnel are verified for this needs of selection, Ran Houke
Family end can also send the business verification request to above-mentioned service end, to dispatch corresponding sub- checker pair
The subsystem that the tester selects is verified
On the other hand, after service end receives the business verification request of client transmission, this can be parsed
The mark of the sub- checker carried in obtain the request is asked in business verification, and according to the son for getting
The mark of checker is locally searching corresponding sub- checker.After corresponding sub- checker is found, this
When service end can run in the sub- checker for finding encapsulate business verification script, to the executed industry
Business carries out business verification.
Wherein, when being verified for the executed business, service end can pass through what operation found
The business verification script encapsulated in sub- checker, according to the dispatching sequence of each service sub-system, to by testing
The service sub-system that the needs of personnel selection are verified is verified respectively, when the need that tester selects
After the completion of the service sub-system for being verified is verified respectively, the now executed business verification is completed.
After the completion of for the executed business verification, business check results can be sent to visitor by service end
Family end, now the business check results include each business that verified of needs selected for tester
Subsystem carries out the check results after business verification.When client is in the business school for receiving service end transmission
After testing result, the business check results can be tested in the visible user interface that the client is provided
Personnel export, so as to tester can intuitively view all selections in above-mentioned sub- checker list
The check results of sub- checker that verified of needs.
For example, it is assumed that the executed business packet enclosed tool system 1, subsystem 2 and subsystem 3, tester exists
Select to need sub-system 1, subsystem 2 to be verified in above-mentioned sub- checker list, when service end passes through
The business verification script encapsulated in operation sub- checker corresponding with subsystem 1 and subsystem 2, sub-system 1
After the completion of verifying with subsystem 2, in outgoing traffic check results, the check results can be with carrying for client
Show character True and False to characterize, it is assumed that fail for the verification of subsystem 1, then client can be
With one prompting character False of the corresponding position of subsystem 1 output in user interface, and mark verification failure
The reason for.If verified successfully for subsystem 2, then can be corresponding with subsystem 2 in the user interface
Position export a prompting character True, the check results that tester is exported by viewing client-side,
The check results for subsystem 1 and subsystem 2 just can be intuitively viewed, such that it is able to current industry
The check results of each subsystem carry out global control in business system.
By above example, service end can be locally to each subsystem upload of executed business
Business verify script individual packages into corresponding sub- checker, and the sub- checker to being packaged into collects
Middle management, when business verification is carried out for executed business, tester can be by client to clothes
The sub- checker at business end carries out overall scheduling to complete verification, it is no longer necessary to for each business
System is individually verified respectively, therefore the complexity of business verification is substantially reduced.
The local sub- checker of service end is additionally, since, is mutually isolated with each subsystem of executed business,
And the business verification script encapsulated in the local sub- checker of service end is by the system administration people of each subsystem
Member provides and safeguards, therefore during business verification is carried out to executed business, tester can be with
It is not required to the business check logic being appreciated that in each sub- checker, it is possible to which the result of business verification is carried out entirely
Office's control, is conducive to saving business to verify cost.
Below so that the executed business is as payment transaction as an example, and with reference to the application scenarios pair of payment system
Above example is described.
In large-scale payment system, various different subsystems are generally included, when an order is paid,
Generally need according to the dispatching sequence of each subsystem, after being respectively processed in each subsystem, the order
Can smoothly complete.
Assume in the payment system, including cash register subsystem, order submit subsystem, book keeping operation subsystem to
And 4 subsystems such as management of balance subsystem.When user initiates an order by payment client terminal,
According to the dispatching sequence of above-mentioned each subsystem, can first dispatch cash register subsystem carries out cash register operation, then
Traffic orders submit to subsystem to carry out the submission of order, after the order processed success, then dispatch book keeping operation
Subsystem is kept accounts to the amount of money that the order is related to, and finally dispatches management of balance subsystem to user account
Remaining sum be updated.
After an order processing success, if tester needs to carry out full link traffic for the order
Verify whether the subsystems to check the order process correct, in the related, generally need
The tester of above-mentioned each subsystem is wanted in the system environmentss of respective service sub-system, respectively editor uses
In the business verification script verified to current subsystem, then foot is verified by running above-mentioned business
Originally verification is completed.
However, verified by carrying out the business of full link with upper type, because each service sub-system needs
Individually verified respectively, tester cannot carry out the dependency inspection between each subsystem, Er Qie
After the completion of business verification, the verification situation of all subsystems of control that tester also can not be global.
In this example, the system manager of above-mentioned each service sub-system, can be in respective business subsystem
In the system environmentss of system, the business verification script for being verified to current subsystem is edited respectively,
Then the business for completing verification script will be edited by current subsystem and will upload to service end.Service end can
To be packaged the corresponding sub- checker of generation, and each son to generate to the business for receiving verification script
Self checking is provided with after mark, and each sub- checker for generating locally is being preserved.
Assume the sub- checker such as following table after service end encapsulation:
Subsystem title |
Sub- checker title |
Sub- checker ID |
Cash register subsystem |
Sub- checker one |
1 |
Order submits subsystem to |
Sub- checker two |
2 |
Book keeping operation subsystem |
Sub- checker three |
3 |
Management of balance subsystem |
Sub- checker four |
4 |
Service end can be according in the mark and upper table of each sub- checker in upper table between each service sub-system
Corresponding relation creates a sub- checker list.
Now the sub- checker is listed as follows:
Subsystem title |
Sub- checker ID |
Cash register subsystem |
1 |
Order submits subsystem to |
2 |
Book keeping operation subsystem |
3 |
Management of balance subsystem |
4 |
For the sub- checker list for generating, can be sent to client by service end, with client
User interface to tester export, so as to tester can intuitively in the sub- checker list
To select this subsystem for being verified of needs, and for the subsystem of selection configuring corresponding sub- verification
Device.
Because tester needs to carry out the business verification of full link, therefore tester can be by the sub- school
The subsystem that all of subsystem in device list selects to be verified for needs is tested, and according to the sub- verification
Corresponding relation in device list, is that the subsystem of selection configures corresponding sub- checker ID, now with the son
The corresponding sub- checkers of checker ID are the available sub- checker of the subsystem.
After the completion of tester configures in the sub- checker list, client can be based on tester
Configuration information create the verification request of business, service end is parsing business verification request, and obtaining should
After the sub- checker ID by tester for the subsystem configuration of selection carried in business verification request, can
Locally to search corresponding sub- checker.
Because this business is verified as the business verification of full link, carry 1 in business verification request, 2,3,
The sub- checker ID of 4 grades four, service end based on this little checker ID after local lookup, Ke Yicha
Sub- checker one, sub- checker two, four sub- checkers of sub- checker three and the sub- checker fourth class are found,
Now service end can first be run according to the dispatching sequence of the corresponding subsystem of the sub- checker of aforementioned four
The business verification script encapsulated in sub- checker one is verified to cash register subsystem, when cash register subsystem school
After the completion of testing, the business verification script encapsulated in the sub- checker two that reruns submits to subsystem to carry out on order
Verification, after the completion of order submits subsystem check to, the business verification encapsulated in the sub- checker three that reruns
Script is verified to subsystem of keeping accounts, and after the completion of book keeping operation subsystem check, rerun sub- checker four
The business verification script of middle encapsulation is verified to management of balance subsystem, when management of balance subsystem check
After the completion of, the now full link traffic verification for this order terminates, and service end can be by for above-mentioned
The check results packing of four subsystems returns to client.
In assuming aforementioned four subsystem, book keeping operation subsystem and management of balance subsystem check fail, cash register
Subsystem and order submit subsystem check success to, then client can be to tester output such as following table
Shown check results:
Subsystem title |
Check results |
Cash register subsystem |
TRUE |
Order submits subsystem to |
TRUE |
Book keeping operation subsystem |
False:xxxx |
Management of balance subsystem |
False:xxxx |
Wherein, xxxx represents verification failure cause in upper table.
After client exports above-mentioned check results to tester, can be directly perceived by upper table tester
The each subsystem for checking payment system check results, and the dependency between each subsystem, so as to
Global control can be carried out to the check results of each subsystem.
In the embodiment above, the business verification for executed business for being sent by receiving client please
Ask, and the mark for the sub- checker for having performed business configuration in the business verification request exists
Locally search corresponding sub- checker;After corresponding sub- checker is found, can be based on what is found
Sub- checker carries out business verification to the executed business, and sends corresponding business verification knot to client
Really.Because local sub- checker is the business verification that each service sub-system based on executed business is uploaded
Script encapsulation is formed, therefore is easy to manage the sub- checker of each service sub-system concentratedly, so as to
When carrying out business verification for executed business, the complexity of business verification can be reduced, be easy to tester
Member carries out overall scheduling to each sub- checker, and to the verification situation of all subsystems global control is carried out.
It is corresponding with said method embodiment, present invention also provides the embodiment of device.
Fig. 2 is referred to, the application proposes a kind of business calibration equipment 20, is applied to service end, the service
End can be server, server cluster or the cloud platform built based on server cluster;Wherein, please
Referring to Fig. 3, as the hardware structure carried involved by the service end of the business calibration equipment 20 in, lead to
Often include CPU, internal memory, nonvolatile memory, network interface and internal bus etc.;With software reality
As a example by existing, the business calibration equipment 20 is generally understood that the computer program being carried in internal memory,
The logic device that the software and hardware formed after being run by CPU is combined, described device 20 includes:
First receiver module 201, the business for executed business for receiving client transmission is verified
Request;The business verification request includes the mark of the sub- checker for the executed business configuration;
Searching modul 202, for locally searching corresponding sub- verification according to the mark of the sub- checker
Device;Wherein, the business that each service sub-system of the local sub- checker based on the executed business is uploaded
Verification script encapsulation is formed;
Correction verification module 203, for carrying out business to the executed business based on the sub- checker for finding
Verification, and send corresponding business check results to the client.
In the present embodiment, described device 20 also includes:
Second receiver module 204, the industry that each service sub-system for receiving the executed business is uploaded
Business verification script;
Package module 205, for by the business for receiving verification script be locally packaged into it is described
Each service sub-system distinguishes corresponding sub- checker, and arranges mark for the sub- checker;
Creation module 206 is right with each service sub-system for the mark based on the sub- checker
The sub- checker list of establishment should be related to, and the sub- checker list is sent to into the client, so that
It is the corresponding sub- checker of the executed business configuration that the client is obtained based on the sub- checker list.
In the present embodiment, the correction verification module 203 specifically for:
The business verification script encapsulated in the sub- checker that operation finds enters industry to the executed business
Business verification.
Fig. 4 is referred to, the application proposes a kind of business calibration equipment 40, is applied to client, the client
End can include the PC main frames of the client software for being mounted with towards tester to provide business verification service;
Wherein, Fig. 5 is referred to, as the hardware frame carried involved by the client of the business calibration equipment 40
In structure, CPU, internal memory, nonvolatile memory, network interface and internal bus etc. are generally included;
As a example by implemented in software, the business calibration equipment 40 is it is generally understood that the calculating being carried in internal memory
Machine program, the logic device that the software and hardware formed after being run by CPU is combined, described device 40
Including:
Sending module 401, for sending the business verification request for executed business to service end;Institute
Stating business verification request includes the mark of the sub- checker for the executed business configuration;
3rd receiver module 402, for receiving the right with business verification request of the service end transmission
The business check results answered;
Output module 403, for the business check results for receiving are defeated in default boundary user oriented
Go out.
In the present embodiment, described device 40 also includes:
4th receiver module 404, for receiving the corresponding with the executed business of the service end transmission
Sub- checker list;The sub- checker list includes the mark of some sub- checkers and the executed
The corresponding relation of each service sub-system of business;
Output module 405, for the sub- checker list to be exported at default interface;
Acquisition module 406, is the executed business for obtaining user in the sub- checker list
The mark of the sub- checker of configuration.
Those skilled in the art will readily occur to this after considering description and putting into practice invention disclosed herein
Other embodiments of application.The application is intended to any modification, purposes or the adaptability of the application
Change, these modifications, purposes or adaptations follow the general principle of the application and including this Shen
Please undocumented common knowledge or conventional techniques in the art.Description and embodiments only by
It is considered as exemplary, the true scope of the application and spirit are pointed out by claim below.
It should be appreciated that the application be not limited to be described above and be shown in the drawings it is accurate
Structure, and can without departing from the scope carry out various modifications and changes.Scope of the present application is only by institute
Attached claim is limiting.
The preferred embodiment of the application is the foregoing is only, it is all at this not to limit the application
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.