CN107741906B - Monetary fund system automation test method, device, equipment and storage medium - Google Patents
Monetary fund system automation test method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN107741906B CN107741906B CN201710912062.3A CN201710912062A CN107741906B CN 107741906 B CN107741906 B CN 107741906B CN 201710912062 A CN201710912062 A CN 201710912062A CN 107741906 B CN107741906 B CN 107741906B
- Authority
- CN
- China
- Prior art keywords
- time
- fund system
- test
- monetary
- ideal money
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of monetary fund system automation test method, device, equipment and storage mediums, the method includes connection monetary fund systems to obtain the monetary fund system data, establishes the first mirror image according to the system data and generates ideal money fund system;The message file that the front end of the monetary fund system is sent is obtained, and the message file is exported to the ideal money fund system;Control the test that the ideal money fund system successively executes respective stage according to the message file.Monetary fund system automation test method provided by the invention passes through ideal money fund system, the test of respective stage is controlled according to message file, the testing time for shortening automatic test, improve the efficiency of automatic test and the stability of automatic test script.
Description
Technical field
The present invention relates to the testing field of software program, in particular to a kind of monetary fund system automation test method dress
It sets, equipment and storage medium.
Background technique
Monetary fund presses its business characteristic, and test is carried out to it and needs to continue long time, this is by monetary fund
What business rule determined, business rule is usually to apply to purchase fund share at first day, and Fund Company was in second day confirmation fund part
Volume can just see the income of oneself in third day user.If centre encounters day off, also successively to postpone.So general one
A complete test needs at least 3 days time.In addition, each step all has dependence to the step of front, so must wait
The step of just can be carried out back after terminating to previous step, each step is daily calculated, so cannot start at once
Next stage.
So if removing the automatic test of realization system according to the actual time, the difficulty of automation can be very big;And
Due to the relationship that the time is long, the stability of automatized script can be very poor.For example, the data of automatic test script are modified, are delayed
Machine or monetary fund system upstream and downstream are beset by technical hitches etc., these can all influence the stabilization of automatic test script
Property.In addition, its distinctive advantage can not be brought due to executing time too long automation, problem cannot be quoted very much in time.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of monetary fund system automation test method, device, equipment
And storage medium, the testing time of automatic test can be shortened, improve the efficiency and automatic test script of automatic test
Stability.
The present invention is implemented as follows:
First aspect present invention provides a kind of monetary fund system automation test method, and the method is realized in
:
It connects monetary fund system and obtains the monetary fund system data, the first mirror image is established according to the system data
And generate ideal money fund system;
The message file that the front end of the monetary fund system is sent is obtained, and the message file is exported to the void
Quasi- monetary fund system;
Control the test that the ideal money fund system successively executes respective stage according to the message file.
Second aspect of the present invention provides a kind of monetary fund system automation test device, comprising:
System virtualization module obtains the monetary fund system data for connecting monetary fund system, according to the system
System data establish the first mirror image and generate ideal money fund system;
Message processing module, the message file that the front end for obtaining the monetary fund system is sent, and disappear described
Breath file is exported to the ideal money fund system;
Automatic test module successively executes accordingly for controlling the ideal money fund system according to the message file
The test in stage.
Third aspect present invention provides a kind of terminal device, including memory, processor and is stored in the memory
In and the computer program that can run on the processor, the processor realize such as this hair when executing the computer program
The step of bright first aspect the method.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Computer program, when the computer program is executed by processor realize as described in the first aspect of the invention method the step of.
Monetary fund system automation test method device, equipment and storage medium provided by the invention, by establishing mirror
As ideal money fund system, message file is obtained, and respective stage is executed according to message file currency control fund system
Test, shortens the automatic test time substantially, improves the efficiency of test and the stability of automatized script.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the flow chart for the monetary fund system automation test method that one embodiment of the invention provides;
Fig. 2 is the flow chart for the monetary fund system automation test method that further embodiment of this invention provides;
Fig. 3 is the flow chart for the monetary fund system automation test method that further embodiment of this invention provides;
Fig. 4 is the flow chart for the monetary fund system automation test method that further embodiment of this invention provides;
Fig. 5 is the structural schematic diagram for the monetary fund system automation test device that further embodiment of this invention provides;
Fig. 6 is the structural schematic diagram for the terminal device that another embodiment of the invention provides.
Specific embodiment
In order to which technical problems, technical solutions and advantages to be solved are more clearly understood, tie below
Accompanying drawings and embodiments are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
With reference to Fig. 1, it illustrates the processes for the monetary fund system automation test method that one embodiment of the invention provides
Figure, which comprises
Step S100, connection monetary fund system obtain the monetary fund system data, are built according to the system data
Vertical first mirror image simultaneously generates ideal money fund system.
As an implementation, monetary fund system can be connected with test machine, is attached by routine interface, root
The image file that system is generated according to monetary fund system, establishes the first mirror image and generates virtual monetary fund system.
Wherein, Mirror Info specifically can be test machine program according to preset test order and selected part (or all)
What the data in monetary fund system generated, it is believed that by test machine program Mirror Info generated, in subsequent mistake
System image needed for generating test in journey, does not constitute the restriction to the application here.
Step S101 obtains the message file that the front end of the monetary fund system is sent, and the message file is defeated
Out to the ideal money fund system.
Wherein, in true monetary fund system, between the front end and monetary fund system of monetary fund system usually
It is connected by interface, and information exchange is carried out by the message i.e. message file that the interface sends certain format, for example, currency base
The front end of golden system issues a transaction, then is related in the message file of the transaction may include transaction odd numbers information, transaction pair
Hand information and merchandise item information etc..
In this step, the message file sent for obtaining the front end of the monetary fund system, can be test machine
Be connected the message file that the front end of coin fund system sends of receiving with the front end of monetary fund system, is also possible to generate virtual
Monetary fund system front end analogue monetary fund system front end send message file.
Test machine is established after the virtual monetary fund system of completion, by obtaining the message file or life that front end is sent
At the message file of simulation, message file is then output to ideal money fund system.
Step S102 controls the survey that the ideal money fund system successively executes respective stage according to the message file
Examination.
After the message file for obtaining front end transmission, message file is output to ideal money fund system by test machine,
Virtual system can be controlled and tested into the corresponding stage.
As an implementation, test machine have fund system each stage automatic test cases, when starting from
After dynamicization test, test machine successively obtains the message file of respective stage, is output to ideal money fund system, reruns automatic
Change test case successively to test monetary fund system respective stage.
For example, needing to carry out the next stage i.e. test of confirmation stage after the completion of applying to purchase the fund share stage, then obtain true
The message file for recognizing the stage is output to the automatic test that can be carried out confirmation stage in ideal money fund system, wherein
Here message file can be the message file that several test users generate in different phase.
As an implementation, ideal money can also be modified when ideal money fund system completes current test
The system time of fund system enters next test phase, when the time modification of ideal money fund system, record modification
System time, can be convenient record entire test process in this way.
The system time of ideal money fund system is modified main reason is that automatic test to monetary fund system
Different from other systems, due to the business rule of monetary fund system, the different stages will carry out on the different dates.Example
Such as, applied to purchase some monetary fund shares May 22, these shares 23 can just become confirming share, No. 23 this genius meetings
It bears interest, No. 22 this days are not to user's income.If implementing the automation to monetary fund system according to the normal time
Test, causes since automatic test will receive the problems such as test data is beset by technical hitches by modification, delay machine or upstream and downstream
The stability of automatic test script can be very poor, and the time tested is long, cannot quote problem in time, cannot achieve
The automatic test of effect.
Since in computer systems, the date is to calculate by the system time of machine, therefore can be by modification
The system time traverses to the time rear or earlier, can be carried out next stage after having modified, for example, Shen on May 22
Modification system time is No. 23 after fund is completed in purchase, can carry out testing for next stage.
Monetary fund system automation test method provided in an embodiment of the present invention, the message text sent by obtaining front end
Part, is output to ideal money fund system, and control ideal money fund system carries out the automatic test of respective stage, substantially contracts
The short time of automatic test, improve the efficiency of automatic test and the stability of automatic test script.
Referring to FIG. 2, the automated testing method of the monetary fund system provided it illustrates further embodiment of this invention
Flow chart.
Step S200, connection monetary fund system obtain the monetary fund system data, are built according to the system data
Vertical first mirror image simultaneously generates ideal money fund system.
Monetary fund system is connected with automatically testing machine, generates the image file of system, the first mirror image is established and generates void
Quasi- monetary fund system.
Step S201, the front-end and back-end for connecting the monetary fund system obtain the number of the front end and the rear end
According to establishing the second mirror image according to the data and generate the front-end and back-end of virtual monetary fund system.
In true monetary fund system, front-end and back-end are communicated by communications protocol, therefore can be with
The communications protocol of front and back end in monetary fund system is obtained, passes through the front-end and back-end of ideal money fund system in this way, so that it may
To realize a virtual environment of monetary fund system entirety.
Specifically, connecting the front-end and back-end of monetary fund system by test machine, corresponding image file, and root are generated
The front-end and back-end of virtual monetary fund system are generated according to image file, wherein Mirror Info specifically can be test machine journey
Sequence according to preset test order and what the data of selected part (or all) monetary fund system front end and rear end generated, currency
The front-end and back-end of fund system refer to the upstream and downstream of monetary fund, comprising: user's account opening system checks auditing system, commission
Management system, broker management system, fond balance system etc..
As an implementation, test machine is the company that the front-end and back-end to monetary fund system are realized with aggregator
It connects, wherein aggregator can be achieved on the physical assemblies that data are carried out with transmission shunting.It is by tested relaying by aggregator
Physical layer interface convergence of uniting is got up, and with the multiple virtual test devices of a tester simulated implementation, all virtual test devices all pass through
Same link is connect with system under test (SUT);Tester is communicated by aggregator and the tested multiple lower interfaces realized, is tested
Device carries out tested realization by multiple physical layer interfaces to motivate/response test.
Step S202 obtains the message file that the front end of ideal money fund system is sent, and the message file is defeated
Out to the ideal money fund system.
After the virtual rear and virtual monetary fund system in the front-end and back-end of monetary fund system is connected, so that it may
The message file that virtual front end sends over is directly acquired in a tester, is output to virtual monetary fund system, is realized
The automatic test of respective stage.
Step S203 controls the survey that the ideal money fund system successively executes respective stage according to the message file
Examination.
The message file that test machine is sent according to virtual front-end controls virtual monetary fund system and enters corresponding test
Stage carries out automatic test.
The embodiment of the present invention establishes the second mirror image and generates virtual goods by the front-end and back-end of connection monetary fund system
The front-end and back-end of coin fund system form the upstream and downstream of complete monetary fund system, send further according to virtual front end
Message file control carries out the automatic test of respective stage, keeps the environment of automatic test more perfect, not by upstream and downstream system
The time of automatic test is shortened in the influence of system, and the efficiency and automation for improving the automatic test of monetary fund system are surveyed
The stability of training sheet.
Referring to FIG. 3, the automated testing method of the monetary fund system provided it illustrates further embodiment of this invention
Flow diagram.
Step S300, connection monetary fund system obtain the monetary fund system data, are built according to the system data
Vertical first mirror image simultaneously generates ideal money fund system.
Step S301, the front-end and back-end for connecting the monetary fund system obtain the number of the front end and the rear end
According to establishing the second mirror image according to the data and generate the front-end and back-end of virtual monetary fund system.
Step S302 obtains the message file that the front end of ideal money fund system is sent, and the message file is defeated
Out to the ideal money fund system.
Step S303 obtains the testing time for executing current test phase according to the message file, according to the test
Time generates the virtual system time and enters current test phase.
Step S304 obtains the test of next stage according to the message file when executing the current test phase of completion
Time modifies the virtual system time according to the testing time of the next stage to enter the test of the next stage.
Wherein, step S300 to step S302 and the step S200 in a upper embodiment are corresponding to step S202, here
No longer repeat one by one.
In step S303, due to the time systematic inside message file, can pass through and obtain message file and obtain
The time of monetary fund system can allow monetary fund system according to the time of the time modification virtual system of the system of acquisition
Into the debugging of next stage.
As an implementation, since the front and back end to monetary fund system has all carried out virtually, it is repairing
When changing the time of virtual system, it can realize to the synchronism detection of front and back end with the system time of synchronous vacations front and back end, make to test
Environment it is more true, reliable.
In step S304, when having executed current test phase and needing to test next stage, message file is obtained
System time is changed to the testing time of next stage by the testing time of middle next stage, into the test of next stage.
As an implementation, the testing time of next stage can be obtained according to the rule of monetary fund system,
Such as the time of confirmation is the next working day for the time of applying to purchase, and is applied to purchase within 22nd such as May, May 23 was confirmed, then
After the test in stage is applied to purchase in completion, the time of virtual system directly can be changed to May 23 by test machine, and synchronous front and back end
Time, so that it may be directly entered the automatic test of next stage.
The automated testing method of monetary fund system provided in an embodiment of the present invention, by being in acquisition message file
It unites the time, the time of virtual system is modified according to system time, can be convenient the test into respective stage, shorten automation and survey
The time of examination is not influenced by upstream and downstream system, improves the efficiency of automatic test and the stability of automatic test script.
Further, for controlled in above-mentioned steps S102 the ideal money fund system according to the message file according to
It further include to execution task time when modifying the system time of ideal money fund system in the secondary test for executing respective stage
Amendment, referring to FIG. 4, it illustrates the streams of the automated testing method of the monetary fund system of further embodiment of this invention offer
Journey schematic diagram.
Step S400 periodically acquires the system time of ideal money fund system according to preset detection cycle.
For example, detection cycle can be set to 5 seconds, 30 milliseconds etc..
Step S401, judges whether the difference for the operating system time that current period and previous cycle obtain is equal to the spy
The survey time determines whether the system time of the ideal money fund system changes.
Specifically, if the absolute value of the difference is equal to the detection cycle, the system time of ideal money fund system
It does not change;If the difference is not equal to the detection cycle, it is determined that ideal money fund system changes.
Step S402, when determining that the system time changes, according to formula A- (B+C) end value to the task of execution
Time is modified, wherein A is the current period collected operating system time, B is the collected operating system of previous cycle
Time, C are the detection cycle.
When the calculated result symbol of A- (B+C) is positive, then illustrates operating system of the user by ideal money fund system
Between to future adjust, then execute relative timing task ideal money fund system system time also should to future adjust
Whole, the time that adjustment executes relative timing task is next second of present system time, that is, when not needing accurately to understand modification
Between, it is only necessary to execute the movement to future modification, so that it may next stage is executed at once, if the calculated result of A- (B+C) accords with
It number is negative, then illustrates that user adjusts the system time of ideal money fund system to the past, then executing relative timing task
Time to the past adjustment, the amount of adjustment is identical with the value of A- (B+C), avoid due to user maloperation occur timing function
The problem of capable of failing.
The embodiment of the present invention is compared previous cycle and is adopted by the system time of periodically acquisition ideal money fund system
The difference of the operating system time and current period collected operating system time that collect, know more accurately, in time
User has changed the system time of ideal money fund system, so that the middle timing for modifying ideal money fund system accordingly is appointed
The execution time of business.
It is the device of the invention embodiment below, the details of not detailed description in Installation practice can refer to above-mentioned
Corresponding embodiment of the method.
Referring to FIG. 5, it illustrates a kind of monetary fund system automations that further embodiment of this invention provides to test dress
It sets.
The monetary fund system automation device 50 include: system virtualization module 501, message processing module 502 and from
Dynamic test module 503.
System virtualization module 501 obtains the monetary fund system data for connecting monetary fund system, according to described
System data establishes the first mirror image and generates ideal money fund system.
As an implementation, it obtains the front-end and back-end that system virtualization module 501 is also used to connect monetary fund system
The data for taking the front end and the rear end are established before the second mirror image generates virtual monetary fund system according to the data
End and rear end, form the upstream and downstream of complete monetary fund system, keep the environment of automatic test more perfect.
Wherein, the front and back end of the monetary fund system in system virtualization module 501 is communicated by communications protocol.
As an implementation, system virtualization module 501 be by aggregator connect monetary fund system front end and
Rear end.
Message processing module 502, the message file that the front end for obtaining the monetary fund system is sent, and will be described
Message file is exported to the ideal money fund system.
As an implementation, after the virtual front-end and back-end of monetary fund system of system virtualization module 501,
Message processing module 502 exports the message file to void for obtaining the message file that virtual front end sends over
Quasi- monetary fund system.
Automatic test module 503 is successively executed for controlling the ideal money fund system according to the message file
The test of respective stage, when message processing module 502 gets the message file of front end transmission and is output to monetary fund system
Afterwards, automatic test module 503 controls ideal money fund system and carries out automatic test into corresponding test phase.
As an implementation, automatic test module 503 are also used to obtain to execute according to the message file and currently survey
The testing time in examination stage generates the virtual system time according to the testing time and enters current test phase.Because of message
There is system time in file, system time therein can be obtained by obtaining message file, this system time is exported
It can be carried out the automatic test of respective stage to ideal money fund system.
When executing the current test phase of completion, automatic test module 503 obtains the survey of next stage according to message file
The time is tried, the virtual system time is modified to enter the test of the next stage according to the testing time of next stage.
As an implementation, when the time modification of the ideal money fund system, automatic test module 503 is same
Step modifies the time of the front-end and back-end of the virtual monetary fund system.
As an implementation, automatic test module 503 can also obtain down according to the rule of monetary fund system
The testing time in one stage, for example, confirmation time be the time of applying to purchase next working day, then complete to apply to purchase the test in stage
Later, test machine can be modified directly the time of virtual system, and the time of synchronous front and back end, so that it may be directly entered lower single order
The automatic test of section.
Monetary fund system automation test device provided in an embodiment of the present invention is obtained by ideal money fund system
The message file for taking front end to send controls the automation survey that ideal money fund system carries out respective stage according to message file
The time of monetary fund system automation test is shortened in examination, improves the efficiency and automatic test script of automatic test
Stability.
Another kind embodiment of the invention provides a computer readable storage medium, stores on the computer readable storage medium
There is computer program, which realizes that the monetary fund system automation in above-described embodiment is surveyed when being executed by processor
Method for testing, to avoid repeating, which is not described herein again.Alternatively, the computer program realizes above-described embodiment when being executed by processor
The function of each module/unit in middle monetary fund system automation test device, to avoid repeating, which is not described herein again.
Referring to FIG. 6, terminal device 6 includes processor 60, deposits it illustrates the schematic diagram of the terminal device of the present embodiment
Reservoir 61 and it is stored in the computer program 62 that can be run in memory 61 and on processor 60.Processor 60 executes calculating
Each step of monetary fund system automation test method in above-described embodiment is realized when machine program 62, such as shown in FIG. 1
Step S100, S101 and S102.Alternatively, processor 60 realizes monetary fund system in above-described embodiment when executing computer program 62
It unites the function of each module/unit of automatic test device, system virtualization module 501 as shown in Figure 5,502 and of message processing module
The function of automatic test module 503.
Illustratively, computer program 62 can be divided into one or more module/units, one or more mould
Block/unit is stored in memory 61, and is executed by processor 60, to complete the present invention.One or more module/units can
To be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing computer program 62 at end
Implementation procedure in end equipment 6.For example, computer program 62 can be divided into system virtualization module 501, message processing module
502 and automatic test module 503 (module in virtual bench).
The terminal device 6 can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.
Terminal device may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 is only
The example of terminal device 6 does not constitute the restriction to terminal device 6, may include components more more or fewer than diagram, or
Combine certain components or different components, for example, terminal device can also include input-output equipment, network access equipment,
Bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
Memory 61 can be the internal storage unit of terminal device 6, such as the hard disk or memory of terminal device 6.Storage
Device 61 is also possible to the plug-in type hard disk being equipped on the External memory equipment of terminal device 6, such as terminal device 6, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
Further, memory 61 can also both including terminal device 6 internal storage unit and also including External memory equipment.Memory
61 for storing other programs and data needed for computer program and terminal device.Memory 61 can be also used for temporarily
Store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (7)
1. a kind of monetary fund system automation test method, which comprises the following steps:
It connects monetary fund system and obtains the monetary fund system data, the first mirror image and life are established according to the system data
At ideal money fund system;
The front-end and back-end for connecting the monetary fund system obtain the data of the front end and the rear end, according to the data
It establishes the second mirror image and generates the front-end and back-end of virtual monetary fund system;
The message file that the front end of the ideal money fund system is sent is obtained, and the message file is exported to the void
Quasi- monetary fund system;
The testing time for executing current test phase is obtained according to the message file, and virtual system is generated according to the testing time
The system time simultaneously enters current test phase;
When executing the current test phase of completion, the testing time of next stage is obtained according to the message file, according to described
The testing time of next stage modifies the virtual system time to enter the test of the next stage.
2. monetary fund system automation test method according to claim 1, which is characterized in that according to the lower single order
The testing time of section modifies the virtual system time to enter the test of the next stage, further includes:
When the time modification of the ideal money fund system, the front end of virtual monetary fund system described in synchronous vacations and
The time of rear end.
3. monetary fund system automation test method according to claim 1, which is characterized in that described to disappear according to
Breath file acquisition executes the testing time of current test phase, generates the virtual system time according to the testing time and enters and works as
Preceding test phase obtains the testing time of next stage, root according to the message file when executing the current test phase of completion
The virtual system time is modified according to the testing time of the next stage to enter the test of the next stage, comprising:
According to preset detection cycle, the system time of ideal money fund system is periodically acquired;
Judge whether the difference for the operating system time that current period and previous cycle obtain is equal to the detection time, if so,
Determine that the system time of the ideal money fund system does not change;If it is not, determining the ideal money fund system
System time changes;
When determining that the system time changes, it is modified according to formula A- (B+C) end value to task time is executed,
If the end value is positive, be adjusted to next second of present system time backward execution task time;If the end value
It is negative, then the execution task time is adjusted to forward to the end value of A- (B+C), A is the system of current period detection in formula
Time, B are the system time that previous cycle detects, and C is the detection cycle.
4. a kind of monetary fund system automation test device characterized by comprising
System virtualization module obtains the monetary fund system data for connecting monetary fund system, according to the system number
According to establishing the first mirror image and generating ideal money fund system, connect described in the front-end and back-end acquisition of the monetary fund system
The data of front end and the rear end, according to the data establish the second mirror image and generate virtual monetary fund system front end and
Rear end;
Message processing module, the message file that the front end for obtaining the ideal money fund system is sent, and disappear described
Breath file is exported to the ideal money fund system;
Automatic test module, for obtaining the testing time for executing current test phase according to the message file, according to described
Testing time generates the virtual system time and enters current test phase, when executing the current test phase of completion, according to described
Message file obtains the testing time of next stage, modifies the virtual system time according to the testing time of the next stage
It is virtual described in synchronous vacations when the time modification of the ideal money fund system to enter the test of the next stage
Monetary fund system front-end and back-end time.
5. monetary fund system automation test device according to claim 4, which is characterized in that the automatic test mould
Block is also used to:
According to preset detection cycle, the system time of ideal money fund system is periodically acquired;
Judge whether the difference for the operating system time that current period and previous cycle obtain is equal to the detection time, if so,
Determine that the system time of the ideal money fund system does not change, if it is not, determining the ideal money fund system
System time changes;
When determining that the system time changes, it is modified according to formula A- (B+C) end value to task time is executed,
If the end value is positive, be adjusted to next second of present system time backward, if the end value execution task time
It is negative, then the execution task time is adjusted to forward to the end value of A- (B+C), A is the system of current period detection in formula
Time, B are the system time that previous cycle detects, and C is the detection cycle.
6. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claims 1 to 3 when executing the computer program
The step of any one the method.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claims 1 to 3 of realization the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710912062.3A CN107741906B (en) | 2017-09-29 | 2017-09-29 | Monetary fund system automation test method, device, equipment and storage medium |
PCT/CN2017/107801 WO2019061620A1 (en) | 2017-09-29 | 2017-10-26 | Automatic test method and apparatus for currency fund system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710912062.3A CN107741906B (en) | 2017-09-29 | 2017-09-29 | Monetary fund system automation test method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107741906A CN107741906A (en) | 2018-02-27 |
CN107741906B true CN107741906B (en) | 2019-05-17 |
Family
ID=61236459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710912062.3A Active CN107741906B (en) | 2017-09-29 | 2017-09-29 | Monetary fund system automation test method, device, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107741906B (en) |
WO (1) | WO2019061620A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874659B (en) * | 2018-04-19 | 2023-03-28 | 北京嘉楠捷思信息技术有限公司 | Test method, test system and server of digital currency computing equipment |
CN112419052B (en) * | 2020-09-30 | 2024-06-11 | 中信百信银行股份有限公司 | Transaction testing method, device, electronic equipment and readable storage medium |
CN112783790B (en) * | 2021-02-04 | 2022-04-05 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
CN116483689B (en) * | 2023-03-13 | 2024-01-05 | 深圳华锐分布式技术股份有限公司 | Method, device, equipment and medium for testing option brokerage quick trading system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104008046A (en) * | 2013-02-26 | 2014-08-27 | 北京千橡网景科技发展有限公司 | Method and device for testing programs |
CN107133162A (en) * | 2016-02-29 | 2017-09-05 | 阿里巴巴集团控股有限公司 | A kind of method of testing and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7512039B1 (en) * | 2003-05-27 | 2009-03-31 | Oracle International Corporation | Method for enhancing functionality of an automated testing tool |
US7673197B2 (en) * | 2003-11-20 | 2010-03-02 | Practical Engineering Inc. | Polymorphic automatic test systems and methods |
CN101770557B (en) * | 2008-12-30 | 2011-12-14 | 上海茂碧信息科技有限公司 | Method for calculating service time of software in system |
CN104182335B (en) * | 2014-05-09 | 2017-03-29 | 中国光大银行 | Method for testing software and device |
CN104574184B (en) * | 2015-02-05 | 2018-03-06 | 中国农业银行股份有限公司 | One kind redeems method of commerce, apparatus and system soon |
CN105389252B (en) * | 2015-10-16 | 2018-04-10 | 华为技术有限公司 | The method and device of feedback test problem |
CN106484623A (en) * | 2016-10-21 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of method of software test, apparatus and system |
-
2017
- 2017-09-29 CN CN201710912062.3A patent/CN107741906B/en active Active
- 2017-10-26 WO PCT/CN2017/107801 patent/WO2019061620A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104008046A (en) * | 2013-02-26 | 2014-08-27 | 北京千橡网景科技发展有限公司 | Method and device for testing programs |
CN107133162A (en) * | 2016-02-29 | 2017-09-05 | 阿里巴巴集团控股有限公司 | A kind of method of testing and device |
Also Published As
Publication number | Publication date |
---|---|
CN107741906A (en) | 2018-02-27 |
WO2019061620A1 (en) | 2019-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107741906B (en) | Monetary fund system automation test method, device, equipment and storage medium | |
CN108255738A (en) | Automated testing method, device, computer equipment and storage medium | |
CN105930259B (en) | A kind of method and apparatus of WEB regression tests | |
CN109582550B (en) | Method, device and server for acquiring full-service scene fault set | |
CN109447610A (en) | Method and apparatus for determining payment channel | |
CN111309594A (en) | System testing method, device, equipment and storage medium | |
CN110335033A (en) | Limit processing method and system | |
CN109308211A (en) | For handling the method, apparatus and storage medium of Transaction Information in block chain | |
US20160170734A1 (en) | Revision Safe Upgrade in a Hybrid Cloud Landscape | |
CN111738725A (en) | Cross-border resource transfer authenticity auditing method and device and electronic equipment | |
CN106815725A (en) | A kind of transaction verification method and device | |
CN110659870A (en) | Business audit test method, device, equipment and storage medium | |
CN107784094A (en) | Monetary fund system automation liquidation method, device, equipment and storage medium | |
CN109615384A (en) | Generation method, device and the server of timeliness verification rule | |
CN110517142B (en) | Method and device for outputting policy evaluation information | |
US11710117B1 (en) | Systems and methods for EMV terminal device testing using EMV card emulation | |
US11921615B2 (en) | Computer-implemented methods, computer-readable media and electronic devices for processing test electronic transactions | |
JP7000339B2 (en) | Virtual market for decentralized tools in a corporate environment | |
CN111680023B (en) | Migration data checking method and device | |
US20190197533A1 (en) | Computer-implemented methods, computer-readable media and electronic devices for processing test electronic transactions | |
CN109064329A (en) | A kind of calculation power method of commerce and calculate channel | |
CN112419052B (en) | Transaction testing method, device, electronic equipment and readable storage medium | |
CN106875188B (en) | System, method and device for synchronously managing transaction objects | |
CN115375278A (en) | Business work order processing method and device, electronic equipment and storage medium | |
CN105787792A (en) | Information processing method of loan transaction and information processing device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |