CN109872230A - The test method of finance data analysis system, device, medium, electronic equipment - Google Patents
The test method of finance data analysis system, device, medium, electronic equipment Download PDFInfo
- Publication number
- CN109872230A CN109872230A CN201910063905.6A CN201910063905A CN109872230A CN 109872230 A CN109872230 A CN 109872230A CN 201910063905 A CN201910063905 A CN 201910063905A CN 109872230 A CN109872230 A CN 109872230A
- Authority
- CN
- China
- Prior art keywords
- file
- test
- analysis system
- target detection
- test report
- 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.)
- Granted
Links
- 238000007405 data analysis Methods 0.000 title claims abstract description 109
- 238000010998 test method Methods 0.000 title claims abstract description 13
- 238000012360 testing method Methods 0.000 claims abstract description 195
- 238000004458 analytical method Methods 0.000 claims abstract description 100
- 238000001514 detection method Methods 0.000 claims abstract description 74
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000013507 mapping Methods 0.000 claims description 9
- 235000013399 edible fruits Nutrition 0.000 claims description 5
- 230000004044 response Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 12
- 230000008901 benefit Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Abstract
The present invention relates to cloud the field of test technology, disclose test method, device, medium and the electronic equipment of a kind of finance data analysis system.This method comprises: obtaining target detection item;And the matched data file of the target detection item and the first analysis destination file corresponding with the data file is obtained from file backup space;The data file is inputted into finance data analysis system, so as to finance data analysis system output the second analysis destination file corresponding with the data file;The second analysis destination file is obtained, and is compared with the first analysis destination file to obtain comparison result;Test report is automatically generated according to the comparison result.Under the method, it is only necessary to allow user's input test target item just to obtain matched data file and the first analysis destination file, and be tested and generated test report automatically, improve the efficiency and accuracy rate tested finance data analysis system.
Description
Technical field
This disclosure relates to cloud testing field, in particular to a kind of test method of finance data analysis system, device, medium
And electronic equipment.
Background technique
In modern society, with the development of financial circles and scientific and technological industry, the financial business dependent on data analysis is increasingly
It is more, for this purpose, develop can be to the system that finance data is analyzed for many companies.In order to safeguard finance data analysis system, pass through
Often iteration is updated to it.On the one hand, since social development is maked rapid progress, to meet continually changing user and business
Demand needs constantly to finance data analysis system iteration, to improve product competitiveness;On the other hand, in order to repair new discovery
Loophole or defect, it is also desirable to product is iterated.So update iteration is to maintain, finance data analysis system is stable to be good for
The necessary means of Kang Yunhang.After being updated iteration to finance data analysis system, need to updated finance data point
Analysis system is tested, to guarantee that finance data analysis system can still operate normally after updating.
In the realization of the prior art, in order to test finance data analysis system, generally use at present artificial mode into
Row obtains data file and analysis destination file from system, then tests finance data analysis system.
Drawback of the prior art is that testing finance data analysis system in most cases all by artificial mode
It is inefficiency, and often since the data file mistake selected causes the accuracy rate of test result lower.
Summary of the invention
It is low in order to solve to exist in the related technology finance data analysis system testing efficiency in cloud the field of test technology
Technical problem, the present invention provides test method, device, medium and the electronic equipments of a kind of finance data analysis system.
According to the one side of the application, a kind of test method of finance data analysis system is provided, which comprises
Obtain target detection item;
From file backup space obtain with the matched data file of the target detection item and with the data file
Corresponding first analysis destination file, the file backup space is for storing what finance data analysis system in history was analyzed
Data file and to the analysis destination file obtained after the data file analysis;
By the data file input finance data analysis system, so as to the finance data analysis system output with it is described
The corresponding second analysis destination file of data file;
The second analysis destination file is obtained, and is compared with the first analysis destination file to obtain and compare knot
Fruit;
Test report is automatically generated according to the comparison result.
According to the another aspect of the application, a kind of test device of finance data analysis system, described device packet are provided
It includes:
First obtains module, is configured as obtaining target detection item;
Second obtains module, is configured as obtaining from file backup space and the matched data text of the target detection item
Part and the first analysis destination file corresponding with the data file;
Input module is configured as the data file inputting finance data analysis system, so as to the finance data
Analysis system output the second analysis destination file corresponding with the data file;
Comparison module, is configured as obtaining the second analysis destination file, and with the first analysis destination file into
Row is compared to obtain comparison result;
Test report generation module is configured as automatically generating test report according to the comparison result.
According to the another aspect of the application, a kind of computer-readable program medium is provided, computer program is stored with
Instruction makes computer execute foregoing method when the computer program instructions are computer-executed.
According to the another aspect of the application, a kind of electronic equipment is provided, the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing
When device executes, foregoing method is realized.
The technical solution that the embodiment of the present invention provides can include the following benefits:
The test method of finance data analysis system provided by the present invention includes the following steps, obtains target detection item;
It is obtained from file backup space and the matched data file of the target detection item and corresponding with the data file the
One analysis destination file, the file backup space is for storing the data file that finance data analysis system was analyzed in history
And to the analysis destination file obtained after the data file analysis;The data file is inputted into finance data analysis system,
So as to finance data analysis system output the second analysis destination file corresponding with the data file;Obtain described second
Destination file is analyzed, and is compared with the first analysis destination file to obtain comparison result;According to the comparison result
Automatically generate test report.
Under the method, it is only necessary to user's input test target item be allowed just to obtain matched data file and the first analysis result
File, and test report is tested and generated automatically, improve the efficiency and standard tested finance data analysis system
True rate.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the application scenarios signal of the test method of finance data analysis system shown according to an exemplary embodiment
Figure;
Fig. 2 is a kind of flow chart of the test method of finance data analysis system shown according to an exemplary embodiment;
Fig. 3 is the step 220 of the embodiment shown in corresponding embodiment according to fig. 2 to the details flow chart of step 250;
Fig. 4 is the details flow chart according to the step 250' of the embodiment shown in Fig. 3 corresponding embodiment;
Fig. 5 is the details flow chart of the step 210 of another embodiment shown in corresponding embodiment according to fig. 2;
Fig. 6 is a kind of test device block diagram of finance data analysis system shown according to an exemplary embodiment;
Fig. 7 is a kind of electronic equipment example block diagram for realizing the above method shown according to an exemplary embodiment;
Fig. 8 is a kind of computer readable storage medium for realizing the above method shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function
Energy entity, not necessarily must be corresponding with physically or logically independent entity.
The disclosure provides firstly a kind of test method of finance data analysis system.Finance data can be any system
The information carrier for the financial field can analyze it, evaluate, handled that either user generates or inputs.It is specific thin
Point field can include but is not limited to stock, bond, fund, financing, foreign exchange etc..Such as according to the financial statement of listed company point
The share price of listed company is analysed, then the data in the financial statement are finance data;For another example, estimated according to domestic economic operation data
Mutual fund earnings trend is counted, then the domestic economic operation data may be finance data;Finance data analysis system is can be right
The system that finance data is analyzed and handled, way of realization include but is not limited to software, hardware, firmware it is arbitrary a kind of or
Any two or more combination of person.Finance data analysis system can run or be fixed on and including but not limited to service
Device, computer equipment, laptop, smart phone, work station, on-site terminal etc. be any to be had and divides finance data
The device or equipment of analysis, operation or processing, can also be the various server architectures such as cloud computing.Since people are to product function
Demand is higher and higher and the needs of the aggravation of commercial competition and security improvement, be often required to carry out finance data analysis system
Iteration upgrading, every time after upgrading, due to the change of system framework, software or service logic, the system of can frequently result in is had intention
Less than defect, in order to avoid by defective finance data analysis system launch bring about great losses, so will be to liter
Finance data analysis system after grade is tested.
The implementation environment of the disclosure can be portable mobile equipment, such as smart phone, tablet computer, laptop
Deng being also possible to various fixed apparatus, for example, computer equipment, on-site terminal, desktop computer, server, work station etc..
Fig. 1 is the application scenarios signal of the test method of finance data analysis system shown according to an exemplary embodiment
Figure.In the application scenarios of embodiment as shown in Figure 1, implementation terminal of the invention is desktop computer 110, finance data analysis
System is fixed and is operated in central server 120, and desktop computer 110 can with where finance data analysis system in
Central server 120 carries out two-way data transfer communications, and the finance data analysis system on central server 120 can be to other
The finance data that server 130 generates is analyzed, and corresponding to be sent to file standby by the data analyzed and analysis result
Part stores in space 140, and it is any non-that the storage medium in actual scene can be hard disk, disk, flash memory, flash array etc.
Volatile storage medium.
It is understood that each constituent element is only a reality of the disclosure with correlation in application scenarios shown in figure 1
Example is applied, any type of limitation should not be constituted to the protection scope of the disclosure.
Fig. 2 is a kind of flow chart of the test method of finance data analysis system shown according to an exemplary embodiment.
As shown in Figure 2, comprising the following steps:
Step 210, target detection item is obtained.
Test item is the key that the artificial defined function, performance or operating status that can reflect finance data analysis system
Word or phrase, and target detection Xiang Ze is that user is summed up for originally secondary to what finance data analysis system was tested
Function, performance or operating status keyword or phrase.
In one embodiment, implementation terminal of the invention has the input equipments such as screen, keyboard, Trackpad, mouse, user
Target detection item is inputted to implementation terminal of the invention by these input equipments, realizes the obtaining target detection item of the task.
In one embodiment, it is equipped with network interface card in implementation terminal of the invention, can be carried out with external equipment or terminal
Communication, when user is after its terminal inputs target detection item, which passes through wireline communication network or wireless communication networks
Network sends the target detection item to implementation terminal of the invention, has achieved the purpose that obtain target detection item.
In one embodiment, user has input multiple test items, and implementation terminal of the invention is suitable according to the input of user
Sequence, first test item being inputted is as target detection item.
Step 220, from file backup space obtain with the matched data file of the target detection item and with it is described
The corresponding first analysis destination file of data file.
The file backup space is used to store finance data analysis system was analyzed in history data file and right
The analysis destination file obtained after the data file analysis.
File backup space is to claim in the generation of any non-volatile memory medium that can be used for storage file.Specifically, may be used
To be disk, mechanical hard disk, solid state hard disk, cloud storage framework, flash memory etc., file organization form can be file system, number
According to library etc..
Data file and analysis destination file can be stored in information on non-volatile memory medium or data
Set can only have a data, can also exist simultaneously a plurality of data in a data file or analysis destination file.
In one embodiment, finance data analysis system to from other systems or user input data file into
After row analysis, analysis destination file is obtained, and the input data analyzed and corresponding analysis result correspondence are stored in text
In part backup space.The advantage of this embodiment is that ensure that the data file and analysis knot that file backup space is stored
The integrality of fruit file.
In one embodiment, finance data analysis system to from other systems or user input data file into
After row analysis, obtain analysis destination file, and be all sent to user terminal, according to user to the data file in its terminal with
And the operational order of analysis destination file, the data file of user's selection and analysis destination file are stored in file backup sky
Between in.The advantage of this embodiment is that being reduced by selectively storing data file and corresponding analysis destination file
The pressure of the bandwidth in file backup space improves the data file stored in file backup space and analysis destination file
Quality, improve the utilization rate of file backup space institute storage content.
In one embodiment, the present invention implements the matching pair that all test items and data file identification are stored in terminal
It should be related to, and not only be stored with data file and the first analysis result corresponding with the data file in file backup space
File is also stored with mark corresponding with data file, according to the target detection item, obtains the mark of matched data file, so
Data file corresponding with the mark and corresponding first analysis destination file are obtained in file backup space afterwards.
Step 230, the data file is inputted into finance data analysis system, so that the finance data analysis system is defeated
The second analysis destination file corresponding with the data file out.
As previously mentioned, finance data analysis system is the system that can be analyzed finance data and be handled.Work as finance
Data file of its opposite input of data analysis system analyze and handle, and after obtaining analysis result data, automatically wound
Analysis destination file is built, and the analysis result data obtained is written among the analysis destination file.
Step 240, the second analysis destination file is obtained, and is compared with the first analysis destination file to obtain
Comparison result out.
In one embodiment, the second analysis result corresponding with the data file of finance data analysis system output
File is sent directly to implementation terminal of the invention.
In another embodiment, it is embedded with a script in implementation terminal of the invention, when finance data analysis system
After output the second analysis destination file, which can crawl the second analysis destination file.
In one embodiment, it by the way that the character one by one of record hereof is compared, is analyzed with realizing first
Destination file and second analysis destination file comparison, discovery there are two it is inconsistent when, just obtain inconsistent comparison result.
In one embodiment, by the way that the character after the specific character string recorded hereof is compared, to realize
Comparison to the first analysis destination file and the second analysis destination file.
Since the update of finance data analysis system is possible to will lead to the analysis destination file form of output or format
Variation and text or symbol delete, in this case if compared all characters in analysis destination file
It is right, it will lead to comparison result mistake.So the advantage of this embodiment is that being reduced to a certain extent due to above-mentioned kind
A possibility that comparison result mistake caused by kind factor.
Step 250, test report is automatically generated according to the comparison result.
In one embodiment, it is previously provided with keyword and corresponding relation database is reported in standard testing, first extract and compare
As a result the keyword in obtains standard testing report corresponding with the keyword, then will then by searching for the database
Specific part in the comparison result coverage criteria test report, to generate test report.
In one embodiment, standard testing report in comprising editable part and can not edit segment, if by compare tie
Editable part in fruit coverage criteria test report produces test report, and the present embodiment is by covering the comparison result
Editable part in lid standard testing report, to generate test report.
In one embodiment, the part in test report between specific character is first determined, then by by the comparison
As a result the part between the specific character in coverage criteria test report, to generate test report.
In one embodiment, test report is automatically generated according to the comparison result, comprising:
Obtain test report template;Comparison result is input to the test report template to generate test report.
Test report template is the fixed format of test report, including but not limited to picture, text, character, formula, function
Image etc., its specific existence form includes but is not limited to the formats such as html, PDF in practical applications.
In one embodiment, all test report use a test report template, and are recorded in a data text
In part, test report template is obtained by way of reading the data file.
In one embodiment, different test report templates, different test report templates can be used in different test report
Be recorded in different data files, by different data file optional one be read out, to obtain test report mould
Plate.
In one embodiment, the portion limited by the way that comparison result to be replaced to the specific character in the test report template
Divide to generate test report.Such as in a test report, there are two the part by character definition, respectively Shi &XXXX& and *
XXXX*, then corresponding comparison result is divided into two parts, is limited respectively by character & and character *, then can be according to character
Position by comparison result replace with the specific character in the test report template restriction part to generate test report.
In one embodiment, the part of identical character definition is not only replaced, but also replace and to be replaced
Part defined by the relevant character of character.
It is understood that comparison result to be replaced to the tool of the part of the restriction of the specific character in the test report template
Body implementation be not limited to as described above those of, the character for restriction can have one, can also have it is multiple, compare knot
Fruit can replace uses part defined by character identical with the comparison result is limited in the test report template,
It can replace and use part defined by character relevant to the comparison result is limited, this public affairs in the test report template
The protection scope opened not should be the concrete form institute of the part of the restriction of the specific character in comparison result replacement test report template
Limit.
The advantage of this embodiment is that providing one preferably how to automatically generate test report according to comparison result
Solution improves the formation efficiency of test report.
In one embodiment, used test item is all stored in when testing every time finance data analysis system
In the log of the finance data analysis system, in step 210, obtain target detection item, comprising: obtain current time it
Test item present in the log of the finance data analysis system in preceding predetermined amount of time, as target detection item undetermined;It obtains
Take the number of each target detection item undetermined;Each target detection item undetermined is ranked up from big to small according to the number, and
It is pushed according to described sort to user;The target detection item undetermined for receiving user's selection, as target detection item.
Obtain test report template, comprising: obtain test report template according to multiple target detection items undetermined of acquisition.
In one embodiment, test report template is obtained according to multiple target detection items undetermined of acquisition, comprising:
It is corresponding that the multiple target detection item undetermined is obtained from preset test item and score and weight mapping table
Score and weight;
Based on the corresponding score of the multiple target detection item undetermined and weight, the multiple target detection undetermined is calculated
The weighted sum of item;
In preset weighted sum section and test report template mapping table, added according to belonging to the weighted sum of acquisition
Power and section obtain test report template.
In one embodiment, preset test item is that user builds in the following way with score and weight mapping table
Vertical: classify to all test items;It is that identical weight is arranged in each class testing item according to the class assigned to, is each test item
Score is set, to establish test item and score and weight mapping table.
In one embodiment, the weighted sum section according to belonging to the weighted sum of acquisition obtains test report template, packet
It includes: in preset weighted sum section and test report template mapping table, determining and weighting belonging to the weighted sum of acquisition
Test report template corresponding with section, as the test report template to be obtained.
In one embodiment, empirically established test report template and the corresponding of target detection item undetermined are closed in advance
It is table, the corresponding one or more target detection items undetermined of each test report template, according to multiple target detections undetermined of acquisition
Obtain test report template, comprising: the most test report template of corresponding target detection item undetermined is obtained, as obtaining
Test report template.
The advantage of this embodiment is that since the corresponding target detection item undetermined of the test report template to be obtained is most,
Illustrate that the versatility of the test report template is preferable, therefore is adapted to the possibility of the test report template as target detection item
Property it is maximum, ensure that the test report template of acquisition has good applicability.
In one embodiment, empirically established test report template and the corresponding of target detection item undetermined are closed in advance
It is table, the corresponding one or more target detection items undetermined of each test report template, according to multiple target detections undetermined of acquisition
Obtain test report template, comprising: the corresponding test report template of multiple target detection items undetermined that will acquire is according to correspondence
The number of target detection item undetermined be ranked up from big to small, and shown to user so that user selects according to the sequence
It selects, using the test report template that user selects as the test report template to be obtained.
The advantage of this embodiment is that obtaining test report template by way of allowing user to select, acquisition is improved
The accuracy of test report template, meanwhile, the present embodiment is by each test report template according to corresponding target detection item undetermined
Number be ranked up from big to small, to allow user to carry out selection, since the number of corresponding target detection item undetermined is got over
Greatly, illustrate that a possibility that test report template meets the requirements is higher, therefore embodiment improves users in multiple test report
Efficiency when being selected in template.
How Fig. 3 tests finance data analysis system to when having multiple with the matched data file of target detection item
Provide the explanation of an embodiment.Fig. 3 is the step 220 of the embodiment shown in corresponding embodiment according to fig. 2 to step 250
Details flow chart.As shown in Figure 3, comprising the following steps:
Step 220', from file backup space automatically obtain with the matched multiple data files of the target detection item with
And multiple first analysis destination files corresponding with multiple data files.
In one embodiment, data file is the minimum unit that finance data analysis system is analyzed and handled, needle
To each data file, finance data analysis system is only capable of output one first analysis result text corresponding with the data file
Part.So in the present embodiment, data file and the first analysis destination file correspond.
Multiple data files are inputted finance data analysis system by step 230' respectively, so as to finance data analysis
System output corresponding with multiple data files multiple second analyzes destination file respectively.
In one embodiment, as described above, data file is that finance data analysis system is analyzed and handled most
Subsection.So finance data analysis system can be directed to each number when multiple data files are inputted finance data analysis system
Corresponding analysis destination file is exported according to file, and then obtains multiple second analysis results corresponding with multiple data files respectively
File.
Step 240', obtain it is multiple second analysis destination files, and respectively with it is multiple first analysis destination files in institute
The corresponding first analysis destination file of the second analysis destination file is stated to be compared to obtain multiple comparison results.
Step 250' automatically generates test report according to multiple comparison results.
In one embodiment, a test report is generated for each comparison result.
In one embodiment, all multiple comparison results are enumerated in test report, is ultimately generated comprising multiple ratios
To the test report of result.
In one embodiment, the comparison result is one in consistent or inconsistent, basis described in step 250'
The step of multiple comparison results automatically generate test report is as shown in Figure 4.Fig. 4 is real according to one shown in Fig. 3 corresponding embodiment
Apply the details flow chart of the step 250' of example.As shown in figure 4, step 250' includes following sub-step:
Step 2501' obtains the number of comparison result in multiple comparison results, as the first number.
In one embodiment, it is equipped with counter in implementation terminal of the invention, the number of comparison result can be counted.When
As soon as often judging there is a comparison result in the comparison result obtained, counter adds 1.
Step 2502' obtains the number that comparison result in multiple comparison results is consistent comparison result, as the second number
Mesh.
Step 2503' calculates the ratio of first number and second number.
Step 2504', when the ratio is greater than predetermined ratio threshold value, generating content is the test report that test passes through.
In one embodiment, wherein it is consistent first point that the test report that the test passes through, which further includes comparison result,
Analyse destination file, the second analysis destination file, data text corresponding with the first analysis destination file and the second analysis destination file
The title and store path of part and target detection item with the data file matches.
Step 2505', when the ratio is not more than predetermined ratio threshold value, generating content is to test unacceptable test report
It accuses.
Wherein, it is the first inconsistent analysis result text that the unacceptable test report of test, which further includes comparison result,
Part, the second analysis destination file, the title for analyzing with the first analysis destination file and second the corresponding data file of destination file
With store path and with the target detection item of the data file matches.
It should be pointed out that test passes through and tests not by being only one embodiment, embody mode and
The form of expression be not limited to the present embodiment it is shown these, as long as its content record can express to test to pass through and test and not pass through
These meanings.
In one embodiment, the finance data analysis system updates every time can all generate Update log, every time to institute
It states finance data analysis system and test and test item used in this test can be stored in test record, step 210
Detailed process as shown in figure 5, Fig. 5 is the details process of the step 210 of another embodiment shown in corresponding embodiment according to fig. 2
Figure.As shown in figure 5, step 210 includes following sub-step:
Step 211, the finance data analysis system renewal time nearest apart from current time is obtained.
In one embodiment, each finance data analysis system updates, and more new content and renewal time will record
In the log of the finance data analysis system, script, available finance data analysis are embedded in implementation terminal of the invention
Then the log of system determines the difference of the renewal time of current time and each finance data analysis system, the difference is minimum
Renewal time nearest apart from current time as finance data analysis system renewal time.
In one embodiment, each finance data analysis system updates, and more new content and renewal time will record
In the log of the finance data analysis system, and serial number is set for the renewal time of each finance data analysis system, serial number is got over
Greatly, renewal time is closer, is embedded with script in implementation terminal of the invention, the log of available finance data analysis system,
Obtain serial number maximum renewal time, the renewal time nearest apart from current time as finance data analysis system.
Step 212, the time difference of the current time Yu the nearest renewal time is determined.
Step 213, when the time difference being less than predetermined time difference threshold value, the finance data analysis system is obtained most
A nearly Update log.
Step 214, from the last update log of acquisition, keyword is extracted.
Step 215, according to the keyword to user's automatic prompt recommend test item for user select, so as in response to
Family selects triggering to obtain recommendation test item as target detection item.
In one embodiment, the specific implementation step of step 215 is as follows: to establish and test item and Update log is recommended to close
The mapping table of keyword;The recommendation test item for being used for automatic prompt by inquiring mapping table acquisition;In response to obtaining
To the triggering of the recommendation test item for automatic prompt, load energy automatic prompt recommends the page of test item;In response to by being somebody's turn to do
The triggering of the selection for the user that the page receives obtains the recommendation test item of user's selection, as target detection item.
Step 216, when the time difference being not less than predetermined time difference threshold value, the finance data analysis system is obtained
Test record within a predetermined period of time.
Test record is the information for characterizing finance data analysis system history test case, may include test
Test item, test result, testing time etc..
In one embodiment, the test record of finance data analysis system is corresponding with the corresponding testing time is stored in gold
Melt in the log of data analysis system.Script, available finance data analysis system are embedded in implementation terminal of the invention
Log, then judge each testing time whether within a predetermined period of time;If it is, obtain in the log with the test
The test record of time corresponding finance data analysis system.
Step 217, in the test record of acquisition, for each test item in the test record, the survey is determined
Try the number of item.
In one embodiment, counter is equipped in implementation terminal of the invention, for each test item, whenever judging
As soon as stating there are the test item in test record, which adds 1, until having judged all surveys in the test record
Item is tried, the number of the test item is finally obtained.Number of each test item of counters count in the test record of acquisition,
Finally obtain the number of all test items.
Step 218, the most test item of the number is obtained, as target detection item.
In one embodiment, by first step of bubble sort, the most test item of the number is obtained.
In conclusion illustrating to select the test item as mesh if number of the test item in analysis record is bigger
A possibility that marking test item is higher.Therefore the advantage of this embodiment is that, improve the accuracy of the target detection item of acquisition.
It is the device of the invention embodiment below.
The disclosure additionally provides a kind of test device of finance data analysis system.Fig. 6 is according to an exemplary embodiment
A kind of test device block diagram of the finance data analysis system shown.As shown in fig. 6, device 600 includes:
First obtains module 610, is configured as obtaining target detection item;
Second obtains module 620, is configured as obtaining and the matched number of target detection item from file backup space
According to file and the first analysis destination file corresponding with the data file;
Input module 630 is configured as the data file inputting finance data analysis system, so as to the financial number
According to analysis system output the second analysis destination file corresponding with the data file;
Comparison module 640 is configured as obtaining the second analysis destination file, and analyzes destination file with described first
It is compared to obtain comparison result;
Test report generation module 650 is configured as automatically generating test report according to the comparison result.
According to the third aspect of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 700 of this embodiment according to the present invention is described referring to Fig. 7.The electronics that Fig. 7 is shown
Equipment 700 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 7, electronic equipment 700 is showed in the form of universal computing device.The component of electronic equipment 700 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 710, at least one above-mentioned storage unit 720, the different system components of connection
The bus 730 of (including storage unit 720 and processing unit 710).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 710
Row, so that various according to the present invention described in the execution of the processing unit 710 above-mentioned " embodiment method " part of this specification
The step of illustrative embodiments.
Storage unit 720 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 721 and/or cache memory unit 722, it can further include read-only memory unit (ROM) 723.
Storage unit 720 can also include program/utility 724 with one group of (at least one) program module 725,
Such program module 725 includes but is not limited to: operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.
Bus 730 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 700 can also be with one or more external equipments 900 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 700 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 700 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 750.Also, electronic equipment 700 can be with
By network adapter 760 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 760 is communicated by bus 730 with other modules of electronic equipment 700.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 700, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
According to the fourth aspect of the disclosure, a kind of computer readable storage medium is additionally provided, being stored thereon with can be real
The program product of existing this specification above method.In some possible embodiments, various aspects of the invention can also be real
It is now a kind of form of program product comprising program code, when described program product is run on the terminal device, the journey
Sequence code is each according to the present invention described in above-mentioned " illustrative methods " part of this specification for executing the terminal device
The step of kind illustrative embodiments.
Refering to what is shown in Fig. 8, describing the program product for realizing the above method of embodiment according to the present invention
800, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of test method of finance data analysis system, which is characterized in that the described method includes:
Obtain target detection item;
It is obtained from file backup space corresponding with the matched data file of the target detection item and with the data file
The first analysis destination file, the file backup space is for storing the data that finance data analysis system was analyzed in history
File and to the analysis destination file obtained after the data file analysis;
The data file is inputted into finance data analysis system, so as to finance data analysis system output and the data
The corresponding second analysis destination file of file;
The second analysis destination file is obtained, and is compared with the first analysis destination file to obtain comparison result;
Test report is automatically generated according to the comparison result.
2. the method according to claim 1, wherein more when having with the matched data file of target detection item
When a, it is described from file backup space obtain with the matched data file of the target detection item and with the data file
Corresponding first analysis destination file includes: that acquisition is matched multiple with the target detection item automatically from file backup space
Data file and multiple first analysis destination files corresponding with multiple data files;
It is described that the data file is inputted into finance data analysis system, so as to finance data analysis system output and the number
According to the corresponding second analysis destination file of file, comprising: multiple data files are inputted into finance data analysis system respectively, so as to
The finance data analysis system output corresponding with multiple data files multiple second analyzes destination file respectively;
It is described to obtain the second analysis destination file, and be compared with the first analysis destination file to obtain and compare knot
Fruit, comprising: obtain multiple second analysis destination files, and analyzed respectively in multiple first analysis destination files with described second
The corresponding first analysis destination file of destination file is compared to obtain multiple comparison results;
It is described that test report is automatically generated according to the comparison result, comprising: to automatically generate test report according to multiple comparison results
It accuses.
3. according to the method described in claim 2, it is characterized in that, the comparison result be it is consistent or inconsistent in one,
It is described to automatically generate test report according to multiple comparison results, comprising:
The number for obtaining comparison result in multiple comparison results, as the first number;
The number that comparison result in multiple comparison results is consistent comparison result is obtained, as the second number;
Calculate the ratio of first number and second number;
When the ratio is greater than predetermined ratio threshold value, generating content is the test report that test passes through;
When the ratio is not more than predetermined ratio threshold value, generating content is to test unacceptable test report, wherein the survey
Try unacceptable test report further include comparison result be inconsistent first analysis destination file, the second analysis destination file,
With the title and store path of the first analysis destination file and the second corresponding data file of analysis destination file and with it is described
The target detection item of data file matches.
4. the method according to claim 1, wherein described automatically generate test report according to the comparison result
It accuses, comprising:
Obtain test report template;
Comparison result is input to the test report template to generate test report.
5. according to the method described in claim 4, being made when it is characterized in that, testing every time finance data analysis system
Test item is all stored in the log of the finance data analysis system, the acquisition target detection item, comprising:
The test item present in the log of the finance data analysis system in predetermined amount of time before current time is obtained, is made
For target detection item undetermined;
Obtain the number of each target detection item undetermined;
Each target detection item undetermined is ranked up from big to small according to the number, and is pushed according to described sort to user;
The target detection item undetermined for receiving user's selection, as target detection item;
The acquisition test report template, comprising: obtain test report template according to multiple target detection items undetermined of acquisition.
6. according to the method described in claim 5, it is characterized in that, described obtain according to multiple target detection items undetermined of acquisition
Test report template, comprising:
The multiple corresponding point of target detection item undetermined is obtained from preset test item and score and weight mapping table
Several and weight;
Based on the corresponding score of the multiple target detection item undetermined and weight, the multiple target detection item undetermined is calculated
Weighted sum;
In preset weighted sum section and test report template mapping table, according to weighted sum belonging to the weighted sum of acquisition
Section obtains test report template.
7. the method according to claim 1, wherein the finance data analysis system updates every time can all generate
Update log tests the finance data analysis system test item used in testing this every time and is stored in survey
In trial record, the acquisition target detection item, comprising:
Obtain the finance data analysis system last update time nearest apart from current time;
Determine the time difference of the current time Yu the last update time;
When the time difference being less than predetermined time difference threshold value, the last update day of the finance data analysis system is obtained
Will;
From the last update log of acquisition, keyword is extracted;
Test item is recommended to select for user to user's automatic prompt according to the keyword, to trigger in response to the selection of user
It obtains and recommends test item as target detection item;
When the time difference be not less than predetermined time difference threshold value when, obtain the finance data analysis system in predetermined amount of time
Interior test record;
In all test records of acquisition, for each test item in test record, the number of the test item is determined;
The most test item of the number is obtained, as target detection item.
8. a kind of test device of finance data analysis system, which is characterized in that described device includes:
First obtains module, is configured as obtaining target detection item;
Second obtain module, be configured as from file backup space obtain with the matched data file of target detection item with
And the first analysis destination file corresponding with the data file;
Input module is configured as the data file inputting finance data analysis system, so as to finance data analysis
System output the second analysis destination file corresponding with the data file;
Comparison module is configured as obtaining the second analysis destination file, and is compared with the first analysis destination file
To obtain comparison result;
Test report generation module is configured as automatically generating test report according to the comparison result.
9. a kind of computer-readable program medium, which is characterized in that it is stored with computer program instructions, when the computer journey
When sequence instruction is computer-executed, computer is made to execute method according to any one of claim 1 to 7.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor
When row, method as described in any one of claim 1 to 7 is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910063905.6A CN109872230B (en) | 2019-01-23 | 2019-01-23 | Test method and device of financial data analysis system, medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910063905.6A CN109872230B (en) | 2019-01-23 | 2019-01-23 | Test method and device of financial data analysis system, medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109872230A true CN109872230A (en) | 2019-06-11 |
CN109872230B CN109872230B (en) | 2024-04-02 |
Family
ID=66917967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910063905.6A Active CN109872230B (en) | 2019-01-23 | 2019-01-23 | Test method and device of financial data analysis system, medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109872230B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143198A (en) * | 2019-12-10 | 2020-05-12 | 湖北大学 | Test data processing method and device |
CN113238958A (en) * | 2021-06-01 | 2021-08-10 | 广东好太太智能家居有限公司 | Automatic testing method and device for big data visualization platform and electronic equipment |
CN114691503A (en) * | 2022-03-22 | 2022-07-01 | 航天中认软件测评科技(北京)有限责任公司 | Test-oriented management method, device, equipment and medium |
CN116070214A (en) * | 2022-08-30 | 2023-05-05 | 荣耀终端有限公司 | Safety testing method and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236522A (en) * | 2008-01-25 | 2008-08-06 | 中兴通讯股份有限公司 | Hardware module test method and apparatus |
EP2328135A1 (en) * | 2009-11-27 | 2011-06-01 | Boris Singer | System of testing, analysing and reporting (STAR) |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
US9069904B1 (en) * | 2011-05-08 | 2015-06-30 | Panaya Ltd. | Ranking runs of test scenarios based on number of different organizations executing a transaction |
CN105426454A (en) * | 2015-11-12 | 2016-03-23 | 国网宁夏电力公司 | Method for detecting consistency of intelligent electronic equipment loop information and SCD file loop information |
US9317404B1 (en) * | 2011-05-08 | 2016-04-19 | Panaya Ltd. | Generating test scenario templates from test runs collected from different organizations |
US20160283344A1 (en) * | 2015-03-27 | 2016-09-29 | International Business Machines Corporation | Identifying severity of test execution failures by analyzing test execution logs |
CN107622014A (en) * | 2017-09-22 | 2018-01-23 | 广州视源电子科技股份有限公司 | Test report generation method, device, readable storage medium storing program for executing and computer equipment |
CN108604358A (en) * | 2015-12-11 | 2018-09-28 | 株式会社岛津制作所 | Analytical information management system |
-
2019
- 2019-01-23 CN CN201910063905.6A patent/CN109872230B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101236522A (en) * | 2008-01-25 | 2008-08-06 | 中兴通讯股份有限公司 | Hardware module test method and apparatus |
EP2328135A1 (en) * | 2009-11-27 | 2011-06-01 | Boris Singer | System of testing, analysing and reporting (STAR) |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
US9069904B1 (en) * | 2011-05-08 | 2015-06-30 | Panaya Ltd. | Ranking runs of test scenarios based on number of different organizations executing a transaction |
US9317404B1 (en) * | 2011-05-08 | 2016-04-19 | Panaya Ltd. | Generating test scenario templates from test runs collected from different organizations |
US20160283344A1 (en) * | 2015-03-27 | 2016-09-29 | International Business Machines Corporation | Identifying severity of test execution failures by analyzing test execution logs |
CN105426454A (en) * | 2015-11-12 | 2016-03-23 | 国网宁夏电力公司 | Method for detecting consistency of intelligent electronic equipment loop information and SCD file loop information |
CN108604358A (en) * | 2015-12-11 | 2018-09-28 | 株式会社岛津制作所 | Analytical information management system |
CN107622014A (en) * | 2017-09-22 | 2018-01-23 | 广州视源电子科技股份有限公司 | Test report generation method, device, readable storage medium storing program for executing and computer equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143198A (en) * | 2019-12-10 | 2020-05-12 | 湖北大学 | Test data processing method and device |
CN111143198B (en) * | 2019-12-10 | 2023-04-28 | 湖北大学 | Test data processing method and device |
CN113238958A (en) * | 2021-06-01 | 2021-08-10 | 广东好太太智能家居有限公司 | Automatic testing method and device for big data visualization platform and electronic equipment |
CN114691503A (en) * | 2022-03-22 | 2022-07-01 | 航天中认软件测评科技(北京)有限责任公司 | Test-oriented management method, device, equipment and medium |
CN114691503B (en) * | 2022-03-22 | 2022-09-13 | 航天中认软件测评科技(北京)有限责任公司 | Test-oriented management method, device, equipment and medium |
CN116070214A (en) * | 2022-08-30 | 2023-05-05 | 荣耀终端有限公司 | Safety testing method and electronic equipment |
CN116070214B (en) * | 2022-08-30 | 2024-04-02 | 荣耀终端有限公司 | Safety testing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109872230B (en) | 2024-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109872230A (en) | The test method of finance data analysis system, device, medium, electronic equipment | |
CN110363449B (en) | Risk identification method, device and system | |
CN110782123A (en) | Matching method and device of decision scheme, computer equipment and storage medium | |
CN109871311A (en) | A kind of method and apparatus for recommending test case | |
CN109784352A (en) | A kind of method and apparatus for assessing disaggregated model | |
CN109656815A (en) | There are test statement write method, device, medium and the electronic equipment of configuration file | |
CN110941951A (en) | Text similarity calculation method, text similarity calculation device, text similarity calculation medium and electronic equipment | |
KR20230007268A (en) | Task processing method, task processing device, electronic device, storage media and computer program | |
CN109871317A (en) | Code quality analysis method and device, storage medium and electronic equipment | |
CN110442515B (en) | Application testing method, device, equipment and readable storage medium | |
CN110348471B (en) | Abnormal object identification method, device, medium and electronic equipment | |
CN109684198A (en) | Data capture method to be tested, device, medium, electronic equipment | |
CN111210332A (en) | Method and device for generating post-loan management strategy and electronic equipment | |
CN108629355A (en) | Method and apparatus for generating workload information | |
CN111506775A (en) | Label processing method and device, electronic equipment and readable storage medium | |
CN113051183A (en) | Test data recommendation method and system, electronic device and storage medium | |
US11119892B2 (en) | Method, device and computer-readable storage medium for guiding symbolic execution | |
CN110716857B (en) | Test case management method, device, computer equipment and storage medium | |
WO2016114748A1 (en) | Data comparison | |
CN113407719B (en) | Text data detection method and device, electronic equipment and storage medium | |
CN113989562A (en) | Model training and image classification method and device | |
CN108008879A (en) | A kind of application program search method, device and electronic equipment | |
CN114385694A (en) | Data processing method and device, computer equipment and storage medium | |
CN113850072A (en) | Text emotion analysis method, emotion analysis model training method, device, equipment and medium | |
CN113296836A (en) | Method for training model, testing method, device, electronic equipment and storage medium |
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 |