CN108241607A - Automatically imported method, server and the storage medium of test of heuristics case - Google Patents
Automatically imported method, server and the storage medium of test of heuristics case Download PDFInfo
- Publication number
- CN108241607A CN108241607A CN201810060718.8A CN201810060718A CN108241607A CN 108241607 A CN108241607 A CN 108241607A CN 201810060718 A CN201810060718 A CN 201810060718A CN 108241607 A CN108241607 A CN 108241607A
- Authority
- CN
- China
- Prior art keywords
- case
- test
- template
- heuristics
- numerical value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses in the automatically imported method, server and storage medium of test of heuristics case, the automatically imported method of the test of heuristics case creates several template forms, and the policy information data of input are stored into corresponding template form;When detection needs to generate case test template, the content of template form is parsed, receive the keyword of input and inquires required case;The process step and data information of case are parsed, unit item and its numerical value are parsed to each data information;Corresponding numerical value is obtained according to preset configuration condition to be spliced, and obtains case data information;Until the corresponding all cases of all keywords of input obtain the case data information needed for it;By all corresponding case data information integrations of keyword into storing in a case test template and typing server.Due to directly invoking template form and therefrom inquiring required case and relevant information, the speed of case offer is be provided, reduces the possibility of case template error.
Description
Technical field
The present invention relates to algorithmic technique fields, and in particular to the automatically imported method of test of heuristics case, server and deposits
Storage media.
Background technology
At present, when business colleague fills in case test template, generally use fills in the mode of case test template manually, this
Sample needs a large amount of time energy and error rate is higher.When case test template is problematic, exploitation colleague works together it with business
Between need to communicate with each other problem of finding out, spend the time longer and to link up cost larger.When case test template needs update, need
Spend the time to business colleague explanation have changed which.Since case structure is relative complex, business colleague needs a timing
Between it is familiar could skillfully use, it is relatively time-consuming.
Therefore, the prior art has yet to be improved and developed.
Invention content
Part in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of the automatic of test of heuristics case
Introduction method, server and storage medium need to directly invoke the template form to prestore when generating case test template, in template
Required case is inquired in table and relevant information automatically generates case test template.The speed of case offer is be provided,
Reduce the possibility of case template error, also save test artificially by the process of case input database.
In order to achieve the above object, this invention takes following technical schemes:
A kind of automatically imported method of test of heuristics case, includes the following steps:
Several template forms are created, the policy information data of input are stored into corresponding template form;
When detection needs to generate case test template, the content of template form is parsed, is received needed for keyword and the inquiry of input
Case;
Parse the process step of the case and corresponding data information, each data information is parsed corresponding unit item and
Its numerical value;
Corresponding numerical value is obtained according to preset configuration condition to be spliced, and obtains corresponding case data information;
Until the corresponding all cases of all keywords of input obtain the case data information needed for it;It will be current all
The corresponding case data information integration of keyword is into storing in a case test template and typing server.
It is described until the corresponding institute of all keywords of input in the automatically imported method of the test of heuristics case
There is case to obtain the case data information needed for it;By current all corresponding case data information integrations of keyword into one
In the step of being stored in case test template and typing server, further include:
When judging to also have keyword input, when return is described to be needed to generate case test template, the content of template form, root are parsed
According to the process step of the case needed for the keyword query of input.
In the automatically imported method of the test of heuristics case, described the step of creating several template forms, wraps
It includes:
Corresponding template form is respectively created according to the flow of insurance, template form is named automatically with the title of flow.
In the automatically imported method of the test of heuristics case, the policy information data include:The information of client
Data, the information data of insurance kind and result of calculation;
The information data of the client includes:Warrantee's age, number of insuring, date of insuring, protection amount;
The information data of the insurance kind includes:Introduction, dividend rate, payment time limit, the payout status of bonus and the algorithm of insurance kind,
The situation and algorithm of Claims Resolution;
The result of calculation is the financial value of client calculated according to the information data of client and the information data of insurance kind;From danger
Kind information data in obtain the algorithm of corresponding income, the search algorithm institute from the information data of the information data of client and insurance kind
The parameter needed, each parameter is brought into algorithm and calculates corresponding financial value.
In the automatically imported method of the test of heuristics case, when the detection needs to generate case test template,
The content of template form is parsed, the process step for receiving the keyword of input and inquiring required case includes:
When detection needs to generate case test template, parse the content of template form and arranged by the sequencing of insurance flow each
Template form;
Call needed for template form, receive input keyword and inquiry needed for position of the case in the template form;
It receives the docuterm inputted and space and positions to corresponding case.
In the automatically imported method of the test of heuristics case, the process step and data of the parsing case
Information, the step of corresponding unit item and its numerical value are parsed to each data information, include:
It detects the merging phase of the cell where the case and parses the process step of the case and corresponding data letter
Breath;
The corresponding unit item of each data information and its numerical value are parsed, the numerical value of each unit item is verified.
In the automatically imported method of the test of heuristics case, the unit item includes time, age, the amount of money;Institute
The step of verifying the numerical value of each unit item is stated to include:
In the range of the number of days for checking time being required whether to limit in every month according to preset date format;According to preset number
It is worth whether the area requirement verification age is more than to limit age, the lower case format whether the filling in of the amount of money meets RMB and whether
For Arabic numerals.
It is described corresponding according to the acquisition of preset configuration condition in the automatically imported method of the test of heuristics case
Numerical value is spliced, and the process step for obtaining corresponding case includes:
According to subconditional sequencing each in configuration condition, corresponding numerical value is from left to right retrieved from unit item successively;
Each numerical value is spliced into a Database field by continuous;
Judge whether also configuration condition:Have and then return according to subconditional sequencing each in configuration condition, from left to right according to
The step of corresponding numerical value being retrieved in the secondary item from unit;Nothing then extracts the corresponding Database field of current all configuration conditions
And it is integrated into a case example data information.
A kind of application server being automatically imported of test of heuristics case, including:Processor, memory, communication bus;Institute
State the computer-readable program that is stored with and can be performed by the processor on memory;
The communication bus realizes the connection communication between processor and memory;
The processor realized when performing the computer-readable program the as above test of heuristics case described in any one from
Step in dynamic introduction method.
A kind of computer readable storage medium, there are one the computer-readable recording medium storages or multiple programs,
One or more of programs can be performed by one or more processor, to realize that the algorithm described in as above any one is surveyed
Try the step in the automatically imported method of case.
In the automatically imported method of test of heuristics case provided by the invention, server and storage medium, the algorithm is surveyed
The automatically imported method of case is tried by creating several template forms, the policy information data of input are stored to corresponding mould
In plate table;When detection needs to generate case test template, the content of template form is parsed, receives keyword and the inquiry of input
Required case;The process step of the case and corresponding data information are parsed, each data information is parsed corresponding
Unit item and its numerical value;Corresponding numerical value is obtained according to preset configuration condition to be spliced, and obtains corresponding case data letter
Breath;Until the corresponding all cases of all keywords of input obtain the case data information needed for it;It will be current all
The corresponding case data information integration of keyword is into storing in a case test template and typing server.It is pre- due to directly invoking
The template form deposited, inquires required case in template form and relevant information automatically generates case test template.Greatly carry
The speed that high case provides, reduces the possibility of case template error, also saves test artificially by case input database
Process.
Description of the drawings
Fig. 1 is the flow chart of the automatically imported method of test of heuristics case provided by the invention;
Fig. 2 is the flow chart of the automatically imported method step S20 of test of heuristics case provided by the invention;
Fig. 3 is the flow chart of the automatically imported method step S30 of test of heuristics case provided by the invention;
Fig. 4 is the flow chart of the automatically imported method step S40 of test of heuristics case provided by the invention;
Fig. 5 is the running environment of the preferred embodiment of the application server being automatically imported of test of heuristics case provided by the invention
Schematic diagram;
Fig. 6 is the function module of the preferred embodiment of the application server being automatically imported of present invention installation test of heuristics case
Figure.
Specific embodiment
In view of fill in the shortcomings that case test template is relatively time-consuming and error rate is higher manually in the prior art, it is of the invention
A kind of automatically imported method, server and the storage medium of test of heuristics case are designed to provide, by by data and calculating
As a result it prestores into several template forms, needs to directly invoke corresponding templates table when generating case test template.Root
Required case and relevant information are inquired in template form according to keyword, automatically generates case test template.It greatly improves
The speed that case provides reduces the possibility of case template error, also saves test colleague by the process of case input database.
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that specific embodiment described herein is not used to only to explain the present invention
Limit the present invention.
Referring to Fig. 1, the flow chart of its automatically imported method for test of heuristics case provided by the invention.Such as Fig. 1 institutes
Show, the automatically imported method of the test of heuristics case includes the following steps:
S10, several template forms are created, the policy information data of input is stored into corresponding template form.
This step mainly create several template forms store with the relevant policy information data of declaration form, surveyed to be follow-up
Writing for examination case provides data source and basis.The present embodiment is according to flow different in insurance(It such as insures, settle a claim, surrender
Deng)A template form is respectively created(Such as insure template form, Claims Resolution template form, surrender template form), and with flow
Title names template form automatically.It insures template form for example, creating one in an Excel table, business colleague is usual
It is write " template form of insuring " in the first row.When detection close this insure template form when, be automatically positioned and replicate template of insuring
The word of the first row first row of table(The usually title of the template form), it is current that template form is replaced with the word of duplication
Title, template form is named automatically so as to fulfill with the title of flow.
Business colleague is by policy information data, such as the information data of client(Including:Warrantee's age, insures at number of insuring
Date, protection amount etc.), insurance kind information data(Including:The introduction of insurance kind, dividend rate, the payment time limit, bonus payout status
With algorithm, the situation of Claims Resolution and algorithm etc.)It pre-enters into corresponding template form and stores with result of calculation.
The result of calculation is the financial value of client calculated according to the information data of client and the information data of insurance kind
(The amount of money of bonus, Claims Resolution such as this year), corresponding algorithm is obtained from the information data of insurance kind, from the information data of client and
Parameter in the information data of insurance kind needed for search algorithm(It such as insures date, protection amount, interest rate), parameter is brought into algorithm i.e.
Corresponding financial value can be obtained.By taking the bonus in this year as an example, protection amount is obtained from the information data of client, from the Information Number of insurance kind
According to middle acquisition dividend rate and the algorithm of bonus(Usually protection amount is multiplied by dividend rate), bring insured amount and dividend rate into the calculation
The bonus in this year can be obtained in method.
The information of insuring of client each in this way can generate corresponding case, as having recorded each visitor in template form of settling a claim
The information of family Claims Resolution, the information of each client's Claims Resolution correspond to a case of insuring(If when certain client is because of what requirement reason
It pays for, how much is amount for which loss settled).It uploads and is preserved in each template form to server later.
When S20, detection need to generate case test template, the content of template form is parsed, receives the keyword of input simultaneously
Case needed for inquiry.Please refer to Fig. 2, for step in the automatically imported method of test of heuristics case provided by the invention
The flow chart of S20.
As shown in Fig. 2, the step S20 includes:
When S21, detection need to generate case test template, parse the content of template form and arranged by the sequencing of insurance flow
Arrange each template form.
This step passes through POI(A kind of open source code function library, POI provide API(Operating system leaves the one of application program for
A calling interface)The function that Microsoft Office forms archives are read and write to java applet)Technology(For xls forms
Table)Or jxl technologies(For the table of xlsx forms)It is parsed.Due to having recorded insurance pair in different template forms
The flow answered(It such as insures, settle a claim, surrender), herein by the sequencing of insurance flow(Sequence for system default)To all
Template form is ranked up, you can the convenient template form and calling for finding out required flow in the server.
S22, call needed for template form, receive input keyword and inquiry needed for case in the template form
Position.
Clicking corresponding template form can be shown to most preceding to realize calling.Due to being stored in each template form
Many cases rapidly find out required case for convenience, and the case is positioned in some template form by inputting keyword
Which of sheet pages.Keyword can be save from damage, settle a claim, income etc..It is stored in one sheet pages and a keyword
Related all cases, as one be in sheet page with several relevant cases of Claims Resolution, between each case by null every
It opens and distinguishes.
S23, the docuterm for receiving input and space are simultaneously positioned to corresponding case.
The docuterm is used to search required concrete case, such as is customer name, Case No.Input docuterm and
Null, you can quickly position some case corresponding to the docuterm in sheet pages one.
S30, the process step of the parsing case and corresponding data information, parse each data information corresponding
Unit item and its numerical value.Please refer to Fig. 3, for step in the automatically imported method of test of heuristics case provided by the invention
The flow chart of S30.
As shown in figure 3, the step S30 includes:
The merging phase of cell where S31, the detection case simultaneously parses the process step of the case and corresponding number
It is believed that breath.
When inputting policy information data in step slo, worked together by business and write case, each process step in case
It writes respectively in a row, it is a big row that all process steps are carried out with cell span again after writing.Therefore, according to cell
Merging phase can parse all process steps of the case, and several rows of cell span have just corresponded to several process steps.
Each process step of case contains the life cycle of an insurance kind, and each process step has recorded the activity of client
Process, the data information in process step represent the particular content of the process step.As process step 1 records when client throws
The data informations such as the customer data, insurance kind type, the delivery premium that protect, provide.Process step 2 records when accident occurs for client,
The data informations such as how to settle a claim.The data informations such as when the record client of process step 3 draws dividends, bonus calculating process.
S32, the corresponding unit item of each data information of parsing and its numerical value, verify the numerical value of each unit item.
Each data information is further made of unit item, unit Xiang Kewei times, age, the amount of money;The numerical value of unit item
That is its content.As the time numerical value for it is specific when, the numerical value at age is specific age, and the numerical value of the amount of money is i.e. specific how many
Money.
In order to avoid there is the artificial mistake looked into, logarithm is also needed to be verified and carrys out error correction.Verification mainly carries out
Date and the inspection of number, pre-set call format and digital value area requirement, during verification according to date format requirement and
Range of digital values requires to verify the numerical value of each unit item.Date format requirement, i.e., to the number of days of every month into
Row limits;In the range of the number of days for checking time being required whether to limit in every month according to preset date format.During verification according to
The numerical value of time first inquires the corresponding moon, then judges whether the numerical value of time has exceeded the number of days of this month, is to represent mistake.Such as
In date format requirement, at most only 29 days 2 months, there was only 30 days June;The mistake if there is 2 months No. 30 or June 31.
The range of digital values requirement, is mainly defined the age at age(As no more than 100 years old);To the small letter of RMB
Literary style carries out specification, is separated between usual angle and member with period, rightmost at most has two(Angle and point)If rightmost has more one
Position(Period point wrong position)Then mistake;Or because hand accidentally has more other symbols also mistake between number.According to preset digital value
Area requirement verifies the age whether in the range of the time limit, the lower case format whether the filling in of the amount of money meets RMB and whether be
Arabic numerals.For example, when the unit item of verification is the age, directly judge whether the age is more than to limit age(The general age is not
It will appear 100 years old), it is then mistake.When the unit item of verification is the amount of money of small letter, third word from right to left in the amount of money is judged
Whether symbol is period, is to judge whether other characters in the amount of money are Arabic numerals, is that then amount of money verification is correct.If not
There are non-Arabic numerals in period or other characters, then mistake.
S40, spliced according to the corresponding numerical value of preset configuration condition acquisition, obtain corresponding case data information.
Please refer to Fig. 4, the flow chart for step S40 in the automatically imported method of test of heuristics case provided by the invention.
As shown in figure 4, the step S40 includes:
S41, according to subconditional sequencing each in configuration condition, corresponding number is from left to right retrieved from unit item successively
Value;
The configuration condition is made of different usage scenarios and insurance kind type, and client's purchase is can be appreciated that according to configuration condition
An insurance kind situation.As a configuration condition is:Warrantee's object/insurance kind code/protection amount/number/payment time limit/insurance
Time limit/standard year hands over premium/phase to hand over premium.According to subconditional sequencing each in configuration condition, from left to right successively from list
Corresponding numerical value is retrieved in first item(Numerical value such as warrantee's object is Zhang San, and the numerical value of insurance period is 30 years).
S42, each numerical value is spliced into a Database field by continuous.
S43, judge whether also configuration condition:There is then return to step S41;Nothing then extracts current all configuration conditions pair
The Database field answered simultaneously is integrated into a case example data information.
Based on that can set a plurality of configuration condition in a case, every configuration condition all needs to complete the acquisition of corresponding numerical value
And splicing, you can obtain the case being made of the Database field of a plurality of configuration condition, the numerical value in configuration condition, that is, required
Information data.
S50, until the corresponding all cases of all keywords of input obtain case data information needed for it;It ought
The corresponding case data information integration of preceding all keywords is stored in typing server into a case test template.
One keyword corresponds to a case, and a case is made of several Database fields, a Database field
Splice to obtain by the corresponding numerical value of a configuration condition.
In the step S50, further include:When judging to also have keyword input, return is described to be needed to generate case test mould
During plate, the content of template form is parsed, the process step of the case according to needed for the keyword query of input.If key is inputted again
Word, then return to step S20 is repeated the above process, until the corresponding all cases of all keywords of input are obtained needed for it
Database field preserves the database that each case is integrated into a case test template and typing server, with after an action of the bowels
It is continuous to call the case test template.
Each case obtains required information data by the processing of step S20 ~ step S50.Due to being directly to open
Template form, which is searched, obtains required information data, has also carried out numerical check automatically, without artificially filling in, improves case life
Into speed, reduce case template error possibility.Different information datas can be obtained by changing configuration condition, makes case
Example test template can be used for different use environments, and change very convenient.
Referring to Fig. 5, Fig. 5 is the internal structure schematic diagram of one embodiment Computer equipment.The computer equipment can
To be terminal or server, wherein, terminal can be smart mobile phone, tablet computer, laptop, desktop computer,
Personal digital assistant and Wearable etc. have the electronic equipment of communication function.Server can be independent server,
It can be the server cluster of multiple server compositions.With reference to Fig. 5, which includes the place connected by system bus
Manage device, non-volatile memory medium, built-in storage and network interface.Wherein, the non-volatile memory medium of the computer equipment
Can storage program area and computer-readable program, which is performed, and may be such that processor performs one kind
The method being automatically imported of test of heuristics case.The processor of the computer equipment supports for providing configuration and computing capability
The operation of entire computer equipment.Computer-readable program can be stored in the built-in storage, which is located
When managing device execution, it may be such that processor performs a kind of method being automatically imported of test of heuristics case.The network of computer equipment
Interface is used to carry out network communication, such as export corresponding case test template to database purchase.Those skilled in the art can
The structure shown to understand, in Fig. 5, only with the block diagram of the relevant part-structure of application scheme, is not formed to this Shen
Please the restriction of computer equipment that is applied thereon of scheme, specific computer equipment can include it is more than shown in figure or
Less component either combines certain components or is arranged with different components.
The present invention also provides a kind of application servers being automatically imported of test of heuristics case, including processor 10, deposit
Reservoir 20 and display 30.Fig. 5 illustrates only the members of the application server being automatically imported of test of heuristics case, still
It should be understood that, it is not required that implement all components shown, the more or less component of the implementation that can be substituted.
The memory 20 can be the application service being automatically imported of the test of heuristics case in some embodiments
The internal storage unit of each component of device, such as the hard disk or memory of application server.The memory 20 is implemented at other
Can also be the External memory equipment of each component of the application server being automatically imported of the test of heuristics case in example, such as
The plug-in type hard disk being equipped on each component of the application server being automatically imported of test of heuristics case, intelligent memory card(Smart
Media Card, SMC), secure digital(Secure Digital, SD)Card, flash card(Flash Card)Deng.Further
Ground, the memory 20 can also both include the storage inside list of the application server being automatically imported of the test of heuristics case
Member also includes External memory equipment.The memory 20 for store be installed on the test of heuristics case be automatically imported should
With the application software and Various types of data of server, such as the application server being automatically imported of the installation test of heuristics case
Program code etc..The memory 20 can be also used for temporarily storing the data that has exported or will export.It is real one
It applies in example, test of heuristics case is stored on memory 20 is automatically imported program 40, which is automatically imported
Program 40 can be performed by processor 10, so as to fulfill the automatically imported method of the test of heuristics case of each embodiment of the application.
The processor 10 can be a central processing unit in some embodiments(Central Processing Unit,
CPU), microprocessor or other data processing chips, for running the program code stored in the memory 20 or processing number
According to, such as perform the automatically imported method of the test of heuristics case etc..
The display 30 can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display in some embodiments
And OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode)Touch device etc..The display 30 is used
In the information for being automatically imported middle processing for being shown in the test of heuristics case.The test of heuristics case be automatically imported should
It is in communication with each other with the component 10-30 of server by system bus.
In one embodiment, when what processor 10 performed test of heuristics case in the memory 20 is automatically imported program 40
Shi Shixian following steps:
Several template forms are created, the policy information data of input are stored into corresponding template form;
When detection needs to generate case test template, the content of template form is parsed, is received needed for keyword and the inquiry of input
Case;
Parse the process step of the case and corresponding data information, each data information is parsed corresponding unit item and
Its numerical value;
Corresponding numerical value is obtained according to preset configuration condition to be spliced, and obtains corresponding case data information;
Until the corresponding all cases of all keywords of input obtain the case data information needed for it;It will be current all
The corresponding case data information integration of keyword is into storing in a case test template and typing server.
Further, the case data obtained up to the corresponding all cases of all keywords of input needed for it
Information;By current all corresponding case data information integrations of keyword into depositing in a case test template and typing server
In the step of storage, further include:
When judging to also have keyword input, when return is described to be needed to generate case test template, the content of template form, root are parsed
According to the process step of the case needed for the keyword query of input
The step of described several template forms of establishment, includes:
Corresponding template form is respectively created according to the flow of insurance, template form is named automatically with the title of flow.
The policy information data include:The information data of client, the information data of insurance kind and result of calculation;:
The information data of the client includes:Warrantee's age, number of insuring, date of insuring, protection amount;
The information data of the insurance kind includes:Introduction, dividend rate, payment time limit, the payout status of bonus and the algorithm of insurance kind,
The situation and algorithm of Claims Resolution;
The result of calculation is the financial value of client calculated according to the information data of client and the information data of insurance kind;From danger
Kind information data in obtain the algorithm of corresponding income, the search algorithm institute from the information data of the information data of client and insurance kind
The parameter needed, each parameter is brought into algorithm and calculates corresponding financial value.
When the detection needs to generate case test template, the content of template form is parsed, receives the keyword of input simultaneously
The process step of case needed for inquiry includes:
When detection needs to generate case test template, parse the content of template form and arranged by the sequencing of insurance flow each
Template form;
Call needed for template form, receive input keyword and inquiry needed for position of the case in the template form;
It receives the docuterm inputted and space and positions to corresponding case.
The process step and data information of the parsing case, parse each data information corresponding unit item
And its step of numerical value, includes:
It detects the merging phase of the cell where the case and parses the process step of the case and corresponding data letter
Breath;
The corresponding unit item of each data information and its numerical value are parsed, the numerical value of each unit item is verified.
The unit item includes time, age, the amount of money;The step of numerical value to each unit item verifies is wrapped
It includes:
In the range of the number of days for checking time being required whether to limit in every month according to preset date format;According to preset number
It is worth whether the area requirement verification age is more than to limit age, the lower case format whether the filling in of the amount of money meets RMB and whether
For Arabic numerals.
It is described to be spliced according to the corresponding numerical value of preset configuration condition acquisition, obtain the process step of corresponding case
Including:
According to subconditional sequencing each in configuration condition, corresponding numerical value is from left to right retrieved from unit item successively;
Each numerical value is spliced into a Database field by continuous;
Judge whether also configuration condition:Have and then return according to subconditional sequencing each in configuration condition, from left to right according to
The step of corresponding numerical value being retrieved in the secondary item from unit;Nothing then extracts the corresponding Database field of current all configuration conditions
And it is integrated into a case example data information.
Referring to Fig. 6, its application server for being automatically imported program for present invention installation test of heuristics case is preferable
The functional block diagram of embodiment.In the present embodiment, installation test of heuristics case is automatically imported program and can be divided into one
A or multiple modules, one or more of modules are stored in the memory, and by one or more processors(This
Embodiment is the processor)It is performed, to complete the present invention.For example, in figure 6, the automatic of installation test of heuristics case is led
Configuration module 31, enquiry module 32, parsing module 33, concatenation module 34 and place can be divided by entering the application server of program
Manage module 35.The so-called module of the present invention is the series of computation machine program segment for referring to complete specific function, more suitable than program
The application service that is automatically imported of the program in the test of heuristics case is automatically imported together in the description test of heuristics case
Implementation procedure in device.The function of specifically introducing the module 31-35 is described below.
For creating several template forms, the policy information data of input are stored to corresponding mould for configuration module 31
In plate table.
Enquiry module 32 when needing to generate case test template for detecting, parses the content of template form, receives input
Keyword and inquire needed for case.
Parsing module 33, for parsing the process step of the case and corresponding data information, to each data information
Parse corresponding unit item and its numerical value.
Concatenation module 34 is spliced for obtaining corresponding numerical value according to preset configuration condition, obtains corresponding case
Example data information.
Processing module 35, for until the corresponding all cases of all keywords of input obtain the case number of cases needed for it
It is believed that breath;By current all corresponding case data information integrations of keyword into a case test template and typing server
Storage.
Further, when the processing module 35 is additionally operable to judge to also have keyword input, return is described to need generation case
During example test template, the content of template form, the process step of the case according to needed for the keyword query of input are parsed.
Further, it when the configuration module 31 creates several template forms, is respectively created pair according to the flow of insurance
The template form answered names template form with the title of flow automatically.
Further, the enquiry module 32 includes parsing arrangement units, investigation unit and positioning unit, wherein:
The parsing arrangement units when needing to generate case test template for detecting, parse the content of template form and by guarantor
The sequencing of dangerous flow arranges each template form.
The investigation unit, for calling required template form, receive input keyword and inquiry needed for case exist
Position in the template form.
The positioning unit, for receiving the docuterm of input and space and positioning to corresponding case.
Further, the parsing module 33 includes parsing combining unit and parsing verification unit, wherein:
The parsing combining unit, for detecting the merging phase of the cell where the case and parsing the stream of the case
Journey step and corresponding data information.
The parsing verification unit, for parsing the corresponding unit item of each data information and its numerical value, to each unit
The numerical value of item is verified.
Further, the unit item includes time, age, the amount of money;The parsing verification unit is to each unit item
When numerical value is verified, required in the range of the number of days that whether limits in every month of checking time according to preset date format;Root
Require whether the verification age is more than to limit age according to preset range of digital values, the amount of money fills in the small letter for whether meeting RMB
Form and whether be Arabic numerals.
Further, the processing module 35 includes retrieval unit, by continuous concatenation unit and judging unit, wherein:
The retrieval unit, for according to subconditional sequencing each in configuration condition, from left to right successively from unit item
Retrieve corresponding numerical value.
It is described to press continuous concatenation unit, for each numerical value to be spliced into a Database field by continuous;
The judging unit, for judging whether also configuration condition:Have and then return according to subconditional elder generation each in configuration condition
Afterwards sequentially, the step of from left to right retrieving corresponding numerical value from unit item successively;Nothing then extracts current all configuration items
The corresponding Database field of part is simultaneously integrated into a case example data information.
In the automatically imported method of test of heuristics case provided by the invention, server and storage medium, the algorithm is surveyed
The automatically imported method of case is tried by creating several template forms, the policy information data of input are stored to corresponding mould
In plate table;When detection needs to generate case test template, the content of template form is parsed, receives keyword and the inquiry of input
Required case;The process step of the case and corresponding data information are parsed, each data information is parsed corresponding
Unit item and its numerical value;Corresponding numerical value is obtained according to preset configuration condition to be spliced, and obtains corresponding case data letter
Breath;Until the corresponding all cases of all keywords of input obtain the case data information needed for it;It will be current all
The corresponding case data information integration of keyword is into storing in a case test template and typing server.By by policy information
Data are prestored into several template forms, need to directly invoke corresponding templates table, root when generating case test template
According to the case needed for keyword positioning, the process step of case is parsed, obtaining the related of case according to preset configuration condition believes
Breath finally automatically generates case test template and input database.The speed of case offer is be provided, reduces case mould
The possibility of plate error also saves test and works together the process of case input database, eliminates the mistake that business colleague is familiar with template
Journey.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method,
It is that can related hardware be instructed by computer program(Such as processor, controller etc.)It completes, described program can be stored in
In one computer-readable storage medium, which may include when being executed such as the flow of above-mentioned each method embodiment.Wherein
The storage medium can be memory, magnetic disc, CD etc..
It should be understood that the application of the present invention is not limited to the above, it for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of automatically imported method of test of heuristics case, which is characterized in that include the following steps:
Several template forms are created, the policy information data of input are stored into corresponding template form;
When detection needs to generate case test template, the content of template form is parsed, is received needed for keyword and the inquiry of input
Case;
Parse the process step of the case and corresponding data information, each data information is parsed corresponding unit item and
Its numerical value;
Corresponding numerical value is obtained according to preset configuration condition to be spliced, and obtains corresponding case data information;
Until the corresponding all cases of all keywords of input obtain the case data information needed for it;It will be current all
The corresponding case data information integration of keyword is into storing in a case test template and typing server.
2. the automatically imported method of test of heuristics case according to claim 1, which is characterized in that it is described until input
The corresponding all cases of all keywords obtain the case data information needed for it;By current all corresponding cases of keyword
Example data information is integrated into the step of being stored in a case test template and typing server, further includes:
When judging to also have keyword input, when return is described to be needed to generate case test template, the content of template form, root are parsed
According to the process step of the case needed for the keyword query of input.
3. the automatically imported method of test of heuristics case according to claim 1, which is characterized in that described to create several
The step of template form, includes:
Corresponding template form is respectively created according to the flow of insurance, template form is named automatically with the title of flow.
4. the automatically imported method of test of heuristics case according to claim 1, which is characterized in that the policy information number
According to including:The information data of client, the information data of insurance kind and result of calculation;
The information data of the client includes:Warrantee's age, number of insuring, date of insuring, protection amount;
The information data of the insurance kind includes:Introduction, dividend rate, payment time limit, the payout status of bonus and the algorithm of insurance kind,
The situation and algorithm of Claims Resolution;
The result of calculation is the financial value of client calculated according to the information data of client and the information data of insurance kind;From danger
Kind information data in obtain the algorithm of corresponding income, the search algorithm institute from the information data of the information data of client and insurance kind
The parameter needed, each parameter is brought into algorithm and calculates corresponding financial value.
5. the automatically imported method of test of heuristics case according to claim 3, which is characterized in that the detection needs to give birth to
During into case test template, the content of template form is parsed, receive the keyword of input and inquires the flow step of required case
Suddenly include:
When detection needs to generate case test template, parse the content of template form and arranged by the sequencing of insurance flow each
Template form;
Call needed for template form, receive input keyword and inquiry needed for position of the case in the template form;
It receives the docuterm inputted and space and positions to corresponding case.
6. the automatically imported method of test of heuristics case according to claim 4, which is characterized in that the parsing case
The process step and data information of example, the step of corresponding unit item and its numerical value are parsed to each data information, include:
It detects the merging phase of the cell where the case and parses the process step of the case and corresponding data letter
Breath;
The corresponding unit item of each data information and its numerical value are parsed, the numerical value of each unit item is verified.
7. the automatically imported method of test of heuristics case according to claim 6, which is characterized in that the unit item includes
Time, age, the amount of money;The step of numerical value to each unit item verifies includes:
In the range of the number of days for checking time being required whether to limit in every month according to preset date format;According to preset number
It is worth whether the area requirement verification age is more than to limit age, the lower case format whether the filling in of the amount of money meets RMB and whether
For Arabic numerals.
8. the automatically imported method of the test of heuristics case described according to claim 6 or 7, which is characterized in that the basis is pre-
If configuration condition obtain corresponding numerical value and spliced, the process step for obtaining corresponding case includes:
According to subconditional sequencing each in configuration condition, corresponding numerical value is from left to right retrieved from unit item successively;
Each numerical value is spliced into a Database field by continuous;
Judge whether also configuration condition:Have and then return according to subconditional sequencing each in configuration condition, from left to right according to
The step of corresponding numerical value being retrieved in the secondary item from unit;Nothing then extracts the corresponding Database field of current all configuration conditions
And it is integrated into a case example data information.
9. a kind of application server being automatically imported of test of heuristics case, which is characterized in that including:Processor, leads to memory
Believe bus;The computer-readable program that can be performed by the processor is stored on the memory;
The communication bus realizes the connection communication between processor and memory;
The processor realizes the test of heuristics as described in claim 1-8 any one when performing the computer-readable program
Step in the automatically imported method of case.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or
Multiple programs, one or more of programs can be performed by one or more processor, to realize that claim 1-8 such as appoints
Step in the automatically imported method of test of heuristics case described in meaning one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810060718.8A CN108241607A (en) | 2018-01-22 | 2018-01-22 | Automatically imported method, server and the storage medium of test of heuristics case |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810060718.8A CN108241607A (en) | 2018-01-22 | 2018-01-22 | Automatically imported method, server and the storage medium of test of heuristics case |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108241607A true CN108241607A (en) | 2018-07-03 |
Family
ID=62698615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810060718.8A Pending CN108241607A (en) | 2018-01-22 | 2018-01-22 | Automatically imported method, server and the storage medium of test of heuristics case |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108241607A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647566A (en) * | 2019-09-03 | 2020-01-03 | 平安科技(深圳)有限公司 | Intelligent importing method and device of template table and computer readable storage medium |
CN111737135A (en) * | 2020-06-24 | 2020-10-02 | 泰康保险集团股份有限公司 | General test method, device, equipment and storage medium for trusted system |
CN114330265A (en) * | 2020-11-04 | 2022-04-12 | 厦门云评众联科技有限公司 | Typical case generation method and typical case template configuration method for asset evaluation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221530A (en) * | 2008-01-22 | 2008-07-16 | 中兴通讯股份有限公司 | Method for automatically leading in test cases |
CN102271066A (en) * | 2011-08-22 | 2011-12-07 | 中兴通讯股份有限公司 | Automatic intelligent command line testing method and system |
CN102314395A (en) * | 2011-10-12 | 2012-01-11 | 中国农业银行股份有限公司 | Method and system for generating test case |
CN103631720A (en) * | 2013-12-20 | 2014-03-12 | 百度在线网络技术(北京)有限公司 | Method and device for generating test case |
US9396098B2 (en) * | 2014-03-26 | 2016-07-19 | Mckesson Financial Holdings | Apparatuses, methods, and computer program products for conducting automated tests |
-
2018
- 2018-01-22 CN CN201810060718.8A patent/CN108241607A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101221530A (en) * | 2008-01-22 | 2008-07-16 | 中兴通讯股份有限公司 | Method for automatically leading in test cases |
CN102271066A (en) * | 2011-08-22 | 2011-12-07 | 中兴通讯股份有限公司 | Automatic intelligent command line testing method and system |
CN102314395A (en) * | 2011-10-12 | 2012-01-11 | 中国农业银行股份有限公司 | Method and system for generating test case |
CN103631720A (en) * | 2013-12-20 | 2014-03-12 | 百度在线网络技术(北京)有限公司 | Method and device for generating test case |
US9396098B2 (en) * | 2014-03-26 | 2016-07-19 | Mckesson Financial Holdings | Apparatuses, methods, and computer program products for conducting automated tests |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647566A (en) * | 2019-09-03 | 2020-01-03 | 平安科技(深圳)有限公司 | Intelligent importing method and device of template table and computer readable storage medium |
CN111737135A (en) * | 2020-06-24 | 2020-10-02 | 泰康保险集团股份有限公司 | General test method, device, equipment and storage medium for trusted system |
CN114330265A (en) * | 2020-11-04 | 2022-04-12 | 厦门云评众联科技有限公司 | Typical case generation method and typical case template configuration method for asset evaluation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109285076A (en) | Intelligent core protects processing method, server and storage medium | |
US10860616B2 (en) | Test data management | |
CN108491320A (en) | Exception analysis method, device, computer equipment and the storage medium of application program | |
CN108737325A (en) | A kind of multi-tenant data partition method, apparatus and system | |
CN109815228A (en) | Creation method, device, computer equipment and the readable storage medium storing program for executing of database table | |
CN109358841B (en) | Webpage application development compiling method and device, storage device and computer device | |
CN109816021B (en) | Intelligent contract processing method, device and system, storage medium and electronic equipment | |
WO2020247002A1 (en) | Auto-pilot transactions using smart contracts | |
CN104765745B (en) | Loading data in database are carried out with the method and system of logic checking | |
CN108345658B (en) | Decomposition processing method of algorithm calculation track, server and storage medium | |
WO2012027701A2 (en) | Parallel processing development environment and associated methods | |
CN108241607A (en) | Automatically imported method, server and the storage medium of test of heuristics case | |
CN111881042A (en) | Automatic test script generation method and device and electronic equipment | |
CN110795697A (en) | Logic expression obtaining method and device, storage medium and electronic device | |
US11487801B2 (en) | Dynamic data visualization from factual statements in text | |
CN109086433A (en) | A kind of file management method and server based on big data analysis | |
CN108830715A (en) | Batch file part disk returning processing method and system | |
CN109902514A (en) | A kind of data desensitization control system, method, server and storage medium | |
WO2023098462A1 (en) | Improving performance of sql execution sequence in production database instance | |
CN106445815A (en) | Automated testing method and device | |
CN109271564A (en) | Declaration form querying method and equipment | |
CN112861056A (en) | Enterprise website construction information display and release system and method | |
CN109325873A (en) | Self-service method for processing business, device, computer equipment and storage medium | |
CN110362630A (en) | Data managing method, device, equipment and computer readable storage medium | |
CN112306648B (en) | Transaction calling method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180703 |
|
RJ01 | Rejection of invention patent application after publication |