CN111782541A - Test case generation method, device, equipment and computer readable storage medium - Google Patents

Test case generation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111782541A
CN111782541A CN202010663964.XA CN202010663964A CN111782541A CN 111782541 A CN111782541 A CN 111782541A CN 202010663964 A CN202010663964 A CN 202010663964A CN 111782541 A CN111782541 A CN 111782541A
Authority
CN
China
Prior art keywords
test case
required value
characteristic
logical relationship
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010663964.XA
Other languages
Chinese (zh)
Inventor
曹会敏
张慧
丁晓倩
孙明明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN202010663964.XA priority Critical patent/CN111782541A/en
Publication of CN111782541A publication Critical patent/CN111782541A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a test case generation method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a test case template sent by terminal equipment, wherein the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is obtained from the insurance product by the terminal equipment according to a preset test case general characteristic list; acquiring a required value corresponding to at least one universal characteristic from a preset rule table according to the test case template, wherein the rule table comprises a corresponding relation between the at least one universal characteristic and the required value; obtaining a logical relationship between at least one generic property; and arranging the general characteristics according to the logic relationship, and filling the required values corresponding to the arranged general characteristics into the test case template to obtain the test case. Therefore, a user does not need to fill in and generate the test case manually, the generation efficiency and accuracy of the test case can be greatly improved, and the waste of human resources is avoided.

Description

