CN109376093A - The test method and device of insurance products, storage medium and electronic equipment - Google Patents
The test method and device of insurance products, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN109376093A CN109376093A CN201811474201.XA CN201811474201A CN109376093A CN 109376093 A CN109376093 A CN 109376093A CN 201811474201 A CN201811474201 A CN 201811474201A CN 109376093 A CN109376093 A CN 109376093A
- Authority
- CN
- China
- Prior art keywords
- test
- attribute
- insurance
- attribute item
- insurance products
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- 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)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention provides a kind of test methods of insurance products, comprising: obtains the corresponding testing requirement document of current insurance products to be tested, and reads the insurance product information for including in the testing requirement document;According to the insurance product information, test data table is generated;In the test data table, multiple attribute items of the insurance products to be tested are chosen, and are each attribute item configuration attribute value according to preset configuration rule;Each attribute item of configured attribute value is combined, the corresponding multiple test cases of the trial product to be measured are generated.The test method of insurance products provided by the invention can automatically generate test case based on requirement documents, so that the test case to generation is tested, improve the testing efficiency to insurance products.
Description
Technical field
The present invention relates to software testing technology field, in particular to the test method and device, storage of a kind of insurance products
Medium and electronic equipment.
Background technique
With the rapid development of our country's economy, people's living standard is continuously improved, and risk guarantee consciousness is also increasingly enhanced, and is
The fast development of insurance industry provides good external environment, and therefore each insurance company also constantly releases meets people's demand
Insurance products.Existing, developer plans as a whole to dispose in configuration system according to the attribute of insurance products, can
Obtain a new insurance products.The insurance products that configuration obtains are needed to guarantee the correctness of its configuration to insurance
Product carries out a large amount of test job, to ensure that insurance products can be launched smoothly.
Inventor has found that it is existing configured insurance products are tested during, need tester
Member's hand-coding test case, then tests test case.Since hand-coding test case takes a long time, Jin Erying
The testing efficiency to insurance products is rung.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of test methods of insurance products, can be based on requirement documents
Test case is automatically generated, and the test case of generation is tested automatically, improves the testing efficiency to insurance products.
The present invention also provides a kind of test device of insurance products, for guarantee above method realization in practice and
Using.
A kind of test method of insurance products, comprising:
The corresponding testing requirement document of current insurance products to be tested is obtained, and reads in the testing requirement document and includes
Insurance product information;
According to the insurance product information, test data table is generated;
In the test data table, multiple attribute items of the insurance products to be tested are chosen, and are matched according to preset
Rule is set, is each attribute item configuration attribute value;
Each attribute item of configured attribute value is combined, the corresponding multiple tests of the trial product to be measured is generated and uses
Example.
Above-mentioned method, it is optionally, described to read the insurance product information for including in the testing requirement document, comprising:
The testing requirement document is parsed, determines the compiling form of the testing requirement document;
The compiling form of the testing requirement document is matched with preset Standard compilation format;
When the compiling form of the testing requirement document is consistent with preset Standard compilation format match, according to institute
The information flag position in Standard compilation format is stated, reads insurance product information in the testing requirement document.
Above-mentioned method, it is optionally, described according to the insurance product information, generate test data table, comprising:
Obtain each attribute item of the insurance products to be tested for including in the insurance product information and each described
The corresponding property content of attribute item;
Determine the incidence relation between each attribute item;
According to the incidence relation and the corresponding property content creation test table of each attribute item;
Each attribute item and the corresponding property content of each attribute item are directed into the test table, it is raw
At the test data table.
Above-mentioned method, optionally, described is each attribute item configuration attribute value according to preset configuration rule,
Include:
It determines the content type of property content corresponding to each attribute item, and is the attribute according to the content type
Configuration attribute value, the attribute value include belonging to the attribute value of the property content and not belonging to the property content
Attribute value.
Above-mentioned method, it is optionally, described to be combined each attribute item of configured attribute value, it generates described to be measured
The corresponding multiple test cases of trial product, comprising:
According to the incidence relation between each attribute item, each attribute item of configured attribute value is combined,
Generate the corresponding multiple test cases of the trial product to be measured.
Above-mentioned method, optionally, the method also includes:
Each test case is input in established testing tool and is tested.
Above-mentioned method, optionally, described each test case is input in established testing tool carry out
Test, comprising:
The interface packets and automatic foot each test case being injected into respectively in the established testing tool
In this;
The interface packets and the automatic script is driven to test each test case of injection.
Above-mentioned method, optionally, the method also includes:
Before generating the test data table, each information field in the insurance product information of acquisition is carried out
Verification.
A kind of test device of insurance products, comprising:
Acquiring unit for obtaining the corresponding testing requirement document of current insurance products to be tested, and reads the test
The insurance product information for including in requirement documents;
Generation unit, for generating test data table according to the insurance product information;
Configuration unit, in the test data table, choosing multiple attribute items of the insurance products to be tested, and
It is each attribute item configuration attribute value according to preset configuration rule;
Assembled unit generates the trial product pair to be measured for each attribute item of configured attribute value to be combined
The multiple test cases answered.
Above-mentioned device, optionally, described device further include:
Test cell is tested for each test case to be input in established testing tool.
A kind of storage medium, the storage medium include the instruction of storage, wherein in described instruction operation described in control
Equipment where storage medium executes the test method of above-mentioned insurance products.
A kind of electronic equipment, including memory and one perhaps one of them or one of more than one instruction with
Upper instruction is stored in memory, and is configured to execute the survey of above-mentioned insurance products by one or more than one processor
Method for testing.
Compared with prior art, the present invention includes the following advantages:
The test method of insurance products provided by the invention when user needs to test insurance products, obtains current
The corresponding testing requirement document of insurance products to be tested, and read the insurance product information for including in the testing requirement document;
And according to the insurance product information, test data table is generated;In the test data table, chooses the insurance to be tested and produce
Multiple attribute items of product, and according to preset configuration rule, it is each attribute item configuration attribute value;By configured attribute value
Each attribute item be combined, generate the corresponding multiple test cases of the trial product to be measured.Insurance provided by the invention produces
The test method of product can automatically generate test case based on requirement documents, be tested with realizing the test case of generation,
Improve the testing efficiency to insurance products.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of method flow diagram of the test method of insurance products provided by the invention;
Fig. 2 is a kind of another method flow diagram of the test method of insurance products provided by the invention;
Fig. 3 is a kind of another method flow diagram of the test method of insurance products provided by the invention;
Fig. 4 is a kind of schematic diagram of the test method of insurance products provided by the invention;
Fig. 5 is a kind of structural schematic diagram of the test device of insurance products provided by the invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The present invention can be used in numerous general or special purpose computing device environment or configurations.Such as: personal computer, service
Device computer, handheld device or portable device, laptop device, multi-processor device including any of the above devices or devices
Distributed computing environment etc..
The embodiment of the invention provides a kind of test method of insurance products, which can apply flat in a variety of insurances
In platform, executing subject can be terminal or the processor of various mobile devices, and the method flow diagram of the method is such as
Shown in Fig. 1, specifically include:
S101: the corresponding testing requirement document of current insurance products to be tested is obtained, and reads the testing requirement document
In include insurance product information;
In method provided in an embodiment of the present invention, when user needs to test insurance products, sent to processor
Test request, wherein the test request includes the corresponding testing requirement document of insurance products to be tested, and processor is receiving
When the test request, the testing requirement document is obtained, and reads the insurance products letter for including in the testing requirement document
Breath, the insurance product information may include: warrantee's age, by throwing relationship, warrantee's social security, warrantee's gender and insurance kind
Deng.
S102: according to the insurance product information, test data table is generated;
In method provided in an embodiment of the present invention, the insurance product information that includes in reading the testing requirement document
Afterwards, the insurance product information is analyzed, according to preset analysis rule, creates table corresponding with the insurance product information
Lattice, and the insurance product information is imported in the table created, it generates in specific test process, meets the survey of testing requirement
Try tables of data.
S103: in the test data table, multiple attribute items of the insurance products to be tested are chosen, and according to default
Configuration rule, be each attribute item configuration attribute value;
It include multiple attribute items, the test data in insurance products to be tested in method provided in an embodiment of the present invention
It is corresponding to be stored with each attribute item in the trial product to be measured included in table.In the test data table, according to default
Selection rule, choose multiple attribute items, analyze the attribute classification of each attribute item, and according to preset configuration rule,
Corresponding attribute value is configured for each attribute item.
S104: each attribute item of configured attribute value is combined, and it is corresponding multiple to generate the trial product to be measured
Test case;
In method provided in an embodiment of the present invention, after configuring corresponding attribute value for each attribute item, according to each attribute
Incidence relation between, each attribute item of configured attribute value is combined, and it is corresponding to generate the trial product to be measured
Multiple test cases.
Optionally, the test method can further comprise step S105: each test case be input to built
It is tested in vertical testing tool.
In method provided in an embodiment of the present invention, the test case is input in established testing tool, it is described
Execution tool executes test to the test case automatically by the requirement of test case.
The test method of insurance products provided by the invention, when user needs to test insurance products, to processor
Test request is sent, processor obtains the corresponding testing requirement document of current insurance products to be tested according to test request, and reads
Take the insurance product information for including in the testing requirement document;And according to the insurance product information, test data table is generated;
In the test data table, multiple attribute items of the insurance products to be tested are chosen, and according to preset configuration rule, are
Each attribute item configuration attribute value;Each attribute item of configured attribute value is combined, the test manufacture to be measured is generated
The corresponding multiple test cases of product;Each test case is input in established testing tool and is tested.This hair
The test method of the insurance products of bright offer can automatically generate test case based on requirement documents, and automatically to the survey of generation
Example on probation is tested, and the testing efficiency to insurance products is improved.
In the test method of insurance products provided in an embodiment of the present invention, described read in the testing requirement document includes
Insurance product information process, as shown in Fig. 2, can specifically include following steps:
S201: parsing the testing requirement document, determines the compiling form of the testing requirement document;
S202: the compiling form of the testing requirement document is matched with preset Standard compilation format;
S203: when the compiling form of the testing requirement document is consistent with preset Standard compilation format match,
According to the information flag position in the Standard compilation format, insurance product information is read in the testing requirement document.
In embodiment provided by the invention, after obtaining testing requirement document, need to solve the testing requirement document
Analysis, with the compiling form of the current testing requirement document of determination, and the compiling form of current testing requirement document and processor is pre-
The Standard compilation format first set is matched, and the Standard compilation format can be word format.
When the compiling form of current testing requirement document is consistent with the preset Standard compilation format match of processor,
Show that the compiling form of current testing requirement document complies with standard the requirement of compiling form, then according in the Standard compilation format
Information flag position, read insurance product information in the testing requirement document.In method provided in an embodiment of the present invention,
It is provided with information flag position in the Standard compilation format, for marking the product information of insurance products in the demand text
Writing position in shelves.
When the compiling form and the preset Standard compilation format match one of processor of current testing requirement document will not
When, according to the compiling form conversion method of default settings, the compiling form of current testing requirement document is converted to and is compiled with standard
The consistent compiling form of format is write, and according to the information flag position in the Standard compilation format, from testing requirement document
Read insurance product information.
Method provided in an embodiment of the present invention, compiling form and the Standard compilation format match when testing requirement document
When, according to the information flag position in the Standard compilation format, insurance product information is read from testing requirement document, it can
Ensure accurately to read insurance product information from testing requirement document.
Method provided by the invention after reading the insurance product information stated and include in testing requirement document, is needed into one
Step analyzes the insurance product information, the insurance product information is reorganized to meet test analysis requirement
Structural data.
It is described according to the insurance product information in the test method of insurance products provided in an embodiment of the present invention,
Test data table process is generated, as shown in figure 3, can specifically include:
S301: each attribute item of the insurance products to be tested for including in the insurance product information and each is obtained
The corresponding property content of the attribute item;
In embodiment provided by the invention, comprising describing the more of the insurance products to be tested in the insurance product information
A attribute item and the corresponding property content of each attribute item.
When obtaining each attribute item of insurance products to be tested from insurance product information, while obtaining each category
The property corresponding property content of item.
For example, the attribute item may include warrantee's age, by throwing relationship, warrantee's social security, warrantee's gender, insurance kind
Deng.The property content can be the particular content for including in each attribute item, such as may include and protected in warrantee's age
The age bracket of people, such as can be 0~9 years old, the age ranges such as 11~12 years old.Such as when attribute item is by throwing relationship, belong to
Property content may is that parent, I, children and spouse etc..
S302: according to each attribute item and the corresponding property content creation test table of each attribute item;
In embodiment provided by the invention, according to each attribute item, the item number summation of each attribute item is counted,
And using the item number summation as longitudinal columns of table;
According to the corresponding property content of each attribute item, corresponding content item number in each attribute item is determined,
Using the most number of content item number as the lateral line number of table;
According to longitudinal columns and lateral line number, the test table of corresponding line number and columns is created.
S303: the incidence relation between each attribute item is determined;
In embodiment provided by the invention, there are incidence relations between each attribute, in order to analyze each attribute, need
Determine the incidence relation between each attribute, for example, by throwing man-year age attribute item with by throwing relationship, by throw people insurance and insurance kind
All there is incidence relation.
S304: according to the incidence relation, by each attribute item and the corresponding property content of each attribute item
It is directed into the test table, generates the test data table.
In embodiment provided by the invention, according to the incidence relation, the reference property in each attribute item is selected
, the reference property item are as follows: belong to the most attribute item of attribute item incidence relation with other in each attribute item.
The first row first unit lattice that symbolic animal of the birth year item as reference property item is imported to the test table, from the table
First row second unit lattice start, by the importing test table of the corresponding each property content sequence of the symbolic animal of the birth year item
In the cell of one column.
Remaining each symbolic animal of the birth year item is as non-referenced attribute item, the first unit lattice of the importing each column of table of sequence
In, columns where the corresponding property content of each non-referenced attribute item is same with the columns where each non-referenced attribute item
Column;The line number at the place of the corresponding property content of each non-referenced attribute item, according to the incidence relation between each attribute item come
It determines.
It, will be each according to each attribute item and the corresponding property content of each attribute item in the position of the test table
The attribute item and the corresponding property content of each attribute item are directed into the test table, generate the test data
Table.
Embodiment provided by the invention, according to incidence relation, by multiple attribute items of the insurance products to be tested, and
The corresponding property content of each attribute item imports table, generates test data table, and the insurance product information is reorganized and is accorded with
Close the structural data that test analysis requires.
It is described according to preset configuration rule in method provided in an embodiment of the present invention, for each attribute item configuration
Attribute value, comprising:
It determines the content type of property content corresponding to each attribute item, and is the attribute according to the content type
Configuration attribute value, the attribute value include belonging to the attribute value of the property content and not belonging to the property content
Attribute value.
In method provided in an embodiment of the present invention, according to preset configuration rule, the preset configuration rule be can be
Incidence relation between each attribute item matter, is each attribute item configuration attribute value, and the attribute value can be with
It belongs to the attribute value of the property content and does not belong to the attribute value of the property content, such as when attribute item is warrantee
When social security, for property content are as follows: nothing and have, then the attribute value for the configuration of warrantee's social security can be "None" or " having ",
The attribute value of configuration can also be " unknown ".
When the property content is continuum numerical value, the attribute value of attribute item configuration is the continuum numerical value
Median and boundary value, such as when the property content of age attribute item is [12-17], the attribute value of attribute item configuration be can be
11,12,14,17 and 18.Wherein 11 and 17 be age range boundary value, 14 be age range median, 18 are not belonging to institute
Age range is stated, for the error value of the correspondence age range.
Method provided in an embodiment of the present invention, it should be noted that each attribute item can only once configure an attribute value,
It when corresponding attribute value quantity is multiple, need to configure one by one, until the attribute value and attribute item configuration are completed.
It is described to be combined each attribute item of configured attribute value in embodiment provided by the invention, described in generation
The corresponding multiple test cases of trial product to be measured, comprising:
According to the incidence relation between each attribute, each attribute item of configured attribute value is combined, generates institute
State the corresponding multiple test cases of trial product to be measured.
Method provided in an embodiment of the present invention, be each attribute item configuration attribute value after, according between each attribute item
Incidence relation, each attribute item that will not belong to the configured attribute value of the same attribute item are combined, and are generated described to be measured
The corresponding multiple test cases of trial product.
Method provided in an embodiment of the present invention, it is described that each test case is input in established testing tool
It is tested, comprising:
The interface packets and automatic foot each test case being injected into respectively in the established testing tool
In this;
The interface packets and the automatic script is driven to test each test case of injection.
In method provided in an embodiment of the present invention, after generating test case, test case is input to respectively established
In interface packets and automatic script in testing tool, the interface packets format is divided into two kinds of formats of Xml and Json, no matter which
Kind format can carry out data injection by way of template engine to it, and the position of data injection, which passes through data label, orders
Name positions, and realizes correct position use-case business datum being injected into message, forms the use-case message to be sent
In full.
It before test case is injected into automatic script, needs for automatized script to be transformed, data-pushing interface is provided, and
And usage mode of the preliminary setting data in script is provided after generating the data of test case by automatized script
Data-pushing interface, case data is injected into script and is tested.
In method provided in an embodiment of the present invention, further includes: before generating the test data table, to described in acquisition
Each information field in insurance product information is verified.
In method provided in an embodiment of the present invention, before generating the test data table, prespecified field verification
Rule carries out field validation to important information some in the insurance product information in testing requirement document.
In method provided in an embodiment of the present invention, above-mentioned test process is described in order to more detailed, provides one
Specific example is illustrated the above process:
When user needs to test a certain specific insurance products A, the testing requirement text to insurance products A is write
Grade, the insurance product information of insurance products A is contained in the testing requirement document, using insurance provided in an embodiment of the present invention
The test method of product carries out structuring to the insurance product information of insurance products A, insurance product information is converted to test number
According to table.The embodiment of the invention provides two tables of data, as shown in table 1 and table 2:
Table 1
Table 2
Wherein, table 1 is the test data table that insurance product information is converted to, and table 2 is in the sale scheme supported in table 1
Specific sale scheme.
It can be concluded that, the attribute item for including in insurance products A includes: age range, is thrown and closed from the table structure of table 1
System, social security, the sale scheme of gender and support.
The corresponding property content of age range includes: [0~9], [12~17], [18~49] and [50~65] four ages
Section.
It include: parent, I and children by the corresponding property content of throwing relationship.
The corresponding property content of social security include: with and without.
The corresponding property content of gender includes: male and female.
The corresponding property content of sale scheme of support includes: new guarantor's juvenile's version plan one of being hospitalized, new guarantor's juvenile's version of being hospitalized
Plan two newly protects juvenile's version plan three in hospital and newly protects Adult Edition plan one in hospital, new guarantor's Adult Edition plan two of being hospitalized, is newly hospitalized
Protect Adult Edition plan three and old man's version of being newly hospitalized.
Using test method provided in an embodiment of the present invention, it can choose each attribute item in table 1 and be each attribute
Item distributes corresponding attribute value, to generate test case, such as can be chosen according to selection rule below:
Selection rule 1: generation is normally insured humanized the case where normally insuring.
In method provided in an embodiment of the present invention, cartesian product algorithm can be used, by (the humanized and sale of insuring of table 1
Scheme relationship) in field item carry out expansion combination.Age takes boundary value, median, and social security and gender are enumerated value, and direct group
It closes.It is combined again with the sale scheme of support after the completion of insurer's combinations of attributes, to obtain the pin that certain class insurer supports purchase
All combined situations of seller's case.
For example, a specific test case 1 can be generated: the age 7 years old, be parent by throwing relationship, social security is nothing, gender
For female, the sale scheme of support is that new be hospitalized protects juvenile's version plan one.
The test case 1 is a situation of normally insuring in table 1.
Selection rule 2: generate certain insure it is humanized insure the sale scheme that do not support the case where.
The sale scheme that do not support refers to the sale relationship that do not enumerate in table 1.Such as 18-49 years old people buys juvenile's version
Plan, this is that purchase is unsuccessful.These abnormal conditions are also required to test.By traversing lookup algorithm, certain insurer is found
Then the sale scheme list that attribute is not supported carries out Descartes and combines the seller case situation that do not supported.These exceptions
Situation quantity is larger, general not have to all coverings.In the case where obtaining all unusual combinations, random screening mode can be used
The case where filtering out certain proportion is tested.
For example, a test case 2 can be generated: the age is 24 years old, is me by throwing relationship, social security is to have, and gender is
Male, the sale scheme of support are that new be hospitalized protects juvenile's version plan two.
The test case 2 is the situation of insuring that do not support in table 1.
Selection rule 3: generate certain insure it is humanized insure the sale scheme being not present the case where.
The sale scheme being not present refers to the sale scheme for going purchase not enumerate in table two with certain insurer, this is also purchase
Buy unsuccessful abnormal conditions.By enumerating all insurer's combinations of attributes, the sale scheme of going purchase to be not present is to get arriving
All abnormal conditions.
Such as a test case 3 can be generated: the age is 17 years old, and by throwing relationship parent, social security is nothing, and gender is female,
The sale scheme of support is teenager's accident insurance plan version one.
The test case 3 is the situation of insuring being not present in table 1.
Selection rule 4: to humanized, certain the sale scheme of insuring of insuring being not present.
For in table one it is unmentioned insure it is humanized, such as the age out of stock, carry out insuring for any sale scheme, for purchase
It cannot successful abnormal conditions.This needs to distinguish by attribute, calculate separately the unmentioned age out of stock, unmentioned gender and
Social security situation, obtained after sufficiently enumerating it is all be not present insure humanized, then select some sale scheme just to insure.
In method provided in an embodiment of the present invention, generation for test data, a part is directly obtained from table 1, table 2
It taking, another part needs dynamic generation, such as birthday and the identification card number of insurer, since insurer requires at the age, and
Boundary value is tested, needs to be accurate to some day (such as completely 18 years old poor one day), if birthday, identification card number are appointed as specifically
Value, will lead to the same day can execute, backward again regression test when data failure.Therefore the output of a part of test data is middle table
Up to formula, basis regenerates specific test data at that time for certain day when being executed.
In method provided in an embodiment of the present invention, verification for channel interface significant field, the rule for needing to safeguard unity
Then library, such as name, identification card number, passport No., address, cell-phone number etc..It is general to the verification rule of these fields relatively to fix,
After building rule base, verification rule is read from library and data generate use-case.
With reference to Fig. 4, the schematic diagram of the test method of insurance products provided in an embodiment of the present invention is shown, the present invention is implemented
The method that example provides is generated the demand analysis of test job, use-case, data generate, execute foot by realizing use-case generator
The several processes of this generation realize automatic processing, many and diverse rule analysis and data configuration work are greatly saved, by tester
Member frees from repeated labor.Treatment process realizes standardization simultaneously, solves artificial treatment inefficiency, is easy
Wrong, everyone's use-case writes the different problem of style.It has got through and has been linked with next step automated execution, the production of use-case generator
It can directly transfer to message transmission tool and page automation tools to be executed out, realize the whole process of such test assignment
Automatic test, it is all right that tester only needs to carry out configuration, monitoring work.Through calculating, this scheme can be by test execution
Time is compressed to 4-5 hours, has achieved the purpose that development efficiency that outset is mentioned and testing efficiency match.
It is corresponding with method described in Fig. 1, the embodiment of the invention also provides a kind of test device of insurance products, to
Specific implementation to method in Fig. 1, the test device of insurance products provided in an embodiment of the present invention, structural schematic diagram such as Fig. 5
It is shown, it specifically includes:
Acquiring unit 501 for obtaining the corresponding testing requirement document of current insurance products to be tested, and reads the survey
The insurance product information for including in examination requirement documents;
Generation unit 502, for generating test data table according to the insurance product information;
Configuration unit 503, for choosing multiple attributes of the insurance products to be tested in the test data table
, and according to preset configuration rule, it is each attribute item configuration attribute value;
Assembled unit 504 generates the trial product to be measured for each attribute item of configured attribute value to be combined
Corresponding multiple test cases.
Further, the test device may also include that
Test cell 505 is tested for each test case to be input in established testing tool.
The test device of insurance products provided by the invention when user needs to test insurance products, obtains current
The corresponding testing requirement document of insurance products to be tested, and read the insurance product information for including in the testing requirement document;
And according to the insurance product information, test data table is generated;In the test data table, chooses the insurance to be tested and produce
Multiple attribute items of product, and according to preset configuration rule, it is each attribute item configuration attribute value;By configured attribute value
Each attribute item be combined, generate the corresponding multiple test cases of the trial product to be measured.Insurance provided by the invention produces
The test device of product, can automatically generate test case based on requirement documents, be carried out automatically to the test case of generation with realizing
Test, improves the testing efficiency to insurance products.
In one embodiment of the invention, aforementioned schemes are based on, acquiring unit 501 is configured that
The testing requirement document is parsed, determines the compiling form of the testing requirement document;
The compiling form of the testing requirement document is matched with preset Standard compilation format;
When matching consistent, according to the information flag position in the Standard compilation format, in the testing requirement document
Middle reading insurance product information.
In one embodiment of the invention, aforementioned schemes are based on, generation unit 502 is configured that
Obtain each attribute item of the insurance products to be tested for including in the insurance product information and each described
The corresponding property content of attribute item;
Determine the incidence relation between each attribute item;
According to the incidence relation and the corresponding property content creation test table of each attribute item;
Each attribute item and the corresponding property content of each attribute item are directed into the test table, it is raw
At the test data table.
In one embodiment of the invention, aforementioned schemes are based on, configuration unit 503 is configured that
It determines the content type of property content corresponding to each attribute item, and is the attribute according to the content type
Configuration attribute value, the attribute value include belonging to the attribute value of the property content and not belonging to the property content
Attribute value.
In one embodiment of the invention, aforementioned schemes are based on, assembled unit 504 is configured that
According to the incidence relation between each attribute item, each attribute item of configured attribute value is combined,
Generate the corresponding multiple test cases of the trial product to be measured.
In one embodiment of the invention, aforementioned schemes are based on, test cell 505 is configured that
The interface packets and automatic foot each test case being injected into respectively in the established testing tool
In this;
The interface packets and the automatic script is driven to test each test case of injection.
In one embodiment of the invention, aforementioned schemes are based on, acquiring unit 501 is configured that
Before generating the test data table, each information field in the insurance product information of acquisition is carried out
Verification.
The embodiment of the invention also provides a kind of storage medium, the storage medium includes the program of storage, wherein in institute
State the test method that the equipment where controlling the storage medium when program operation executes above-mentioned insurance products, comprising:
The corresponding testing requirement document of current insurance products to be tested is obtained, and reads in the testing requirement document and includes
Insurance product information;
According to the insurance product information, test data table is generated;
In the test data table, multiple attribute items of the insurance products to be tested are chosen, and are matched according to preset
Rule is set, is each attribute item configuration attribute value;
Each attribute item of configured attribute value is combined, the corresponding multiple tests of the trial product to be measured is generated and uses
Example.
Above-mentioned method, optionally, the method also includes:
Each test case is input in established testing tool and is tested.
Above-mentioned method, it is optionally, described to read the insurance product information for including in the testing requirement document, comprising:
The testing requirement document is parsed, determines the compiling form of the testing requirement document;
The compiling form of the testing requirement document is matched with preset Standard compilation format;
When matching consistent, according to the information flag position in the Standard compilation format, in the testing requirement document
Middle reading insurance product information.
Above-mentioned method, it is optionally, described according to the insurance product information, generate test data table, comprising:
Obtain each attribute item of the insurance products to be tested for including in the insurance product information and each described
The corresponding property content of attribute item;
Determine the incidence relation between each attribute item;
According to the incidence relation and the corresponding property content creation test table of each attribute item;
Each attribute item and the corresponding property content of each attribute item are directed into the test table, it is raw
At the test data table.
Above-mentioned method, optionally, described is each attribute item configuration attribute value according to preset configuration rule,
Include:
It determines the content type of property content corresponding to each attribute item, and is the attribute according to the content type
Configuration attribute value, the attribute value include belonging to the attribute value of the property content and not belonging to the property content
Attribute value.
Above-mentioned method, it is optionally, described to be combined each attribute item of configured attribute value, it generates described to be measured
The corresponding multiple test cases of trial product, comprising:
According to the incidence relation between each attribute item, each attribute item of configured attribute value is combined,
Generate the corresponding multiple test cases of the trial product to be measured.
Above-mentioned method, optionally, described each test case is input in established testing tool carry out
Test, comprising:
The interface packets and automatic foot each test case being injected into respectively in the established testing tool
In this;
The interface packets and the automatic script is driven to test each test case of injection.
Above-mentioned method, optionally, the method also includes:
Before generating the test data table, each information field in the insurance product information of acquisition is carried out
Verification.
The embodiment of the invention also provides a kind of electronic equipment, structural schematic diagram is as shown in fig. 6, specifically include memory
601 and one perhaps more than one 602 one of them or more than one program 602 of program be stored in memory 601
In, and be configured to by one or more than one processor 603 execute the one or more programs 602 include use
In the instruction performed the following operation:
The corresponding testing requirement document of current insurance products to be tested is obtained, and reads in the testing requirement document and includes
Insurance product information;
According to the insurance product information, test data table is generated;
In the test data table, multiple attribute items of the insurance products to be tested are chosen, and are matched according to preset
Rule is set, is each attribute item configuration attribute value;
Each attribute item of configured attribute value is combined, the corresponding multiple tests of the trial product to be measured is generated and uses
Example.
Further, described program 602 further includes the instruction for performing the following operation:
Each test case is input in established testing tool and is tested.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention
Method described in part.
The test method and device of a kind of insurance products provided by the present invention are described in detail above, herein
Apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help
Understand method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention,
There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this
The limitation of invention.
Claims (10)
1. a kind of test method of insurance products characterized by comprising
The corresponding testing requirement document of current insurance products to be tested is obtained, and reads the guarantor for including in the testing requirement document
Dangerous product information;
According to the insurance product information, test data table is generated;
In the test data table, multiple attribute items of the insurance products to be tested are chosen, and advise according to preset configuration
It then, is each attribute item configuration attribute value;
Each attribute item of configured attribute value is combined, the corresponding multiple test cases of the trial product to be measured are generated.
2. the method according to claim 1, wherein described read the insurance for including in the testing requirement document
Product information, comprising:
The testing requirement document is parsed, determines the compiling form of the testing requirement document;
The compiling form of the testing requirement document is matched with preset Standard compilation format;
When the compiling form of the testing requirement document is consistent with preset Standard compilation format match, according to the mark
Insurance product information is read in the testing requirement document in information flag position in quasi- compiling form.
3. the method according to claim 1, wherein described according to the insurance product information, generation test number
According to table, comprising:
Obtain the insurance products to be tested for including in the insurance product information each attribute item and each attribute
The corresponding property content of item;
Determine the incidence relation between each attribute item;
According to the incidence relation and the corresponding property content creation test table of each attribute item;
Each attribute item and the corresponding property content of each attribute item are directed into the test table, institute is generated
State test data table.
4. according to the method described in claim 3, being each category it is characterized in that, described according to preset configuration rule
Property item configuration attribute value, comprising:
It determines the content type of property content corresponding to each attribute item, and is that the attribute item is matched according to the content type
Attribute value is set, the attribute value includes the attribute value for belonging to the property content and the attribute for not belonging to the property content
Value.
5. according to the method described in claim 3, it is characterized in that, described carry out group for each attribute item of configured attribute value
It closes, generates the corresponding multiple test cases of the trial product to be measured, comprising:
According to the incidence relation between each attribute item, each attribute item of configured attribute value is combined, is generated
The corresponding multiple test cases of the trial product to be measured.
6. the method according to claim 1, wherein the method also includes:
Each test case is input in established testing tool and is tested.
7. according to the method described in claim 6, it is characterized in that, it is described each test case is input to it is established
It is tested in testing tool, comprising:
Each test case is injected into the interface packets and automatic script in the established testing tool respectively;
The interface packets and the automatic script is driven to test each test case of injection.
8. a kind of test device of insurance products characterized by comprising
Acquiring unit for obtaining the corresponding testing requirement document of current insurance products to be tested, and reads the testing requirement
The insurance product information for including in document;
Generation unit, for generating test data table according to the insurance product information;
Configuration unit, in the test data table, choosing multiple attribute items of the insurance products to be tested, and foundation
Preset configuration rule is each attribute item configuration attribute value;
It is corresponding to generate the trial product to be measured for each attribute item of configured attribute value to be combined for assembled unit
Multiple test cases.
9. a kind of storage medium, which is characterized in that the storage medium includes the instruction of storage, wherein run in described instruction
When control the test side that the equipment where the storage medium executes the insurance products as described in claim 1~7 any one
Method.
10. a kind of electronic equipment, which is characterized in that including memory and one or more than one instruction, one of them
Perhaps more than one instruction is stored in memory and is configured to be executed by one or more than one processor as right is wanted
Seek the test method of insurance products described in 1~7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811474201.XA CN109376093B (en) | 2018-12-04 | 2018-12-04 | Insurance product testing method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811474201.XA CN109376093B (en) | 2018-12-04 | 2018-12-04 | Insurance product testing method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109376093A true CN109376093A (en) | 2019-02-22 |
CN109376093B CN109376093B (en) | 2022-02-01 |
Family
ID=65375582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811474201.XA Active CN109376093B (en) | 2018-12-04 | 2018-12-04 | Insurance product testing method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109376093B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489325A (en) * | 2019-07-09 | 2019-11-22 | 微民保险代理有限公司 | Vehicle insurance data test method, apparatus, test platform and vehicle insurance test macro |
CN110888797A (en) * | 2019-10-11 | 2020-03-17 | 平安信托有限责任公司 | Test data generation method, device, computer equipment and storage medium |
CN110928802A (en) * | 2019-12-24 | 2020-03-27 | 平安资产管理有限责任公司 | Test method, device, equipment and storage medium based on automatic generation of case |
CN111127223A (en) * | 2019-11-25 | 2020-05-08 | 泰康保险集团股份有限公司 | Insurance product testing method and device and storage medium |
CN111679973A (en) * | 2020-05-25 | 2020-09-18 | 泰康保险集团股份有限公司 | Software test scheduling method and device, computer equipment and readable storage medium |
CN111782541A (en) * | 2020-07-10 | 2020-10-16 | 泰康保险集团股份有限公司 | Test case generation method, device, equipment and computer readable storage medium |
CN114003494A (en) * | 2021-10-28 | 2022-02-01 | 京东安联财产保险有限公司 | Automatic test method and device for data model and electronic equipment |
CN117194277A (en) * | 2023-11-08 | 2023-12-08 | 北京轻松怡康信息技术有限公司 | Insurance product test data generation method, apparatus, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7711660B1 (en) * | 2006-02-16 | 2010-05-04 | Ingenix, Inc. | Processing health insurance data utilizing data quality rules |
CN106204284A (en) * | 2016-06-30 | 2016-12-07 | 北京未来付网络技术有限公司 | The implementation method of the future payment product of a kind of pre-core insurance system and device |
CN107704396A (en) * | 2017-10-20 | 2018-02-16 | 平安科技(深圳)有限公司 | The method of testing and device of application program |
CN108804548A (en) * | 2018-05-21 | 2018-11-13 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Test data querying method, device, computer equipment and storage medium |
-
2018
- 2018-12-04 CN CN201811474201.XA patent/CN109376093B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7711660B1 (en) * | 2006-02-16 | 2010-05-04 | Ingenix, Inc. | Processing health insurance data utilizing data quality rules |
CN106204284A (en) * | 2016-06-30 | 2016-12-07 | 北京未来付网络技术有限公司 | The implementation method of the future payment product of a kind of pre-core insurance system and device |
CN107704396A (en) * | 2017-10-20 | 2018-02-16 | 平安科技(深圳)有限公司 | The method of testing and device of application program |
CN108804548A (en) * | 2018-05-21 | 2018-11-13 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Test data querying method, device, computer equipment and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489325A (en) * | 2019-07-09 | 2019-11-22 | 微民保险代理有限公司 | Vehicle insurance data test method, apparatus, test platform and vehicle insurance test macro |
CN110888797A (en) * | 2019-10-11 | 2020-03-17 | 平安信托有限责任公司 | Test data generation method, device, computer equipment and storage medium |
CN111127223A (en) * | 2019-11-25 | 2020-05-08 | 泰康保险集团股份有限公司 | Insurance product testing method and device and storage medium |
CN110928802A (en) * | 2019-12-24 | 2020-03-27 | 平安资产管理有限责任公司 | Test method, device, equipment and storage medium based on automatic generation of case |
CN110928802B (en) * | 2019-12-24 | 2024-09-24 | 平安资产管理有限责任公司 | Test method, device, equipment and storage medium based on automatic generation use case |
CN111679973A (en) * | 2020-05-25 | 2020-09-18 | 泰康保险集团股份有限公司 | Software test scheduling method and device, computer equipment and readable storage medium |
CN111679973B (en) * | 2020-05-25 | 2023-09-08 | 泰康保险集团股份有限公司 | Software test scheduling method, device, computer equipment and readable storage medium |
CN111782541A (en) * | 2020-07-10 | 2020-10-16 | 泰康保险集团股份有限公司 | Test case generation method, device, equipment and computer readable storage medium |
CN114003494A (en) * | 2021-10-28 | 2022-02-01 | 京东安联财产保险有限公司 | Automatic test method and device for data model and electronic equipment |
CN117194277A (en) * | 2023-11-08 | 2023-12-08 | 北京轻松怡康信息技术有限公司 | Insurance product test data generation method, apparatus, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109376093B (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109376093A (en) | The test method and device of insurance products, storage medium and electronic equipment | |
Mutarraf et al. | Transformation of Business Process Model and Notation models onto Petri nets and their analysis | |
Mukherjee et al. | RETRACTED: Achieving organizational performance by integrating industrial Internet of things in the SMEs: a developing country perspective | |
CN109299177A (en) | Data pick-up method, apparatus, storage medium and electronic equipment | |
CN108255702A (en) | A kind of test case creation method, apparatus, equipment and storage medium | |
CN103488460B (en) | The system and method for automatic mark source code | |
WO2019215713A1 (en) | Multiple-part machine learning solutions generated by data scientists | |
CN103544107A (en) | Method and device for generating test case document | |
Marland et al. | Valuing uncertainty part I: the impact of uncertainty in GHG accounting | |
CN106874173A (en) | The method of testing and device of Page Template | |
Thi Mai et al. | Population, carbon dioxide emissions and renewable energy consumption nexus: New insights from Vietnam | |
EP3547143B1 (en) | System and method for model-based and behaviour-driven testing | |
CN110110530B (en) | Information authority management method and device based on BIM platform and storage device | |
Marcovitch et al. | A data ethics framework for responsible responsive organizations in the digital world | |
CN109597603A (en) | A kind of requirement documents automatic generation method based on document component | |
CN104536897A (en) | Automatic testing method and system based on keyword | |
CN110648239B (en) | Monitoring index generation method and device, data monitoring system | |
CN115034645B (en) | Production planning feasibility judgment method, system, electronic equipment and storage medium | |
Kralik et al. | Proposal Of Evaluation Criteria For Free And Open Source Tools For Modelling And Support Of IT Service Management According To ITIL. | |
CN114936054B (en) | Method and device for generating debugging process file of vehicle and railway vehicle | |
CN110570207A (en) | commodity tracing method and device | |
CN114003494A (en) | Automatic test method and device for data model and electronic equipment | |
CN102467443A (en) | Nuclear power station safety level software testing method and system | |
Poorkiany et al. | An explorative study on management and maintenance of systems for design and manufacture of customized products | |
Kamrani et al. | Methods in Product Design: New Strategies in Reengineering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |