CN109872230B - Test method and device of financial data analysis system, medium and electronic equipment - Google Patents

Test method and device of financial data analysis system, medium and electronic equipment Download PDF

Info

Publication number
CN109872230B
CN109872230B CN201910063905.6A CN201910063905A CN109872230B CN 109872230 B CN109872230 B CN 109872230B CN 201910063905 A CN201910063905 A CN 201910063905A CN 109872230 B CN109872230 B CN 109872230B
Authority
CN
China
Prior art keywords
test
file
analysis result
analysis system
financial data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910063905.6A
Other languages
Chinese (zh)
Other versions
CN109872230A (en
Inventor
陈家荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910063905.6A priority Critical patent/CN109872230B/en
Publication of CN109872230A publication Critical patent/CN109872230A/en
Application granted granted Critical
Publication of CN109872230B publication Critical patent/CN109872230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the technical field of cloud testing, and discloses a testing method, a testing device, a testing medium and electronic equipment of a financial data analysis system. The method comprises the following steps: acquiring a target test item; acquiring a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space; inputting the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file; the second analysis result file is obtained and compared with the first analysis result file to obtain a comparison result; and automatically generating a test report according to the comparison result. Under the method, the matched data file and the first analysis result file are obtained only by inputting the test target item by the user, and the test and the generation of the test report are automatically carried out, so that the efficiency and the accuracy of testing the financial data analysis system are improved.

Description

Test method and device of financial data analysis system, medium and electronic equipment
Technical Field
The disclosure relates to the field of cloud testing, and in particular relates to a testing method, a testing device, a testing medium and electronic equipment of a financial data analysis system.
Background
In modern society, with the development of financial industry and scientific industry, financial business depending on data analysis is increasing, and for this reason, many companies develop a system capable of analyzing financial data. To maintain a financial data analysis system, it is often subject to update iterations. On one hand, as the society is developed gradually, in order to meet the requirements of users and businesses which are continuously changed, the financial data analysis system is required to be iterated continuously so as to improve the competitiveness of the product; on the other hand, to repair a newly discovered vulnerability or defect, it is also necessary to iterate through the product. Update iterations are a necessary means to keep the financial data analysis system running healthy. After updating and iterating the financial data analysis system, the updated financial data analysis system needs to be tested so as to ensure that the updated financial data analysis system can still normally operate.
In the implementation of the prior art, in order to test a financial data analysis system, it is generally performed manually at present, and a data file and an analysis result file are obtained from the system, and then the financial data analysis system is tested.
The disadvantage of the prior art is that manually testing the financial data analysis system is in most cases inefficient and often results in a lower accuracy of the test results due to errors in the selected data files.
Disclosure of Invention
In the technical field of cloud testing, in order to solve the technical problem of low testing efficiency of a financial data analysis system in the related art, the invention provides a testing method, a testing device, a testing medium and electronic equipment of the financial data analysis system.
According to an aspect of the present application, there is provided a method of testing a financial data analysis system, the method comprising:
acquiring a target test item;
acquiring a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space, wherein the file backup space is used for storing the data file analyzed by a historical financial data analysis system and an analysis result file obtained after the analysis of the data file;
inputting the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file;
the second analysis result file is obtained and compared with the first analysis result file to obtain a comparison result;
and automatically generating a test report according to the comparison result.
According to another aspect of the present application, there is provided a test apparatus of a financial data analysis system, the apparatus comprising:
A first acquisition module configured to acquire a target test item;
the second acquisition module is configured to acquire a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space;
an input module configured to input the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file;
the comparison module is configured to acquire the second analysis result file and compare the second analysis result file with the first analysis result file to obtain a comparison result;
and the test report generation module is configured to automatically generate a test report according to the comparison result.
According to another aspect of the present application, there is provided a computer readable program medium storing computer program instructions which, when executed by a computer, cause the computer to perform the method as described above.
According to another aspect of the present application, there is provided an electronic device including:
a processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement a method as described above.
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
the test method of the financial data analysis system provided by the invention comprises the following steps of obtaining a target test item; acquiring a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space, wherein the file backup space is used for storing the data file analyzed by a historical financial data analysis system and an analysis result file obtained after the analysis of the data file; inputting the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file; the second analysis result file is obtained and compared with the first analysis result file to obtain a comparison result; and automatically generating a test report according to the comparison result.
Under the method, the matched data file and the first analysis result file are obtained only by inputting the test target item by the user, and the test and the generation of the test report are automatically carried out, so that the efficiency and the accuracy of testing the financial data analysis system are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic illustration of an application scenario of a testing method of a financial data analysis system, according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of testing a financial data analysis system, according to an exemplary embodiment;
FIG. 3 is a detailed flow chart of steps 220 through 250 according to one embodiment shown in the corresponding embodiment of FIG. 2;
FIG. 4 is a detailed flow chart of step 250' according to an embodiment shown in the corresponding embodiment of FIG. 3;
FIG. 5 is a detailed flow chart of step 210 according to another embodiment shown in the corresponding embodiment of FIG. 2;
FIG. 6 is a block diagram of a testing device of a financial data analysis system, according to an exemplary embodiment;
FIG. 7 is an exemplary block diagram of an electronic device implementing the above-described method, according to an exemplary embodiment;
fig. 8 is a computer readable storage medium embodying the above method, according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
The present disclosure first provides a testing method of a financial data analysis system. The financial data may be any system or user generated or input information carrier in the financial domain that may be analyzed, evaluated, processed. Specific segments may include, but are not limited to, stocks, bonds, funds, financial, foreign exchange, and the like. For example, according to the financial statement of the marketing company, the stock price of the marketing company is analyzed, and the data in the financial statement is financial data; for another example, estimating the trend of the fund return according to domestic economic operation data, wherein the domestic economic operation data can also be financial data; a financial data analysis system is a system that can analyze and process financial data in a form that includes, but is not limited to, any one or a combination of any two or more of software, hardware, firmware. The financial data analysis system may be operated or fixed in any device or equipment including, but not limited to, a server, a computer device, a notebook computer, a smart phone, a workstation, a field terminal, etc. that is provided with a device or equipment for analyzing, calculating or processing financial data, and may also be various server architectures such as cloud computing. Because of the increasing demands of people on product functions and the requirements of the aggravation and the safety promotion of business competition, the financial data analysis system is often subjected to iterative upgrade, after each upgrade, the system is often caused to have the defect of unexpected intention due to the change of a system framework, software or business logic, and in order to avoid huge loss caused by putting the defective financial data analysis system into the market, the upgraded financial data analysis system is tested.
The implementation environment of the present disclosure may be a portable mobile device, such as a smart phone, tablet, notebook, etc., or may be various stationary devices, such as a computer device, field terminal, desktop, server, workstation, etc.
Fig. 1 is a schematic view of an application scenario of a test method of a financial data analysis system according to an exemplary embodiment. In the application scenario of the embodiment shown in fig. 1, the implementation terminal of the present invention is a desktop computer 110, the financial data analysis system is fixed and operates in a central server 120, and the desktop computer 110 can perform bidirectional data transmission communication with the central server 120 where the financial data analysis system is located, and the financial data analysis system on the central server 120 can analyze financial data generated by other servers 130 and correspondingly send the analyzed data and the analysis result to a file backup space 140 for storage, where the storage medium in the actual scenario may be any nonvolatile storage medium such as a hard disk, a magnetic disk, a flash memory array, and the like.
It should be understood that the interrelationship of the components in the application scenario illustrated in fig. 1 is only one embodiment of the present disclosure, and should not be construed as limiting the scope of the present disclosure in any way.
FIG. 2 is a flow chart illustrating a method of testing a financial data analysis system, according to an exemplary embodiment. As shown in fig. 2, the method comprises the following steps:
step 210, a target test item is obtained.
The test items are keywords or phrases that are manually specified to reflect the function, performance, or operational status of the financial data analysis system, and the target test items are keywords or phrases that are the aggregated function, performance, or operational status of the user for the present time to test the financial data analysis system.
In one embodiment, the implementation terminal of the invention is provided with input devices such as a screen, a keyboard, a touch pad, a mouse and the like, and a user inputs the target test item to the implementation terminal of the invention through the input devices, so that the task of acquiring the target test item is realized.
In one embodiment, the implementation terminal of the invention is internally provided with the network card, and can communicate with external equipment or the terminal, and after a user inputs a target test item at the terminal, the user terminal sends the target test item to the implementation terminal of the invention through a wired communication network or a wireless communication network, so that the purpose of acquiring the target test item is achieved.
In one embodiment, a plurality of test items are input by a user, and the implementation terminal of the invention takes the first test item input by the implementation terminal as a target test item according to the input sequence of the user.
And 220, acquiring a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space.
The file backup space is used for storing data files analyzed by the historical financial data analysis system and analysis result files obtained after analysis of the data files.
A file backup space is a representation of any non-volatile storage medium that may be used to store files. Specifically, the file organization form of the file system may be a file system, a database, or the like.
The data file and the analysis result file may be information or a collection of data stored on a nonvolatile storage medium, and in one data file or analysis result file, there may be only one piece of data, or there may be a plurality of pieces of data at the same time.
In one embodiment, after analyzing the data file input by other systems or users, the financial data analysis system obtains an analysis result file, and correspondingly stores the analyzed input data and the corresponding analysis result in the file backup space. The embodiment has the advantage of ensuring the integrity of the data files stored in the file backup space and the analysis result files.
In one embodiment, after analyzing the data files input by other systems or users, the financial data analysis system obtains analysis result files, and sends all analysis result files to the user terminal, and according to the operation instruction of the user on the data files and analysis result files on the user terminal, the data files and analysis result files selected by the user are stored in the file backup space. The embodiment has the advantages that the data files and the corresponding analysis result files are selectively stored, so that the bandwidth pressure of the file backup space is reduced, the quality of the data files and the analysis result files stored in the file backup space is improved, and the utilization rate of the stored contents of the file backup space is improved.
In one embodiment, the embodiment terminal of the invention stores the matching correspondence between all test items and data file identifiers, and the file backup space stores not only the data file and the first analysis result file corresponding to the data file, but also the identifier corresponding to the data file, acquires the identifier of the matched data file according to the target test item, and then acquires the data file corresponding to the identifier and the corresponding first analysis result file in the file backup space.
Step 230, inputting the data file into a financial data analysis system, so that the financial data analysis system outputs a second analysis result file corresponding to the data file.
As previously described, the financial data analysis system is a system capable of analyzing and processing financial data. When the financial data analysis system analyzes and processes the data files input to the financial data analysis system, analysis result data are obtained, an analysis result file is automatically created, and the obtained analysis result data are written into the analysis result file.
Step 240, obtaining the second analysis result file, and comparing with the first analysis result file to obtain a comparison result.
In one embodiment, the second analysis result file corresponding to the data file output by the financial data analysis system is directly transmitted to the implementation terminal of the present invention.
In another embodiment, a script is embedded in the implementation terminal of the present invention, and after the financial data analysis system outputs the second analysis result file, the script may crawl the second analysis result file.
In one embodiment, the comparison of the first analysis result file and the second analysis result file is achieved by comparing the characters recorded in the file one by one, and when two inconsistencies are found, inconsistent comparison results are obtained.
In one embodiment, the comparison of the first analysis result file and the second analysis result file is achieved by comparing the characters after the specific character string recorded in the file.
Since updating of the financial data analysis system may result in a change in the form or format of the output analysis result file and a deletion of text or symbols, in this case, if all the characters in the analysis result file are compared, a comparison result error may be caused. The advantage of this embodiment is that the possibility of errors in the alignment results due to the various factors described above is reduced to some extent.
And step 250, automatically generating a test report according to the comparison result.
In one embodiment, a database of the correspondence between keywords and standard test reports is preset, keywords in the comparison result are extracted first, then the database is searched to obtain the standard test report corresponding to the keywords, and then the comparison result is covered on a specific part of the standard test report, so that a test report is generated.
In one embodiment, the standard test report includes an editable portion and a non-editable portion, and if the comparison result is overlaid on the editable portion of the standard test report, the test report may be generated.
In one embodiment, the portions between specific characters in the test report are determined first, and then the test report is generated by overlaying the comparison results over the portions between specific characters in the standard test report.
In one embodiment, automatically generating a test report according to the comparison result includes:
obtaining a test report template; and inputting the comparison result into the test report template to generate a test report.
The test report template is a fixed format of a test report, including but not limited to pictures, characters, formulas, function images and the like, and the specific existing forms of the test report template in practical application include but are not limited to html, PDF and the like.
In one embodiment, all test reports use one test report template and are recorded in one data file, and the test report template is obtained by reading the data file.
In one embodiment, different test reports may use different test report templates, which are recorded in different data files, and the test report templates are obtained by optionally reading one of the different data files.
In one embodiment, the test report is generated by replacing specific character-defined portions of the test report template with the comparison results. For example, in a test report, there are two parts defined by characters, respectively, that is, the parts of & XXXX & and XXXX, and the corresponding comparison result is divided into two parts, which are defined by the characters & and characters respectively, and then the comparison result can be replaced by the part defined by the specific character in the test report template according to the position of the character to generate the test report.
In one embodiment, not only the exact same character-defined portion is replaced, but also the character-defined portion associated with the character to be replaced.
It will be understood that the specific implementation manner of replacing the portion defined by the specific character in the test report template with the comparison result is not limited to those described above, and there may be one or more characters used for defining, and the comparison result may replace the portion defined by the same character as the one defining the comparison result in the test report template, or may replace the portion defined by the character related to defining the comparison result in the test report template.
The embodiment has the advantages of providing a better solution for automatically generating the test report according to the comparison result and improving the generation efficiency of the test report.
In one embodiment, the test items used each time a financial data analysis system is tested are saved in a log of the financial data analysis system, and in step 210, a target test item is obtained, including: acquiring test items existing in a log of the financial data analysis system within a preset time period before the current time as to-be-determined target test items; obtaining the number of each to-be-targeted test item; sequencing all the undetermined target test items according to the number from large to small, and pushing the undetermined target test items to a user according to the sequencing; and receiving the undetermined test item selected by the user as a target test item.
Obtaining a test report template, comprising: and acquiring a test report template according to the acquired multiple undetermined target test items.
In one embodiment, obtaining a test report template from the obtained plurality of pending target test items includes:
obtaining the scores and weights corresponding to the multiple undetermined target test items from a preset corresponding relation table of the test items and the scores and weights;
calculating a weighted sum of the plurality of pending target test items based on the scores and weights corresponding to the plurality of pending target test items;
and acquiring the test report template according to the weighting sum interval to which the acquired weighting sum belongs in a preset corresponding relation table of the weighting sum interval and the test report template.
In one embodiment, the preset table of correspondence between test items and scores and weights is established by the user in the following manner: classifying all test items; setting the same weight for each class of test items according to the classified classes, and setting a score for each test item so as to establish a corresponding relation table of the test items, the scores and the weights.
In one embodiment, obtaining the test report template according to the weight sum interval to which the obtained weight sum belongs includes: and determining a test report template corresponding to the weighted sum section of the obtained weighted sum as the test report template to be obtained in a preset corresponding relation table of the weighted sum section and the test report template.
In one embodiment, a correspondence table between test report templates and to-be-targeted test items is established empirically in advance, each test report template corresponds to one or more to-be-targeted test items, and the test report templates are obtained according to the obtained plurality of to-be-targeted test items, including: and acquiring the test report template with the maximum corresponding undetermined target test items as the test report template to be acquired.
The embodiment has the advantages that the test report template has the highest possibility of being suitable for being used as the test report template of the target test item because the test report template has the highest number of pending target test items corresponding to the test report template to be acquired, which indicates that the test report template has good applicability.
In one embodiment, a correspondence table between test report templates and to-be-targeted test items is established empirically in advance, each test report template corresponds to one or more to-be-targeted test items, and the test report templates are obtained according to the obtained plurality of to-be-targeted test items, including: sequencing the test report templates corresponding to the acquired multiple pending target test items according to the number of the corresponding pending target test items from large to small, displaying the sequence to a user for the user to select, and taking the test report template selected by the user as the test report template to be acquired.
The embodiment has the advantages that the accuracy of the acquired test report templates is improved by enabling the user to acquire the test report templates in a selection mode, meanwhile, the test report templates are sorted according to the number of the corresponding to-be-determined target test items from large to small, so that the user can select the test report templates, and the higher the number of the corresponding to-be-determined target test items is, the higher the possibility that the test report templates meet requirements is indicated, so that the embodiment improves the efficiency of the user in selecting the test report templates.
FIG. 3 provides an explanation of one embodiment of how the financial data analysis system is tested when there are multiple data files matching the target test item. Fig. 3 is a detailed flowchart of steps 220 to 250 according to an embodiment shown in the corresponding embodiment of fig. 2. As shown in fig. 3, the method comprises the following steps:
step 220', automatically acquiring a plurality of data files matched with the target test item and a plurality of first analysis result files corresponding to the plurality of data files from a file backup space.
In one embodiment, the data files are the smallest units that the financial data analysis system analyzes and processes, and for each data file, the financial data analysis system can only output one first analysis result file corresponding to that data file. In this embodiment, the data file and the first analysis result file are in one-to-one correspondence.
Step 230', the plurality of data files are respectively input into the financial data analysis system, so that the financial data analysis system outputs a plurality of second analysis result files respectively corresponding to the plurality of data files.
In one embodiment, as described above, the data file is the smallest unit that the financial data analysis system analyzes and processes. Therefore, when a plurality of data files are input into the financial data analysis system, the financial data analysis system outputs a corresponding analysis result file for each data file, so as to obtain a plurality of second analysis result files corresponding to the plurality of data files respectively.
Step 240', a plurality of second analysis result files are obtained, and the second analysis result files are respectively compared with the first analysis result files corresponding to the second analysis result files in the plurality of first analysis result files to obtain a plurality of comparison results.
And step 250', automatically generating a test report according to the plurality of comparison results.
In one embodiment, a test report is generated for each comparison result.
In one embodiment, all of the plurality of alignment results are listed in a test report, ultimately generating a test report containing the plurality of alignment results.
In one embodiment, the comparison result is one of consistent or inconsistent, and the step of automatically generating the test report according to the plurality of comparison results in step 250' is shown in fig. 4. FIG. 4 is a detailed flow chart of step 250' according to an embodiment illustrated in the corresponding embodiment of FIG. 3. As shown in fig. 4, step 250' includes the sub-steps of:
Step 2501' is to obtain the number of comparison results in the plurality of comparison results as the first number.
In one embodiment, the implementation terminal of the invention is provided with a counter, so that the number of comparison results can be counted. When one comparison result exists in the obtained comparison results, the counter is increased by 1.
Step 2502' obtains, as a second number, the number of alignment results, among the plurality of alignment results, for which the alignment results are identical.
Step 2503' calculates a ratio of the first number and the second number.
Step 2504' generates a test report with content that the test passed when the ratio is greater than the predetermined ratio threshold.
In one embodiment, the test report in which the test passes further includes a first analysis result file, a second analysis result file, names and storage paths of data files corresponding to the first analysis result file and the second analysis result file, and a target test item matched with the data files, the comparison result being consistent.
Step 2505' generates a test report that is not passed by the test when the ratio is not greater than the predetermined ratio threshold.
The test report that the test fails also comprises a first analysis result file, a second analysis result file, names and storage paths of data files corresponding to the first analysis result file and the second analysis result file, and target test items matched with the data files, wherein the comparison result is inconsistent.
It should be noted that test passing and test passing are not merely one example, and the specific expression and expression thereof are not limited to those shown in the present example, as long as the contents thereof record the meanings that can express test passing and test not passing.
In one embodiment, the financial data analysis system generates an update log every time the financial data analysis system is updated, each time the financial data analysis system is tested, the test item used in the test is saved in the test record, the specific flow of step 210 is shown in fig. 5, and fig. 5 is a detailed flow chart of step 210 according to another embodiment shown in the corresponding embodiment of fig. 2. As shown in fig. 5, step 210 includes the sub-steps of:
step 211, obtaining the update time of the financial data analysis system closest to the current time.
In one embodiment, each time the financial data analysis system is updated, the updated content and the updated time are recorded in the log of the financial data analysis system, a script is embedded in the implementation terminal of the invention, the log of the financial data analysis system can be obtained, then the difference between the current time and the updated time of each financial data analysis system is determined, and the updated time with the smallest difference is taken as the updated time of the financial data analysis system closest to the current time.
In one embodiment, each time the financial data analysis system is updated, the update content and the update time are recorded in the log of the financial data analysis system, and a serial number is set for each time the financial data analysis system is updated, the larger the serial number is, the closer the update time is, the script is embedded in the implementation terminal of the invention, the log of the financial data analysis system can be obtained, and the update time with the largest serial number is obtained and is used as the update time of the financial data analysis system closest to the current time.
Step 212, determining a time difference between the current time and the latest update time.
And step 213, when the time difference is smaller than a preset time difference threshold value, acquiring the latest update log of the financial data analysis system.
Step 214, extracting keywords from the acquired latest update log.
And step 215, automatically prompting the recommended test item to the user for selection by the user according to the keyword so as to trigger the recommended test item to be acquired as the target test item in response to the selection of the user.
In one embodiment, the specific implementation of step 215 is as follows: establishing a corresponding relation table of recommended test items and updated log keywords; acquiring recommended test items for automatic prompt by inquiring the corresponding relation table; in response to acquiring a trigger for automatically prompting the recommended test item, loading a page capable of automatically prompting the recommended test item; and responding to the trigger of the selection of the user received through the page, and acquiring the recommended test item selected by the user as a target test item.
And step 216, when the time difference is not smaller than a preset time difference threshold value, acquiring a test record of the financial data analysis system in a preset time period.
The test record is information for representing historical test conditions of the financial data analysis system, and can comprise test items, test results, test time and the like for testing.
In one embodiment, the test records of the financial data analysis system are stored in a log of the financial data analysis system corresponding to the corresponding test times. The script is embedded in the implementation terminal, so that a log of the financial data analysis system can be obtained, and then whether each test time is within a preset time period is judged; if yes, acquiring a test record of the financial data analysis system corresponding to the test time in the log.
Step 217, in the obtained test record, for each test item in the test record, determining the number of the test items.
In one embodiment, the implementation terminal of the present invention is provided with a counter, and for each test item, every time it is determined that one test item exists in the test record, the counter is increased by 1 until all the test items in the test record are determined, and finally the number of the test items is obtained. And counting the number of each test item in the acquired test record by a counter, and finally obtaining the number of all the test items.
Step 218, obtaining the most number of test items as target test items.
In one embodiment, the maximum number of test items is obtained by the first step of bubble sorting.
In summary, if the number of test items in the analysis record is larger, the probability of selecting the test item as the target test item is higher. The advantage of this embodiment is that the accuracy of the acquired target test item is improved.
The following are device embodiments of the present invention.
The disclosure also provides a testing device of the financial data analysis system. FIG. 6 is a block diagram of a testing device of a financial data analysis system, according to an example embodiment. As shown in fig. 6, the apparatus 600 includes:
a first acquisition module 610 configured to acquire a target test item;
a second obtaining module 620, configured to obtain, from a file backup space, a data file matching the target test item and a first analysis result file corresponding to the data file;
an input module 630 configured to input the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file;
A comparison module 640 configured to obtain the second analysis result file, and compare the second analysis result file with the first analysis result file to obtain a comparison result;
the test report generation module 650 is configured to automatically generate a test report according to the comparison result.
According to a third aspect of the present disclosure, there is also provided an electronic device capable of implementing the above method.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 connecting the different system components, including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps according to various exemplary embodiments of the present invention described in the above-described "example methods" section of the present specification.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 721 and/or cache memory 722, and may further include Read Only Memory (ROM) 723.
The storage unit 720 may also include a program/utility 724 having a set (at least one) of program modules 725, such program modules 725 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any device (e.g., router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 over bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
According to a fourth aspect of the present disclosure, there is also provided a computer readable storage medium having stored thereon a program product capable of implementing the method described herein above. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 8, a program product 800 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (6)

1. A method of testing a financial data analysis system, the method comprising:
acquiring test items existing in a log of a financial data analysis system within a preset time period before the current time as to-be-determined target test items; the test items used each time the financial data analysis system is tested are stored in the log of the financial data analysis system;
obtaining the number of each to-be-targeted test item;
sequencing all the undetermined target test items according to the number from large to small, and pushing the undetermined target test items to a user according to the sequencing;
Receiving a to-be-targeted test item selected by a user as a targeted test item;
acquiring a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space, wherein the file backup space is used for storing the data file analyzed by a historical financial data analysis system and an analysis result file obtained after the analysis of the data file;
inputting the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file;
the second analysis result file is obtained and compared with the first analysis result file to obtain a comparison result;
automatically generating a test report according to the comparison result; the automatic generation of the test report according to the comparison result comprises the following steps: obtaining scores and weights corresponding to a plurality of undetermined target test items from a preset corresponding relation table of the test items and the scores and weights; the preset test item and score and weight corresponding relation table is established by a user in the following mode: classifying all test items; setting the same weight for each class of test items according to the classified classes, and setting a score for each test item so as to establish a corresponding relation table of the test items and the scores and weights; calculating a weighted sum of the plurality of pending target test items based on the scores and weights corresponding to the plurality of pending target test items; acquiring a test report template according to the weight sum section of the acquired weight sum in a preset corresponding relation table of the weight sum section and the test report template; and inputting the comparison result into the test report template to generate a test report.
2. The method of claim 1, wherein when there are a plurality of data files matching the target test item, the retrieving the data file matching the target test item and the first analysis result file corresponding to the data file from the file backup space comprises: automatically acquiring a plurality of data files matched with the target test item and a plurality of first analysis result files corresponding to the plurality of data files from a file backup space;
the inputting the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file, including: inputting the plurality of data files into a financial data analysis system respectively so that the financial data analysis system outputs a plurality of second analysis result files corresponding to the plurality of data files respectively;
the obtaining the second analysis result file and comparing with the first analysis result file to obtain a comparison result comprises: obtaining a plurality of second analysis result files, and comparing the second analysis result files with first analysis result files corresponding to the second analysis result files in the plurality of first analysis result files respectively to obtain a plurality of comparison results;
The automatic generation of the test report according to the comparison result further comprises: and automatically generating a test report according to the plurality of comparison results.
3. The method of claim 2, wherein the comparison is one of consistent or inconsistent, the automatically generating a test report based on the plurality of comparison results, comprising:
obtaining the number of comparison results in the comparison results as a first number;
obtaining the number of comparison results, which are consistent, in the comparison results, as a second number;
calculating a ratio of the first number to the second number;
when the ratio is greater than a preset ratio threshold, generating a test report with the content of passing test;
and when the ratio is not greater than a preset ratio threshold, generating a test report with failed test content, wherein the test report with failed test further comprises a first analysis result file, a second analysis result file, names and storage paths of data files corresponding to the first analysis result file and the second analysis result file and target test items matched with the data files, wherein the comparison result of the first analysis result file and the second analysis result file is inconsistent.
4. A test device for a financial data analysis system, the device comprising:
The first acquisition module is configured to acquire test items existing in a log of the financial data analysis system within a preset time period before the current time as to-be-targeted test items; the test items used each time the financial data analysis system is tested are stored in the log of the financial data analysis system; obtaining the number of each to-be-targeted test item; sequencing all the undetermined target test items according to the number from large to small, and pushing the undetermined target test items to a user according to the sequencing; receiving a to-be-targeted test item selected by a user as a targeted test item;
the second acquisition module is configured to acquire a data file matched with the target test item and a first analysis result file corresponding to the data file from a file backup space;
an input module configured to input the data file into a financial data analysis system so that the financial data analysis system outputs a second analysis result file corresponding to the data file;
the comparison module is configured to acquire the second analysis result file and compare the second analysis result file with the first analysis result file to obtain a comparison result;
the test report generation module is configured to acquire scores and weights corresponding to a plurality of undetermined target test items from a preset test item and score and weight corresponding relation table; the preset test item and score and weight corresponding relation table is established by a user in the following mode: classifying all test items; setting the same weight for each class of test items according to the classified classes, and setting a score for each test item so as to establish a corresponding relation table of the test items and the scores and weights; calculating a weighted sum of the plurality of pending target test items based on the scores and weights corresponding to the plurality of pending target test items; acquiring a test report template according to the weight sum section of the acquired weight sum in a preset corresponding relation table of the weight sum section and the test report template; and inputting the comparison result into the test report template to generate a test report.
5. A computer readable program medium, characterized in that it stores computer program instructions, which when executed by a computer, cause the computer to perform the method according to any of claims 1 to 3.
6. An electronic device, the electronic device comprising:
a processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the method of any of claims 1 to 3.
CN201910063905.6A 2019-01-23 2019-01-23 Test method and device of financial data analysis system, medium and electronic equipment Active CN109872230B (en)

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 CN109872230A (en) 2019-06-11
CN109872230B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114691503B (en) * 2022-03-22 2022-09-13 航天中认软件测评科技(北京)有限责任公司 Test-oriented management method, device, equipment and medium
CN116070214B (en) * 2022-08-30 2024-04-02 荣耀终端有限公司 Safety testing method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9928162B2 (en) * 2015-03-27 2018-03-27 International Business Machines Corporation Identifying severity of test execution failures by analyzing test execution logs

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN109872230A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN109872230B (en) Test method and device of financial data analysis system, medium and electronic equipment
CN111343161B (en) Abnormal information processing node analysis method, abnormal information processing node analysis device, abnormal information processing node analysis medium and electronic equipment
CN111143226B (en) Automatic test method and device, computer readable storage medium and electronic equipment
CN110580308B (en) Information auditing method and device, electronic equipment and storage medium
CN111666304B (en) Data processing device, data processing method, storage medium, and electronic apparatus
CN106550038B (en) Data configuration diagnosis system and method of digital control system
CN107992484B (en) Method, device and storage medium for evaluating performance of OCR system
CN109656815B (en) Test statement writing method, device and medium with configuration file and electronic equipment
CN108694108B (en) iOS crash data classification and statistics method and device
CN111143556A (en) Software function point automatic counting method, device, medium and electronic equipment
CN110705235A (en) Information input method and device for business handling, storage medium and electronic equipment
CN110688096A (en) Method, device, medium and electronic equipment for constructing application program containing plug-in
CN109684198B (en) Method, device, medium and electronic equipment for acquiring data to be tested
CN114048129A (en) Automatic testing method, device, equipment and system for software function change
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN111831536A (en) Automatic testing method and device
CN111858366B (en) Test case generation method, device, equipment and storage medium
CN113609008A (en) Test result analysis method and device and electronic equipment
CN113138927A (en) Software function testing method and device
CN113297287A (en) User policy automatic deployment method and device and electronic equipment
CN112989050A (en) Table classification method, device, equipment and storage medium
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN110806969A (en) Test case integrity evaluation method and device and electronic equipment
CN113672512A (en) Code inspection rule generating method, code inspection method, device and medium
CN110083807B (en) Contract modification influence automatic prediction method, device, medium and electronic equipment

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