[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110008119A - Report test method, device, computer equipment and storage medium - Google Patents

Report test method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110008119A
CN110008119A CN201910192932.3A CN201910192932A CN110008119A CN 110008119 A CN110008119 A CN 110008119A CN 201910192932 A CN201910192932 A CN 201910192932A CN 110008119 A CN110008119 A CN 110008119A
Authority
CN
China
Prior art keywords
report
test
key column
key
incidence relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910192932.3A
Other languages
Chinese (zh)
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 Trust Co Ltd
Original Assignee
Ping An Trust 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 Trust Co Ltd filed Critical Ping An Trust Co Ltd
Priority to CN201910192932.3A priority Critical patent/CN110008119A/en
Publication of CN110008119A publication Critical patent/CN110008119A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application involves a kind of report test method, device, computer equipment and storage mediums.It is related to functional test field.The described method includes: obtaining target report and association report corresponding with the target report, the target report and the association report test set are utilized;Identify the incidence relation between multiple key columns in the test set;The relevance between multiple key columns is tested based on test model and the incidence relation;When there are the key column of test crash, the corresponding report of the key column of the test crash is labeled as error report.The efficiency of report test can be effectively improved using this method.

Description

Report test method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of report test method, device, computer equipment and Storage medium.
Background technique
With the development of computer technology, a series of processing calculating process of the report between initial data to final data Computer be can use to complete.Due to the wide variety of report, there may be direct or indirect between the data of different reports Connection, so as to cause a wherein report processing logic modified after, may influence other reports automation processing Data result causes the final data between report that cannot correspond to each other.
In conventional manner, it after the processing logic modification of one of report, needs to carry out all reports one by one Test, to check whether the processing logic modification of this report influences the processing result of other reports, the processing of other reports Whether logic has carried out corresponding modification.Variation however, with the increase of report quantity, and according to demand adds report The modification frequency of work logic is speeded, and requires to test all reports one by one every time, wherein there are a large amount of useless surveys Examination process, testing efficiency are low.Therefore, the testing efficiency for how improving report becomes the current technical issues that need to address.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of report test method that can be improved testing efficiency, Device, computer equipment and storage medium.
A kind of report test method, which comprises
Target report and association report corresponding with the target report are obtained, the target report and described is utilized It is associated with report test set;
Identify the incidence relation between multiple key columns in the test set;
The relevance between multiple key columns is tested based on test model and the incidence relation;
When there are the key column of test crash, the corresponding report of the key column of the test crash is labeled as false alarm Table.
Based on test model and the incidence relation to the pass between multiple key columns described in one of the embodiments, Connection property carries out test
Test function corresponding with the incidence relation is called based on the test model;
It obtains the test function and corresponds to key column in multiple reports;
The relevance between the key column in multiple reports is tested using the test function.
In one of the embodiments, it is described using the test function to the association between the key column in multiple reports Property carry out test include:
Whether the data for successively calculating the key column in the multiple report meet the test function;
The corresponding key column of data for being unsatisfactory for the test function is labeled as to the key column of test crash.
Incidence relation packet between multiple key columns in the identification test set in one of the embodiments, It includes:
Obtain the direct correlation report in the association report;
The direct correlation report is grouped;
Batch processing is carried out to the direct correlation report after grouping using multiple threads, is directly linked report described in parallelism recognition Multiple key columns between incidence relation.
Based on test model and the incidence relation to the pass between multiple key columns described in one of the embodiments, Connection property is tested further include:
Classify to the data of the key column, obtains multiple key column data categories;
Obtain the corresponding weight of the key column data category;
According to the classification parameter of the corresponding key column data category of the weight calculation;
The difference for calculating two neighboring classification parameter is tested using the difference.
A kind of report test device, described device include:
Report obtains module and utilizes institute for obtaining target report and association report corresponding with the target report State target report and the association report test set;
Key column identification module, for identification incidence relation between multiple key columns in the test set;
Relevance test module, for based on test model and the incidence relation to the relevance between multiple key columns It is tested;
Report mark module, for when there are the key column of test crash, the key column of the test crash to be corresponded to Report be labeled as error report.
In one of the embodiments, the relevance test module be also used to based on the test model call with it is described The corresponding test function of incidence relation;It obtains the test function and corresponds to key column in multiple reports;Utilize the test letter Relevance between several key columns in multiple reports is tested.
The relevance test module is also used to successively calculate the pass in the multiple report in one of the embodiments, Whether the data of key column meet the test function;By the corresponding key column of data for being unsatisfactory for the test function labeled as survey Try the key column of failure.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device realizes the step in the above method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step in the above method is realized when row.
Above-mentioned report test method, device, computer equipment and storage medium, by obtaining target report and and target The corresponding association report of report has divided target report, association report using target report and association report test set In addition to this relationship between other reports, when testing only in test set target report be associated with report into Row test.By obtaining corresponding with target report association report automatically from magnanimity report, key column in identification test set, The relevance between multiple key columns is tested using incidence relation.Entire report test process, it is no longer necessary to artificial ginseng With, do not need to test all reports one by one yet, thus effectively raise report test efficiency.
Detailed description of the invention
Fig. 1 is the applied environment figure of report test method in one embodiment;
Fig. 2 is the flow diagram of report test method in one embodiment;
Fig. 3 is the process signal of the incidence relation step between the multiple key columns identified in test set in one embodiment Figure;
Fig. 4 is the structural block diagram of report test device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Report test method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, terminal 102 It is communicated with server 104 by network by network.There are a large amount of reports in the database of server 104.Terminal 102 Using the report to be tested of updated processing logic as target report, obtained from a large amount of reports of 104 database of server with The corresponding association report of target report, utilizes target report and the association report got from 104 database of server Test set.Terminal 102 identifies the incidence relation between multiple key columns in test set, based on test model and incidence relation pair Relevance between multiple key columns is tested.When there are the key column of test crash, by the key column pair of test crash The report answered is labeled as error report.Wherein, terminal 102 can be, but not limited to be various personal computers, laptop, intelligence Energy mobile phone, tablet computer and portable wearable device, server 104 can use independent server either multiple servers The server cluster of composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of report test method, it is applied in Fig. 1 in this way It is illustrated for terminal, comprising the following steps:
Step 202, target report and association report corresponding with target report are obtained, target report and association are utilized Report test set.
Target report refers to the report to be tested for modifying processing logic, and the primary data of report is needed according to processing logic Processing calculating is carried out, to obtain result data, target report is the report for including result data.Target report be associated with report can To be financial category report.Terminal can obtain target report, and corresponding association report, mesh are obtained from database according to target report Mark report be associated between report exist be associated with.Terminal can obtain association report in several ways.Terminal can obtain and target The corresponding report of the title of report is as association report, and also available report corresponding with data in target report is as pass Join report.For example, terminal can obtain the key column of target report, the relevant incidence relation of key column of target report, root are obtained Other key columns are obtained according to incidence relation, using the corresponding report of other key columns as association report.Terminal continues to be associated with Based on the key column of report, the step of obtaining key column relevant incidence relation is repeated, other reports are obtained with this and are made To be associated with report, until all reports are all divided into association report and dereferenced report about target report.
Terminal can obtain target report and association report corresponding with target report when receiving test instruction. Whether the processing logic that terminal can also monitor report updates, if report processing logic updates, by processing logic Changed report obtains association report corresponding with target report as target report.Wherein, terminal can be to report Processing logic carries out real-time monitoring, can also be monitored according to certain frequency.Terminal utilizes target report and association report Test set is formed, target report and association report is divided into a test set, is distinguished with other reports.Terminal can will own Report is divided into multiple test sets, mutually indepedent between each test set, and intersection or incidence relation is not present.In next test In the process only in test set target report and association report tested.
Step 204, the incidence relation between multiple key columns in test set is identified.
Terminal can identify the incidence relation between multiple key columns in test set.Wherein, key column refers to that report is more The column data marked in column data according to business demand.One report may include one or more key columns.Key column It can be marked in advance by tester according to the importance and relevance of data in report, key column can also be passed through by terminal Relevance selected marker between study or multiple reports goes out.Such as capital rent in profit report, manpower expense, solid firewood, Welfare fund or administration fee etc..Multiple key columns in terminal recognition test set, i.e., the key column of target report in identification test set With the key column for being associated with report.Specifically, terminal can run test script, by multiple in test script read test collection Key column, and read the incidence relation between multiple key columns.There are incidence relations between multiple key columns, wherein association is closed System includes but is not limited to direct relation of equality, weighting summation relationship, summation relationship or multiplication relationship.Incidence relation can be two Incidence relation between key column, the incidence relation being also possible between three and the above key column.
Step 206, the relevance between multiple key columns is tested based on test model and incidence relation.
Terminal calls test model, is surveyed using test model and incidence relation to the relevance between multiple key columns Whether examination, the incidence relation tested between multiple key columns are true.Specifically, terminal is based on the key column of target report, One by one to including that target report key column being tested, test and target report key column there are incidence relation at least one Whether key column meets incidence relation.If the key column of association report is unsatisfactory for incidence relation, it is considered as test crash.If closing When the key column of connection report meets incidence relation, then based on the key column of the association report, continues test with this and be associated with report There are at least one key columns of incidence relation whether to meet corresponding incidence relation for the key column of table.So with target report Based on key column, the key column of Xiang Guanlian report extends.According to corresponding incidence relation to the key column of other association reports Between relevance tested, until the key column of test crash or all association reports is all completed to test.
Step 208, when there are the key column of test crash, by the corresponding report of the key column of test crash labeled as mistake Report table by mistake.
When there are the key column of test crash, the corresponding report of the key column of test crash is labeled as false alarm by terminal Table needs the processing logic for the association report to modify, and guarantees that the corresponding relationship between report is set up.Terminal can text This form or the form of sound issue the prompt information of error report, to prompt tester's association report as false alarm Table.
In the present embodiment, by obtaining target report and association report corresponding with target report, target report is utilized Table and association report test set, have divided target report, association report and the in addition to this relationship between other reports, It is tested when testing only for the target report in test set with report is associated with.By being obtained automatically from magnanimity report Association report corresponding with target report is taken, the key column in test set is identified, using incidence relation between multiple key columns Relevance tested.Entire report test process, it is no longer necessary to it is artificial to participate in, do not need yet to all reports one by one into Row test, to effectively raise the efficiency of report test.
In one embodiment, the relevance between multiple key columns is tested based on test model and incidence relation The step of include: that corresponding with incidence relation test function is called based on test model;It obtains test function and corresponds to multiple reports In key column;The relevance between the key column in multiple reports is tested using test function.
Terminal calls corresponding test model when starting to be tested, and test model is used for the pass between key column Connection property is tested.It include multiple test functions in test model, the corresponding survey of each incidence relation between key column Trial function.It may include two key columns in test function, may also comprise three and the above key column.Terminal can be called in test The corresponding test function of the incidence relation of tested key column divides incidence relation and corresponding key column according to incidence relation For multiple test cells.It include an incidence relation, corresponding key column and corresponding test function in each test cell. Based on the test cell where the key column of target report, successively test cell is tested according to incidence relation, is sentenced Whether corresponding key column of breaking meets test function.
In the present embodiment, the corresponding test function of incidence relation is called based on test model, with the key of target report It is classified as basis, the relevance between corresponding key column is successively tested using test function.Guarantee with correctly crucial It is classified as basis, whether the key column for testing unknown result meets test function, and test process is successively right using incidence relation as clue Relevance between the key column of multiple association reports is tested, and improves report while guaranteeing test result accuracy The examination efficiency of survey.
In one embodiment, the relevance between the key column in multiple reports is tested using test function Step further include: whether the data for successively calculating the key column in multiple reports meet test function;It will be unsatisfactory for test function The corresponding key column of data be labeled as test crash key column.
Terminal calls association after recognizing the incidence relation between multiple key columns in test set from test model The corresponding test function of relationship, each incidence relation are corresponding with a test function.Key column of the terminal from target report Start, successively calculates whether the corresponding multiple key columns of incidence relation meet test function.Specifically, terminal is by incidence relation pair The every a line corresponding data for the key column answered is sequentially input in test function, based on the data of the key column of target report, Judge to be associated with whether the corresponding crucial column data of report can allow test function to set up.If test function is set up, reusing should The next line data of key column are calculated.Until all data of corresponding key column all meet test function, it is determined that the pass Key column meet test function, and corresponding association report processing logic is errorless, can be corresponding with the data of target report.If testing letter Number is invalid, it is determined that the corresponding key column of the data is unsatisfactory for the corresponding test function of incidence relation.Terminal will be unsatisfactory for surveying The corresponding key column of the data of trial function is labeled as the key column of test crash, and terminal is by the corresponding report of the key column of test crash List notation is error report.
In the present embodiment, whether each data that terminal successively calculates the corresponding key column of incidence relation meet test Function filters out the data for being unsatisfactory for test function, by the corresponding key column of data for being unsatisfactory for test function labeled as test The key column of failure.Whether each data by calculating key column meet test function, effectively raise report test Accuracy.
In one embodiment, terminal obtains the data bulk of incidence relation corresponding key column and key column, according to pass Key column and the data bulk of key column obtain wrong data range.The number for including in the importance and key column of each key column Data bulk may be different.For the key column less for some very important key columns or data bulk, allow The wrong data of appearance is less, therefore wrong data range is smaller.For it is some be not especially important key column or data number It measures for biggish key column, allows the wrong data occurred more, therefore wrong data range is larger.It is understood that eventually End can obtain wrong data range separately through the importance of key column or the data bulk of key column, can also be in conjunction with closing The data bulk for including in the importance and key column of key column is comprehensive to obtain wrong data range.Terminal is to an incidence relation When being tested, judges whether to meet corresponding test function by the data in corresponding key column are corresponding one by one, will be discontented with The data markers of sufficient test function are wrong data.After the corresponding completion of all data judges, statistics is unsatisfactory for test function Wrong data quantity, wrong data quantity is compared by terminal with wrong data range.When wrong data quantity is in mistake When within data area, it is determined that corresponding key column meets test function.When wrong data quantity is more than wrong data range When, it is determined that corresponding key column is unsatisfactory for test function.
In the present embodiment, the mistake of key column permission is obtained by the data bulk of the importance of key column and key column The data of key column, are carried out the wrong data quantity obtained after test function calculating and wrong data model by accidentally data area one by one It encloses and is compared, just determine that corresponding key column is unsatisfactory for test function beyond wrong data range.Effectively avoid because Some error informations cause the erroneous judgement of test result in key column, and report test is also improved while improving report testing efficiency Accuracy.
In one embodiment, as shown in figure 3, the step of identifying the incidence relation between multiple key columns in test set Include:
Step 302, the direct correlation report in association report is obtained.
Step 304, direct correlation report is grouped.
Step 306, batch processing is carried out to the direct correlation report after grouping using multiple threads, parallelism recognition is directly linked Incidence relation between multiple key columns of report.
Be associated with includes being directly linked report and indirect association report in report.Wherein, report is directly linked to refer to and target Directly there is the association report of incidence relation between report.Indirect association report, which refers to exist indirectly between target report, to be associated with The association report of relationship.There is also at least one to be associated with report between indirect association report and target report.
Terminal is obtained from the association report in test set is directly linked report, is grouped to report is directly linked.Eventually End can be grouped multiple direct correlation reports using various ways.Specifically, terminal can be directly linked the class of report It is not grouped, same category of direct correlation report is divided into one group.Terminal can also according to be directly linked report title into Row grouping.Terminal can be also grouped according to the crucial number of columns that report includes is directly linked.For example, will include identical key column The direct correlation report of quantity is divided into one group, and terminal can also be divided according to the data bulk for the key column for being directly linked report Group.
Terminal can carry out batch processing to the direct correlation report after grouping using multiple threads, the quantity of thread can with it is direct The group number for being associated with report is identical.Terminal is using multiple threads to multiple groups of direct correlation report parallelism recognition key column and right The incidence relation answered.Using target report as origin, each group of direct correlation report is a branch, using multiple threads to each A branch parallel identification key column and corresponding incidence relation.And using incidence relation to the association report of each branch simultaneously Row is tested, and the test result of each branch is obtained.The test result of the comprehensive each branch of terminal, to obtain final test As a result.Specifically, any one branch is there are when the key column of test crash, all by the corresponding report of the key column of test crash Labeled as error report, and summarize the error report of each branch.When error report is all not present in any one branch, it is determined that Target report test passes through.
In the present embodiment, terminal obtains the direct correlation report in association report, is grouped to report is directly linked, Batch processing is carried out to the direct correlation report after grouping using multiple threads, parallelism recognition is directly linked multiple key columns of report Between incidence relation.Terminal is divided into multiple branches for report is associated with, parallel identification, the key for carrying out key column and incidence relation The test of relevance between column reduces the time of report test to obtain test result, effectively raises report test Efficiency.
In one embodiment, the relevance between multiple key columns is tested based on test model and incidence relation Further include: classify to the data of key column, obtains multiple key column data categories;It is corresponding to obtain key column data category Weight;According to the classification parameter of the corresponding key column data category of weight calculation;The difference of two neighboring classification parameter is calculated, benefit It is tested with difference.
Terminal can classify to the data of key column, and the data of a key column according to demand can be there are many classification side Formula.The data of one key column can classify to obtain multiple key column data categories, such as the first key column data category, the second key Column data classification and third key column data category.For example, 1 year payroll journal of Zhang Yiwei employee, the day work of an employee Money is key column, and the data in key column are wage number daily in this year of employee.Point of the data of the key column Class mode can be according to weekly, monthly, quarterly or the mode classifications such as every half a year are classified.Assuming that with division monthly Mode is classified, and terminal then sums wage number daily in key column according to month, obtains multiple crucial columns According to classification, i.e. the wage number of 1 year 12 every month in the middle of the month.Terminal obtains the corresponding weight of key column data category, each Key column data category may correspond to different weights.Such as in statistics shared by monthly earnings in January to the December number Weight is different, and weight shared by certain month wage numbers is larger, and weight shared by certain month wage numbers is smaller.Terminal root According to the classification parameter of the corresponding key column data category of weight calculation, the class of each key column data category after consideration weight is obtained Other parameter.And the difference of two neighboring classification parameter is calculated, it is tested using the difference of classification parameter.Such as by every month Wage number obtains the classification parameter of every month multiplied by weight, and calculates the classification parameter difference of the two neighboring moon.As January with The difference of two monthly salary parameters, the difference in February and three monthly salary parameters, March and difference of four monthly salary parameters etc., utilize phase The difference of adjacent two monthly salary parameters is tested.
In the present embodiment, terminal classifies to crucial column data, obtains multiple key column data categories, then obtain pass The corresponding weight of key column data classification, according to the classification parameter of the corresponding key column data category of weight calculation.Terminal calculates phase The difference of adjacent two classification parameters, is tested using the difference of classification parameter.Terminal is by carrying out the data in key column Processing, recycles that treated that data are tested, and effectively raises the accuracy of report test.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of report test device, comprising: report acquisition module 402, Key column identification module 404, relevance test module 406 and report mark module 408, in which:
Report obtains module 402 and utilizes target for obtaining target report and association report corresponding with target report Report and association report test set.
Key column identification module 404, for identification incidence relation between multiple key columns in test set.
Relevance test module 406, for based on test model and incidence relation to the relevance between multiple key columns It is tested.
Report mark module 408, it is for when there are the key column of test crash, the key column of test crash is corresponding Report is labeled as error report.
In one embodiment, above-mentioned relevance test module 406 is also used to based on test model calling and incidence relation Corresponding test function;It obtains test function and corresponds to the key column in multiple reports;Using test function in multiple reports Relevance between key column is tested.
In one embodiment, above-mentioned relevance test module 406 is also used to successively calculate the key column in multiple reports Data whether meet test function;The corresponding key column of data for being unsatisfactory for test function is labeled as to the key of test crash Column.
In one embodiment, above-mentioned key column identification module 404 is also used to obtain the direct correlation report in association report Table;It is grouped to report is directly linked;Batch processing is carried out to the direct correlation report after grouping using multiple threads, it is parallel to know It Zhi Jieguanlian not incidence relation between multiple key columns of report.
In one embodiment, above-mentioned relevance test module 406 is also used to classify to the data of key column, obtains Multiple key column data categories;Obtain the corresponding weight of key column data category;According to the corresponding crucial column data of weight calculation The classification parameter of classification;The difference for calculating two neighboring classification parameter, is tested using difference.
Specific about report test device limits the restriction that may refer to above for report test method, herein not It repeats again.Modules in above-mentioned report test device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of report test method.The display screen of the computer equipment can be liquid crystal display or electric ink display screen, The input unit of the computer equipment can be the touch layer covered on display screen, be also possible to be arranged on computer equipment shell Key, trace ball or Trackpad, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor execute computer program when perform the steps of obtain target report and with target report pair The association report answered utilizes target report and association report test set;It identifies between multiple key columns in test set Incidence relation;The relevance between multiple key columns is tested based on test model and incidence relation;It is tested when existing When the key column of failure, the corresponding report of the key column of test crash is labeled as error report.
In one embodiment, it also performs the steps of when processor executes computer program and is called based on test model Test function corresponding with incidence relation;It obtains test function and corresponds to the key column in multiple reports;Using test function to more The relevance between key column in a report is tested.
In one embodiment, it is also performed the steps of when processor executes computer program and successively calculates multiple reports In the data of key column whether meet test function;By the corresponding key column of data for being unsatisfactory for test function labeled as test The key column of failure.
In one embodiment, it is also performed the steps of when processor executes computer program in acquisition association report It is directly linked report;It is grouped to report is directly linked;The direct correlation report after grouping is criticized using multiple threads Processing, parallelism recognition are directly linked the incidence relation between multiple key columns of report.
In one embodiment, also performed the steps of when processor executes computer program to the data of key column into Row classification, obtains multiple key column data categories;Obtain the corresponding weight of key column data category;According to the corresponding pass of weight calculation The classification parameter of key column data classification;The difference for calculating two neighboring classification parameter, is tested using difference.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor obtains target report and association report corresponding with target report, benefit With target report and association report test set;Identify the incidence relation between multiple key columns in test set;It is based on Test model and incidence relation test the relevance between multiple key columns;When there are the key column of test crash, The corresponding report of the key column of test crash is labeled as error report.
In one embodiment, it also performs the steps of when computer program is executed by processor based on test model tune With test function corresponding with incidence relation;It obtains test function and corresponds to the key column in multiple reports;Utilize test function pair The relevance between key column in multiple reports is tested.
In one embodiment, it is also performed the steps of when computer program is executed by processor and successively calculates multiple reports Whether the data of the key column in table meet test function;By the corresponding key column of data for being unsatisfactory for test function labeled as survey Try the key column of failure.
In one embodiment, it is also performed the steps of when computer program is executed by processor in acquisition association report Direct correlation report;It is grouped to report is directly linked;The direct correlation report after grouping is carried out using multiple threads Batch processing, parallelism recognition are directly linked the incidence relation between multiple key columns of report.
In one embodiment, the data to key column are also performed the steps of when computer program is executed by processor Classify, obtains multiple key column data categories;Obtain the corresponding weight of key column data category;It is corresponding according to weight calculation The classification parameter of key column data category;The difference for calculating two neighboring classification parameter, is tested using difference.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of report test method, which comprises
Target report and association report corresponding with the target report are obtained, the target report and the association are utilized Report test set;
Identify the incidence relation between multiple key columns in the test set;
The relevance between multiple key columns is tested based on test model and the incidence relation;
When there are the key column of test crash, the corresponding report of the key column of the test crash is labeled as error report.
2. the method according to claim 1, wherein described be based on test model with the incidence relation to multiple Relevance between key column carries out test
Test function corresponding with the incidence relation is called based on the test model;
It obtains the test function and corresponds to key column in multiple reports;
The relevance between the key column in multiple reports is tested using the test function.
3. according to the method described in claim 2, it is characterized in that, it is described using the test function to the pass in multiple reports Relevance between key column carries out test
Whether the data for successively calculating the key column in the multiple report meet the test function;
The corresponding key column of data for being unsatisfactory for the test function is labeled as to the key column of test crash.
4. the method according to claim 1, wherein between the multiple key columns identified in the test set Incidence relation include:
Obtain the direct correlation report in the association report;
The direct correlation report is grouped;
Batch processing is carried out to the direct correlation report after grouping using multiple threads, direct correlation report is more described in parallelism recognition Incidence relation between a key column.
5. the method according to claim 1, wherein described be based on test model with the incidence relation to multiple Relevance between key column is tested further include:
Classify to the data of the key column, obtains multiple key column data categories;
Obtain the corresponding weight of the key column data category;
According to the classification parameter of the corresponding key column data category of the weight calculation;
The difference for calculating two neighboring classification parameter is tested using the difference.
6. a kind of report test device, which is characterized in that described device includes:
Report obtains module and utilizes the mesh for obtaining target report and association report corresponding with the target report Mark report and the association report test set;
Key column identification module, for identification incidence relation between multiple key columns in the test set;
Relevance test module, for being carried out based on test model and the incidence relation to the relevance between multiple key columns Test;
Report mark module, for when there are the key column of test crash, by the corresponding report of the key column of the test crash List notation is error report.
7. device according to claim 6, which is characterized in that the relevance test module is also used to based on the test Model calls test function corresponding with the incidence relation;It obtains the test function and corresponds to key column in multiple reports; The relevance between the key column in multiple reports is tested using the test function.
8. device according to claim 7, which is characterized in that the relevance test module is also used to successively calculate described Whether the data of the key column in multiple reports meet the test function;The data for being unsatisfactory for the test function are corresponding Key column is labeled as the key column of test crash.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201910192932.3A 2019-03-14 2019-03-14 Report test method, device, computer equipment and storage medium Pending CN110008119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910192932.3A CN110008119A (en) 2019-03-14 2019-03-14 Report test method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910192932.3A CN110008119A (en) 2019-03-14 2019-03-14 Report test method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110008119A true CN110008119A (en) 2019-07-12

Family

ID=67167056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910192932.3A Pending CN110008119A (en) 2019-03-14 2019-03-14 Report test method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110008119A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716857A (en) * 2019-08-27 2020-01-21 平安普惠企业管理有限公司 Test case management method and device, computer equipment and storage medium
CN113505077A (en) * 2021-07-26 2021-10-15 平安信托有限责任公司 Method, device and equipment for testing data table and storage medium
WO2022095736A1 (en) * 2020-11-05 2022-05-12 深圳壹账通智能科技有限公司 Report testing method and apparatus, computer device, and computer-readable storage medium
CN115617817A (en) * 2022-12-14 2023-01-17 深圳迅策科技有限公司 Full-link-based global asset report generation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251825A (en) * 2008-04-03 2008-08-27 北京星网锐捷网络技术有限公司 Device and method for generating test use case
CN106598763A (en) * 2016-12-09 2017-04-26 四川长虹电器股份有限公司 Method for testing BI report

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251825A (en) * 2008-04-03 2008-08-27 北京星网锐捷网络技术有限公司 Device and method for generating test use case
CN106598763A (en) * 2016-12-09 2017-04-26 四川长虹电器股份有限公司 Method for testing BI report

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716857A (en) * 2019-08-27 2020-01-21 平安普惠企业管理有限公司 Test case management method and device, computer equipment and storage medium
CN110716857B (en) * 2019-08-27 2023-12-29 天航长鹰(江苏)科技有限公司 Test case management method, device, computer equipment and storage medium
WO2022095736A1 (en) * 2020-11-05 2022-05-12 深圳壹账通智能科技有限公司 Report testing method and apparatus, computer device, and computer-readable storage medium
CN113505077A (en) * 2021-07-26 2021-10-15 平安信托有限责任公司 Method, device and equipment for testing data table and storage medium
CN115617817A (en) * 2022-12-14 2023-01-17 深圳迅策科技有限公司 Full-link-based global asset report generation method

Similar Documents

Publication Publication Date Title
CN110008119A (en) Report test method, device, computer equipment and storage medium
Sarhan et al. A survey of challenges in spectrum-based software fault localization
CN108509485A (en) Preprocess method, device, computer equipment and the storage medium of data
CN110490720A (en) Financial data analysis and early warning method, apparatus, computer equipment and storage medium
CN110348562A (en) The quantization strategy of neural network determines method, image-recognizing method and device
CN109684383A (en) Acquisition methods, device, computer equipment and the storage medium of data analysis result
CN109062802A (en) A kind of method for testing software, computer readable storage medium and terminal device
CN109816503A (en) Financial details data creation method, device, computer equipment and storage medium
CN109446065A (en) User tag test method, device, computer equipment and storage medium
CN109359669A (en) Method for detecting abnormality, device, computer equipment and storage medium are submitted an expense account in medical insurance
CN108268645A (en) Big data processing method and system
Toure et al. Predicting different levels of the unit testing effort of classes using source code metrics: a multiple case study on open-source software
CN109583682A (en) Recognition methods, device and the computer equipment of business finance fraud risk
CN112612813B (en) Test data generation method and device
CN109783365A (en) Automated testing method, device, computer equipment and storage medium
CN109992506A (en) Scheduling tests method, apparatus, computer equipment and storage medium
CN108469975A (en) Control display methods, device, computer equipment and storage medium
CN111897727A (en) Software testing method and device, computer equipment and storage medium
CN107066389A (en) The Forecasting Methodology that software defect based on integrated study is reopened
CN112631926A (en) Code test coverage rate display method and device, computer equipment and storage medium
CN109542764A (en) Webpage automated testing method, device, computer equipment and storage medium
CN110377742A (en) Text classification evaluating method, device, readable storage medium storing program for executing and computer equipment
Li et al. Multi-programming-language commits in oss: An empirical study on apache projects
CN110032505A (en) Software quality determining device, software quality determine that method and software quality determine program
CN108399125A (en) Automated testing method, device, computer 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190712

WD01 Invention patent application deemed withdrawn after publication