CN109800157A - Test method, device, terminal and the storage medium of market risk application software - Google Patents
Test method, device, terminal and the storage medium of market risk application software Download PDFInfo
- Publication number
- CN109800157A CN109800157A CN201811605217.XA CN201811605217A CN109800157A CN 109800157 A CN109800157 A CN 109800157A CN 201811605217 A CN201811605217 A CN 201811605217A CN 109800157 A CN109800157 A CN 109800157A
- Authority
- CN
- China
- Prior art keywords
- test
- application software
- market risk
- logic
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 20
- 238000012360 testing method Methods 0.000 claims abstract description 185
- 230000007246 mechanism Effects 0.000 claims abstract description 162
- 238000000034 method Methods 0.000 claims abstract description 141
- 230000008569 process Effects 0.000 claims abstract description 127
- 238000001514 detection method Methods 0.000 claims abstract description 38
- 238000012545 processing Methods 0.000 claims abstract description 21
- 239000002131 composite material Substances 0.000 claims description 8
- 241000239290 Araneae Species 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 239000000155 melt Substances 0.000 description 3
- 239000000284 extract Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000002844 melting Methods 0.000 description 1
- 230000008018 melting Effects 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention discloses test method, device, terminal and the storage medium of a kind of market risk application software, the method includes the basic flows to market risk application software to decompose, multiple mechanism processes are obtained, the processing sequence in the basic flow between different institutions process is then determined by the test logic of basic flow;Successively each mechanism process is traversed according to the processing sequence, obtains the corresponding target mechanism of the mechanism process traversed;Corresponding target detection data are matched from default test data set according to service logic and the target mechanism traversed;Finally after each mechanism process is traversed and finishes, test terminal can automatically test market risk application software according to test logic and based on the corresponding target detection data of each target mechanism, tester does not need that more cost of labor is spent to write test script early period, and tester does not need input test data repeatedly when test, and then can be improved testing efficiency.
Description
Technical field
The present invention relates to software test field more particularly to a kind of test methods of market risk application software, device, end
End and storage medium.
Background technique
The appearance of market risk application software APP under previous line instead of handing over, and user is by market risk application software APP
Download to the mobile terminals such as mobile phone can canbe used on line financial document transaction, to user bring conveniently so that financial document hand over
It is easily more electronic;But provide higher cost market risk application software script early period, data file safeguards cumbersome, tester
Member can not at the first time inquire the state of market risk software operation, and script maintenance is not very convenient, so
Affect the working efficiency of tester.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of test method of market risk application software, device, terminal and deposit
Storage media, it is intended to solve that current market risk application maintenance process is cumbersome, and the working efficiency of dependence test personnel is not high
Problem.
To achieve the above object, the present invention provides a kind of test method of market risk application software, and described includes following
Step:
The basic flow of market risk application software to be tested is decomposed, multiple mechanism processes are obtained, it is described basic
Flow table levies the basic process that market risk is realized when the market risk application software is used, and the basic process includes difference
Mechanism process;
The test logic for obtaining the basic flow determines different institutions process in the basic flow according to the test logic
Processing sequence;
Successively each mechanism process is traversed according to the processing sequence, obtains the corresponding mesh of mechanism process traversed
Mark mechanism;
Corresponding mesh is matched from default test data set according to the service logic and the target mechanism traversed
Mark test data;
After each mechanism process is traversed and finishes, according to the test logic and it is based on the corresponding target of each target mechanism
Test data tests the market risk application software.
Preferably, described to be matched from default test data set according to the service logic and the target mechanism traversed
Corresponding target detection data out, comprising:
The corresponding bottom code of the service logic is obtained, extracts and traverses from the bottom code of the service logic
The corresponding composite key of mechanism process;
It is matched from default test data set according to the composite key and the target mechanism traversed corresponding
Target detection data.
Preferably, described after each mechanism process is traversed and finishes, according to the test logic and it is based on each target machine
The corresponding target detection data of structure test the market risk application software, comprising:
After each mechanism process is traversed and finishes, by the corresponding target detection data of different target mechanism respectively according to institute
Service logic is stated to be programmed into preset electronic table;
According to the test logic and based on the corresponding target detection data of preset electronic table Zhong Ge target mechanism to institute
Market risk application software is stated to be tested.
Preferably, described to be programmed into the corresponding target detection data of different target mechanism according to the service logic respectively
In preset electronic table, comprising:
Multiple keywords are extracted from the bottom code of the service logic, are determined and are traversed from multiple keywords
The corresponding target keywords of target mechanism;
The corresponding target keywords of each target mechanism and target detection data are programmed into preset electronic table, are formed
The corresponding table data of each target mechanism;
It is described according to the test logic and be based on the corresponding target detection data of preset electronic table Zhong Ge target mechanism
The market risk application software is tested, comprising:
According to the test logic and based on the corresponding table data of each target mechanism to the market risk application software
It is tested.
Preferably, the test logic includes test desired value;
It is described according to the test logic and based on the corresponding table data of each target mechanism to the market risk application
Software is tested, comprising:
According to the test logic and based on the corresponding table data of each target mechanism respectively to corresponding mechanism process into
Row test, obtains the test result of each mechanism process, the test result is indicated with a numerical value;
The sum of the test result of each mechanism process is added, and will add up and be compared with the test desired value, in institute
The difference between sum and the test desired value is stated when whether being in default error threshold range, determines that the bill melts
The basic current test of money application software passes through.
Preferably, the default test data set includes the test data and preset relation of preparatory typing, described default
Relationship is characterized as different service logics and different target mechanisms and is one whole there are mapping relations with the test data.
Preferably, the preset electronic table is Excel table;
It is described according to the test logic and based on the corresponding target detection data of each target mechanism to the market risk
After application software is tested, further includes:
The test result of the market risk application software is shown in the Excel table.
In addition, to achieve the above object, the present invention also proposes a kind of test device of market risk application software, the survey
Trial assembly, which is set, includes:
Decomposing module decomposes for the basic flow to market risk application software to be tested, obtains multiple mechanisms
Process, the basic flow characterize the basic process that market risk is realized when the market risk application software is used, the base
This process includes different mechanism process;
It obtains module and the basic flow is determined according to the test logic for obtaining the test logic of the basic flow
The processing sequence of middle different institutions process;
Spider module obtains the machine traversed for successively traversing to each mechanism process according to the processing sequence
The corresponding target mechanism of structure process;
Matching module, for according to the service logic and the target mechanism that traverses from default test data set
Allot corresponding target detection data;
Test module, for according to the test logic and being based on each target after each mechanism process is traversed and finishes
The corresponding target detection data of mechanism test the market risk application software.
In addition, the present invention also proposes that a kind of test terminal, the test terminal include: memory, processor and be stored in
On the memory and the test program for market risk application software that can run on the processor, the bill melt
The step of test program of money application software is arranged for carrying out the test method of market risk application software as described above.
In addition, the present invention also proposes to be stored on storage medium described in a kind of storage medium for market risk application software
Test program, the test program for market risk application software realizes that bill as described above melts when being executed by processor
The step of providing the test method of application software.
The present invention first decomposes the basic flow of market risk application software, obtains multiple mechanism processes, then leads to
The test logic for crossing basic flow determines processing sequence in the basic flow between different institutions process;According to the processing sequence
Successively each mechanism process is traversed, obtains the corresponding target mechanism of the mechanism process traversed;According to service logic and time
The target mechanism gone through matches corresponding target detection data from default test data set;Finally in each mechanism process quilt
After traversal finishes, test terminal according to test logic and can be based on the corresponding target detection data pair of each target mechanism automatically
Market risk application software is tested, and tester does not need that more cost of labor is spent to compile test script early period
It writes, and does not need input test data repeatedly when tester's test, and then can be improved testing efficiency.
Detailed description of the invention
Fig. 1 is the end for market risk application software testing for the hardware running environment that the embodiment of the present invention is related to
The structural schematic diagram at end;
Fig. 2 is a kind of flow diagram of the test method first embodiment of market risk application software of the present invention;
Fig. 3 is a kind of flow diagram of the test method second embodiment of market risk application software of the present invention;
Fig. 4 is a kind of structural block diagram of the test device of market risk application software of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the hardware running environment that the embodiment of the present invention is related to for market risk application software
The terminal structure schematic diagram of test.
As shown in Figure 1, the test terminal may include: processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Test interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to the test terminal, it can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, may include that operating system, Subscriber Interface Module SIM and market risk are answered in the memory 1005
With the test program of software.
In terminal shown in Fig. 1, test interface 1004 is mainly used for and is equipped with the terminal of market risk application software
Equipment is attached;User interface 1003 can be used for connecting the control equipment with the interaction of tester or developer;
Processor 1001, memory 1005 in terminal of the present invention can be set in the test terminal, and the test terminal passes through
Processor 1001 calls the test program for market risk application software stored in memory 1005, and is directed to described in execution
The step of test method of market risk application software.
It is a kind of first embodiment process of the test method for market risk application software of the present invention referring to Fig. 2, Fig. 2
Schematic diagram.
In the present embodiment, the test method the following steps are included:
Step S10: decomposing the basic flow of market risk application software to be tested, obtains multiple mechanism processes,
The basic flow characterizes the basic process that market risk is realized when the market risk application software is used, the basic process
Including different mechanism processes;
It should be noted that the executing subject of the present embodiment is the above-mentioned test terminal for market risk application software
Processor.
It will be appreciated that the basic flow, which characterizes the market risk application software to be tested, is realizing the one of its function
Basic process is covered, which is made of different mechanism processes, each mechanism process is the code institute by bottom
It realizes, for a mechanism process, the present embodiment can extract in the source script file of the market risk application software in advance
The corresponding each source code of the mechanism process can be completed, the source code extracted is packaged in DLL (Dynamic Link
Library, dynamic link library file) in file.Dll file after encapsulation corresponds to different mechanism processes, i.e., will it is described to
The basic flow of the market risk application software of test carries out being decomposed into multiple dll files.Step S20: the basic flow is obtained
Logic is tested, the processing sequence of different institutions process in the basic flow is determined according to the test logic;
It will be appreciated that test logic is characterized as realizing the corresponding bottom code of basic process of market risk.In step
In S10, the basic flow is decomposed into multiple mechanism processes, that is, is decomposed into multiple dynamic link library (DLL) files.This implementation
In example, if computer system will realize the basic process of market risk, a complete executable file is not carried out, but
It is divided into some relatively independent DLL to be placed in computer system, when the basic process that we execute market risk is corresponding
When bottom code, above-mentioned each dll file can be successively called to be packaged in dll file to execute according to certain processing sequence
Source code program, to complete the basic process of market risk.
Step S30: each mechanism process is traversed respectively according to the processing sequence, obtains the mechanism process traversed
Corresponding target mechanism;
It will be appreciated that basic flow described in the present embodiment can be a set of conventional market risk process: financing first
People, which understands typing bill-and is transmitted to after bank-bank tests to bill, to be transmitted to investor-investor and uploads investment instruction to certificate
Quotient-stock trader finally remits money to bank.The above process is characterized as the test logic of the basic flow, while the process includes multiple machines
Structure process, the process also present a kind of processing sequence:
That is mechanism process (1): the bill of typing is transmitted to bank by financier's typing bill, financier;
Mechanism process (2): bank is transmitted to investor after testing to bill;
Mechanism process (3): investor uploads investment instruction to stock trader;
Mechanism process (4): stock trader finally remits money to bank.
Each mechanism process at least corresponds to a mechanism, these mechanisms are a kind of financier (corresponding financier institute respectively
The terminal platform mechanism used), bank, investor's (corresponding a kind of financier used in terminal platform mechanism) and stock trader.
In the concrete realization, the processing sequence is characterized as first from mechanism process (1), then from mechanism process (2), then
It from mechanism process (3), is finally traversed from mechanism process (4), the target mechanism finally traversed is followed successively by: mechanism process
(1) " financier " and " bank ";" bank " and " investor " of mechanism process (2);Mechanism process (3) " investor " and " certificate
Quotient ";" stock trader " and " bank " of mechanism process (4).
Step S40: it is matched from default test data set according to the service logic and the target mechanism traversed
Corresponding target detection data;
In the present embodiment, before step S40, tester can record for different service logics and target mechanism in advance
Enter corresponding test data into a default test data set, which can be deposited with database
Storage;Wherein, there are mapping relations with test data as a whole for different service logics and different target mechanisms, and
Default test data set can also save each preset relation.
In the concrete realization, step S40 includes: to obtain the corresponding bottom code of the service logic, is patrolled from the business
Composite key corresponding with the mechanism process traversed is extracted in the bottom code collected;According to the composite key and traversal
To target mechanism corresponding target detection data are matched from default test data set.I.e. when executing step S40, first
Multiple groups composite key is extracted from the bottom code of the service logic, is made of in a set of keyword multiple keywords, one
A keyword can correspond to the method for operating function under some class in bottom code, the corresponding mechanism stream of a set of keyword
Journey;The corresponding mark (mark can be also previously recorded in the default test data set) of target mechanism is determined simultaneously, so
It is found out afterwards by the corresponding mark of the composite key and target mechanism of the service logic extracted from default test data set
Corresponding test data is target detection data.
Step S50: after each mechanism process is traversed and finishes, according to the test logic and it is based on each target mechanism pair
The target detection data answered test the market risk application software.
Specifically, the target detection data in the present embodiment can be the test parameter that tester pre-enters, and survey
Examination logic characterizes the test code that the tester writes in advance.It, can be according to described after each mechanism process is traversed and finishes
Processing sequence in step S20 successively invocation target test data, that is, call the test code write in advance and tester defeated
The test parameter entered runs the corresponding source code program being packaged in dll file of the mechanism process, operationally states
Test result can be instantly obtained after source code in dll file.It will be appreciated that being surveyed in the past to market risk application software
When examination, needs early period that more cost of labor is spent to write test script, be all based on test script for market risk
The basic flow of application software is tested as a whole, and tester (i.e. user) is manually entered test data in real time,
Then test script is called to test the basic flow as a whole, tester must input test number repeatedly
According to, could complete test.
And the present embodiment first decomposes the basic flow of market risk application software, obtains multiple mechanism processes, so
The processing sequence in the basic flow between different institutions process is determined by the test logic of the basic flow afterwards;According to described
Processing sequence successively traverses each mechanism process, obtains the corresponding target mechanism of the mechanism process traversed;According to business
The target mechanism that logic sum traverses matches corresponding target detection data from default test data set;Finally in each machine
Structure process is traversed finish after, test terminal can be surveyed according to test logic and based on the corresponding target of each target mechanism automatically
Examination data test the market risk application software, and tester does not need to spend more cost of labor to survey early period
Training is originally write, and does not need input test data repeatedly when tester's test, solves data file dimension
Cumbersome problem is protected, and then can be improved testing efficiency.
Referring to Fig. 3, a kind of second embodiment process signal of test method of market risk application software of Fig. 3 present invention
Figure proposes the present invention for the second embodiment of the test method of market risk application software based on above-mentioned Fig. 2;
In the present embodiment, the step S50: include:
Step S501: after each mechanism process is traversed and finishes, by the corresponding target detection data of different target mechanism
It is programmed into preset electronic table according to the service logic respectively;
Specifically, the present embodiment, can be first from the bottom generation of the service logic after each mechanism process is traversed and finishes
Multiple keywords are extracted in code, target keywords corresponding with the target mechanism traversed are determined from multiple keywords:
Such as it for traversing mechanism process (1), can be extracted and " typing ticket from the bottom code of the service logic
According to " act the keyword for corresponding to code;
For traversing mechanism process (2), can be extracted from the bottom code of the service logic with " bill validation " and
" being transmitted to investor " acts the keyword of corresponding code;
For traversing mechanism process (3), it can be extracted from the bottom code of the service logic and " upload investment instruction
To stock trader " act the keyword for corresponding to code;
For traversing mechanism process (4), can be extracted and " remitting money to bank " from the bottom code of the service logic
Act the keyword of corresponding code.
Then the corresponding target keywords of each target mechanism and target detection data are programmed into preset electronic table,
Form the corresponding table data of each target mechanism;
It should be noted that Excel table is computer digital animation software most mature at present, Excel function wraps altogether
Containing 11 classes, it is database functions respectively, date and time function, engineering function, Finance Function in Financial, information function, logical function, looks into
It askes and referencing function, mathematics and trigonometric function, statistical function, text functions and User-Defined Functions.Therefore, in order to
Facilitate and survey everybody member's prompt operation, the preferred Excel table of the present embodiment wraps certainly as the preset electronic table, by Excel
The corresponding target keywords of each target mechanism and target detection data are programmed into Excel by 11 class functions contained, the present embodiment
In electrical form, the corresponding Excel table data of each target mechanism are formed, while cooperating the use of Excel function, each target
It can be associated between the corresponding Excel table data of mechanism.
Step S502: according to the test logic and it is based on the corresponding target detection of preset electronic table Zhong Ge target mechanism
Data test the market risk application software.
In the concrete realization, according to the test logic and based on the corresponding table data of each target mechanism to the bill
Financing application software is tested.
Specifically, the test logic includes test desired value;According to the test logic and it is based on each target mechanism
Corresponding table data respectively test corresponding mechanism process, obtain the test result of each mechanism process, the test knot
Fruit is indicated with a numerical value;
The sum of the test result of each mechanism process is added, and will add up and be compared with the test desired value, in institute
The difference between sum and the test desired value is stated when whether being in default error threshold range, determines that the bill melts
The basic current test of money application software passes through.
Test desired value is generally the value intentionally got in this test, and test desired value can be according to the need of tester
Self-setting is sought, if be not much different between the value that the obtained result data of test and data are intentionally got, shows to test
Success, bottom code relevant to the basic flow of the market risk application software do not have logical problem or code vulnerabilities;If
It differs larger between the value that the obtained result data of test and data are intentionally got, then shows test crash, software development people
Member needs to carry out the bottom source code of the test application further perfect
Further, the present embodiment may be that a process error threshold is respectively set in the test result of each mechanism process
Value, the test result of a mechanism process is compared with the process error threshold, sees whether comparison result is in default mistake
Poor threshold range, if so, decision mechanism's flow testing passes through;If it is not, then determining that the corresponding bottom code of mechanism process is deposited
In logical problem or code vulnerabilities, software developer needs to carry out the bottom code of the mechanism process further perfect.
Further, after step S50, further includes: to the market risk application software in the Excel table
Test result be shown, such tester can check test result, while tester can also be right at the first time
The state of market risk software operation is inquired
In addition, Fig. 4 is a kind of structural block diagram of the test device of market risk application software of the present invention, described with reference to Fig. 4
Test device includes:
Decomposing module 10 decomposes for the basic flow to market risk application software to be tested, obtains multiple machines
Structure process, the basic flow characterizes the basic process that market risk is realized when the market risk application software is used, described
Basic process includes different mechanism processes;
Module 20 is obtained, for obtaining the test logic of the basic flow, is determined according to the test logic described basic
The processing sequence of different institutions process in stream;
Spider module 30 is obtained and is traversed for successively traversing to each mechanism process according to the processing sequence
The corresponding target mechanism of mechanism process;
Matching module 40, for according to the service logic and the target mechanism that traverses from default test data set
Match corresponding target detection data;
Test module 50, for according to the test logic and being based on each mesh after each mechanism process is traversed and finishes
The corresponding target detection data of mark mechanism test the market risk application software.
It will be appreciated that the test device of the market risk application software of the present embodiment can be one kind for melting to bill
The test software that money application software is tested, is loaded into above-mentioned test terminal.
Above-mentioned test terminal can by test interface 1004 be equipped with the terminal device of market risk application software into
Row connection, when tester uses above-mentioned test terminal, test terminal calls the test device to market risk application software
It is tested.
The specific embodiment of the test device of the present embodiment please refers to above-mentioned test method embodiment, and the present embodiment is herein
It will not go into details.
In addition, the embodiment of the present invention also proposes a kind of storage medium, it is stored on the storage medium for market risk
The test program of application software, the test program for market risk application software realize institute as above when being executed by processor
The step of stating the test program method for market risk application software.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention 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 (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer is whole
End, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of test method of market risk application software, which is characterized in that the test method the following steps are included:
The basic flow of market risk application software to be tested is decomposed, multiple mechanism processes, the basic flow table are obtained
The basic process that market risk is realized when the market risk application software is used is levied, the basic process includes different machines
Structure process;
The test logic for obtaining the basic flow determines the place of different institutions process in the basic flow according to the test logic
Make sequence in order;
Successively each mechanism process is traversed according to the processing sequence, obtains the corresponding target machine of mechanism process traversed
Structure;
Corresponding target is matched from default test data set according to the service logic and the target mechanism traversed to survey
Try data;
After each mechanism process is traversed and finishes, according to the test logic and it is based on the corresponding target detection of each target mechanism
Data test the market risk application software.
2. the method as described in claim 1, which is characterized in that described according to the service logic and the target mechanism traversed
Corresponding target detection data are matched from default test data set, comprising:
Obtain the corresponding bottom code of the service logic, the machine for extracting and traversing from the bottom code of the service logic
The corresponding composite key of structure process;
Corresponding target is matched from default test data set according to the composite key and the target mechanism traversed
Test data.
3. the method as described in claim 1, which is characterized in that it is described after each mechanism process is traversed and finishes, according to institute
It states test logic and the market risk application software is tested based on each target mechanism corresponding target detection data, wrap
It includes:
After each mechanism process is traversed and finishes, by the corresponding target detection data of different target mechanism respectively according to the industry
Business logic is programmed into preset electronic table;
According to the test logic and based on the corresponding target detection data of preset electronic table Zhong Ge target mechanism to the ticket
It is tested according to financing application software.
4. method as claimed in claim 3, which is characterized in that described by the corresponding target detection data point of different target mechanism
It is not programmed into preset electronic table according to the service logic, comprising:
Multiple keywords are extracted from the bottom code of the service logic, the target for determining and traversing from multiple keywords
The corresponding target keywords of mechanism;
The corresponding target keywords of each target mechanism and target detection data are programmed into preset electronic table, are formed each
The corresponding table data of target mechanism;
It is described according to the test logic and based on the corresponding target detection data of preset electronic table Zhong Ge target mechanism to institute
Market risk application software is stated to be tested, comprising:
The market risk application software is carried out according to the test logic and based on each target mechanism corresponding table data
Test.
5. method as claimed in claim 4, which is characterized in that the test logic includes test desired value;
It is described according to the test logic and based on the corresponding table data of each target mechanism to the market risk application software
It is tested, comprising:
Corresponding mechanism process is surveyed respectively according to the test logic and based on the corresponding table data of each target mechanism
Examination, obtains the test result of each mechanism process, the test result is indicated with a numerical value;
The sum of the test result of each mechanism process is added, and will add up and be compared with the test desired value, in the phase
In addition when and the difference between the test desired value whether is in default error threshold range, determine that the market risk is answered
Passed through with the basic current test of software.
6. the method according to claim 1 to 5, which is characterized in that the default test data set includes record in advance
The test data and preset relation entered, the preset relation is characterized as different service logics and different target mechanisms is one
It is whole that there are mapping relations with the test data.
7. as the method according to claim 1 to 6, which is characterized in that the preset electronic table is Excel table;
It is described according to the test logic and based on the corresponding target detection data of each target mechanism to the market risk application
After software is tested, further includes:
The test result of the market risk application software is shown in the Excel table.
8. a kind of test device of market risk application software, which is characterized in that the test device includes:
Decomposing module is decomposed for the basic flow to market risk application software to be tested, obtains multiple mechanism processes,
The basic flow characterizes the basic process that market risk is realized when the market risk application software is used, the basic process
Including different mechanism processes;
Module is obtained to be determined in the basic flow not for obtaining the test logic of the basic flow according to the test logic
With the processing sequence of mechanism process;
Spider module obtains the mechanism stream traversed for successively traversing to each mechanism process according to the processing sequence
The corresponding target mechanism of journey;
Matching module, for being matched from default test data set according to the service logic and the target mechanism traversed
Corresponding target detection data;
Test module, for according to the test logic and being based on each target mechanism after each mechanism process is traversed and finishes
Corresponding target detection data test the market risk application software.
9. a kind of test terminal, which is characterized in that the test terminal includes: memory, processor and is stored in the storage
On device and the test program for market risk application software that can run on the processor, the market risk is using soft
The test program of part is arranged for carrying out the test method of the market risk application software as described in any one of claims 1 to 7
The step of.
10. a kind of storage medium, which is characterized in that be stored with the test for market risk application software on the storage medium
Program is realized when the test program for market risk application software is executed by processor as any in claim 1 to 7
The step of test method of the item market risk application software.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811605217.XA CN109800157A (en) | 2018-12-26 | 2018-12-26 | Test method, device, terminal and the storage medium of market risk application software |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811605217.XA CN109800157A (en) | 2018-12-26 | 2018-12-26 | Test method, device, terminal and the storage medium of market risk application software |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109800157A true CN109800157A (en) | 2019-05-24 |
Family
ID=66557760
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811605217.XA Pending CN109800157A (en) | 2018-12-26 | 2018-12-26 | Test method, device, terminal and the storage medium of market risk application software |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109800157A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2351990A1 (en) * | 2001-06-26 | 2002-12-26 | Ibm Canada Limited-Ibm Canada Limitee | Rule based engine for validating financial transactions |
| US7039899B1 (en) * | 2002-03-27 | 2006-05-02 | Oracle International Corporation | System and method for automatically generating a script for testing software |
| CN107832231A (en) * | 2017-12-05 | 2018-03-23 | 郑州云海信息技术有限公司 | A kind of system detection method, device and medium |
| CN108710569A (en) * | 2018-05-09 | 2018-10-26 | 深圳壹账通智能科技有限公司 | Test cases generation method, data creation method, device, equipment and medium |
-
2018
- 2018-12-26 CN CN201811605217.XA patent/CN109800157A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2351990A1 (en) * | 2001-06-26 | 2002-12-26 | Ibm Canada Limited-Ibm Canada Limitee | Rule based engine for validating financial transactions |
| US7039899B1 (en) * | 2002-03-27 | 2006-05-02 | Oracle International Corporation | System and method for automatically generating a script for testing software |
| CN107832231A (en) * | 2017-12-05 | 2018-03-23 | 郑州云海信息技术有限公司 | A kind of system detection method, device and medium |
| CN108710569A (en) * | 2018-05-09 | 2018-10-26 | 深圳壹账通智能科技有限公司 | Test cases generation method, data creation method, device, equipment and medium |
Non-Patent Citations (2)
| Title |
|---|
| 张杲轩;张谊;李春雷;: "基于脚本的自动化软件测试框架", 太赫兹科学与电子信息学报, no. 05 * |
| 高青娟;陈立潮;张英俊;潘理虎;谢斌红;: "一种关键字驱动的Java API自动测试框架", 计算机技术与发展, no. 08 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106844217B (en) | Method and device for embedding point of applied control and readable storage medium | |
| Utting et al. | Practical model-based testing: a tools approach | |
| US8893089B2 (en) | Fast business process test case composition | |
| US9697108B2 (en) | System, method, and apparatus for automatic recording and replaying of application executions | |
| CN109840206A (en) | Data test method, apparatus, terminal and storage medium | |
| CN108614777A (en) | A kind of financial transaction test system and test method based on actual services | |
| CN110990274A (en) | Data processing method, device and system for generating test case | |
| CN112559355B (en) | Method and device for generating test case, electronic equipment and storage medium | |
| CN105930259A (en) | Method and apparatus for WEB regression testing | |
| US20250252434A1 (en) | Development environment for payment solutions using software-defined card processing | |
| US20080066005A1 (en) | Systems and Methods of Interfacing with Enterprise Resource Planning Systems | |
| CN112579475A (en) | Code testing method, device, equipment and readable storage medium | |
| CN117009972A (en) | Vulnerability detection method, vulnerability detection device, computer equipment and storage medium | |
| US20130024846A1 (en) | Real-Time Code Coverage Results in AD-HOC Testing | |
| US20070061641A1 (en) | Apparatus and method for generating test driver | |
| CN112905451A (en) | Automatic testing method and device for application program | |
| US20090327971A1 (en) | Informational elements in threat models | |
| CN107430590A (en) | Data compare | |
| CN112381509A (en) | Management system for major special topic of national science and technology for creating major new drug | |
| CN115952079A (en) | Method and system for recording mobile application automation behaviors and analyzing and positioning defects | |
| CN112328504A (en) | Buried point data inspection method, device, system, computer equipment and storage medium | |
| CN119357060A (en) | Unit test case generation method, device, equipment and medium | |
| CN109800157A (en) | Test method, device, terminal and the storage medium of market risk application software | |
| CN110704533A (en) | False news monitoring method based on block chain and voting mechanism | |
| Liu et al. | A formal approach to testing programs in practice |
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 | ||
| AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240621 |
|
| AD01 | Patent right deemed abandoned |