CN117032632A - Acceptance criterion generation method, device, computer equipment and storage medium - Google Patents

Acceptance criterion generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117032632A
CN117032632A CN202310789544.XA CN202310789544A CN117032632A CN 117032632 A CN117032632 A CN 117032632A CN 202310789544 A CN202310789544 A CN 202310789544A CN 117032632 A CN117032632 A CN 117032632A
Authority
CN
China
Prior art keywords
acceptance criterion
acceptance
user story
user
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
CN202310789544.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.)
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 CN202310789544.XA priority Critical patent/CN117032632A/en
Publication of CN117032632A publication Critical patent/CN117032632A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • G06F8/436Semantic checking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application relates to an automatic generation method, apparatus, computer device, storage medium and computer program product for acceptance criteria. The method comprises the following steps: obtaining a user story, extracting keywords from the obtained user story to obtain a keyword set required by a software development function, matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story, and updating the acceptance criterion template by using the keywords to generate an acceptance criterion corresponding to the user story. According to the method, the user story is analyzed, the acceptance criterion is automatically generated by matching the acceptance criterion template set, the generation efficiency of the acceptance criterion is improved, the verification criterion can be provided for the user story, the problem of inefficiency of a development terminal caused by lack of an AC point can be avoided, and the software development efficiency is improved.

Description

Acceptance criterion generation method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for generating acceptance criteria.
Background
After the PO (Product Owner) obtains the user's requirements, a detailed user story and AC (Acceptance Criteria ) points are written in the Product manager terminal, and the user story and AC points are input to the development terminal and the test terminal, respectively. The development terminal converts the user stories and the AC points into codes so as to realize the demands of the users. And the test terminal designs test cases through user stories and AC points, and tests the software quality after the delivery codes are developed.
At present, due to the fact that the time is tight and the task is heavy, the user story output by the PO is caused, an AC point is lacking, the user story is poor in readability, the understanding cost is high, more effort is needed to be consumed by a development terminal and a test terminal to communicate with the PO so as to understand the user demand, and the problem that the user demand has to be reworked because of misunderstanding exists, so that the development efficiency of the development terminal is lower.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an automatic generation method, apparatus, computer device, computer-readable storage medium, and computer program product for automatically generating acceptance criteria, which can improve development efficiency.
In a first aspect, the present application provides a method for automatically generating acceptance criteria. The method comprises the following steps:
Acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
In one embodiment, determining the manner in which the set of predetermined acceptance criteria templates comprises:
determining a product type to which the user story applies;
and determining a corresponding preset acceptance criterion template set according to the product type.
In one embodiment, the matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story includes:
determining a function point according to the keyword set;
and matching the functional points with the functional points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
In one embodiment, the matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story includes:
And determining the similarity between the keyword set and the preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
In one embodiment, the updating the acceptance criterion template according to the keyword generates an acceptance criterion corresponding to the user story, including:
filling the keywords into the acceptance criterion templates to obtain a plurality of candidate acceptance criteria;
based on natural language processing, carrying out semantic analysis on a plurality of candidate acceptance criteria to obtain scores of the candidate acceptance criteria;
and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In one embodiment, the extracting the keywords from the user story to obtain a keyword set includes:
inputting the user story into a pre-trained keyword extraction model to extract keywords so as to obtain the keyword set; the keyword extraction model is obtained by training in advance based on a word frequency reverse file frequency algorithm.
In a second aspect, the application also provides an automatic generation device of the acceptance criterion. The device comprises:
The story acquisition module is used for acquiring user stories;
the keyword set module is used for extracting keywords from the user stories to obtain a keyword set required by a software development function;
the criterion template module is used for matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and the acceptance criterion module is used for updating the acceptance criterion template according to the keywords and generating the acceptance criterion corresponding to the user story.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
The automatic generation method, the automatic generation device, the computer equipment, the storage medium and the computer program product of the acceptance criterion are characterized in that the keyword extraction is carried out on the obtained user story to obtain a keyword set required by a software development function, the keyword set is matched with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story, and then the acceptance criterion template is updated by adopting the keyword to generate the acceptance criterion corresponding to the user story. According to the method, the acceptance criterion is automatically generated by analyzing the user story and matching the acceptance criterion acceptance template set, the acceptance criterion corresponding to the user story does not need to be written by PO, the generation efficiency of the acceptance criterion is improved, the acceptance criterion can be provided for the user story, the problem of low efficiency of a development terminal due to lack of an AC point can be avoided, and the software development efficiency is improved.
Drawings
FIG. 1 is an application environment diagram of an automatic generation method of acceptance criteria in one embodiment;
FIG. 2 is a flow diagram of a method for automatically generating acceptance criteria in one embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining acceptance criteria templates in one embodiment;
FIG. 4 is a flowchart illustrating an acceptance criteria generation procedure in another embodiment;
FIG. 5 is a flow diagram of a method for automatically generating acceptance criteria in one embodiment;
FIG. 6 is a block diagram of an apparatus for automatically generating acceptance criteria in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The automatic generation method of the acceptance criterion provided by the embodiment of the application can be applied to an application environment shown in figure 1. After obtaining user demands, the product manager terminal compiles detailed user stories and AC points according to the user demands, and the user stories and acceptance criteria are respectively input to the development terminal and the test terminal; the development terminal converts the user stories and the AC points into codes so as to realize the demands of the users. And the test terminal designs test cases through user stories and AC points, and tests the software quality after the delivery codes are developed. In the process, due to time shortage, the user story output by the product manager terminal often lacks an AC point, and the efficiency of developing the terminal and testing the terminal is reduced. Based on the above, the application provides an automatic generation method of acceptance criteria. Obtaining the user event input by a product manager; extracting keywords from the user stories to obtain keyword sets required by software development functions; matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story; and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story. The method can be implemented on, but not limited to, various personal computers, notebook computers, smart phones, tablet computers.
In one embodiment, as shown in fig. 2, there is provided an automatic generation method of acceptance criteria, which is applied to the application environment shown in fig. 1, including the steps of:
step 202, a user story is obtained.
Wherein, the user story is used as an expression form for describing the requirement in the software development process; in order to standardize the expression of the user's stories, the communication is convenient; comprises three elements of roles, activities and values. The usual presentation format for user stories is: as a user role, i want to complete an activity in order to realize value.
Specifically, after the product manager obtains the user's requirements, it is necessary to write detailed user stories and AC points according to the user's requirements. The AC points are acceptance criterion points, namely rules for completing user stories and completion standards, and the formats are as follows: given … white … th.
Step 204, extracting keywords from the user story to obtain a keyword set required by the software development function.
After the user story and the AC points are compiled, the user story and the acceptance criteria are respectively input to the development terminal and the test terminal, and the development terminal compiles corresponding codes based on the user story and the AC points, so that the requirements of users are met.
Specifically, after a product manager writes a user according to the user requirement, keywords can be extracted from the user story through a model to obtain a keyword set. It will be appreciated that the extracted keyword set characterizes the functional requirements of the software development, and thus, the keyword set of the functional requirements of the software development is obtained.
And 206, matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
The preset acceptance criterion template set is a preset acceptance criterion template set. The preset acceptance criteria template set can be obtained by training samples containing the collected user stories and AC points and then sorting the samples. The set of preset acceptance criterion templates may be categorized according to the corresponding product type or, more specifically, according to the functional points of each acceptance criterion template in the set of acceptance criterion templates.
Specifically, the obtained keyword set is matched with a preset acceptance criterion template set, so that a preset acceptance criterion template which is suitable for the extracted keywords is determined. Specifically, a preset acceptance criterion template corresponding to the product type can be determined by determining the product type represented by the keyword set; or the obtained keyword set and the preset acceptance criterion template set can be matched aiming at the function points. And matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
And step 208, updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
After determining the acceptance criterion templates corresponding to the user stories, updating the acceptance criterion templates corresponding to the user stories according to the keywords extracted from the user stories to obtain the acceptance criteria corresponding to the user stories. The method comprises the steps of extracting keywords from a user story, determining an acceptance criterion template corresponding to the user story, and generating an acceptance criterion corresponding to the user story according to the extracted keywords and the acceptance criterion template corresponding to the user story.
In this embodiment, keyword extraction is performed on the obtained user story to obtain a keyword set required by a software development function, the keyword set is matched with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story, and then the acceptance criterion template is updated by using the keyword to generate an acceptance criterion corresponding to the user story. According to the method, the acceptance criterion is automatically generated by analyzing the user story and matching the acceptance criterion acceptance template set, the acceptance criterion corresponding to the user story does not need to be written by PO, the generation efficiency of the acceptance criterion is improved, the acceptance criterion can be provided for the user story, the problem of low efficiency of a development terminal due to lack of an AC point can be avoided, and the software development efficiency is improved.
In one embodiment, determining the manner in which the set of acceptance criteria templates is preset comprises: determining the type of product to which the user story applies; and determining a corresponding preset acceptance criterion template set according to the product type.
Specifically, for a large number of existing samples, the samples comprise user stories and AC points, and the samples are classified according to types of the samples, so that the samples of all product types are obtained. And training samples of each product type to obtain a preset acceptance criterion template set corresponding to each product type. And obtaining the mapping relation between the product type and the preset acceptance criterion template.
In practical applications, there may be some similar functionality for different applications. For example, the social application has a function of setting personal images, and the enterprise management platform has a function of setting personal photos. However, similar functions will also vary from application to application, considering the application scenarios of the applications. For example, only a face can be uploaded at the enterprise WeChat uploading face, other pictures can not be uploaded, and cartoon pictures, animal pictures and the like can be uploaded at the picture uploading position of the social platform, so that corresponding preset acceptance criterion template sets are different in the two scenes, and based on the fact, the acceptance criterion template sets can be preset for different application program products. For example, the preset acceptance criteria template set includes a preset acceptance criteria template set corresponding to a social media product, a preset acceptance criteria template set corresponding to a financial product, and so on, that is, each product type has a corresponding AC template set.
The preset acceptance criteria template set mainly expresses the following contents: type, scene, action, etc. The type is a product type corresponding to the acceptance criterion template, such as the social media type, the financial type, the video type and the like. The scene is a scene of a user use function reflected by the acceptance criterion template, for example, the user needs to use a car to locate a car. A scenario where payment is made after the vehicle is completed, etc., the action is an activity that the user can perform, such as using my location. The types, scenes and actions help to divide the preset acceptance criteria template sets so that corresponding preset acceptance criteria template sets can be accurately matched according to each product type. In this embodiment, the product type corresponding to the user story is determined first, and then, according to the product type corresponding to the user story and the mapping relationship between the product type and the preset acceptance criterion template, the preset acceptance criterion template set corresponding to the user story is determined.
In this embodiment, by determining the product type corresponding to the user story, based on the mapping relationship between the product type and the preset acceptance criterion template, the corresponding preset acceptance criterion template set may be determined, so that the user story can be matched to the preset acceptance criterion template set corresponding to the product type, and the acceptance criterion template set is divided by the product type, so that the matched preset acceptance criterion template set is finer, and the matching effect of the preset acceptance criterion template set is improved.
In one embodiment, as shown in fig. 3, matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story, including the following steps:
step 302, determining the function point according to the keyword set.
The function points refer to functions to be realized, which are characterized by keywords, and the corresponding function points are determined according to the keywords in the keyword set. Such as avatar modification feature points, fee payment feature points, location feature points, etc.
For example, for a functional requirement "as a user, i should be able to use my location so that nearby vehicles can be known. The keywords extracted from the user story are vehicles which can be positions and accessories, and the corresponding function points are positioned function points.
And step 304, matching the function points with the function points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
The function points of the preset acceptance criterion template set are function points set according to each preset acceptance criterion.
Specifically, after the function points are determined according to the keyword set, the determined function points are matched with the function points of the preset acceptance criterion template set, and the acceptance criterion template corresponding to the user story is determined according to the matching degree of the determined function points and the function points of the preset acceptance criterion template set.
Taking the user story as the user, i should be able to use my location so that nearby vehicles can be known, as an example, a description of matching of the function points with the function points of the preset acceptance criteria template set is made. The corresponding function point is the positioned function point. And matching the determined functional points with the functional points of the preset acceptance criterion template set, wherein the matching degree is higher when the functional points of the preset acceptance criterion template set are positioned functional points or positioned functional points. The acceptance criteria to which the user stories are matched may be: the application software should be able to detect my location and point out on the map; once the location is determined, available taxis nearby should be displayed on a map, etc.
In this embodiment, by determining the function points corresponding to the keyword set, the function points are matched with the function points of the preset acceptance criterion template set, and according to the matching degree of the determined function points and the function points of the preset acceptance criterion template set, the acceptance criterion template corresponding to the user story is obtained. And determining an acceptance criterion template corresponding to the user story through the function points, wherein the matched acceptance criterion template is more similar to the user story, so that the matched acceptance criterion template is more accurate.
In one embodiment, matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story, including: and determining the similarity between the keyword set and a preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
The preset acceptance criterion template set is a preset acceptance criterion template set. The similarity between the keyword set and the preset acceptance criterion template set can be calculated through cosine similarity, and other modes can be selected to calculate the similarity according to actual conditions. And according to the calculated cosine similarity, the similarity degree of the keyword set and a preset acceptance criterion template in the preset acceptance criterion template set can be known.
It can be appreciated that the manner of determining the acceptance criterion template corresponding to the user story is simpler and more convenient by the similarity between the keyword set and the preset acceptance criterion template set, and the preset acceptance criterion template set does not need to be classified or labeled with functional points, so that the acceptance criterion template corresponding to the user story can be determined quickly and efficiently in this manner. And because the text similarity of the keyword set and the preset acceptance criterion template set directly reflects the similarity degree of the keyword set and the preset acceptance criterion template in the preset acceptance criterion template set, the obtained acceptance criterion template is the most accurate.
Specifically, the keyword set of the user story and the preset acceptance criterion template set are subjected to similarity calculation to obtain the similarity of the keyword set and each preset acceptance criterion template, the preset acceptance criterion template with the highest similarity is selected as the acceptance criterion template corresponding to the user story, it is understood that the acceptance criterion template with the highest similarity is the acceptance criterion template which is most matched with the user story corresponding to the keyword set,
in this embodiment, by calculating the similarity between the keyword set and each preset acceptance criterion template in the preset acceptance criterion templates, the preset acceptance criterion template with the highest similarity is used as the preset acceptance criterion template corresponding to the user story, and the method can quickly and efficiently determine the acceptance criterion template corresponding to the user story and provide conditions for generating the acceptance criterion corresponding to the user story.
In one embodiment, as shown in fig. 4, updating the acceptance criteria template according to the keywords generates the acceptance criteria corresponding to the user story, comprising the steps of:
step 402, filling keywords into the acceptance criteria templates to obtain a plurality of candidate acceptance criteria.
When the keyword set is filled into the acceptance criterion template, since the keywords in the keyword set can be filled into a plurality of positions of the acceptance criterion template, a plurality of filling results can be obtained, and it can be understood that each filling result corresponds to one candidate acceptance criterion, and a plurality of candidate acceptance criteria can be obtained. For the resulting plurality of candidate acceptance criteria, the expressed requirements may be expressions that are less natural language compliant.
Step 404, performing semantic analysis on the plurality of candidate acceptance criteria based on natural language processing to obtain scores of the candidate acceptance criteria.
After a plurality of candidate acceptance criteria are obtained, the acceptance criteria which are most complete in expression and can reasonably meet requirements of users in stories can be obtained through screening. Specifically, semantic analysis may be performed on the plurality of candidate acceptance criteria based on natural language, and based on meaning expression of the acceptance criteria, a degree to which the acceptance criteria may fulfill the requirements represented in the user story is determined, and the higher the degree to which the acceptance criteria fulfill the requirements represented in the user story, the higher the corresponding scores thereof, thereby respectively obtaining scores of the plurality of candidate acceptance criteria.
And 406, taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
And after scores of the candidate acceptance criteria are obtained, sorting the candidate acceptance criteria according to the scores, and determining the acceptance criteria with highest scores. Or searching the acceptance criterion with the highest score from the candidate acceptance criteria, and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In this embodiment, by filling keywords into the acceptance criterion templates to obtain a plurality of candidate acceptance criteria, performing semantic analysis on the plurality of candidate acceptance criteria based on natural language processing to obtain scores of the candidate acceptance criteria, and using the candidate acceptance criteria with the highest score as the acceptance criteria corresponding to the user story, that is, generating the acceptance criteria corresponding to the user story, the problem of inefficiency of the development terminal due to lack of AC points can be solved.
In one embodiment, the method for automatically generating acceptance criteria further comprises the steps of:
step 501, splitting a user story into basic user stories. The basic user stories are obtained by decomposing a poetry-like user story into smaller and more detailed user stories, and the user stories are clear, feasible and testable.
For a poetic user story, the user story needs to be broken down. Where a poem refers to a very large and abstract user story that originates from a user portrait and a user tour map. It tells the product what should be done for the user, i.e. to provide the user with the goal. It can delineate product functions without submitting details. This is particularly helpful in describing new products and new functions, which can enable you to capture the general scope and struggle for time in order to solve how best to meet the user's needs.
When the retrieved user story is a poetry-like user story, it needs to be broken down into smaller, more detailed user stories until they are clear, feasible, and testable, i.e., into basic user stories. For example, for the requirement that I want to share My photos with friends, this can be broken down-I want to share My photos with friends at Facebook, twitter, insta, whatsApp, etc., all of which form different user stories.
In step 503, the acceptance criteria corresponding to the basic user story is generated by an automatic generation method of the acceptance criteria.
For a poetry-like user story, the resulting keyword set may describe one function built up of multiple underlying functions, and thus, one user story may require multiple verification criteria. That is, when filling keywords, since the total requirement represented by the keywords can be split into multiple basic requirements, and each minimum basic requirement corresponds to one acceptance criterion, a keyword set for one user story can obtain multiple filled acceptance criterion templates, that is, multiple candidate acceptance criteria.
Such as for the following user stories: as a user, i should be able to use my location so that i can see available taxis nearby. The acceptance criteria may be: the application software should be able to detect my location and point out on the map; the application software should be able to receive text input anywhere and point out on the map. Once the location is determined, available taxis nearby should be displayed on the map.
Step 505, determining acceptance criteria corresponding to the user stories like a poem according to the acceptance criteria corresponding to the basic user stories.
And obtaining the acceptance criteria corresponding to the user stories like the poems by splicing the acceptance criteria corresponding to the basic user stories.
In this embodiment, the acceptance criteria corresponding to each basic user story is generated by splitting the user story like a poem into the basic user stories and by the automatic acceptance criteria generating method provided by the application, and the acceptance criteria corresponding to the user stories like a poem are obtained by splicing the acceptance criteria corresponding to the basic user stories.
In one embodiment, keyword extraction is performed on a user story to obtain a keyword set, including: inputting a user story into a pre-trained keyword extraction model to extract keywords so as to obtain a keyword set; the keyword extraction model is trained in advance based on a word frequency reverse file frequency algorithm.
The keyword extraction model is a keyword extraction method based on training of a word frequency reverse file frequency algorithm (TF-IDF). The word frequency reverse file frequency algorithm is a statistical algorithm, and is used for evaluating the importance degree of a word to one file in a file set or a corpus, wherein the importance of the word is increased in proportion to the increase of the occurrence frequency of the word in the file, but is reduced in inverse proportion to the occurrence frequency of the word in the corpus.
In particular, word frequency represents the frequency of occurrence of an entry in text, and this number requires normalization to prevent it from biasing toward longer text. I.e. the word frequency is equal to the number of occurrences of a certain term over the number of all terms. The reverse text frequency for a particular word may be obtained by dividing the total number of documents by the number of documents containing the word and taking the logarithm of the quotient obtained. To avoid the division into zeros, it is necessary to add one to the number of files containing the word. And obtaining the importance degree of a word by multiplying the word frequency by the reverse text frequency, namely determining whether the word is a keyword.
In this embodiment, a keyword extraction model is obtained based on a word frequency reverse file frequency algorithm, keywords in a user story are extracted, the extracted keywords are used as a keyword set, and conditions are provided for matching verification criterion templates corresponding to the user story according to the keywords.
In one embodiment, as shown in fig. 5, the present application provides an automatic generation method of acceptance criteria, which specifically includes the following steps:
step 502, a user story is obtained.
User stories are used as an expression of descriptive demands during software development, such as users, i should be able to reach the destination as soon as possible, and i should know the cost details and pay according to the cost details when they arrive.
Step 504, determining a product type applied by the user story, and determining a corresponding preset acceptance criterion template set according to the product type.
Step 506, inputting the user story into a pre-trained keyword extraction model to extract keywords to obtain a keyword set; the keyword extraction model is trained in advance based on a word frequency reverse file frequency algorithm.
Step 508, determining the similarity between the keyword set and the preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
Step 510, filling the keywords into the acceptance criteria templates to obtain a plurality of candidate acceptance criteria.
A poetic user story requires that it be broken down into smaller, more detailed user stories until they are all clear, viable, and testable. Thus, for a keyword extracted from a poetry-like user story, it must be accepted by a plurality of acceptance criteria, so that the keyword is typically populated into an acceptance criteria template, resulting in a plurality of candidate acceptance criteria.
Step 512, performing semantic analysis on the plurality of candidate acceptance criteria based on natural language processing to obtain scores of the candidate acceptance criteria.
And step 514, taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In this embodiment, a keyword set is obtained by extracting keywords from the obtained user story, a corresponding preset acceptance criterion template set and a verification criterion template corresponding to the user story are determined, then the acceptance criterion templates are filled with keywords to obtain a plurality of candidate acceptance criteria, and the acceptance criteria corresponding to the user story are determined based on natural language processing, so that the acceptance criteria corresponding to the user story are generated. According to the method, the user story is analyzed, the acceptance criterion is automatically generated by matching the acceptance criterion template set, the acceptance criterion corresponding to the user story does not need to be written by PO, the generation efficiency of the acceptance criterion is improved, the acceptance criterion is automatically generated by matching the acceptance criterion template set by analyzing the user story, and a large amount of time for communication due to the lack of the verification criterion of a development terminal is reduced, so that the communication cost is reduced, and the efficiency of software development is improved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an automatic generation device of the acceptance criterion for realizing the automatic generation method of the acceptance criterion. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiment of the automatic generation device of one or more acceptance criteria provided below may be referred to the limitation of the automatic generation method of the acceptance criteria hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 6, there is provided an automatic generation apparatus of acceptance criteria, including: story acquisition module 602, keyword set module 604, criteria template module 606, and acceptance criteria module 608, wherein:
a story acquisition module 602, configured to acquire a user story.
The keyword set module 604 is configured to extract keywords from the user story, so as to obtain a keyword set required by the software development function.
And the criterion template module 606 is used for matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story.
And the acceptance criterion module 608 is used for updating an acceptance criterion template according to the keywords and generating an acceptance criterion corresponding to the user story.
In one embodiment, the automatic generation device of acceptance criteria further comprises a criterion template set module for determining a product type to which the user story applies; and determining a corresponding preset acceptance criterion template set according to the product type.
In one embodiment, a criterion template module for determining a function point from a set of keywords; and matching the function points with the function points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
In one embodiment, the criterion template module is further configured to determine a similarity between the keyword set and a preset acceptance criterion template set, and take an acceptance criterion template with the highest similarity in the preset acceptance criterion template set as an acceptance criterion template corresponding to the user story.
In one embodiment, an acceptance criteria module is configured to populate an acceptance criteria template with keywords to obtain a plurality of candidate acceptance criteria;
based on natural language processing, carrying out semantic analysis on a plurality of candidate acceptance criteria to obtain scores of the candidate acceptance criteria;
and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In one embodiment, the keyword set module is configured to input a user story into a keyword extraction model trained in advance to perform keyword extraction to obtain a keyword set; the keyword extraction model is trained in advance based on a word frequency reverse file frequency algorithm.
The respective modules in the automatic generation device of the acceptance criteria described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing user story related data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of automatically generating acceptance criteria.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining the type of product to which the user story applies; and determining a corresponding preset acceptance criterion template set according to the product type.
In one embodiment, the processor when executing the computer program further performs the steps of:
Determining function points according to the keyword set; and matching the function points with the function points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
In one embodiment, the processor when executing the computer program further performs the steps of:
and determining the similarity between the keyword set and a preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
In one embodiment, the processor when executing the computer program further performs the steps of:
filling the keywords into an acceptance criterion template to obtain a plurality of candidate acceptance criteria; based on natural language processing, carrying out semantic analysis on a plurality of candidate acceptance criteria to obtain scores of the candidate acceptance criteria; and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In one embodiment, the processor when executing the computer program further performs the steps of:
inputting a user story into a pre-trained keyword extraction model to extract keywords so as to obtain a keyword set; the keyword extraction model is trained in advance based on a word frequency reverse file frequency algorithm.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the type of product to which the user story applies; and determining a corresponding preset acceptance criterion template set according to the product type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining function points according to the keyword set; and matching the function points with the function points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and determining the similarity between the keyword set and a preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
filling the keywords into an acceptance criterion template to obtain a plurality of candidate acceptance criteria; based on natural language processing, carrying out semantic analysis on a plurality of candidate acceptance criteria to obtain scores of the candidate acceptance criteria; and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
inputting a user story into a pre-trained keyword extraction model to extract keywords so as to obtain a keyword set; the keyword extraction model is trained in advance based on a word frequency reverse file frequency algorithm.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the type of product to which the user story applies; and determining a corresponding preset acceptance criterion template set according to the product type.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining function points according to the keyword set; and matching the function points with the function points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and determining the similarity between the keyword set and a preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
filling the keywords into an acceptance criterion template to obtain a plurality of candidate acceptance criteria; based on natural language processing, carrying out semantic analysis on a plurality of candidate acceptance criteria to obtain scores of the candidate acceptance criteria; and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
In one embodiment, the computer program when executed by the processor further performs the steps of:
inputting a user story into a pre-trained keyword extraction model to extract keywords so as to obtain a keyword set; the keyword extraction model is trained in advance based on a word frequency reverse file frequency algorithm.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method of automatically generating acceptance criteria, the method comprising:
acquiring a user story;
extracting keywords from the user stories to obtain keyword sets required by software development functions;
matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and updating the acceptance criterion template according to the keywords, and generating the acceptance criterion corresponding to the user story.
2. The method of claim 1, wherein determining the manner in which the set of pre-set acceptance criteria templates comprises:
determining a product type to which the user story applies;
and determining a corresponding preset acceptance criterion template set according to the product type.
3. The method according to claim 1 or 2, wherein the matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story includes:
determining a function point according to the keyword set;
and matching the functional points with the functional points of a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story.
4. The method according to claim 1 or 2, wherein the matching the keyword set with a preset acceptance criterion template set to obtain an acceptance criterion template corresponding to the user story includes:
and determining the similarity between the keyword set and the preset acceptance criterion template set, and taking the acceptance criterion template with the highest similarity in the preset acceptance criterion template set as the acceptance criterion template corresponding to the user story.
5. The method of claim 1, wherein the updating the acceptance criteria template based on the keywords generates the acceptance criteria corresponding to the user story, comprising:
Filling the keywords into the acceptance criterion templates to obtain a plurality of candidate acceptance criteria;
based on natural language processing, carrying out semantic analysis on a plurality of candidate acceptance criteria to obtain scores of the candidate acceptance criteria;
and taking the candidate acceptance criterion with the highest score as the acceptance criterion corresponding to the user story.
6. The method of claim 1, wherein the extracting keywords from the user story to obtain a keyword set includes:
inputting the user story into a pre-trained keyword extraction model to extract keywords so as to obtain the keyword set; the keyword extraction model is obtained by training in advance based on a word frequency reverse file frequency algorithm.
7. An apparatus for automatically generating acceptance criteria, said apparatus comprising:
the story acquisition module is used for acquiring user stories;
the keyword set module is used for extracting keywords from the user stories to obtain a keyword set required by a software development function;
the criterion template module is used for matching the keyword set with a preset acceptance criterion template set to obtain a verification criterion template corresponding to the user story;
and the acceptance criterion module is used for updating the acceptance criterion template according to the keywords and generating the acceptance criterion corresponding to the user story.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310789544.XA 2023-06-29 2023-06-29 Acceptance criterion generation method, device, computer equipment and storage medium Pending CN117032632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310789544.XA CN117032632A (en) 2023-06-29 2023-06-29 Acceptance criterion generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310789544.XA CN117032632A (en) 2023-06-29 2023-06-29 Acceptance criterion generation method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117032632A true CN117032632A (en) 2023-11-10

Family

ID=88623324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310789544.XA Pending CN117032632A (en) 2023-06-29 2023-06-29 Acceptance criterion generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117032632A (en)

Similar Documents

Publication Publication Date Title
CN109543925B (en) Risk prediction method and device based on machine learning, computer equipment and storage medium
US20200019881A1 (en) Feature processing method and feature processing system for machine learning
CN109299094A (en) Tables of data processing method, device, computer equipment and storage medium
CN113538070B (en) User life value cycle detection method and device and computer equipment
CN111340240A (en) Method and device for realizing automatic machine learning
CN111324716A (en) Index data acquisition method and device, computer equipment and storage medium
CN112328869A (en) User loan willingness prediction method and device and computer system
CN114579523A (en) Double-recording file quality inspection method and device, computer equipment and storage medium
CN117332766A (en) Flow chart generation method, device, computer equipment and storage medium
CN117251761A (en) Data object classification method and device, storage medium and electronic device
US20230069999A1 (en) Method and apparatus for updating recommendation model, computer device and storage medium
CN108229572B (en) Parameter optimization method and computing equipment
US20230214451A1 (en) System and method for finding data enrichments for datasets
CN117032632A (en) Acceptance criterion generation method, device, computer equipment and storage medium
CN112418260A (en) Model training method, information prompting method, device, equipment and medium
CN113704103B (en) Test case recommendation method and device, medium and electronic equipment
CN110704648B (en) Method, device, server and storage medium for determining user behavior attribute
CN112597363B (en) User processing method and device, electronic equipment and storage medium
CN117151096B (en) Intelligent contract checking method and device, electronic equipment and storage medium
CN117036041A (en) Service information pushing method, device, computer equipment and storage medium
CN116756426A (en) Project recommendation method, apparatus, computer device and storage medium
Ng Predicting energy consumption pattern based on top trending videos YouTube 2021 using machine learning techniques
CN117009476A (en) Service interaction processing method and device and computer equipment
CN116468531A (en) Account information processing method, apparatus, computer device and storage medium
CN117407504A (en) Operation and maintenance processing method, apparatus, device, storage medium and program product

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