Summary of the invention
Present description provides the regression testing methods and its system of a kind of operation system fund security, can be after change
Online implementing before identification the problem of may cause monetary losses in advance, to guarantee the safety of fund.
This application discloses a kind of regression testing methods of operation system fund security, comprising:
The configuration of operation system on call wire, and the business of true fund involved in operation system on line is recorded,
The first fund implementing result after recording the input parameter and business execution that result includes the business;
Operation system is loaded into the configuration of operation system on the line under line, and under the line operation system be entered it is described
The input parameter in result is recorded, the business is executed, obtains the second fund implementing result;
By comparing the first fund implementing result and the second fund implementing result, it is determined whether it is different that there are funds
Reason condition.
In a preferred embodiment, the result of recording further includes operation system executes that the business obtains on the line the
One returns the result;
After the step of execution business, further includes: the operation system execution business under the line that obtains obtains
To second return the result, return the result to return the result with described second to described first and be compared.
In a preferred embodiment, the test method carries out after operation system is modified on to the line;
The business is the business that do not modified.
In a preferred embodiment, the business to true fund involved in operation system on line is recorded, further
Include:
The input parameter is intercepted in the entrance Application Programming Interface of the business.
It include: operation system on line disclosed herein as well is a kind of regression test system, operation system under line records system
System and Compare System;
Operation system is related to the business of true fund for running on the line;
Configuration of the recording system for operation system on call wire, and to true fund involved in operation system on line
Business recorded, record result include the business input parameter and the business execution after the first fund execute knot
Fruit;
Operation system is used to be loaded into the configuration of operation system on the line of the recording system record under the line, from institute
The input parameter that recording system inputs in the recording result is stated, the business is executed, obtains the second fund implementing result;
The Compare System is used for, by comparing the first fund implementing result and the second fund implementing result,
Determine whether there is fund abnormal conditions.
In a preferred embodiment, the result of recording further includes operation system executes that the business obtains on the line the
One returns the result;
The Compare System is also used to, and is obtained operation system under the line and is executed the second return knot that the business obtains
Fruit, returns the result to return the result with described second to described first and is compared.
In a preferred embodiment, the test method carries out after operation system is modified on to the line;
The business is the business that do not modified.
In a preferred embodiment, the recording system intercepts the input ginseng in the entrance Application Programming Interface of the business
Number.
Disclosed herein as well is a kind of regression test systems to include:
Memory, for storing computer executable instructions;And
Processor is coupled with the memory, for realizing when executing the computer executable instructions as retouched above
The step in method stated.
Disclosed herein as well is be stored with meter in computer readable storage medium described in a kind of computer readable storage medium
Calculation machine executable instruction, the computer executable instructions realize the step in method as previously described when being executed by processor
Suddenly.
This specification embodiment can find problem related to fund in the system being changed in advance, reduce fund damage
A possibility that mistake, actively in thing or subsequent hastily passively remedy finding the problem in advance.
A large amount of technical characteristic is described in this specification, is distributed in each technical solution, if this Shen is set out
Specification please can be made excessively tediously long if the combination (i.e. technical solution) of all possible technical characteristic.In order to avoid this
Problem, each technical characteristic disclosed in this specification foregoing invention content disclose in each embodiment and example below
Each technical characteristic and attached drawing disclosed in each technical characteristic, can freely be combined with each other, to constitute various new
Technical solution (these technical solutions should be considered as have been recorded in the present specification), unless the combination of this technical characteristic
It is technically infeasible.For example, disclosing feature A+B+C in one example, feature A is disclosed in another example
+ B+D+E, and feature C and D are the equivalent technologies means for playing phase same-action, as long as technically selecting a use, it is impossible to same
Shi Caiyong, feature E can be technically combined with feature C, then, the scheme of A+B+C+D should not be regarded because technology is infeasible
To have recorded, and the scheme of A+B+C+E should be considered as being described.
Specific embodiment
In the following description, in order to make the reader understand this application better, many technical details are proposed.But this
The those of ordinary skill in field is appreciated that even if without these technical details and many variations based on the following respective embodiments
And modification, the application technical solution claimed also may be implemented.
The explanation of part concept:
API: Application Programming Interface (Application Programming Interface)
Fund security: refer to that every fund can correctly circulate in financial system, including with correct cash flow and just
True fund stroke count and number, the case where being not in company deficit or occupy other external sources of finance more.
Regression test: one kind of software test refers to after having modified old code, re-starts test to confirm that modification is not drawn
Enter new mistake or other codes is caused to generate mistake.
Illustrate an application scenarios of the application embodiment below.
The demand of business software often has altered, the change of a demand generally can all first pass through exploitation link, again into
Row remote testing, remote testing are published to operation system on line after passing through.In exploitation link, developer's meeting after altering system
Carry out primary test.Change code will do it the remote testing close to environment on line after stablizing.This post code will be published to
Operation system goes to run on line, and true business is directly influenced once problematic, in the whole process none link
It is for the special regression test of progress in terms of fund security, this is a breakneck process for a financial system,
Financial system changes the recurrence of not fund security and verifies means essentially that the sale sex by fund on line with regard to online
Real user flow goes to verify.
Regression test in embodiment below can after remote testing, it is formal it is online before carry out.Remote testing
Primarily directed to the business for being changed code, and regression test can mainly for run in operation system on same line its
His business, although these business are not changed code, it is possible that being influenced by the business for being changed code, so needing
Carry out the regression test for fund security.
It is described in further detail below in conjunction with embodiment of the attached drawing to this specification.
The first embodiment of this specification is related to a kind of regression testing method of operation system fund security, and process is such as
Shown in Fig. 1, method includes the following steps:
In a step 102, on call wire operation system configuration.(Online) operation system is exactly actual motion on line
Operation system, data therein are all true business datums.
At step 104, the business of true fund involved in operation system on line is recorded, recording result includes industry
The input parameter and business of business execute after fund implementing result (being properly termed as the first fund implementing result) and return the result (can
It is returned the result with being known as first).In one embodiment, it can not also record and return the result in recording result.In this implementation
In mode, recording is a kind of mode of duplication, including being used for regression test after being replicated the movement trace of fund on line, with
It realizes and is changed the fund security verification that code may influence whether.
In step 106, under line operation system be loaded into line on operation system configuration.(Offline) operation system under line
It is exactly the operation system for test.
In step 108, operation system executes business under line, when doing business to record in result in step 104
Parameter is inputted as inputting, fund implementing result (being properly termed as the second fund implementing result) is obtained after execution business and returns to knot
Fruit (is properly termed as second to return the result).This step also can be regarded as the playback to the business recorded in step 104.
From in step 110, pass through the first fund implementing result of comparison and the second fund implementing result, it is determined whether there is money
Gold abnormality situation.In other words, by comparing the fund implementing result (the first fund implementing result) for the business that is recorded and being returned
The fund implementing result (the second fund implementing result) of business is put, to determine whether there is fund abnormal conditions.
Fund abnormal conditions can be determined whether there is there are many mode.Optionally, if the first fund implementing result and
Second fund implementing result is different, so that it may determine that there are fund abnormal conditions.Optionally, if executing knot in the first fund
Note abnormalities data when the comparison of fruit and the second fund implementing result, be not at once determine there are fund abnormal conditions, but
Further judge whether the abnormal data is true abnormal data, is just determined as that fund is different if it is true abnormal data
Often, just the abnormal data is excluded if not true abnormal data.Contrasting some abnormal datas come is not necessarily exactly
True abnormal data, for example, because the reasons such as database delay, may cause funds data and fail to timely update, this feelings
Condition just needs to reject.
From narration above it is recognised that if without online preceding fund security dedicated Authentication, once problematic will
True business is influenced, comprehensive regression test of fund aspect is directed to currently without one, one the reason is that too because of business
Complexity can not find whole cash flows.And one embodiment of this specification devises a kind of recording mechanism, by relating on line
And the business of true fund is recorded, while the configuration of operation system on line is synchronized to operation system under line, by recording
Regression test data of the data as fund security carry out the regression test of similar true fund business, to find to change in advance
The problem of bringing.This mode is significantly advantageous in that close to true business and can find true whole cash flows, energy
Enough realize the target found the problem in advance.
It optionally, can also be right other than being compared to the first fund implementing result and the second fund implementing result
First returns the result to return the result with second and is compared.The effect that may further ensure that regression test in this way, detects more
More problems.
In one embodiment, above-mentioned regression testing method carries out after operation system is modified, by regression test
Business is the business that do not modified.The modification of operation system can be the modification of code, be also possible to the modification of configuration.One industry
There can be many business in business system, the code that primary modification may pertain only to the business of one or a part changes, and its
The code of his business may remain unchanged.But each business in the same operation system often has the connection of countless ties
System, although the modification of a business is possible in this business, there is no problem, does not ensure that the modification will not influence other
Business, more particularly, to the business of fund, if problematic, it is possible to be related to the very big amount of money, so not modified
Business is also required to be tested using regression testing method disclosed in present embodiment, to ensure the safety of fund.
In one embodiment, the calling of business is realized by calling API.The entrance in the business can be passed through
The function of interception is set in API to intercept the input parameter of the business, the input parameter intercepted is saved in database.?
Returning the result for the business can also be intercepted in the API of the business, and returning the result of intercepting also is saved in database.?
In another embodiment, the input parameter intercepted and returns the result and can also be saved in file.
The second embodiment of this specification is related to a kind of regression test system, and structure is as shown in Fig. 2, the regression test
System includes: operation system 201 on line, operation system 202 under line, recording system 203 and Compare System 204.Wherein,
Operation system is related to the business of true fund for running on line.In one embodiment, operation system can on line
To run multiple business simultaneously, wherein at least part business is to be related to the business of true fund.
Configuration of the recording system for operation system on call wire, and one or more in operation system on line is related to very
The business of real fund is recorded, the fund implementing result (the after recording the input parameter and business execution that result includes business
One fund implementing result).Recording system is also used to the input parameter that the operation system under line exports recorded business, to realize
It is played back under the line of the recoding service.
Operation system is used to be loaded into the configuration of operation system on the line of recording system record under line, to be created in inline system
Identical service operation environment inputs the input parameter recorded in result from recording system, executes business, and the fund of obtaining executes knot
Fruit (the second fund implementing result).
Compare System is used for by comparing the first fund implementing result and the second fund implementing result, it is determined whether there is money
Gold abnormality situation.
After the software of system is modified, the number of the true fund business of operation system on line is recorded by recording system
According to, and descend in operation system play back online, operation system plays back under fund implementing result and line that operation system on line is recorded
Fund implementing result be compared, so that it may find problem related to fund in the system modified in advance, reduce fund
A possibility that loss, actively in thing or subsequent hastily passively remedy finding the problem in advance.
In one embodiment, recording result further includes that operation system execution business obtains on line first returns the result.
Compare System, which is also used to obtain operation system under line and executes business obtains second, to be returned the result, and is returned the result and second to first
It returns the result and is compared.The effect that may further ensure that regression test in this way detects more problems.
In one embodiment, the software code of above-mentioned regression test operation system on to line carries out after being modified;
Business is the business that software code is not modified.In another embodiment, even if the software code of system is not modified, but
The configuration of system is changed or the hardware environment of operating system has occurred variation and (such as used new operation system
System or new server), regression test can also be carried out.
In one embodiment, the calling of business is realized by calling API.The entrance in the business can be passed through
The function of interception is set in API to intercept the input parameter of the business, the input parameter intercepted is saved in database.?
Returning the result for the business can also be intercepted in the API of the business, and returning the result of intercepting is saved in database.
First embodiment is method implementation corresponding with present embodiment, and the technology in first embodiment is thin
Section can be applied to present embodiment, and the technical detail in present embodiment also can be applied to first embodiment.
It should be noted that it will be appreciated by those skilled in the art that shown in the embodiment of above-mentioned regression test system
Each module realization function can refer to aforementioned operation system fund security regression testing method associated description and understand.On
The function of stating each module shown in the embodiment of regression test system can be (executable by running on the program on processor
Instruction) and realize, it can also be realized by specific logic circuit.If the above-mentioned regression test system of this specification embodiment with
The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one
It takes in storage medium.Based on this understanding, the technical solution of this specification embodiment substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In, including some instructions use is so that a computer equipment (can be personal computer, server or network equipment etc.)
Execute all or part of each embodiment the method for this specification.And storage medium above-mentioned include: USB flash disk, mobile hard disk,
The various media that can store program code such as read-only memory (ROM, Read Only Memory), magnetic or disk.This
Sample, this specification embodiment are not limited to any specific hardware and software and combine.
Correspondingly, this specification embodiment also provides a kind of computer readable storage medium, wherein being stored with computer
Executable instruction, the computer executable instructions realize each method embodiment of this specification when being executed by processor.It calculates
Machine readable storage medium storing program for executing include permanent and non-permanent, removable and non-removable media can by any method or technique Lai
Realize information storage.Information can be computer readable instructions, data structure, the module of program or other data.Computer
The example of storage medium includes but is not limited to that phase change memory (PRAM), static random access memory (SRAM), dynamic random are deposited
Access to memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable are only
Read memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), the more function of number
Can CD (DVD) other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices or it is any its
His non-transmission medium, can be used for storing and can be accessed by a computing device information.As defined in this article, computer-readable to deposit
Storage media does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
In addition, this specification embodiment also provides a kind of regression test system, it can including being used to store computer
The memory executed instruction, and, the processor coupled with the memory;The processor is based in executing the memory
The step in above-mentioned each method embodiment is realized when calculation machine executable instruction.
In one embodiment, which can be used for: the configuration of operation system on call wire, and right
The business of true fund involved in operation system is recorded on line, and it includes the input parameter of the business and described for recording result
The first fund implementing result after business execution;Operation system is loaded into the configuration of operation system on the line under line, and described
Operation system is entered the input parameter in the recording result under line, executes the business, obtains the execution of the second fund
As a result;By comparing the first fund implementing result and the second fund implementing result, it is determined whether there are fund exceptions
Situation.
In one embodiment, which can be central processing unit (Central Processing Unit, letter
Claim " CPU "), it can also be other general processors, digital signal processor (Digital Signal Processor, abbreviation
" DSP "), specific integrated circuit (Application Specific Integrated Circuit, referred to as " ASIC ") etc..Before
The memory stated can be read-only memory (read-only memory, referred to as " ROM "), random access memory (random
Access memory, referred to as " RAM "), flash memory (Flash), hard disk or solid state hard disk etc..Each embodiment party of the present invention
The step of method disclosed in formula, can be embodied directly in hardware processor and execute completion, or with hardware in processor and soft
Part block combiner executes completion.In one embodiment, which further includes bus and communication interface.Processor,
Memory and communication interface are all connected with each other by bus.Communication interface can be wireless communication interface and be also possible to wire communication
Interface is communicated for enabling a processor to other devices.
It should be noted that relational terms such as first and second and the like are only in the application documents of this patent
For distinguishing one entity or operation from another entity or operation, without necessarily requiring or implying these entities
Or there are any actual relationship or orders between operation.Moreover, the terms "include", "comprise" or its any other
Variant is intended to non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only
It including those elements, but also including other elements that are not explicitly listed, or further include for this process, method, object
Product or the intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence " including one ", not
There is also other identical elements in the process, method, article or apparatus that includes the element for exclusion.The application of this patent
In file, if it is mentioned that certain behavior is executed according to certain element, then refers to the meaning for executing the behavior according at least to the element, wherein
Include two kinds of situations: executing the behavior according only to the element and the behavior is executed according to the element and other elements.Multiple,
Repeatedly, the expression such as a variety of include 2,2 times, 2 kinds and 2 or more, 2 times or more, two or more.
It is included in the disclosure of the specification with being considered as globality in all documents that this specification refers to,
To can be used as the foundation of modification if necessary.In addition, it should also be understood that, the foregoing is merely the preferred embodiment of this specification and
, it is not intended to limit the protection scope of this specification.It is all this specification one or more embodiment spirit and principle it
Interior, any modification, equivalent replacement, improvement and so on should be included in the protection model of this specification one or more embodiment
Within enclosing.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, the process being described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.