Test case generation method, device, equipment and computer readable storage medium
Technical Field
The invention relates to the field of big data, in particular to a test case generation method, a test case generation device, test case generation equipment and a computer readable storage medium.
Background
For different groups of people and different requirements, insurance companies generally provide a plurality of different insurance products for customers. And aiming at different insurance products, a tester can carry out demand analysis on different insurance products, and design test cases according to the result of the demand analysis, wherein one demand point corresponds to a plurality of test cases, and one test case corresponds to one line of data of the automatically executed data table.
In order to achieve the acquisition of the test cases, a tester needs to manually compile all the test cases in the excel form, one test case corresponds to one line of data of the automatically executed data table, and accordingly, how many test cases exist needs to fill in how many lines of corresponding data tables.
However, part of data in the data table is irrelevant to the corresponding test point, and it is not necessary to fill all data, and the above test case generation method requires a tester to manually write all test cases and all data in the corresponding data table, and filling these data takes much time for the tester, and a problem occurs when executing the test case due to a filling error.
Disclosure of Invention
The invention provides a test case generation method, a test case generation device, test case generation equipment and a computer readable storage medium, which are used for solving the technical problems that the existing test case generation method is low in accuracy and consumes human resources.
The first aspect of the present invention provides a test case generation method, which is applied to a test case generation apparatus, and includes:
the method comprises the steps of obtaining a test case template sent by terminal equipment, wherein the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is obtained from the insurance product by the terminal equipment according to a preset test case general characteristic list;
acquiring a required value corresponding to the at least one universal characteristic from a preset rule table according to the test case template, wherein the rule table comprises a corresponding relation between the at least one universal characteristic and the required value;
obtaining a logical relationship between the at least one generic property;
and arranging the general characteristics according to the logic relationship, and filling the requirement values corresponding to the arranged general characteristics into the test case template to obtain the test case.
A second aspect of the present invention provides a test case generation apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a test case template sent by terminal equipment, the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is acquired from the insurance product by the terminal equipment according to a preset test case general characteristic list;
the determining module is used for acquiring the required value corresponding to the at least one general characteristic from a preset rule table according to the test case template, wherein the rule table comprises the corresponding relation between the at least one general characteristic and the required value;
a logical relationship obtaining module, configured to obtain a logical relationship between the at least one generic characteristic;
and the processing module is used for arranging the general characteristics according to the logical relationship, and filling the required values corresponding to the arranged general characteristics into the test case template to obtain the test case.
A third aspect of the present invention provides a test case generation device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the test case generation method according to the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the test case generation method according to the first aspect.
According to the test case generating method, the test case generating device, the test case generating equipment and the computer readable storage medium, the test case template sent by the terminal equipment is obtained, wherein the test case comprises at least one universal characteristic corresponding to the insurance product, the test case is automatically obtained by the terminal equipment from the insurance product according to a preset test case universal characteristic list, so that the required value corresponding to each universal characteristic can be obtained from a preset rule table according to the test case template, the required values are arranged according to the logic relation among the at least one universal characteristic, the required values corresponding to the arranged logic relation are sequentially filled to the corresponding positions in the test case template, and the test case is automatically generated. The generated test case is not required to be manually filled by a user, so that the generation efficiency and accuracy of the test case can be greatly improved, and the waste of human resources is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic diagram of a network architecture on which the present invention is based;
fig. 2 is a schematic flowchart of a test case generation method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a test case provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a display interface provided in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a random combination according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a test case generating device according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of test case generating equipment according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other examples obtained based on the examples in the present invention are within the scope of the present invention.
Aiming at the technical problems that the existing test case generation method is low in accuracy and consumes human resources, the invention provides a test case generation method, a test case generation device, test case generation equipment and a computer readable storage medium.
Because the existing test case generation method generally needs to fill in corresponding data manually by a user, the method usually consumes human resources and has low accuracy. Most insurance products have common characteristics, such as demand number, channel, insurance application type, payment period, insurance period, premium amount, policy type, payment method, additional insurance type, insured person age, insured person occupation, insured person relationship, insured person age, and apply for automatic renewal. Therefore, in order to improve the generation efficiency of the test cases and avoid waste of human resources, the general characteristics in the test cases can be summarized in advance, after the insurance products are obtained, the test case templates are automatically generated according to the summarized general characteristics, and then the test cases can be automatically generated according to the test case templates.
It should be noted that the test case generation method, device, apparatus, and computer-readable storage medium provided in the present application may be applied to a scenario for various test cases.
Fig. 1 is a schematic diagram of a network architecture based on the present invention, and as shown in fig. 1, the network architecture based on the present invention at least includes: a terminal device 1, a test case generation apparatus 2, and a data server 3. The test case generation device 2 is written by C/C + +, Java, Shell or Python languages and the like; the terminal device 1 may be a desktop computer, a tablet computer, or the like. The data server 3 may be a cloud server or a server cluster, and a large amount of data is stored therein.
Fig. 2 is a schematic flow diagram of a test case generation method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
101, obtaining a test case template sent by a terminal device, wherein the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is obtained from the insurance product by the terminal device according to a preset test case general characteristic list.
The execution subject of this embodiment is a test case generation device, and the test case generation device is connected to the terminal device in a communication manner, so that information interaction with the terminal device can be performed. As different types of insurance products often have many common characteristics, such as demand numbers, channels, insurance policy applying, payment period, insurance period, premium amount, policy type, payment mode, additional insurance policy, insured person age, insured person occupation, insured person relation, insured person age, whether to apply automatic renewal and the like. Therefore, when an insurance product to be processed is received, the terminal device can extract the general characteristics included in the insurance product to be processed according to the preset test case general characteristic list to generate a test case template, and the test case template includes at least one general characteristic corresponding to the insurance product.
Accordingly, after the terminal device generates the test case template, the test case template may be sent to the test case generating apparatus. The test case generating device can receive a test case template sent by the terminal equipment.
And 102, acquiring a required value corresponding to the at least one general characteristic from a preset rule table according to the test case template, wherein the rule table comprises a corresponding relation between the at least one general characteristic and the required value.
In this embodiment, after the test case generating device obtains the test case template, the required value corresponding to at least one general characteristic in the test case template may be obtained from a preset rule table according to the test case template. The rule table may be specifically stored in a data server, and the data server is in communication connection with the test case generation device. The rule table is shown in table 1:
id name fieldid value remarks for note
000001 During insurance period 000001 Protect to 70 years old
000002 During insurance period 000001 Preserving to 75 years old
000003 During insurance period 000001 Protect to 80 years old
000004 During the payment period 000002 Wharf crossing
000005 During the payment period 000002 Cross over for 3 years
000006 During the payment period 000002 Cross over for 5 years
000007 Date of birth of insured life 000003 Age 45 years old
000008 Date of birth of insured life 000003 Age 50
000009 Date of birth of insured life 000003 Age 55
000010 Date of birth of insured life 000003 30 days
000011 Date of birth of policeman 000004 18 years of age
000012 The policyholder being a insured person 000005 I am
000013 The policyholder being a insured person 000005 Father and father
000014 The policyholder being a insured person 000005 Mother
000015 The policyholder being a insured person 000005 Husband
103, acquiring a logic relation among the at least one universal characteristic;
and 104, arranging the general characteristics according to the logic relationship, and filling the required values corresponding to the arranged general characteristics into the test case template to obtain the test case.
In this embodiment, any two general characteristics have a logical relationship therebetween, and the general characteristics may be combined according to the logical relationship, where the logical relationship includes sequential combination and random combination. Correspondingly, in order to realize the automatic generation operation of the test case, the logical relationship among at least one universal characteristic can be obtained, the universal characteristic is arranged and combined according to the logical relationship, and the requirement value corresponding to the arranged universal characteristic is filled into the test case template to obtain the test case. Fig. 3 is a schematic diagram of a test case provided in the embodiment of the present invention. As shown in fig. 3, each generic property corresponds to a plurality of required values, and a logic relationship is set in a predetermined region around the generic property, for example, an insurance period and a payment period are sequentially combined.
In the test case generation method provided by this embodiment, a test case template sent by a terminal device is obtained, where the test case includes at least one general characteristic corresponding to an insurance product, and the test case is automatically obtained by the terminal device from the insurance product according to a preset test case general characteristic list, so that a required value corresponding to each general characteristic can be obtained from a preset rule table according to the test case template, the required values are arranged according to a logical relationship between the at least one general characteristic, and the arranged required values are sequentially filled into corresponding positions in the test case template, so as to automatically generate the test case. The generated test case is not required to be manually filled by a user, so that the generation efficiency and accuracy of the test case can be greatly improved, and the waste of human resources is avoided.
Specifically, the logical relationship may be input by a user, and on the basis of any of the above embodiments, the obtaining the logical relationship between the at least one generic property includes:
acquiring a trigger instruction of a user to a preset logical relation button on a display interface;
and determining the logical relationship according to the trigger instruction.
In this embodiment, the user may interactively implement the input of the logical relationship through the interface. As shown in fig. 3, a user may perform a trigger operation on a logical relationship button disposed on a display interface to generate a trigger instruction, and accordingly, the logical relationship may be determined according to the trigger instruction. Wherein the trigger operation includes but is not limited to a single click, a double click, a long press, etc. Optionally, after the user triggers the logical relationship button, a plurality of logical relationships may be displayed for the user to select, and the logical relationships may be determined according to the user's selection.
Further, on the basis of any of the above embodiments, the logical relationship includes sequential combinations, and accordingly, the method further includes:
if the logic relation between any two general characteristics is the sequential combination, detecting whether the number of logic values corresponding to any two general characteristics is the same;
and if not, displaying error information on a display interface so that a user can adjust the number of the logic values according to the error information.
In this embodiment, the logical relationship may specifically include a sequential combination, and the sequential combination is used to sequentially combine at least one requirement value corresponding to any two general characteristics. Specifically, in order to sequentially combine at least one requirement value corresponding to any two general characteristics, it is first required to ensure that the number of requirement values corresponding to each general characteristic is consistent. Therefore, if it is detected that the number of the required values corresponding to the two general characteristics that are sequentially combined is different, the error information needs to be displayed on the display interface, so that after the user checks the error information on the display interface, the required values corresponding to the general characteristics can be adjusted to ensure that the number of the required values corresponding to the two general characteristics that are sequentially combined is the same. Fig. 4 is a schematic diagram of a display interface according to an embodiment of the present invention, and as shown in fig. 4, when the logic relationship is that the required values corresponding to the two general characteristics of the sequential combination are different, the error information may be displayed on the display interface.
Accordingly, on the basis of any of the above embodiments, the arranging the general characteristics according to the logical relationship includes:
and if the number of the logic values corresponding to any two general characteristics is the same, sequentially combining the logic values according to the sequence of the logic values corresponding to any two general characteristics.
In this embodiment, if it is detected that the logic relationship is that the number of the required values corresponding to the two general characteristics that are sequentially combined is the same, the logic values may be sequentially combined according to the order of the logic values corresponding to any two general characteristics.
Optionally, on the basis of any of the foregoing embodiments, the logical relationship includes a random combination, and accordingly, the arranging the general characteristics according to the logical relationship includes:
and randomly combining the logic values corresponding to any two general characteristics.
In this embodiment, the logical relationship may specifically include a random combination. Accordingly, when the logical relationship between any two general characteristics is a random combination, the combination operation can be performed on the logical values corresponding to any two general characteristics at random. Fig. 5 is a schematic diagram of a random combination according to an embodiment of the present invention, and as shown in fig. 5, the insurance period may correspond to a plurality of different payment periods respectively.
According to the test case generation method provided by the embodiment, different combination operations are performed on the required values corresponding to the general characteristics according to different logical relations, so that the test case can be accurately generated, manual adjustment of the combination relations of the test case is avoided, the generation efficiency of the test case is improved, and waste of human resources can be avoided.
Further, on the basis of any of the above embodiments, the filling the arranged generic features into the test case template includes:
determining identification information corresponding to the required value, wherein the identification information is used for adjusting the required value;
and adjusting the required value according to the identification information, and filling the adjusted required value to a corresponding position in the test case template.
In this embodiment, the field before or after the demand value may include identification information for adjusting the demand value. Correspondingly, the identification information corresponding to the required value can be determined, the required value is adjusted according to the identification information, and the adjusted required value is filled to the corresponding position in the test case template.
Specifically, on the basis of any of the above embodiments, the adjusting the required value according to the identification information includes:
and adjusting the required value according to the position of the identification information and a preset adjustment rule.
For example, in practical applications, the filling of ages is related to, for example, the ages of the insured person and the insurant, examples '55 years', '18 years', '30 days', etc., where '. is the identification of the counter example of the age,' will reduce the current age by 1 before, and will add 1 after, and the last piece of data will generate two cases, including a positive example and a counter example, such as: '55 years' will generate '55 years' and '56 years' two cases, the latter is a counterexample; '18 years' will generate '17 years' and '18 years' two cases, the former is a counterexample; '30 days' will generate '29 days' and '30 days' two cases, the former is a counterexample. The filling of the quota is involved, examples '#100000,10000', #100000,10000,5000000#, where ',' has the effect of splitting the quota and the step size, the value after splitting does not contain '#', but the step size, and '#' is the identification of the counter-example of the quota, such as: '#' generates three counter examples of the current amount minus 1, minus step and plus (step/10), for example, '99999', '90000', '101000'; '#' later generates two counter examples of current amount plus 1 and plus step size, such as '5000001', '5010000'; the positive case will generate three cases, such as '100000', '110000', '5000000'.
According to the test case generation method provided by the embodiment, the identification information corresponding to the required value is determined, the required value is adjusted according to the identification information, and the adjusted required value is filled to the corresponding position in the test case template, so that the accuracy of the test case can be improved on the basis of improving the test case generation efficiency.
Fig. 6 is a schematic structural diagram of a test case generating device according to a second embodiment of the present invention, and as shown in fig. 6, the device includes: the system comprises an acquisition module 21, a determination module 22, a logical relationship acquisition module 23 and a processing module 24, wherein the acquisition module 21 is used for acquiring a test case template sent by a terminal device, the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is acquired by the terminal device from the insurance product according to a preset test case general characteristic list; the determining module 22 is configured to obtain a required value corresponding to the at least one generic characteristic from a preset rule table according to the test case template, where the rule table includes a corresponding relationship between the at least one generic characteristic and the required value; a logical relationship obtaining module 23, configured to obtain a logical relationship between the at least one generic property; and the processing module 24 is configured to arrange the general characteristics according to the logical relationship, and fill the required values corresponding to the arranged general characteristics into the test case template to obtain the test case.
The test case generating apparatus provided in this embodiment obtains a test case template sent by a terminal device, where the test case includes at least one general characteristic corresponding to an insurance product, and the test case is automatically obtained by the terminal device from the insurance product according to a preset test case general characteristic list, so that a required value corresponding to each general characteristic can be obtained from a preset rule table according to the test case template, the required values are arranged according to a logical relationship between the at least one general characteristic, and the arranged required values are sequentially filled into corresponding positions in the test case template, so as to automatically generate the test case. The generated test case is not required to be manually filled by a user, so that the generation efficiency and accuracy of the test case can be greatly improved, and the waste of human resources is avoided.
Further, on the basis of any of the above embodiments, the obtaining module is configured to:
acquiring a trigger instruction of a user to a preset logical relation button on a display interface;
and determining the logical relationship according to the trigger instruction.
Further, on the basis of any of the above embodiments, the logical relationship includes sequential combinations, and accordingly, the apparatus further includes:
the detection module is used for detecting whether the number of the logic values corresponding to any two general characteristics is the same or not if the logic relation between any two general characteristics is the sequential combination;
and the display module is used for displaying error reporting information on a display interface if the logical values are different from each other, so that a user can adjust the number of the logical values according to the error reporting information.
Further, on the basis of any of the above embodiments, the processing module is configured to:
and if the number of the logic values corresponding to any two general characteristics is the same, sequentially combining the logic values according to the sequence of the logic values corresponding to any two general characteristics.
Further, on the basis of any of the above embodiments, the logical relationship includes a random combination, and accordingly the processing module is configured to:
and randomly combining the logic values corresponding to any two general characteristics.
Further, on the basis of any of the above embodiments, the processing module is configured to:
determining identification information corresponding to the required value, wherein the identification information is used for adjusting the required value;
and adjusting the required value according to the identification information, and filling the adjusted required value to a corresponding position in the test case template.
Further, on the basis of any of the above embodiments, the processing module is configured to:
and adjusting the required value according to the position of the identification information and a preset adjustment rule.
Fig. 7 is a schematic structural diagram of test case generating equipment provided in a third embodiment of the present invention, and as shown in fig. 7, the test case generating equipment includes: a memory 31, a processor 32;
a memory 31; a memory 31 for storing instructions executable by the processor 32;
wherein the processor 32 is configured to execute the test case generation method according to any of the above embodiments by the processor 32.
In particular, the program may include program code comprising computer operating instructions. The memory 31 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 32 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
Alternatively, in a specific implementation, if the memory 31 and the processor 32 are implemented independently, the memory 31 and the processor 32 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 31 and the processor 32 are integrated on a chip, the memory 31 and the processor 32 may complete the same communication through an internal interface.
Still another embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the test case generation method according to any one of the above embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A test case generation method is applied to a test case generation device and is characterized by comprising the following steps:
the method comprises the steps of obtaining a test case template sent by terminal equipment, wherein the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is obtained from the insurance product by the terminal equipment according to a preset test case general characteristic list;
acquiring a required value corresponding to the at least one universal characteristic from a preset rule table according to the test case template, wherein the rule table comprises a corresponding relation between the at least one universal characteristic and the required value;
obtaining a logical relationship between the at least one generic property;
and arranging the general characteristics according to the logic relationship, and filling the requirement values corresponding to the arranged general characteristics into the test case template to obtain the test case.
2. The method of claim 1, wherein obtaining the logical relationship between the at least one generic characteristic comprises:
acquiring a trigger instruction of a user to a preset logical relation button on a display interface;
and determining the logical relationship according to the trigger instruction.
3. The method of claim 1, wherein the logical relationship comprises a sequential combination, and wherein the method further comprises:
if the logic relation between any two general characteristics is the sequential combination, detecting whether the number of logic values corresponding to any two general characteristics is the same;
and if not, displaying error information on a display interface so that a user can adjust the number of the logic values according to the error information.
4. The method of claim 3, wherein said ranking said generic properties according to said logical relationship comprises:
and if the number of the logic values corresponding to any two general characteristics is the same, sequentially combining the logic values according to the sequence of the logic values corresponding to any two general characteristics.
5. The method of claim 1, wherein the logical relationship comprises a random combination, and wherein said ranking the generic properties according to the logical relationship comprises:
and randomly combining the logic values corresponding to any two general characteristics.
6. The method according to any one of claims 1 to 5, wherein the populating the arranged generic properties into the test case template comprises:
determining identification information corresponding to the required value, wherein the identification information is used for adjusting the required value;
and adjusting the required value according to the identification information, and filling the adjusted required value to a corresponding position in the test case template.
7. The method of claim 6, wherein the adjusting the demand value according to the identification information comprises:
and adjusting the required value according to the position of the identification information and a preset adjustment rule.
8. A test case generation apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a test case template sent by terminal equipment, the test case template comprises at least one general characteristic corresponding to an insurance product, and the test case template is acquired from the insurance product by the terminal equipment according to a preset test case general characteristic list;
the determining module is used for acquiring the required value corresponding to the at least one general characteristic from a preset rule table according to the test case template, wherein the rule table comprises the corresponding relation between the at least one general characteristic and the required value;
a logical relationship obtaining module, configured to obtain a logical relationship between the at least one generic characteristic;
and the processing module is used for arranging the general characteristics according to the logical relationship, and filling the required values corresponding to the arranged general characteristics into the test case template to obtain the test case.
9. A test case generation device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to perform the test case generation method of any of claims 1-7 by the processor.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the test case generation method of any one of claims 1-7.
CN202010663964.XA 2020-07-10 2020-07-10 Test case generation method, device, equipment and computer readable storage medium Pending CN111782541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010663964.XA CN111782541A (en) 2020-07-10 2020-07-10 Test case generation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010663964.XA CN111782541A (en) 2020-07-10 2020-07-10 Test case generation method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111782541A true CN111782541A (en) 2020-10-16

Family

ID=72767315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010663964.XA Pending CN111782541A (en) 2020-07-10 2020-07-10 Test case generation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111782541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346983A (en) * 2020-11-24 2021-02-09 中信银行股份有限公司 Method and system for automatically generating test case
CN113010425A (en) * 2021-03-18 2021-06-22 中国平安人寿保险股份有限公司 System quality monitoring method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026524A1 (en) * 2011-01-28 2015-01-22 International Business Machines Corporation Test cases generation for different test types
CN109376093A (en) * 2018-12-04 2019-02-22 泰康保险集团股份有限公司 The test method and device of insurance products, storage medium and electronic equipment
CN109471796A (en) * 2018-10-16 2019-03-15 平安证券股份有限公司 Interface test method, device, computer equipment and storage medium
CN110874326A (en) * 2019-11-21 2020-03-10 望海康信(北京)科技股份公司 Test case generation method and device, computer equipment and storage medium
CN111127223A (en) * 2019-11-25 2020-05-08 泰康保险集团股份有限公司 Insurance product testing method and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150026524A1 (en) * 2011-01-28 2015-01-22 International Business Machines Corporation Test cases generation for different test types
CN109471796A (en) * 2018-10-16 2019-03-15 平安证券股份有限公司 Interface test method, device, computer equipment and storage medium
CN109376093A (en) * 2018-12-04 2019-02-22 泰康保险集团股份有限公司 The test method and device of insurance products, storage medium and electronic equipment
CN110874326A (en) * 2019-11-21 2020-03-10 望海康信(北京)科技股份公司 Test case generation method and device, computer equipment and storage medium
CN111127223A (en) * 2019-11-25 2020-05-08 泰康保险集团股份有限公司 Insurance product testing method and device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346983A (en) * 2020-11-24 2021-02-09 中信银行股份有限公司 Method and system for automatically generating test case
CN112346983B (en) * 2020-11-24 2024-05-17 中信银行股份有限公司 Method and system for automatically generating test cases
CN113010425A (en) * 2021-03-18 2021-06-22 中国平安人寿保险股份有限公司 System quality monitoring method and device, computer equipment and storage medium
CN113010425B (en) * 2021-03-18 2024-04-02 中国平安人寿保险股份有限公司 System quality monitoring method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2019134232A1 (en) Method for performing underwriting verification, device, storage medium, and terminal
US20140310051A1 (en) Methods and Apparatus for Project Portfolio Management
CN107784063B (en) Algorithm generation method and terminal equipment
CN107016132B (en) Online question bank quality improving method and system and terminal equipment
CN110597511A (en) Page automatic generation method, system, terminal equipment and storage medium
CN111782541A (en) Test case generation method, device, equipment and computer readable storage medium
CN109783558A (en) Introduction method, device, computer equipment and the storage medium of Excel data
CN110990276A (en) Automatic testing method and device for interface field and storage medium
CN111340584A (en) Method, device, equipment and storage medium for determining fund side
CN111273891A (en) Business decision method and device based on rule engine and terminal equipment
CN109543073A (en) Enterprise's supply and marketing relation map generation method, device and computer equipment
CN111475494A (en) Mass data processing method, system, terminal and storage medium
CN115221037A (en) Interactive page testing method and device, computer equipment and program product
US20160078545A1 (en) Methods and systems for calculation of insurance related fees for an insurance product
CN111127223B (en) Insurance product testing method, insurance product testing device and storage medium
CN113052246A (en) Method and related device for training classification model and image classification
CN112256844A (en) Text classification method and device
CN111813485A (en) Page layout processing method, device and equipment and computer readable storage medium
US9791509B2 (en) Monitoring microprocessor interface information for a preset service using an address based filter
CN111275436A (en) Method and terminal for processing information
CN114971926A (en) Premium calculation model test method, system, device and storage medium
CN114217790A (en) Interface scheduling method and device, electronic equipment and medium
CN110196877B (en) Data display method, device, computer equipment and storage medium
US20160078546A1 (en) Methods and systems for calculation of insurance related fees for an insurance product
CN111191130A (en) Information extraction method, device, equipment and computer readable 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: 20201016

RJ01 Rejection of invention patent application after publication