CN110334005A - Graphic data base screening technique and device, storage medium, electronic equipment - Google Patents

Graphic data base screening technique and device, storage medium, electronic equipment Download PDF

Info

Publication number
CN110334005A
CN110334005A CN201910441388.1A CN201910441388A CN110334005A CN 110334005 A CN110334005 A CN 110334005A CN 201910441388 A CN201910441388 A CN 201910441388A CN 110334005 A CN110334005 A CN 110334005A
Authority
CN
China
Prior art keywords
graphic data
tested
data base
test
template
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
CN201910441388.1A
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 Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910441388.1A priority Critical patent/CN110334005A/en
Publication of CN110334005A publication Critical patent/CN110334005A/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

The disclosure belongs to functional test technical field, is related to a kind of graphic data base screening technique and device, computer readable storage medium, electronic equipment.This method comprises: receiving the test instruction of graphic data base, the graphic data base that graphic data base is extracted from test instruction is identified with the multiple graphic data bases to be tested of determination;Performance to be tested is extracted from test instruction, to obtain the test case template with Performance Match to be tested from preset template database;One or more performance indicators of performance to be tested are obtained, and determine test case corresponding with performance indicator using test case template;Test case is run on graphic data base to be tested, to obtain the test result of graphic data base to be tested;The graphic data base to be tested that test result is greater than preset threshold is elected to be targeted graphical database.The disclosure screens graphic data base, reduces human cost, improves testing efficiency, shortens test period, increases testing reliability.

Description

Graphic data base screening technique and device, storage medium, electronic equipment
Technical field
This disclosure relates to functional test technical field more particularly to a kind of graphic data base screening technique, graphic data base Screening plant, computer readable storage medium and electronic equipment.
Background technique
With the development of informationized society, various geo-informatization system rapid emergences.In order to meet the daily demand of user, need Data update is constantly carried out to geo-informatization system, therefore, various database products come into being.When database product is formally thrown Before entering use, need to test properties, examined and compared, thus judge new product whether indices just Often, whether achieve the desired results, if be better than other products.
In general, being tested using third-party testing tool database product.It in this way can not be into but make Row database contrast test, on the one hand, when database number is more, user can not quickly select the number for most matching its demand According to library;On the other hand, the versatility of these testing tools is preferable, but does not have specific aim, when test product is different types of When graphic data base, which might not be applicable in completely, and different graphic data bases has different type, different numbers Performance indicator, be difficult or its test item can not be adjusted for graphic data base, this makes the test of graphic data base accurate Property is lower.
In consideration of it, this field needs to develop a kind of new graphic data base screening technique and device.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide graphic data base screening technique, graphic data base screening plant, computer-readable Storage medium and electronic equipment, and then graph data caused by the limitation due to the relevant technologies is overcome at least to a certain extent The testing scheme in library do not have specific aim and it is not perfect the problems such as.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the disclosure in a first aspect, providing a kind of graphic data base screening technique characterized by comprising receive The test of graphic data base instructs, and the graphic data base that the graphic data base is extracted from the test instruction is identified with determination Multiple graphic data bases to be tested;Performance to be tested is extracted from test instruction, to obtain from preset template database Take the test case template with the Performance Match to be tested;One or more performance indicators of the performance to be tested are obtained, And test case corresponding with the performance indicator is determined using the test case template;In the graph data to be tested The test case is run on library, to obtain the test result of the graphic data base to be tested;The test result is greater than The graphic data base to be tested of preset threshold is elected to be targeted graphical database.
It is described to be referred to using test case template determination with the performance in a kind of exemplary embodiment of the disclosure Mark corresponding test case, comprising: the performance of the graphic data base to be tested is obtained according to graphic data base mark Parameter;The test case template is adjusted according to the performance parameter, it is matched with the graphic data base to be tested with determination Test case.
In a kind of exemplary embodiment of the disclosure, obtained and the property to be tested from preset template database Before the matched test case template of energy, the method also includes: the configuration information in parsing template database is matched according to described Acquisition of information is set for generating the generation program of template data;Utilize the generation Program Generating mould for generating the template data Plate data, and according to described, template data determines the test case template.
In a kind of exemplary embodiment of the disclosure, the generation program utilized for generating the template data is raw At template data, comprising: the default size values for being used to generate template data with the test instructions match;It is default with it is described The indication information for being used to generate template data of test instructions match;Utilize preset generation Program Generating and the size values Template data corresponding with the indication information.
It is described to run the test on the graphic data base to be tested in a kind of exemplary embodiment of the disclosure Use-case, comprising: match the performance to be tested, with the test case template to configure test data;By the survey Examination data, which import in the corresponding graphic data base, forms pending test case, with implementation of test cases.
In a kind of exemplary embodiment of the disclosure, the test result for obtaining the graphic data base to be tested, It include: the individual event score for obtaining the performance indicator;Operation is carried out according to the individual event score and preset index weights, with true The fixed test result.
In a kind of exemplary embodiment of the disclosure, in the test result for obtaining the graphic data base to be tested Before, the method also includes: the individual event score is compared with score threshold, with according to comparison result to described to be measured It tries graphic data base and carries out Screening Treatment;If the individual event score is lower than the score threshold, it is corresponding to remove the individual event score Graphic data base to be tested.
According to the second aspect of the disclosure, a kind of graphic data base screening plant is provided characterized by comprising instruction Receiving module is configured as receiving the test instruction of graphic data base, extracts the graphic data base from test instruction Graphic data base identify with the multiple graphic data bases to be tested of determination;Template obtains module, is configured as referring to from the test Performance to be tested is extracted in order, to obtain the test case mould with the Performance Match to be tested from preset template database Plate;Use-case determining module is configured as obtaining one or more performance indicators of the performance to be tested, and utilizes the test Use-case template determines test case corresponding with the performance indicator;Score computing module is configured as described to be tested The test case is run on graphic data base, to obtain the test result of the graphic data base to be tested;As a result mould is determined Block, the graphic data base to be tested for being configured as the test result being greater than preset threshold are elected to be targeted graphical database.
According to the third aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, It is characterized in that, the computer program realizes the graphic data base in above-mentioned any exemplary embodiment when being executed by processor Screening technique.
According to the fourth aspect of the disclosure, a kind of electronic equipment is provided characterized by comprising processor and memory; Wherein, it is stored with computer-readable instruction on memory, is realized when the computer-readable instruction is executed by the processor State the graphic data base screening technique of any exemplary embodiment.
As shown from the above technical solution, the graphic data base screening technique in disclosure exemplary embodiment, graph data Library screening plant, computer storage medium and electronic equipment at least have following advantages and good effect:
The method that the exemplary embodiment of the disclosure provides determines figure to be tested by the test instruction of graphic data base Database and corresponding test case template, and the test case in test case template is adjusted, obtain with it is to be measured The test case of Performance Match is tried, to run test case on graphic data base to be tested, is completed to multiple figures to be tested The screening operation of database.On the one hand, test case template is determined by the generation to the template data in test case template, The adjustment of generation and test case to test case template is not necessarily to user's manual configuration, and can be according to test case and property The degree of association between energy index determines the incidence relation of test case template Yu performance to be tested, and test case configuration is avoided to omit The case where, the accuracy of graph data library test is improved, the human cost in test case determination process is decreased;It is another Aspect determines test result according to the score of the performance to be tested of multiple graphic data bases to be tested, can be to not meeting demand Graphic data base to be tested screened, and to the contrast test of multiple graphic data bases, improve testing efficiency, shorten and survey The period is tried, testing reliability is increased.
The disclosure it should be understood that more than general description and following detailed description be only exemplary and explanatory , it does not limit the disclosure.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of flow chart of graphic data base screening technique in disclosure exemplary embodiment;
Fig. 2 schematically shows in the embodiment of the present disclosure and is obtained and graphic data base to be tested according to graphic data base mark The flow diagram for the test case matched;
Fig. 3 schematically shows the process signal for running test case in the embodiment of the present disclosure on graphic data base to be tested Figure;
Fig. 4 schematically shows the process signal for the test result that graphic data base to be tested is determined in the embodiment of the present disclosure Figure;
Fig. 5 schematically shows the flow diagram that test case template is generated in the embodiment of the present disclosure;
The process that Fig. 6 schematically shows the generation Cheng Shengcheng template data in the embodiment of the present disclosure according to template data is illustrated Figure;
Fig. 7 schematically shows the flow diagram that graphic data base to be tested is screened in the embodiment of the present disclosure;
Fig. 8 schematically shows a kind of structural schematic diagram of graphic data base screening plant in the embodiment of the present disclosure;
Fig. 9 schematically shows a kind of electronic equipment of graphic data base screening technique in disclosure exemplary embodiment;
Figure 10 schematically shows a kind of computer for graphic data base screening technique in disclosure exemplary embodiment Readable storage medium storing program for executing.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In this specification using term "one", " one ", "the" and " described " to indicate there are one or more elements/ Component part/etc.;Term " comprising " and " having " is to indicate the open meaning being included and refer in addition to listing Element/component part/also may be present except waiting other element/component part/etc.;Term " first " and " second " etc. are only made It is used for label, is not the quantity limitation to its object.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.
For problem present in the relevant technologies, the present disclosure proposes a kind of graphic data base screening technique, Fig. 1 is shown The flow chart of graphic data base screening technique, as shown in Figure 1, graphic data base screening technique mainly may comprise steps of:
Step S101. receives the test instruction of graphic data base, and the figure number of graphic data base is extracted from test instruction It identifies according to library with the multiple graphic data bases to be tested of determination;
Step S102. from test instruction in extract performance to be tested, with from preset template database obtain with it is to be measured Try the test case template of Performance Match;
Step S103. obtains one or more performance indicators of performance to be tested, and using test case template determine with The corresponding test case of performance indicator;
Step S104. runs test case on graphic data base to be tested, to obtain the survey of graphic data base to be tested Try score;
The graphic data base to be tested that test result is greater than preset threshold is elected to be targeted graphical database by step S105..
In an exemplary embodiment of the disclosure, graphic data base to be tested is determined by the test instruction of graphic data base And corresponding test case template, and the test case in test case template is adjusted, it obtains and performance to be tested Matched test case is completed with running test case on graphic data base to be tested to multiple graphic data bases to be tested Screening operation.On the one hand, test case template is determined by the generation to the template data in test case template, to test The generation of use-case template and the adjustment of test case are not necessarily to user's manual configuration, and can be according to test case and performance indicator Between the degree of association determine the incidence relation of test case template Yu performance to be tested, the feelings for avoiding test case configuration from omitting Condition improves the accuracy of graph data library test, decreases the human cost in test case determination process;Another party Face determines test result according to the score of the performance to be tested of multiple graphic data bases to be tested, can be to not meeting demand Graphic data base to be tested is screened, and to the contrast test of multiple graphic data bases, is improved testing efficiency, shortened test Period increases testing reliability.
Each step of graphic data base screening technique is described in detail below.
In step s101, the test instruction for receiving graphic data base, extracts the figure of graphic data base from test instruction Graphic data library is identified with the multiple graphic data bases to be tested of determination.
In an exemplary embodiment of the disclosure, user, can be to terminal when testing a graphic data base Equipment sends test instruction.The operation for sending test instruction can manually perform, and also can be performed automatically.Wherein, it holds manually Row can be user on the interactive interface of terminal device, input corresponding test command identification, and click characterization test and start Control, generate test instruction, be also possible to be locally generated test instruction by user terminal, and test instruction is passed through Communication network is sent to terminal device, alternatively, it is also possible to be the manual sending method of other forms relevant to instruction is tested, this Exemplary embodiment does not do particular determination to this;Automatic execute can be user setting test starting time or test starting week Phase generates test instruction, and be sent to when detecting that current time meets test starting time or test starting period Terminal device is also possible to user setting test starting event, when receiving the information that test starting event execution is completed, The test starting event is identified as test instruction, alternatively, it is also possible to be the automatic hair of other forms relevant to instruction is tested Delivery method, the present exemplary embodiment do not do particular determination to this.It include the graphic data base of graphic data base in test instruction Mark, graphic data base mark are the identification information of graphic data base for identification, such as title, the figure of graphic data base The type etc. of database.Terminal device receive test instruction after, can by graphic data base identify character string information or its His feature information extraction goes out graphic data base mark, is also possible to instruct progress word segmentation processing to obtain graphic data base test Mark, to determine multiple graphic data bases to be tested according to graphic data base mark.
In step s 102, from test instruction in extract performance to be tested, with from preset template database obtain with The test case template of Performance Match to be tested.
It in an exemplary embodiment of the disclosure, include performance to be tested in test instruction, which is user It is expected that the performance of the graphic data base to be tested understood, for example, performance to be tested can be the handling up property of graphic data base Energy, concurrency performance, volumetric properties and deadlock performance etc..After terminal device receives test instruction, performance to be tested can be passed through Character string information or other feature information extractions go out performance to be tested, be also possible to test instruct carry out word segmentation processing to obtain Obtain performance to be tested.It, can be according to the determining survey with Performance Match to be tested of performance to be tested in preset template database Example template on probation.Wherein, template database is made of test case template, between test case template and performance to be tested There are one-to-one relationships, i.e., a performance to be tested is corresponding with a test case template, and test case template is Set through the test case generated.Therefore, terminal device can be according in performance indicator query template database to be tested It is no there are corresponding test case template, can call directly with the test case template of Performance Match to be tested to treat Respective performances, module of resolution chart database etc. are tested.And it is possible to which what be will acquire is corresponding with performance to be tested Test case template generates a candidate test case template pond.It is stored in the test case template pond in test instruction and includes The corresponding test case template of all performances to be tested.When testing a certain performance to be tested, need to only be used from test Example template extracts corresponding test case template in pond, it is not necessary that entire template database is traversed and matched, saves Testing time, and improve the formation efficiency of test script.
In step s 103, one or more performance indicators of performance to be tested are obtained, and true using test case template Fixed test case corresponding with performance indicator.
In an exemplary embodiment of the disclosure, include one or more performance indicators in performance to be tested, used in test In example template, each performance indicator is corresponding with a test case.It for example, can be with when performance to be tested is throughput performance Including query rate per second (Query Per Second, QPS) and number of transactions per second (Transactions Per Second, TPS) Two performance indicators;It may include a performance indicator of concurrency when performance to be tested is concurrency performance;Performance to be tested is It may include three performance indicators for characterizing the utilization rates of resources such as CPU, IO, network interface card when volumetric properties index;Performance to be tested It may include that deadlock waits one performance indicator of number when index is deadlock performance.When test case template and performance indicator it Between when exactly matching, the test case that can be extracted in test case template carries out this test;But work as test case template In be not present test case template matched with performance indicator when, then can according to graphic data base identify adjustment test case mould Plate obtains matching test case.Fig. 2 shows obtained and graphic data base to be tested according to graphic data base mark The flow diagram for the test case matched, as shown in Fig. 2, obtaining the method with the matched test case of graphic data base to be tested Including at least following two step: in step s 201, the property of graphic data base to be tested is obtained according to graphic data base mark It can parameter.Terminal device determines the type or version of graphic data base to be tested according to the graphic data base mark got Deng to obtain the performance parameter of graphic data base to be tested.Specifically, figure need to be worked out before graphic data base generation The software requirements specification of database can list the relevant parameter of graphic data base in the software requirements specification, for example, Can there are data type, performance requirement, model rule etc..In step S202, test case template is adjusted according to performance parameter, With the determining and matched test case of graphic data base to be tested.For identical performance to be tested, to be measured attempt different When being tested on graphic data library, by according to the feature of the performance to be tested of graphic data base to be tested, adjust in test case Performance indicator, to build the test environment of matching graphic data base to be tested.For example, for testing deadlock The test case template of energy only includes the test case that deadlock waits number, when the deadlock etc. that need to treat resolution chart database When being tested the time, test template can be adjusted, number and deadlock waiting time are waited according to test deadlock Test case obtains the test case template for the deadlock performance for meeting demand.Therefore, the test in different test case templates The performance parameter of use-case and graphic data base to be tested is closely related, and most of test case of identical performance parameter is logical , i.e., the corresponding test case of performance parameter that need to only adjust graphic data base to be tested obtains and graphic data base to be tested Matched test case, without user in each test, manual configuration, saves manpower, also further improves figure again The testing efficiency in graphic data library.
In step S104, test case is run on graphic data base to be tested, to obtain graphic data base to be tested Test result.
In an exemplary embodiment of the disclosure, Fig. 3 is shown runs test case on graphic data base to be tested Flow diagram, as shown in figure 3, the method for running test case on graphic data base to be tested is walked including at least following two It is rapid: in step S301, performance to be tested to be matched with test case template, to configure test data.Terminal device will Performance to be tested is matched from template database (prestoring the template data of different test case templates in template database), For example, terminal device is according to graphic data base to be tested, selection and the performance-relevant template number to be tested in template database According to, and test data and each graphic data base to be tested are associated, to complete matching for test data according to template data It sets.Wherein, test data refers to the corresponding truthful data of performance to be tested targeted during the test, therefore, tests number According to composition and the needs such as type it is consistent with the storage organization of the template data in test case template.In step s 302, will Test data, which imports, forms pending test case in corresponding graphic data base, with implementation of test cases.By test data It is matched with the template data in template database, to determine the test data in test case, and test data is brought into Corresponding test case template forms pending test case, with implementation of test cases.By according to template data to test Data are configured, and to complete the multiple unduplicated test to test case, are improved and are surveyed while guaranteeing test accuracy rate Try efficiency.
In an exemplary embodiment of the disclosure, Fig. 4 shows the stream for determining the test result of graphic data base to be tested Journey schematic diagram, as shown in figure 4, the method for determining the test result of graphic data base to be tested includes at least following two step: In step S401, the individual event score of performance indicator is obtained.Each performance indicator is corresponding with test case, detects that the test is used At the end of example executes, corresponding individual event score can be obtained according to its performance indicator.For example, for the dead of deadlock performance At the end of the test case execution for locking waiting time and deadlock waiting number, 66 points and 72 points of individual event can be obtained respectively and is obtained Point.In step S402, operation is carried out according to individual event score and preset index weights, to determine test result.For multiple Performance indicator has distributed weight to each test index.For example, a test case template is test deadlock performance, Test index can have deadlock waiting time and deadlock to wait number, and to the deadlock waiting time, the weight of distribution is 20, to deadlock The weight for waiting number distribution is 10, and when the individual event score of the two is respectively 66 points and 72 timesharing, then its test result is 2040 Point.
In step s105, the graphic data base to be tested that test result is greater than preset threshold is elected to be targeted graphical data Library.
In an exemplary embodiment of the disclosure, for obtained test result, resolution chart database can be treated It is screened.Specifically, one preset threshold of setting, the preset threshold can characterize the numerical value of score size, can will test Score is greater than the graphic data base to be tested of the preset threshold as the selection result, is elected to be targeted graphical database.For example, It is 2000 points that preset threshold, which is arranged, and the test result of a graphic data base to be tested is 2040 points, then the figure number to be tested It is targeted graphical database according to library;If the test result of a graphic data base to be tested is 1800 points, then the figure to be tested Database is unselected.
In an exemplary embodiment of the disclosure, it in implementation of test cases on graphic data base to be tested, can trigger Performance indicator parameter acquisition program operation in parameter acquisition platform is also referred to performance with automatic collection performance indicator parameter The execution of target test case is separated with performance indicator parameter acquisition, may be implemented simultaneously to performance in test case implementation procedure The acquisition of index parameter, and performance indicator parameter is imported into test display model, generate performance indicatrix table.Detecting test When use-case executes completion, test result is obtained, test performance assessment report is generated according to test result and performance indicator chart.
In an exemplary embodiment of the disclosure, determine that test is used according to the degree of association between test case and performance indicator The incidence relation of example template and performance to be tested, avoids test case from configuring the case where omitting, improves graph data library test Accuracy, decrease the human cost in test case determination process;On the other hand, according to multiple graph datas to be tested The score of the performance to be tested in library determines test result, can improve testing efficiency to the contrast test of multiple graphic data bases, Shorten test period, increases testing reliability.
Fig. 5 shows the flow diagram for generating test case template, as shown in figure 5, this method includes at least following two A step: in step S501, the configuration information in template database is parsed, is obtained according to configuration information for generating template number According to generation program.Terminal device parses the configuration information in test case template, which includes the letter of test item Breath, the corresponding program installation kit of test case, according to the information of the test item in configuration information and the corresponding journey of test case Sequence installation kit selects template data type and template data range etc., to obtain the generation program for generating template data.? In step S502, using the generation Program Generating template data for generating template data, and is determined and tested according to template data Use-case template.Determine that preset template database (preserves the multiple groups according to different testing requirement settings in template database Test case and the relevant configuration information of test case) in configuration information, configuration information includes for generating template data Size values and indication information etc..Fig. 6 shows the flow diagram of the generation Program Generating template data according to template data, As shown in fig. 6, this method includes at least the following three steps: in step s 601, presetting with test instructions match for giving birth to At the size values of template data.Wherein, size values refer to the performance indicator number for including in test case template.Citing and Speech, the size values of the test case template of throughput performance are 2, and the size values of the test case template of concurrency performance are 1, are held The size values for measuring the use-case template to be tested of performance are 3, and the size values of the use-case template to be tested of deadlock performance are 2.? In step S602, the default indication information for being used to generate template data with test instructions match.Wherein, indication information refers to survey The information for the performance indicator for including in example template on probation.For example, the indication information of the test case template of throughput performance is Inquiry list (Query Per Second, QPS) per second and number of transactions per second (Transactions Per Second, TPS) two The information of a performance indicator;The indication information of the test case template of concurrency performance includes the information of the performance indicator of concurrency; The indication information of the use-case template to be tested of volumetric properties includes the performance indicator for characterizing the utilization rates of resources such as CPU, IO, network interface card Information;The indication information of the use-case template to be tested of deadlock performance is that deadlock waits number and the performance of deadlock waiting time to refer to Target information.In step S603, preset generation Program Generating template corresponding with size values and indication information is utilized Data.Input instruction based on preset generation program, i.e. tester is converted to corresponding service logic program sentence, according to The size values of template data and the relationship model of indication information are generated, meet tester using the generation of service logic program sentence The template data of member's demand, and template data is stored in template database.By to the template data in template database Generation, test case template can be determined, on the one hand solve the automatic of the template data in test case template Generation problem saves manpower;Further, by the mould in the template data and graphic data base to be tested in test case template Plate database is matched, and provides guarantee to the accuracy of test result;On the other hand, since the generation of template data just The matched that ensure that test case template and performance indicator ensure that the versatility of test case template, to reuse Test case template has great benefit.
Fig. 7 shows the flow diagram for screening graphic data base to be tested, as shown in fig. 7, this method include at least with Lower two steps: in step 701, individual event score is compared with score threshold, to treat test chart according to comparison result Graphic data library carries out Screening Treatment.For the score of the individual event of each test case, score threshold is set, it is complete according to the score threshold At screening operation.For example, score threshold is 60 points, two performance indicators of deadlock performance, i.e. deadlock waiting time and dead It is respectively 66 points and 72 points that lock, which waits the individual event score of number, it is seen then that the score of two performance indicators is all larger than score threshold 60 Point, it can should be retained from the point of view of the deadlock performance of graphic data base to be tested.In step S702, if individual event obtains Divide and be lower than score threshold, removes the corresponding graphic data base to be tested of individual event score.It for example, is 60 points in score threshold When, two performance indicators of the throughput performance of graphic data base to be tested, i.e., the individual event of query rate per second and transaction rate per second obtains It is respectively 52 points and 84 points.Since the individual event score of the query rate per second of the graphic data base to be tested is less than the score of setting Therefore threshold value can remove the graphic data base to be tested, no longer carry out next test result calculating.At screening Reason, a part of incongruent graphic data base to be tested is rejected, to save testing procedure and process, quickly filters out symbol Close the graphic data base of tester's demand.It should be noted that the performance indicator for each performance to be tested is provided with point Number threshold value, even if multiple performances to be tested of graphic data base to be tested are all satisfied score threshold, as long as there is a performance to be tested In one or more performance indicators be unsatisfactory for score threshold, it is also desirable to corresponding graphic data base to be tested is removed.
It should be noted that, although the embodiment of exemplary embodiment above describes side in the disclosure with particular order Each step of method, still, this does not require that perhaps hint must execute these steps or necessary in this particular order It executes whole steps and is just able to achieve desired result.Additionally or alternatively, it is convenient to omit certain steps, by multiple steps It merges into a step to execute, and/or a step is decomposed into execution of multiple steps etc..
In addition, additionally providing a kind of graphic data base screening plant in the example embodiment of the disclosure.Fig. 8 is shown The structural schematic diagram of graphic data base screening plant, as shown in figure 8, graphic data base screening plant 800 may include: that instruction connects Receive module 801, template obtains module 802, use-case determining module 803, score computing module 804, result determining module 805.Its In:
Command reception module 801 is configured as receiving the test instruction of graphic data base, extracts figure from test instruction The graphic data base of database is identified with the multiple graphic data bases to be tested of determination;Template obtains module 802, is configured as from survey Performance to be tested is extracted in examination instruction, to obtain the test case mould with Performance Match to be tested from preset template database Plate;Use-case determining module 803 is configured as obtaining one or more performance indicators of performance to be tested, and utilizes test case Template determines test case corresponding with performance indicator;Score computing module 804 is configured as in graphic data base to be tested Upper operation test case, to obtain the test result of graphic data base to be tested;As a result determining module 805 are configured as to survey The graphic data base to be tested that examination score is greater than preset threshold is elected to be targeted graphical database.
The detail of above-mentioned graphic data base screening plant carries out in corresponding graphic data base screening technique Detailed description, therefore details are not described herein again.
It should be noted that although be referred in the above detailed description graphic data base screening plant 800 several modules or Person's unit, but this division is not enforceable.In fact, according to embodiment of the present disclosure, above-described two or More multimode or the feature and function of unit can embody in a module or unit.Conversely, above-described one A module or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
In addition, in an exemplary embodiment of the disclosure, additionally providing a kind of electronic equipment that can be realized the above method.
The electronic equipment 900 of this embodiment according to the present invention is described referring to Fig. 9.The electronics that Fig. 9 is shown is set Standby 900 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 9, electronic equipment 900 is showed in the form of universal computing device.The component of electronic equipment 900 can wrap It includes but is not limited to: at least one above-mentioned processing unit 910, at least one above-mentioned storage unit 920, the different system components of connection The bus 930 of (including storage unit 920 and processing unit 910), display unit 940.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 910 Row, so that various according to the present invention described in the execution of the processing unit 910 above-mentioned " illustrative methods " part of this specification The step of exemplary embodiment.
Storage unit 920 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 921 and/or cache memory unit 922, it can further include read-only memory unit (ROM) 923.
Storage unit 920 can also include program/utility 924 with one group of (at least one) program module 925, Such program module 925 includes but is not limited to: operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.
Bus 930 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 900 can also be with one or more external equipments 1100 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 900 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 900 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 950.Also, electronic equipment 900 can be with By network adapter 960 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 940 is communicated by bus 930 with other modules of electronic equipment 900. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 900, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention can be with It is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal device Program code is for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to the present invention The step of various exemplary embodiments.
Refering to what is shown in Fig. 10, describing the program product for realizing the above method of embodiment according to the present invention 1000, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (10)

1. a kind of graphic data base screening technique, which is characterized in that the described method includes:
The graphic data base mark of the graphic data base is extracted in the test instruction for receiving graphic data base from the test instruction Know with the multiple graphic data bases to be tested of determination;
Performance to be tested is extracted from test instruction, to obtain and the performance to be tested from preset template database Matched test case template;
One or more performance indicators of the performance to be tested are obtained, and utilize test case template determination and the property It can the corresponding test case of index;
The test case is run on the graphic data base to be tested, to obtain the test of the graphic data base to be tested Score;
The graphic data base to be tested that the test result is greater than preset threshold is elected to be targeted graphical database.
2. graphic data base screening technique according to claim 1, which is characterized in that described to utilize the test case mould Plate determines test case corresponding with the performance indicator, comprising:
The performance parameter of the graphic data base to be tested is obtained according to graphic data base mark;
The test case template is adjusted according to the performance parameter, with the determining and matched survey of graphic data base to be tested Example on probation.
3. graphic data base screening technique according to claim 1, which is characterized in that from preset template database Before obtaining the test case template with the Performance Match to be tested, the method also includes:
The configuration information in template database is parsed, the generation journey for generating template data is obtained according to the configuration information Sequence;
Using the generation Program Generating template data for generating the template data, and according to template data determination Test case template.
4. graphic data base screening technique according to claim 3, which is characterized in that described to utilize for generating the mould The generation Program Generating template data of plate data, comprising:
The default size values for being used to generate template data with the test instructions match;
The default indication information for being used to generate template data with the test instructions match;
Utilize preset generation Program Generating template data corresponding with the size values and the indication information.
5. graphic data base screening technique according to claim 1, which is characterized in that described in the figure number to be tested According to running the test case on library, comprising:
The performance to be tested is matched with the test case template, to configure test data;
The test data is imported in the corresponding graphic data base to be tested and forms pending test case, to execute Test case.
6. graphic data base screening technique according to claim 1, which is characterized in that described to obtain the figure to be tested The test result of database, comprising:
Obtain the individual event score of the performance indicator;
Operation is carried out according to the individual event score and preset index weights, with the determination test result.
7. graphic data base screening technique according to claim 6, which is characterized in that obtain described to be measured attempting described Before the test result in graphic data library, the method also includes:
The individual event score is compared with score threshold, to be carried out according to comparison result to the graphic data base to be tested Screening Treatment;
If the individual event score is lower than the score threshold, the corresponding graphic data base to be tested of the individual event score is removed.
8. a kind of graphic data base screening plant characterized by comprising
Command reception module is configured as receiving the test instruction of graphic data base, extracts the figure from test instruction The graphic data base in graphic data library is identified with the multiple graphic data bases to be tested of determination;
Template obtains module, be configured as instructing from the test in extract performance to be tested, with from preset template database The test case template of middle acquisition and the Performance Match to be tested;
Use-case determining module is configured as obtaining one or more performance indicators of the performance to be tested, and utilizes the survey Example template on probation determines test case corresponding with the performance indicator;
Score computing module is configured as running the test case on the graphic data base to be tested, described to obtain The test result of graphic data base to be tested;
As a result determining module, the graphic data base to be tested for being configured as the test result being greater than preset threshold are elected to be target Graphic data base.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Graphic data base screening technique described in any one of claim 1-7 is realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Processor;
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to carrying out any one of perform claim requirement 1-7 via the executable instruction is executed The graphic data base screening technique.
CN201910441388.1A 2019-05-24 2019-05-24 Graphic data base screening technique and device, storage medium, electronic equipment Pending CN110334005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910441388.1A CN110334005A (en) 2019-05-24 2019-05-24 Graphic data base screening technique and device, storage medium, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910441388.1A CN110334005A (en) 2019-05-24 2019-05-24 Graphic data base screening technique and device, storage medium, electronic equipment

Publications (1)

Publication Number Publication Date
CN110334005A true CN110334005A (en) 2019-10-15

Family

ID=68139427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910441388.1A Pending CN110334005A (en) 2019-05-24 2019-05-24 Graphic data base screening technique and device, storage medium, electronic equipment

Country Status (1)

Country Link
CN (1) CN110334005A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427790A (en) * 2020-03-26 2020-07-17 中国建设银行股份有限公司 Test method, test device, terminal equipment and storage medium
CN113010548A (en) * 2020-12-28 2021-06-22 魔元术(苏州)信息科技有限公司 Automatic matching graph system for data billboard
CN113704107A (en) * 2021-08-26 2021-11-26 平安国际智慧城市科技股份有限公司 Application testing method, device, equipment and computer readable storage medium
CN116261091A (en) * 2023-05-16 2023-06-13 深圳市百泰实业股份有限公司 Bluetooth testing system and method capable of customizing testing flow

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425683A (en) * 2012-05-18 2013-12-04 上海宝信软件股份有限公司 Database performance test system
CN106383786A (en) * 2016-09-27 2017-02-08 北京金山安全软件有限公司 Interface pressure performance testing method and device and electronic equipment
CN108255653A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 The test method and its terminal of a kind of product
CN108459958A (en) * 2017-12-08 2018-08-28 平安科技(深圳)有限公司 The creation method of function and performance test script, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425683A (en) * 2012-05-18 2013-12-04 上海宝信软件股份有限公司 Database performance test system
CN106383786A (en) * 2016-09-27 2017-02-08 北京金山安全软件有限公司 Interface pressure performance testing method and device and electronic equipment
CN108459958A (en) * 2017-12-08 2018-08-28 平安科技(深圳)有限公司 The creation method of function and performance test script, device, equipment and storage medium
CN108255653A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 The test method and its terminal of a kind of product

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427790A (en) * 2020-03-26 2020-07-17 中国建设银行股份有限公司 Test method, test device, terminal equipment and storage medium
CN113010548A (en) * 2020-12-28 2021-06-22 魔元术(苏州)信息科技有限公司 Automatic matching graph system for data billboard
CN113704107A (en) * 2021-08-26 2021-11-26 平安国际智慧城市科技股份有限公司 Application testing method, device, equipment and computer readable storage medium
CN113704107B (en) * 2021-08-26 2024-05-07 平安国际智慧城市科技股份有限公司 Application testing method, device, equipment and computer readable storage medium
CN116261091A (en) * 2023-05-16 2023-06-13 深圳市百泰实业股份有限公司 Bluetooth testing system and method capable of customizing testing flow
CN116261091B (en) * 2023-05-16 2023-08-04 深圳市百泰实业股份有限公司 Bluetooth testing system and method capable of customizing testing flow

Similar Documents

Publication Publication Date Title
CN110334005A (en) Graphic data base screening technique and device, storage medium, electronic equipment
US20190272893A1 (en) Methods and systems for biological data analysis
AU2017205763A1 (en) System, device and method for releasing vehicle insurance surveying task, and readable storage medium
EP3723095A1 (en) Latent space exploration using linear-spherical interpolation region method
CN109902022A (en) The method and relevant device tested automatically for loophole of vertically going beyond one's commission
CN109815147A (en) Test cases generation method, device, server and medium
CN103970646B (en) A kind of automatic analysis method for the sequence of operation and system thereof
CN110096444A (en) A kind of management system, application method and equipment generating test case based on excel
US20220350961A1 (en) Systems and methods for tool integration using cross channel digital forms
CN109947651B (en) Artificial intelligence engine optimization method and device
CN111209409A (en) Data matching method and device, storage medium and electronic terminal
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN110008101A (en) Client performance evaluation method, device, storage medium and electronic equipment
CN110109824A (en) Big data automatic regression test method, apparatus, computer equipment and storage medium
CN109471862A (en) Data processing method and device, electronic equipment, storage medium
CN108574733A (en) Network agent method and device, storage medium and electronic equipment
EP4092538A1 (en) Method and apparatus for testing electronic map, and electronic device and storage medium
CN113138937A (en) Test method and device
CN117172237A (en) Data analysis method and device, electronic equipment and storage medium
CN109597989A (en) Diagnose word normalizing method and device, storage medium, electronic equipment
CN115910062A (en) Audio recognition method, device, equipment and storage medium
US10084853B2 (en) Distributed processing systems
CN111813648A (en) Automatic testing method and device applied to App, storage medium and electronic equipment
CN105553970A (en) Information system safety inspection device and inspection result analysis method
EP3401795A1 (en) Classifying conversational services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: Pingan Pu Hui Enterprise Management Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: Pingan Pu Hui Enterprise Management Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination