CN115237791A - Test case generation method and related device - Google Patents

Test case generation method and related device Download PDF

Info

Publication number
CN115237791A
CN115237791A CN202210916647.3A CN202210916647A CN115237791A CN 115237791 A CN115237791 A CN 115237791A CN 202210916647 A CN202210916647 A CN 202210916647A CN 115237791 A CN115237791 A CN 115237791A
Authority
CN
China
Prior art keywords
entity
test
determining
entity node
node
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
CN202210916647.3A
Other languages
Chinese (zh)
Inventor
江梦茹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210916647.3A priority Critical patent/CN115237791A/en
Publication of CN115237791A publication Critical patent/CN115237791A/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a test case generation method and a related device, which can be applied to the test field and the financial field. The user experience original data can be obtained; abstracting and refining the original data based on a root theory so as to obtain a corresponding test requirement; and generating a corresponding test case according to the test requirement. Therefore, the method can carry out requirement mining on the original data based on the root theory and generate the test case based on the mined test requirement, thereby generating the test case meeting the actual test requirement and further improving the test effect.

Description

Test case generation method and related device
Technical Field
The present invention relates to the field of testing, and in particular, to a test case generation method and a related device.
Background
At present, in a testing stage, for the tests of newly adopted algorithm models, such as collaborative filtering, machine learning algorithms and the like, many projects are just functions and processes under regression, and a specific algorithm model is not evaluated; the algorithm model is typically evaluated by recommendation effects issued on-line or in grayscale. The method has the advantages that various types of algorithms are involved when the testers perform test analysis on related products of the algorithm market, the complexity is high, and the testers cannot fully cover the test scene of the algorithm on the basis of the traditional test analysis. In the actual testing process, the user experience of the product needs to be covered on the basis of testing the functions of the algorithm and the algorithm mart. The analysis and test requirements are difficult to meet only by means of a traditional analysis method, so that the test effect of the test case obtained based on the requirements is poor.
Disclosure of Invention
In view of the above, the present invention provides a test case generation method and related apparatus that overcome or at least partially solve the above problems.
In a first aspect, a test case generation method includes:
obtaining original data of user experience;
abstracting and refining the original data based on a root theory so as to obtain corresponding test requirements;
and generating a corresponding test case according to the test requirement.
With reference to the first aspect, in some optional embodiments, the abstracting and refining the raw material based on the root theory to obtain the corresponding test requirement includes:
performing word segmentation on the original data to obtain a corresponding phrase set, wherein the phrase set comprises a plurality of phrases;
filtering useless phrases in the phrase set;
screening at least a plurality of key phrases from the phrase set according to a pre-established key phrase library;
aiming at any key phrase, establishing a corresponding category, and establishing the attribute and the dimension of the category;
establishing a knowledge graph according to the categories, corresponding attributes and corresponding dimensions, wherein the categories are used as entity nodes of the knowledge graph, and the attributes and the dimensions corresponding to the categories are used as attribute information of the corresponding entity nodes;
and refining the test requirement according to the knowledge graph.
With reference to the foregoing embodiment, in some optional embodiments, the refining the test requirement according to the knowledge graph includes:
calculating the number of other entity nodes connected with the entity node aiming at any entity node of the knowledge graph;
determining a plurality of entity nodes with strong connection relation from the knowledge graph according to the number corresponding to each entity node;
and determining the test requirement according to the entity nodes with the strong connection relation.
With reference to the previous embodiment, in some optional embodiments, the determining, from the knowledge graph, a plurality of entity nodes having a strong connection relationship according to the number corresponding to each entity node includes:
sequencing each entity node in sequence according to the number corresponding to each entity node;
and determining the first N entity nodes with larger number as the entity nodes with strong connection relation, wherein N is an integer greater than 1.
Optionally, in some optional embodiments, the determining, from the knowledge graph, a plurality of entity nodes having a strong connection relationship according to the number corresponding to each entity node includes:
and determining the entity nodes of which the number is greater than a preset number threshold value as the entity nodes with strong connection relation according to the number corresponding to each entity node.
Optionally, in some optional embodiments, the determining the test requirement according to each entity node with a strong connection relationship includes:
determining at least one core entity node from the entity nodes with the strong connection relation according to the connection relation among the entity nodes with the strong connection relation;
and determining the test requirement according to the entity node of the core.
With reference to the previous embodiment, in some optional embodiments, the determining the test requirement according to the entity node of the core includes:
and determining the test requirement according to the category corresponding to the entity node of the core and the corresponding attribute and dimension.
In a second aspect, a test case generation apparatus includes: the system comprises a data acquisition unit, a demand determination unit and a use case generation unit;
the data obtaining unit is used for obtaining original data of user experience;
the requirement determining unit is used for abstracting and refining the original data based on a rooting theory so as to obtain a corresponding test requirement;
and the case generating unit is used for generating a corresponding test case according to the test requirement.
In a third aspect, a computer-readable storage medium stores a program that when executed by a processor implements the test case generation method of any one of the above.
In a fourth aspect, an electronic device includes at least one processor, and at least one memory, a bus, connected to the processor; the processor and the memory are communicated with each other through the bus; the processor is configured to call a program instruction in the memory to execute any one of the test case generation methods.
By means of the technical scheme, the test case generation method and the related device provided by the invention can obtain the original data of user experience; abstracting and refining the original data based on a root theory so as to obtain corresponding test requirements; and generating a corresponding test case according to the test requirement. Therefore, the method can carry out requirement mining on the original data based on the root theory and generate the test case based on the mined test requirement, thereby generating the test case meeting the actual test requirement and further improving the test effect.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a first test case generation method provided by the present invention;
FIG. 2 is a flowchart illustrating a second test case generation method provided by the present invention;
FIG. 3 is a flow chart of a third test case generation method provided by the present invention;
FIG. 4 is a flowchart illustrating a fourth test case generation method provided by the present invention;
FIG. 5 is a flowchart illustrating a fifth test case generation method provided by the present invention;
FIG. 6 is a flowchart illustrating a sixth test case generation method provided by the present invention;
FIG. 7 is a flowchart illustrating a seventh test case generation method provided by the present invention;
FIG. 8 is a schematic structural diagram of a test case generating apparatus according to the present invention;
fig. 9 shows a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
At the present time, in the testing stage, for the tests of newly adopted algorithm models, such as collaborative filtering, machine learning algorithm and the like, many items are just regression functions and flows, and the specific algorithm models are not evaluated; the algorithm model is typically evaluated by recommendation effects issued on-line or in grayscale. Because the variety of algorithms involved when the tester performs the test analysis on the products related to the algorithm market is large, the complexity is high, and the tester cannot fully cover the test scene of the algorithm on the basis of the traditional test analysis, the user experience of the products needs to be covered on the basis of the functions of the test algorithm and the algorithm market in the actual test process, and if the items with short iteration period and frequent iteration period are met, the test analysis requirements are difficult to meet only depending on the traditional test analysis and algorithm test framework. The software testing problem of algorithm market tool is mainly solved to this patent, uses the theory of pricking root as the support, carries out the design of test case from user experience's angle to improve test effect.
It should be noted that the test case generation method and the related device provided by the invention can be used in the test field and the financial field. The above description is only an example, and does not limit the application fields of the test case generation method and the related device provided by the present invention.
The test case generation method and the related device provided by the invention can be used in the financial field or other fields, for example, can be used in a test application scene in the financial field. Other fields are any fields other than the financial field, for example, the testing field. The above description is only an example, and does not limit the application fields of the test case generation method and the related device provided by the present invention.
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, the present invention provides a test case generation method, including: s100, S200 and S300;
s100, obtaining original data of user experience;
alternatively, the raw material may be material obtained from observations, interviews and recordings of the business user's experience with the test. Original data records information such as intuitive opinions and opinions of users on the current situation of products and expectations for realizing subsequent functions.
S200, abstracting and refining the original data based on a root theory so as to obtain corresponding test requirements;
optionally, the method and the device can extract the pain points of the user, so that the user requirements to be met are analyzed, and the corresponding test requirements are obtained accordingly.
Optionally, the root-tying theory belongs to a concept known in the art, and the present invention does not make much description, and please refer to the related description in the field specifically. It should be noted that: the root theory is to establish a theory based on the original data. That is, the results are summarized from the original data and then raised to the test requirements, which the present invention is not limited to.
For example, as shown in fig. 2, in combination with the embodiment shown in fig. 1, in some alternative embodiments, the S200 includes: s210, S211, S212, S213, S214, and S215;
s210, performing word segmentation on the original data to obtain corresponding phrase sets, wherein each phrase set comprises a plurality of phrases;
optionally, the present invention may use the existing word segmentation tool to segment the original data, and then obtain the corresponding phrase set.
Alternatively, the present invention is not particularly limited with respect to the number and type of the source material. For example, the invention can obtain multiple original materials of multiple users for a specific algorithm product, and one user corresponds to multiple original materials.
S211, filtering useless phrases in the phrase set;
optionally, phrases which have no influence on the test requirement, such as tone words, are used. The present invention may be filtered to improve the accuracy of the present invention. Specifically, the invention can filter out useless phrases based on the pre-established lexicon, and the invention is not limited to this.
S212, screening at least a plurality of key phrases from the phrase set according to a pre-established key phrase library;
optionally, the filtering of useless phrases may be understood as coarse screening, and after the primary screening is performed, some of the remaining phrases have a small correlation with the test requirement, and some of the remaining phrases have a large correlation with the test requirement. Therefore, the invention can pre-establish a corresponding key phrase library based on different test items, and the key phrase library stores phrases with higher relevance degree with the test requirements of the corresponding test items. Then, the present invention may obtain at least a plurality of key phrases from the phrase set by screening in a text comparison or regular matching manner, which is not limited by the present invention.
S213, aiming at any key phrase, establishing a corresponding category, and establishing the attribute and the dimension of the category;
optionally, the generic category and the attribute and dimension of the generic category are concepts known in the art, and the present invention does not make much description thereof, and refer to the related description in the art specifically. It should be noted that: building the corresponding taxonomy is an operational process of assigning concepts and then recombining them in a new way. That is, the concept of the genus is found from the original data, and the genus is named. Thereafter, attributes and dimensions of the categories are determined, and then the studied phenomena are named and categorized, which the present invention does not limit.
S214, establishing a knowledge graph according to each category and corresponding attributes and dimensions, wherein each category is used as each entity node of the knowledge graph, and the attributes and the dimensions corresponding to each category are used as attribute information of the corresponding entity node;
optionally, the relation between different categories (represented by entity nodes in the knowledge graph) and information such as attributes and dimensions corresponding to the different categories (represented by attribute information in the knowledge graph) can be reflected by the knowledge graph, so that the subsequent further analysis based on the knowledge graph is facilitated to obtain corresponding test requirements, which is not limited by the invention.
S215, refining the knowledge graph to obtain the test requirement.
Optionally, the process of refining the test requirement according to the knowledge graph is not specifically limited. For example, as shown in fig. 3, in combination with the embodiment shown in fig. 2, in some optional embodiments, the S215 includes: s220, S221 and S222;
s220, aiming at any entity node of the knowledge graph, calculating the number of other entity nodes connected with the entity node;
optionally, as described above, the knowledge graph may represent a connection relationship between different entity nodes. Therefore, the present invention can calculate the number of other entity nodes connected to any entity node, so as to determine more main entity nodes (entity nodes with more connected other entity nodes) according to the number of other entity nodes connected to different entity nodes.
S221, determining a plurality of entity nodes with strong connection relation from the knowledge graph according to the number corresponding to each entity node;
as mentioned above, the entity node having a strong connection relationship according to the present invention may be understood as the entity node having more other entity nodes, which is not limited in the present invention.
Specifically, the present invention does not specifically limit the process of determining the entity node having a strong connection relationship. For example, as shown in fig. 4 in combination with the embodiment shown in fig. 3, in some alternative embodiments, the S221 includes: s230 and S231;
s230, sequencing the entity nodes in sequence according to the number corresponding to the entity nodes;
alternatively, as previously mentioned, the number of other physical nodes to which different physical nodes are connected may be different. Therefore, the invention can sequence the entity nodes in turn according to the number, and then select the entity node with the higher sequence (the larger number) as the entity node with strong connection relation.
S231, determining the first N entity nodes with larger number as the entity nodes with strong connection relation, wherein N is an integer greater than 1.
Optionally, N is not specifically limited in the present invention, and may be specifically set according to actual needs.
Optionally, besides the entity nodes with strong connection relationship are obtained by screening in the sorting manner, the invention can also adopt other manners to perform screening. For example, as shown in fig. 5, in combination with the embodiment shown in fig. 3, in some alternative embodiments, the S221 includes: s240;
s240, according to the number corresponding to each entity node, determining the entity nodes of which the number is greater than a preset number threshold value as the entity nodes with strong connection relation.
Optionally, the preset number threshold is not specifically limited, and may be specifically set according to actual needs.
Optionally, the entity nodes whose number of the other entity nodes connected is greater than the preset number threshold may all be determined as the entity nodes having a strong connection relationship, and the present invention is not limited by this.
S222, determining the test requirements according to the entity nodes with the strong connection relation.
As described above, the present invention further determines the entity nodes with strong connection relationship, and reduces the range of the entity nodes for determining the test requirement, thereby improving the accuracy of the finally obtained test requirement, which is limited by the present invention.
To further improve the accuracy of the invention, the invention may be further narrowed. For example, as shown in fig. 6 in combination with the embodiment shown in fig. 3, in some alternative embodiments, the S222 includes: s250 and S251;
s250, determining at least one core entity node from the entity nodes with the strong connection relation according to the connection relation among the entity nodes with the strong connection relation;
optionally, if the determination obtains 3 entity nodes with strong connection relationships, such as the entity node 1, the entity node 2, and the entity node 3, in step S250, the entity node of the core may be determined according to the connection relationships among the 3 entity nodes, such as the entity node 1, the entity node 2, and the entity node 3. For example, if the entity node 1 is connected to the entity node 2, the entity node 1 is connected to the entity node 3, and the entity node 2 is not connected to the entity node 3, the entity node 1 with a relatively complex connection relationship may be determined as the core entity node. Of course, the present invention may also determine an entity node that obtains multiple cores, which is not limited in this respect.
And S251, determining the test requirement according to the entity node of the core.
Optionally, as described above, the entity node corresponds to a category, and the entity node attribute information corresponds to an attribute dimension of the category. Therefore, by analyzing the entity nodes of the core, it can be determined that the corresponding test requirements are obtained. For example, as shown in fig. 7 in combination with the embodiment shown in fig. 6, in some alternative embodiments, the S251 includes: s260;
s260, determining the test requirement according to the category corresponding to the entity node of the core and the corresponding attribute and dimension.
Optionally, taking the visualization model as an example, attributes of different categories may be understood as different visualization operations, and different dimensions may be understood as further subdivision of the attributes. For example, the visualization operation may be further subdivided into a visualization slide operation, a visualization click operation, and the like. The corresponding test requirements, such as the test requirements for testing the visualization operation, can be reflected by the attributes and the dimensions.
And S300, generating a corresponding test case according to the test requirement.
Optionally, after determining the core test requirements, the present invention may generate a corresponding requirement document, and then establish a corresponding test case according to the requirement document, which is not limited in this respect.
As shown in fig. 8, the present invention provides a test case generation apparatus, including: a material obtaining unit 100, a requirement determining unit 200 and a use case generating unit 300;
the data obtaining unit 100 is configured to obtain original data of user experience;
the requirement determining unit 200 is configured to abstract and refine the original data based on a root theory, so as to obtain a corresponding test requirement;
the case generating unit 300 is configured to generate a corresponding test case according to the test requirement.
In some optional embodiments, in combination with the embodiment shown in fig. 8, the requirement determining unit 200 includes: the system comprises a word segmentation subunit, a filtering subunit, a screening subunit, a generic establishing subunit, a map establishing subunit and a first requirement determining subunit;
the word segmentation subunit is used for performing word segmentation on the original data to obtain a corresponding word group set, wherein the word group set comprises a plurality of word groups;
the filtering subunit is used for filtering useless phrases in the phrase set;
the screening subunit is used for screening at least a plurality of key phrases from the phrase set according to a pre-established key phrase library;
a category establishing subunit, configured to establish, for any of the keyword groups, a corresponding category, and attributes and dimensions of the category;
the map establishing subunit is used for establishing a knowledge map according to each category and the corresponding attribute and dimension, wherein each category is used as each entity node of the knowledge map, and the attribute and the dimension corresponding to each category are used as the attribute information of the corresponding entity node;
and the first requirement determining subunit is used for refining the test requirement according to the knowledge graph.
With reference to the previous embodiment, in some optional embodiments, the first requirement determining subunit includes: the system comprises a quantity calculation subunit, a first node determination subunit and a second requirement determination subunit;
the quantity counting operator unit is used for counting the quantity of other entity nodes connected with the entity node aiming at any entity node of the knowledge graph;
a first node determining subunit, configured to determine, according to the number corresponding to each entity node, a plurality of entity nodes having a strong connection relationship from the knowledge graph;
and the second requirement determining subunit is used for determining the test requirement according to each entity node with the strong connection relation.
With reference to the previous embodiment, in some optional embodiments, the first node determining subunit includes: the sequencing subunit and the second node determining subunit;
a sorting subunit, configured to sort, in sequence, each of the entity nodes according to the number corresponding to each of the entity nodes;
a second node determining subunit, configured to determine that the first N entity nodes with the larger number are the entity nodes with the strong connection relationship, where N is an integer greater than 1.
Optionally, in some optional embodiments, the determining, by the first node, a subunit includes: the third node determines the sub-unit;
and the third node determining subunit is used for determining the entity nodes of which the number is greater than a preset number threshold value as the entity nodes with the strong connection relationship according to the number corresponding to each entity node.
Optionally, in some optional embodiments, the second requirement determining subunit includes: a core node determining subunit and a third requirement determining subunit;
a core node determining subunit, configured to determine, according to a connection relationship between the entity nodes with the strong connection relationship, an entity node of at least one core from the entity nodes with the strong connection relationship;
a third requirement determining subunit, configured to determine the test requirement according to the entity node of the core.
With reference to the previous embodiment, in some optional embodiments, the third requirement determining subunit includes: a fourth demand determination subunit;
and the fourth requirement determining subunit is used for determining the test requirement according to the category corresponding to the entity node of the core and the corresponding attribute and dimensionality.
The present invention provides a computer-readable storage medium on which a program is stored, the program implementing any of the above-described test case generation methods when executed by a processor.
As shown in fig. 9, the present invention provides an electronic device 70, wherein the electronic device 70 comprises at least one processor 701, at least one memory 702 connected to the processor 701, and a bus 703; the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to call the program instruction in the memory 702 to execute any one of the test case generation methods described above.
In the present invention, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A test case generation method is characterized by comprising the following steps:
obtaining original data of user experience;
abstracting and refining the original data based on a root theory so as to obtain a corresponding test requirement;
and generating a corresponding test case according to the test requirement.
2. The method of claim 1, wherein abstracting and refining the raw material based on the root theory to obtain corresponding test requirements comprises:
performing word segmentation on the original data to obtain a corresponding phrase set, wherein the phrase set comprises a plurality of phrases;
filtering useless phrases in the phrase set;
screening at least a plurality of key phrases from the phrase set according to a pre-established key phrase library;
aiming at any key phrase, establishing a corresponding category, and establishing the attribute and the dimension of the category;
establishing a knowledge graph according to each category and corresponding attributes and dimensions, wherein each category is used as each entity node of the knowledge graph, and the attributes and the dimensions corresponding to each category are used as attribute information of the corresponding entity nodes;
and refining to obtain the test requirement according to the knowledge graph.
3. The method of claim 2, wherein refining the test requirements based on the knowledge-graph comprises:
calculating the number of other entity nodes connected with the entity node aiming at any entity node of the knowledge graph;
determining a plurality of entity nodes with strong connection relation from the knowledge graph according to the number corresponding to each entity node;
and determining the test requirement according to the entity nodes with the strong connection relation.
4. The method of claim 3, wherein determining a plurality of entity nodes with strong connection relationships from the knowledge-graph according to the number corresponding to each entity node comprises:
sequencing each entity node in sequence according to the number corresponding to each entity node;
and determining the first N entity nodes with larger number as the entity nodes with strong connection relation, wherein N is an integer greater than 1.
5. The method of claim 3, wherein determining a plurality of entity nodes with strong connection relationships from the knowledge-graph according to the number corresponding to each entity node comprises:
and determining the entity nodes with the number larger than a preset number threshold value as the entity nodes with the strong connection relation according to the number corresponding to each entity node.
6. The method according to claim 3, wherein the determining the test requirement according to each entity node with strong connection relation comprises:
determining at least one core entity node from each entity node with strong connection relation according to the connection relation between the entity nodes with strong connection relation;
and determining the test requirement according to the entity node of the core.
7. The method of claim 6, wherein determining the test requirements according to the entity node of the core comprises:
and determining the test requirement according to the category corresponding to the entity node of the core and the corresponding attribute and dimension.
8. A test case generation apparatus, comprising: the system comprises a data acquisition unit, a demand determination unit and a use case generation unit;
the data obtaining unit is used for obtaining original data of user experience;
the requirement determining unit is used for abstracting and refining the original data based on a rooting theory so as to obtain corresponding test requirements;
and the case generating unit is used for generating a corresponding test case according to the test requirement.
9. A computer-readable storage medium on which a program is stored, the program implementing the test case generation method according to any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory are communicated with each other through the bus; the processor is configured to call program instructions in the memory to perform the test case generation method of any of claims 1 to 7.
CN202210916647.3A 2022-08-01 2022-08-01 Test case generation method and related device Pending CN115237791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210916647.3A CN115237791A (en) 2022-08-01 2022-08-01 Test case generation method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210916647.3A CN115237791A (en) 2022-08-01 2022-08-01 Test case generation method and related device

Publications (1)

Publication Number Publication Date
CN115237791A true CN115237791A (en) 2022-10-25

Family

ID=83676476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210916647.3A Pending CN115237791A (en) 2022-08-01 2022-08-01 Test case generation method and related device

Country Status (1)

Country Link
CN (1) CN115237791A (en)

Similar Documents

Publication Publication Date Title
CN110968695A (en) Intelligent labeling method, device and platform based on active learning of weak supervision technology
CN109255012B (en) Method and device for machine reading understanding and candidate data set size reduction
CN112163424A (en) Data labeling method, device, equipment and medium
CN111563071A (en) Data cleaning method and device, terminal equipment and computer readable storage medium
CN110737805B (en) Method and device for processing graph model data and terminal equipment
CN113961187B (en) RPA component intelligent recommendation method and system
CN108427756A (en) Personalized query word completion recommendation method and device based on same-class user model
CN117217315A (en) Method and device for generating high-quality question-answer data by using large language model
CN112307336A (en) Hotspot information mining and previewing method and device, computer equipment and storage medium
CN116049379A (en) Knowledge recommendation method, knowledge recommendation device, electronic equipment and storage medium
JP6868576B2 (en) Event presentation system and event presentation device
CN112163415A (en) User intention identification method and device for feedback content and electronic equipment
CN110287270B (en) Entity relationship mining method and equipment
CN111125379A (en) Knowledge base expansion method and device, electronic equipment and storage medium
CN115237791A (en) Test case generation method and related device
CN115292167A (en) Life cycle prediction model construction method, device, equipment and readable storage medium
CN113268419B (en) Method, device, equipment and storage medium for generating test case optimization information
CN112905740B (en) Topic preference mining method for competitive product hierarchy
CN114820074A (en) Target user group prediction model construction method based on machine learning
CN110765100B (en) Label generation method and device, computer readable storage medium and server
CN110472140B (en) Object word recommendation method and device and electronic equipment
Lubis et al. Improving course review helpfulness Prediction through sentiment analysis
CN109787784B (en) Group recommendation method and device, storage medium and computer equipment
CN113792187A (en) Crowd-sourcing software development contribution quality assessment method, device, equipment and medium
CN113870998A (en) Interrogation method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination