Method, device and computer-readable storage medium for asking and answering test questions

By obtaining the execution status of test work and analyzing test case information, accurate answers are generated, which solves the problem of intelligent assistants being unable to provide accurate questions and improves the learning efficiency and work efficiency of test engineers.

CN113515609BActive Publication Date: 2024-10-15中国邮政储蓄银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110667743.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-10-15
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

Existing intelligent assistants cannot provide accurate questions to test engineers, resulting in low learning efficiency and long time to find answers.

Method used

By obtaining the execution status of the test work, determine the corresponding question information, and generate answer information based on the question information, use the machine learning model to analyze historical and current test case information, predict questions that users may ask, and provide accurate answers.

Benefits of technology

It improves the learning efficiency of test engineers, shortens the time to find answers, provides a better user experience, and improves the efficiency of testing work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113515609B_ABST
    Figure CN113515609B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and computer-readable storage medium for answering questions of test questions. The method includes: obtaining the execution status of the test work, the execution status at least including the unstarted state, the started and unfinished state or the finished state; determining the corresponding question information according to the execution status; generating the corresponding answer information according to the question information. In this method, the corresponding question information can be determined according to the different execution states of the test work, so that all the question information of the test engineer in the process of performing the test work can be accurately determined, and then the answer information can be accurately generated according to the obtained question information, so as to provide consultation and guidance to the test engineer, thereby solving the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular, to a method, device, computer-readable storage medium, and processor for answering test questions. Background Art

[0002] In the era of mobile Internet and big data, due to the rapid iteration of business and the pressure of various peak scenarios, testing technology and quality assurance systems are developing rapidly, and the requirements for the skill level of test engineers are getting higher and higher. In order to ensure that new test engineers can quickly master the required skills and process systems, in addition to several types of training, there are generally the following ways to assist test engineers in their work: (1) Mentorship: Assign an experienced test engineer as a full-time mentor to the new test engineer to provide all-round guidance; (2) Technical documentation: refers to the basic technical manual of testing, business system requirements and system design documents. New test engineers can query technical documents for self-study; (3) Wiki: It is an open hypertext system that can be collaboratively created by multiple people to achieve writing and knowledge sharing among team members, so that new test engineers can directly search for the information they need in this knowledge base.

[0003] However, the above methods are not perfect. For the mentor system, the mentor cannot accompany the new test engineers all the time and provide 7*24 hours problem consultation service; for technical documents, the new test engineers look for answers to specific questions in a large amount of technical documents, which has low learning efficiency and a steep learning curve; for Wiki, although Wiki provides a knowledge base, it requires the new test engineers to search for knowledge manually. First of all, this is a graphical user interface (Graphical User Interface, referred to as GUI) method. With the development of natural language processing technology, dialogue and interaction with users through voice or text has become the mainstream mode of society. Secondly, this method can only be applied to specific keyword searches and cannot provide semantic similarity searches. If the new test engineers are not familiar with the domain knowledge, they may not be able to search or search incompletely for the corresponding content.

[0004] With the development of deep learning technology and natural language processing technology, human-computer interaction technology, in addition to the necessary GUI, is more about communicating and interacting with users through voice or text through conversational user interface (CUI). Intelligent assistants have emerged to replace search engines. Therefore, newly hired test engineers sometimes choose to ask intelligent assistants and get the answers they want through human-computer interaction technology.

[0005] Currently, the common intelligent assistants are as follows: intelligent assistants based on Frequently asked Questions (FAQ), intelligent assistants based on information retrieval, intelligent assistants based on question classification, and intelligent systems based on artificial intelligence. The above intelligent assistants can be divided into two categories, namely, intelligent assistant systems based on expert rules and intelligent assistant systems based on machine learning. For intelligent assistant systems based on expert rules, they require more manpower, high costs, small coverage and low accuracy. For intelligent assistant systems based on machine learning, they require a lot of feature engineering work and have low accuracy.

[0006] Therefore, there is an urgent need for a control method for a seamless intelligent assistant in all scenarios and all-weather to improve the accuracy of the intelligent assistant's question and answer work, provide accurate questions for test engineers, and help test engineers learn test technology efficiently.

[0007] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention

[0008] The main purpose of the present application is to provide a method, device, computer-readable storage medium and processor for answering test questions, so as to solve the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer.

[0009] According to one aspect of an embodiment of the present invention, a method for asking and answering test questions is provided, comprising: obtaining an execution status of a test task, wherein the execution status includes at least a not started state, a started and not ended state, or an ended state; determining corresponding question information based on the execution status; and generating corresponding answer information based on the question information.

[0010] Optionally, when the execution status is the unstarted status, corresponding problem information is determined according to the execution status, including: determining whether there is a hot problem, the hot problem is a problem that appears a predetermined number of times in the operation log, and the operation log is a log recorded during the test work; when the hot problem exists, determining that the information corresponding to the hot problem is the first problem information.

[0011] Optionally, determining whether there are hot issues includes: obtaining a first issue, where the first issue is all issues in the operation log; classifying the first issue to determine a plurality of issue clusters; sorting the plurality of issue clusters to obtain at least two predetermined issue clusters; and determining whether there are hot issues in the predetermined issue clusters, where the hot issues are issues that appear in the predetermined issue clusters more than a predetermined number of times.

[0012] Optionally, when the execution status is the started and not ended status, corresponding question information is determined according to the execution status, including: obtaining test case information; determining second question information according to the test case information, the second question information being information predicting questions that the user will ask.

[0013] Optionally, the test case information includes at least historical test case information and current test case information, and the second question information is determined based on the test case information, including: converting the historical test case information and the current test case information into a first word sequence and a second word sequence, respectively; using a first determination model to analyze the test case information to determine the second question information, wherein the first determination model is trained through machine learning using multiple sets of data, and each set of the multiple sets of data includes at least: the historical test case information, the current test case information, the first word sequence corresponding to the historical test case information, and the second word sequence corresponding to the current test case information.

[0014] Optionally, when the execution state is the ended state, the corresponding question information is determined according to the execution state, including: obtaining third question information, the third question information being information of at least one question that the user has already asked; converting the third question information into a third word sequence; and using a second determination model to analyze the third question information to determine fourth question information, the fourth question information being information for predicting the next question that the user will ask, wherein the second determination model is trained through machine learning using multiple sets of data, and each set of the multiple sets of data includes at least: the third question information and the third word sequence corresponding to the third question information.

[0015] Optionally, generating corresponding answer information based on the question information includes: performing text processing on the question information to obtain first processed information; performing word segmentation processing on the first processed information to obtain second processed information; and performing classification processing on the second processed information to obtain the answer information.

[0016] Optionally, performing word segmentation processing on the first processing information to obtain second processing information includes: performing word segmentation processing on the first processing information according to the Jieba word segmentation technology; performing word order processing on the first processing information after the word segmentation processing to obtain the second processing information.

[0017] Optionally, the second processed information is classified and processed to obtain the answer information, including: obtaining the confidence of the second processed information; when the confidence of the second processed information is within a first predetermined confidence interval, determining first answer information, the first answer information being information about an answer to a question corresponding to the question information; when the confidence of the second processed information is within a second predetermined confidence interval, determining second answer information, the second answer information being multiple pieces of information about answers corresponding to a predetermined number of question information; when the confidence of the second processed information is within a third predetermined confidence interval, determining third answer information, the third answer information being information that does not answer the question, wherein the minimum value of the first predetermined confidence interval is greater than the maximum value of the second predetermined confidence interval, and the minimum value of the second predetermined confidence interval is greater than the maximum value of the third predetermined confidence interval.

[0018] According to another aspect of an embodiment of the present invention, a device for asking and answering test questions is also provided, including: an acquisition unit, a determination unit and a generation unit, the acquisition unit is used to acquire the execution status of the test work, and the execution status at least includes an unstarted state, a started and unfinished state, or an ended state; the determination unit is used to determine corresponding question information according to the execution status; and the generation unit is used to generate corresponding answer information according to the question information.

[0019] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the methods described.

[0020] According to yet another aspect of the embodiments of the present invention, a processor is provided, wherein the processor is used to run a program, wherein any one of the methods is executed when the program is run.

[0021] In an embodiment of the present invention, the execution status of the test work is first obtained, and then the corresponding question information is determined according to the execution status, and finally the corresponding answer information is generated according to the question information. In this method, the corresponding question information can be determined according to the different execution states of the test work, so that all the question information of the test engineer in the process of performing the test work can be accurately determined, and then the answer information can be accurately generated according to the obtained question information, so as to provide consultation and guidance to the test engineer, thereby solving the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer. This solution can help users quickly learn test technology, shorten the time for users to find answers, provide users with a good experience, and thus improve the efficiency of at least part of the test work. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0023] Figure 1 A schematic diagram showing a flow chart of a method for asking and answering test questions according to an embodiment of the present application;

[0024] Figure 2 A schematic diagram showing the structure of a device for answering test questions according to an embodiment of the present application is shown;

[0025] Figure 3 A flow chart of another method for asking and answering test questions according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] As mentioned in the background technology, the intelligent assistants in the prior art cannot provide accurate questions for test engineers. In order to solve the above problems, a method, device, computer-readable storage medium and processor for answering test questions are provided in a typical embodiment of the present application.

[0030] According to an embodiment of the present application, a method for asking and answering a test question is provided.

[0031] Figure 1 1 is a flow chart of a method for answering test questions according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0032] Step S101, obtaining the execution status of the test work, the execution status at least including the unstarted state, the started and unfinished state, or the finished state;

[0033] Step S102, determining corresponding problem information according to the above execution status;

[0034] Step S103: Generate corresponding answer information according to the above question information.

[0035] In the above method, the execution status of the test work is first obtained, and then the corresponding question information is determined according to the execution status, and finally the corresponding answer information is generated according to the question information. In this method, the corresponding question information can be determined according to the different execution states of the test work, so that all the question information of the test engineer in the process of performing the test work can be accurately determined, and then the answer information can be accurately generated according to the obtained question information, so as to provide consultation and guidance to the test engineer, thereby solving the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer. This solution can help users quickly learn test technology, shorten the time for users to find answers, provide users with a good experience, and thus improve the efficiency of at least part of the test work.

[0036] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0037] In one embodiment of the present application, when the execution state is the unstarted state, the corresponding question information is determined according to the execution state, including: determining whether there is a hot issue, the hot issue is a problem that appears a predetermined number of times in the operation log, and the operation log is a log recorded during the test work; when the hot issue exists, the information corresponding to the hot issue is determined to be the first question information. In this embodiment, the information corresponding to the hot issue can be determined as the first question information, and the corresponding answer information can be generated based on the first question information. This embodiment determines the user's hot issues before the test starts, and can recommend hot issues to the user, so that the user can get the hot issues before the test starts, further shortening the time for the user to find the answer, and then can learn based on the answer information generated by the hot issue, further ensuring that the user's experience is better. This embodiment further solves the problem that the intelligent assistant in the prior art cannot provide accurate questions for the test engineer.

[0038] It should be noted that the predetermined number of times can be 10 times, 50 times, or 100 times. Of course, it is not limited to the above-mentioned times. Those skilled in the art can select a suitable predetermined number of times according to actual conditions.

[0039] In another embodiment of the present application, determining whether there are hot issues includes: obtaining a first issue, wherein the first issue is all issues in the operation log; classifying the first issue to determine multiple issue clusters; sorting the multiple issue clusters to obtain at least two predetermined issue clusters; determining whether there are the hot issues in the predetermined issue clusters, wherein the hot issues are issues that appear more than a predetermined number of times in the predetermined issue clusters. In this embodiment, by classifying the first issue, multiple different types of issue clusters can be obtained, and then the issue clusters are sorted, with the issue clusters containing more issues being sorted first or last, so that the speed of determining the hot issues can be faster, and this embodiment can obtain accurate hot issues.

[0040] In another embodiment of the present application, when the execution state is the started and unfinished state, the corresponding question information is determined according to the execution state, including: obtaining test case information; determining second question information according to the test case information, wherein the second question information is information predicting the questions that the user will ask. In this embodiment, the questions that the user may ask can be accurately predicted based on the test case, and the second question information can be obtained. Subsequently, the corresponding answer information can be generated based on the second question information. This embodiment further shortens the time for users to find answers, further ensures that the user experience is better, and further solves the problem that the intelligent assistant in the prior art cannot provide accurate questions for test engineers.

[0041] In another embodiment of the present application, the test case information includes at least historical test case information and current test case information, and the second question information is determined based on the test case information, including: converting the historical test case information and the current test case information into a first word sequence and a second word sequence respectively; using a first determination model to analyze the test case information to determine the second question information, wherein the first determination model is trained by machine learning using multiple sets of data, and each set of the multiple sets of data includes at least: the historical test case information, the current test case information, the first word sequence corresponding to the historical test case information, and the second word sequence corresponding to the current test case information. In this embodiment, the second question information can be determined more accurately based on the first determination model, and the information of the predicted questions that the user may ask can be further guaranteed to be more accurate.

[0042] In a specific embodiment, the historical test case information and the current test case information can be subjected to special symbol filtering, stop word removal, synonym replacement, special digital processing and word segmentation, etc. to obtain a vocabulary, which is then converted to obtain a first word sequence and a second word sequence. During the conversion process, if the word exists in the vocabulary, the first word sequence and / or the second word sequence is determined to be the word sequence of the corresponding word in the vocabulary; if it does not exist, the first word sequence and / or the second word sequence is determined to be 0. More specifically, the historical test case information, the current test case information, the first word sequence corresponding to the historical test case information, and the second word sequence corresponding to the current test case information are used as multiple groups of data and input into a neural network model. The neural network model learns and trains the multiple groups of data, and then the neural network model is used to analyze the test case information to determine the second problem information. For example, when the defined sequence is 30 bits, the historical test case information is "user mobile phone number registration". After a series of processing, ["user", "mobile phone number", "registration"] is obtained, which is converted The first word sequence is [23, 58, 112]. The remaining digits less than 30 will be padded with 0s. The final first word sequence is [23, 58, 112, 0, 0, 0, 0, 0, ..., 0]. The current test case information is "The user logs in with the mobile phone number and the password is entered correctly". After a series of processing, we get ["user", "mobile phone number", "login", "password", "input", "correct"]. After converting it, we get the second word sequence of [23, 58, 63, 41, 33, 0 , 0, 0, 0, …, 0], the current test case information is “user personal settings”, after a series of processing, we get [“user”, “personal”, “settings”], which are converted to get the second word sequence [23, 38, 92, 0, 0, 0, 0, …, 0], and subsequently when the test case information obtained also includes information such as “user”, “mobile phone number” or “registration”, the neural network model can analyze the test case information relatively quickly and determine the second question information relatively quickly and accurately.

[0043] Specifically, the neural network model used in the above-mentioned embodiments is any feasible model in the prior art, and those skilled in the art can select a suitable neural network model to analyze the test case information and determine the second question information.

[0044] More specifically, the neural network model adopted includes an embedding layer, a bidirectional long short-term memory network layer, an attention mechanism layer and other network layers used for analysis and processing. Different neural network models have different hierarchical structures. This scheme does not limit the neural network model adopted. The neural network model is used to learn the input data. The bidirectional long short-term memory network layer can sum up the different data in the input data and input it to the attention mechanism layer. The attention mechanism layer performs nonlinear transformation and normalization on the data. Nonlinear transformation can be performed through the tanh function, and then other layers are used to process the data. Any feasible neural network model in the prior art can be used for training and learning.

[0045] In a specific embodiment of the present application, when the execution state is the ended state, the corresponding question information is determined according to the execution state, including: obtaining third question information, the third question information is information about at least one question that the user has asked; converting the third question information into a third word sequence; using the second determination model to analyze the third question information to determine the fourth question information, the fourth question information is information about the next question that the user will ask, wherein the second determination model is trained by machine learning using multiple sets of data, and each set of data in the multiple sets of data at least includes: the third question information and the third word sequence corresponding to the third question information. In this embodiment, when the test work has been completed, the next question that the user may ask can be accurately predicted based on the questions that the user has asked before, and the fourth question information can be obtained. Subsequently, the corresponding answer information can be generated based on the fourth question information. This embodiment further shortens the time for the user to find the answer, further ensures that the user's experience effect is better, and further solves the problem that the intelligent assistant in the prior art cannot provide accurate questions for the test engineer.

[0046] Specifically, the second determination model can be an intent recognition model, which classifies test-related technical issues according to the corpus to form a knowledge base, and trains the intent recognition model based on the knowledge base. The organizational form in the intent recognition model is primary domain and secondary intention. The primary domain is a large category of business issues, and the secondary intention is a subdivided intention within the primary domain. In this way, the fourth question information can be determined based on the intent recognition model, thereby ensuring that the next question the user will ask can be accurately predicted, and the corresponding answer information can be provided for him.

[0047] In another embodiment of the present application, corresponding answer information is generated according to the question information, including: performing text processing on the question information to obtain first processed information; performing word segmentation processing on the first processed information to obtain second processed information; performing classification processing on the second processed information to obtain the answer information. In this embodiment, accurate answer information can be obtained by processing the question information multiple times. This embodiment can provide accurate answers to users, further shorten the time it takes for users to find answers, and further ensure a better user experience.

[0048] In a specific embodiment, the text processing of the question information may include removing sensitive words, removing special characters, removing stop words, converting full-width characters to half-width characters, converting uppercase characters to lowercase characters, and replacing synonyms.

[0049] In another embodiment of the present application, the first processing information is segmented to obtain the second processing information, including: segmenting the first processing information according to the Jieba word segmentation technology; performing word order processing on the first processing information after the word segmentation processing to obtain the second processing information. In this embodiment, accurate second processing information can be obtained by performing word segmentation processing and word order processing on the first processing information, and answer information can be obtained more accurately based on the second processing information.

[0050] In another embodiment of the present application, the second processed information is classified and processed to obtain the answer information, including: obtaining the confidence of the second processed information; when the confidence of the second processed information is within a first predetermined confidence interval, determining the first answer information, wherein the first answer information is information of an answer to a question corresponding to the question information; when the confidence of the second processed information is within a second predetermined confidence interval, determining the second answer information, wherein the second answer information is multiple information of answers corresponding to a predetermined number of the question information; when the confidence of the second processed information is within a third predetermined confidence interval, determining the third answer information, wherein the third answer information is information of not answering the question, wherein the minimum value of the first predetermined confidence interval is greater than the maximum value of the second predetermined confidence interval, and the minimum value of the second predetermined confidence interval is greater than the maximum value of the third predetermined confidence interval. In this embodiment, when the confidence level of the second processed information is in the first predetermined confidence interval, it indicates that the intention has been accurately identified at this time, and an accurate first answer information is obtained at this time. When the confidence level of the second processed information is in the second predetermined confidence interval, it indicates that the intention is not accurately identified at this time, and the second answer information is determined. The second answer information includes multiple answer information for multiple questions, which can be selected by the user. When the confidence level of the first processed information is in the third predetermined confidence interval, it indicates that the user may be chatting with other people at this time and does not answer at this time. In this embodiment, the answer information can be provided to the user more accurately, further ensuring that the user experience effect is better.

[0051] It should be noted that the first predetermined confidence interval can be 0.85-1, the second predetermined confidence interval can be 0.6-0.84, and the third predetermined confidence interval can be 0-0.59. Of course, it is not limited to the above scheme. Technical personnel in this field can set appropriate first predetermined confidence interval, second predetermined confidence interval and third predetermined confidence interval as needed. The predetermined number can be 5 or 10. Technical personnel in this field can set appropriate predetermined number as needed.

[0052] Specifically, in one embodiment, when the confidence interval of the second processed information is within the third predetermined confidence interval, it can also be determined whether the question corresponding to the second processed information is a chat topic. If it is not a chat topic, no answer will be given, and the user can be prompted "Sorry, Xiaozhi doesn't quite understand this question, please ask it in a different way." If it is a chat topic, a match can be made in the chat topic based on a pre-set regular expression to select a suitable answer.

[0053] For the purpose of statistics of subsequent questions and model optimization, in one embodiment of the present application, the above method further includes: storing hot issues; storing test cases; counting user satisfaction; counting questions answered by users themselves; counting questions that users evaluate as unsatisfactory. In this embodiment, by storing hot issues, the corresponding question information can be obtained more quickly in the future, and by storing test cases, the corresponding question information can be obtained more quickly and accurately. User satisfaction is to calculate the accuracy of the answers of the intelligent assistant, and the accuracy is the quotient of the number of people who answer satisfactory questions and the total number of people who answer questions. Statistics of questions answered by users themselves are questions that users can choose to answer by themselves after determining the question information, which are used as answers to standard questions and as new corpus for subsequent model training. Statistics of questions that users evaluate as unsatisfactory become available for subsequent manual analysis. For business issues, relevant correct standard question information and answer information are given as new corpus for subsequent model training. For chat questions, the questions are added to the chat library and the corresponding regular expressions are configured.

[0054] The embodiment of the present application also provides a device for asking and answering test questions. It should be noted that the device for asking and answering test questions in the embodiment of the present application can be used to execute the method for asking and answering test questions provided in the embodiment of the present application. The device for asking and answering test questions provided in the embodiment of the present application is introduced below.

[0055] Figure 2 Schematic diagram of a device for answering test questions according to an embodiment of the present application. Figure 2 As shown, the device comprises:

[0056] An acquisition unit 10 is used to acquire the execution status of the test work, where the execution status at least includes a not started state, a started and not ended state, or an ended state;

[0057] A determination unit 20, configured to determine corresponding problem information according to the above execution status;

[0058] The generating unit 30 is used to generate corresponding answer information according to the above question information.

[0059] In the above-mentioned device, the acquisition unit acquires the execution status of the test work, the determination unit determines the corresponding question information according to the execution status, and the generation unit generates the corresponding answer information according to the question information. In this device, the corresponding question information can be determined according to the different execution status of the test work, so that all the question information of the test engineer in the process of performing the test work can be accurately determined, and then the answer information can be accurately generated according to the obtained question information, so as to provide consultation and guidance to the test engineer, thereby solving the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer. This solution can help users quickly learn test technology, shorten the time for users to find answers, provide users with a good experience, and thus improve the efficiency of at least part of the test work.

[0060] In one embodiment of the present application, when the execution state is the unstarted state, the determination unit includes a first determination module and a second determination module. The first determination module is used to determine whether there is a hot issue. The hot issue is a problem that appears a predetermined number of times in the operation log. The operation log is a log recorded during the test work. The second determination module is used to determine that the information corresponding to the hot issue is the first question information when the hot issue exists. In this embodiment, the information corresponding to the hot issue can be determined as the first question information, and the corresponding answer information can be generated based on the first question information. This embodiment determines the user's hot issues before the test starts, and can recommend hot issues to the user. In this way, the user can get the hot issues before the test starts, further shortening the time for the user to find the answer, and then can learn based on the answer information generated by the hot issue, further ensuring that the user's experience is better. This embodiment further solves the problem that the intelligent assistant in the prior art cannot provide accurate questions for the test engineer.

[0061] It should be noted that the predetermined number of times can be 10 times, 50 times, or 100 times. Of course, it is not limited to the above-mentioned times. Those skilled in the art can select a suitable predetermined number of times according to actual conditions.

[0062] In another embodiment of the present application, the first determination module includes a first acquisition submodule, a first determination submodule, a sorting submodule and a second determination submodule, the first acquisition submodule is used to obtain the first problem, the first problem is all the problems in the operation log; the first determination submodule is used to classify the first problem and determine multiple problem clusters; the sorting submodule is used to sort the multiple problem clusters to obtain at least two predetermined problem clusters; the second determination submodule is used to determine whether the hot problem exists in the predetermined problem clusters, the hot problem is a problem that appears more than a predetermined number of times in the predetermined problem clusters. In this embodiment, by classifying the first problem, multiple different types of problem clusters can be obtained, and then the problem clusters are sorted, and the problem clusters including more problems are sorted in the front or the back, so that the speed of determining the hot problem can be faster, and this embodiment can obtain accurate hot problems.

[0063] In another embodiment of the present application, when the execution state is the started and unfinished state, the determination unit includes a first acquisition module and a third determination module, the first acquisition module is used to obtain test case information; the third determination module is used to determine the second question information based on the test case information, and the second question information is information predicting the questions that the user will ask. In this embodiment, the questions that the user may ask can be accurately predicted based on the test case, and the second question information can be obtained. Subsequently, the corresponding answer information can be generated based on the second question information. This embodiment further shortens the time for users to find answers, further ensures that the user experience is better, and further solves the problem that the intelligent assistant in the prior art cannot provide accurate questions for test engineers.

[0064] In another embodiment of the present application, the test case information at least includes historical test case information and current test case information, and the third determination module includes a conversion submodule and a third determination submodule, the conversion submodule is used to convert the historical test case information and the current test case information into a first word sequence and a second word sequence respectively; the third determination submodule is used to analyze the test case information using a first determination model to determine the second question information, wherein the first determination model is trained by machine learning using multiple sets of data, and each set of data in the multiple sets of data at least includes: the historical test case information, the current test case information, the first word sequence corresponding to the historical test case information, and the second word sequence corresponding to the current test case information. In this embodiment, the second question information can be determined more accurately according to the first determination model, which can further ensure that the information of the predicted questions that the user may ask is more accurate.

[0065] In a specific embodiment, the historical test case information and the current test case information can be subjected to special symbol filtering, stop word removal, synonym replacement, special digital processing and word segmentation, etc. to obtain a vocabulary, which is then converted to obtain a first word sequence and a second word sequence. During the conversion process, if the word exists in the vocabulary, the first word sequence and / or the second word sequence is determined to be the word sequence of the corresponding word in the vocabulary; if it does not exist, the first word sequence and / or the second word sequence is determined to be 0. More specifically, the historical test case information, the current test case information, the first word sequence corresponding to the historical test case information, and the second word sequence corresponding to the current test case information are used as multiple groups of data and input into a neural network model. The neural network model learns and trains the multiple groups of data, and then the neural network model is used to analyze the test case information to determine the second problem information. For example, when the defined sequence is 30 bits, the historical test case information is "user mobile phone number registration". After a series of processing, ["user", "mobile phone number", "registration"] is obtained, which is converted The first word sequence is [23, 58, 112]. The remaining digits less than 30 will be padded with 0s. The final first word sequence is [23, 58, 112, 0, 0, 0, 0, 0, ..., 0]. The current test case information is "The user logs in with the mobile phone number and the password is entered correctly". After a series of processing, we get ["user", "mobile phone number", "login", "password", "input", "correct"]. After converting it, we get the second word sequence of [23, 58, 63, 41, 33, 0 , 0, 0, 0, …, 0], the current test case information is “user personal settings”, after a series of processing, we get [“user”, “personal”, “settings”], which are converted to get the second word sequence [23, 38, 92, 0, 0, 0, 0, …, 0], and subsequently when the test case information obtained also includes information such as “user”, “mobile phone number” or “registration”, the neural network model can analyze the test case information relatively quickly and determine the second question information relatively quickly and accurately.

[0066] Specifically, the neural network model used in the above-mentioned embodiments is any feasible model in the prior art, and those skilled in the art can select a suitable neural network model to analyze the test case information and determine the second question information.

[0067] More specifically, the neural network model adopted includes an embedding layer, a bidirectional long short-term memory network layer, an attention mechanism layer and other network layers used for analysis and processing. Different neural network models have different hierarchical structures. This scheme does not limit the neural network model adopted. The neural network model is used to learn the input data. The bidirectional long short-term memory network layer can sum up the different data in the input data and input it to the attention mechanism layer. The attention mechanism layer performs nonlinear transformation and normalization on the data. Nonlinear transformation can be performed through the tanh function, and then other layers are used to process the data. Any feasible neural network model in the prior art can be used for training and learning.

[0068] In a specific embodiment of the present application, when the execution state is the ended state, the determination unit includes a second acquisition module, a conversion module and a third determination module, the second acquisition module is used to obtain the third question information, the third question information is the information of at least one question that the user has asked; the conversion module is used to convert the third question information into a third word sequence; the third determination module is used to analyze the third question information using the second determination model to determine the fourth question information, the fourth question information is the information of predicting the next question that the user will ask, wherein the second determination model is trained by machine learning using multiple sets of data, and each set of data in the multiple sets of data at least includes: the third question information and the third word sequence corresponding to the third question information. In this embodiment, when the test work has been completed, the next question that the user may ask can be accurately predicted based on the questions that the user has asked before, and the fourth question information can be obtained. Subsequently, the corresponding answer information can be generated based on the fourth question information. This embodiment further shortens the time for the user to find the answer, further ensures that the user's experience effect is better, and further solves the problem that the intelligent assistant in the prior art cannot provide accurate questions for the test engineer.

[0069] Specifically, the second determination model can be an intent recognition model, which classifies test-related technical issues according to the corpus to form a knowledge base, and trains the intent recognition model based on the knowledge base. The organizational form in the intent recognition model is primary domain and secondary intention. The primary domain is a large category of business issues, and the secondary intention is a subdivided intention within the primary domain. In this way, the fourth question information can be determined based on the intent recognition model, thereby ensuring that the next question the user will ask can be accurately predicted, and the corresponding answer information can be provided for him.

[0070] In another embodiment of the present application, the generation unit includes a first processing module, a second processing module and a third processing module, the first processing module is used to perform text processing on the above question information to obtain first processing information; the second processing module is used to perform word segmentation processing on the above first processing information to obtain second processing information; the third processing module is used to perform classification processing on the above second processing information to obtain the above answer information. In this embodiment, accurate answer information can be obtained by processing the question information multiple times. This embodiment can provide accurate answers to users, further shorten the time for users to find answers, and further ensure that the user experience effect is better.

[0071] In a specific embodiment, the text processing of the question information may include removing sensitive words, removing special characters, removing stop words, converting full-width characters to half-width characters, converting uppercase characters to lowercase characters, and replacing synonyms.

[0072] In another embodiment of the present application, the second processing module includes a first processing submodule and a second processing submodule, the first processing submodule is used to perform word segmentation processing on the first processing information according to the Jieba word segmentation technology; the second processing submodule is used to perform word order processing on the first processing information after the word segmentation processing to obtain the second processing information. In this embodiment, accurate second processing information can be obtained by performing word segmentation processing and word order processing on the first processing information, and answer information can be obtained more accurately based on the second processing information.

[0073] In another embodiment of the present application, the third processing module includes a second acquisition submodule, a fourth determination submodule, a fifth determination submodule and a sixth determination submodule, the second acquisition submodule is used to acquire the confidence of the above-mentioned second processing information; the fourth determination submodule is used to determine the first answer information when the above-mentioned confidence of the above-mentioned second processing information is in a first predetermined confidence interval, and the above-mentioned first answer information is information of an answer to a question corresponding to the above-mentioned question information; the fifth determination submodule is used to determine the second answer information when the above-mentioned confidence of the above-mentioned second processing information is in a second predetermined confidence interval, and the above-mentioned second answer information is multiple information of answers corresponding to a predetermined number of the above-mentioned question information; the sixth determination submodule is used to determine the third answer information when the above-mentioned confidence of the above-mentioned second processing information is in a third predetermined confidence interval, and the above-mentioned third answer information is information that does not answer the question, wherein the minimum value of the above-mentioned first predetermined confidence interval is greater than the maximum value of the above-mentioned second predetermined confidence interval, and the minimum value of the above-mentioned second predetermined confidence interval is greater than the maximum value of the above-mentioned third predetermined confidence interval. In this embodiment, when the confidence level of the second processed information is in the first predetermined confidence interval, it indicates that the intention has been accurately identified at this time, and an accurate first answer information is obtained at this time. When the confidence level of the second processed information is in the second predetermined confidence interval, it indicates that the intention is not accurately identified at this time, and the second answer information is determined. The second answer information includes multiple answer information for multiple questions, which can be selected by the user. When the confidence level of the first processed information is in the third predetermined confidence interval, it indicates that the user may be chatting with other people at this time and does not answer at this time. In this embodiment, the answer information can be provided to the user more accurately, further ensuring that the user experience effect is better.

[0074] It should be noted that the first predetermined confidence interval can be 0.85-1, the second predetermined confidence interval can be 0.6-0.84, and the third predetermined confidence interval can be 0-0.59. Of course, it is not limited to the above scheme. Technical personnel in this field can set appropriate first predetermined confidence interval, second predetermined confidence interval and third predetermined confidence interval as needed. The predetermined number can be 5 or 10. Technical personnel in this field can set appropriate predetermined number as needed.

[0075] Specifically, in one embodiment, when the confidence interval of the second processed information is within the third predetermined confidence interval, it can also be determined whether the question corresponding to the second processed information is a chat topic. If it is not a chat topic, no answer will be given, and the user can be prompted "Sorry, Xiaozhi doesn't quite understand this question, please ask it in a different way." If it is a chat topic, a match can be made in the chat topic based on a pre-set regular expression to select a suitable answer.

[0076] For the statistics of subsequent questions and model optimization, in one embodiment of the present application, the above-mentioned device also includes a first storage unit, a second storage unit, a first statistical unit, a second statistical unit and a third statistical unit. The first storage unit is used to store hot issues; the second storage unit is used to store test cases; the first statistical unit is used to count user satisfaction; the second statistical unit is the same as the questions answered by the user; the third statistical unit is used to count the questions that the user evaluates as unsatisfactory. In this embodiment, by storing hot issues, the corresponding question information can be obtained more quickly in the future, and by storing test cases, the corresponding question information can be obtained more quickly and accurately. User satisfaction is to calculate the accuracy of the answer of the intelligent assistant, and the accuracy is the quotient of the number of people who answer satisfactory questions and the total number of people who answer questions. The questions answered by the user themselves can be selected as the questions that the user can answer after determining the question information, and this is used as the answer to the standard question, as a new corpus for subsequent model training. The statistics of the user evaluation as unsatisfactory become available for subsequent manual analysis. For business issues, the relevant correct standard question information and answer information are given as new corpus for subsequent model training. For chat issues, the questions are added to the chat library and the corresponding regular expressions are configured.

[0077] The device for answering the above-mentioned test questions includes a processor and a memory. The above-mentioned acquisition unit, determination unit and generation unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.

[0078] The processor contains a kernel, which calls the corresponding program unit from the memory. The kernel can be set to one or more, and the kernel parameters can be adjusted to provide accurate questions to the test engineer.

[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0080] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for answering the above-mentioned test questions is implemented.

[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for asking and answering the test questions is executed when the program is run.

[0082] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the technical solution and technical effects of the present application will be explained below in conjunction with specific embodiments.

[0083] Example

[0084] like Figure 3 As shown, before the test begins, hot issues are recommended;

[0085] In the test, predict the question, obtain the question information, perform text processing, word segmentation processing and classification processing on the question information, and generate the corresponding answer information;

[0086] Text processing includes: removing sensitive words, removing special characters, removing stop words, converting full-width characters to half-width characters, converting uppercase characters to lowercase characters, and replacing synonyms.

[0087] The word segmentation process includes: word segmentation through the stammering word segmentation technology, and then word order processing;

[0088] The classification process includes: obtaining the confidence of the question, and directly answering the question when the confidence of the question is within a first predetermined confidence interval; when the confidence of the question is within a second predetermined confidence interval, providing a list of questions according to the confidence level, obtaining the question selected by the user, and answering the question; when the confidence of the question is within a third predetermined confidence interval, determining whether it is a chat topic, and if it is not a chat topic, refusing to answer, and if it is a chat topic, chatting according to a set regular expression;

[0089] Predict questions users might ask after testing.

[0090] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0091] Step S101, obtaining the execution status of the test work, the execution status at least including the unstarted state, the started and unfinished state, or the finished state;

[0092] Step S102, determining corresponding problem information according to the above execution status;

[0093] Step S103: Generate corresponding answer information according to the above question information.

[0094] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0095] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0096] Step S101, obtaining the execution status of the test work, the execution status at least including the unstarted state, the started and unfinished state, or the finished state;

[0097] Step S102, determining corresponding problem information according to the above execution status;

[0098] Step S103: Generate corresponding answer information according to the above question information.

[0099] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0101] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0102] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0103] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0104] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0105] 1) The method for answering test questions of the present application first obtains the execution status of the test work, then determines the corresponding question information according to the execution status, and finally generates the corresponding answer information according to the question information. In this method, the corresponding question information can be determined according to the different execution states of the test work, so that all the question information of the test engineer in the process of performing the test work can be accurately determined, and then the answer information can be accurately generated according to the obtained question information, so as to provide consultation and guidance to the test engineer, thereby solving the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer. This solution can help users quickly learn test technology, shorten the time for users to find answers, provide users with a good experience, and thus improve the efficiency of at least part of the test work.

[0106] 2) The device for answering test questions of the present application, the acquisition unit acquires the execution status of the test work, the determination unit determines the corresponding question information according to the execution status, and the generation unit generates the corresponding answer information according to the question information. In this device, the corresponding question information can be determined according to the different execution status of the test work, so that all the question information of the test engineer in the process of performing the test work can be accurately determined, and then the answer information can be accurately generated according to the obtained question information, so as to provide consultation and guidance to the test engineer, thereby solving the problem that the intelligent assistant in the prior art cannot provide accurate questions to the test engineer. This solution can help users quickly learn test technology, shorten the time for users to find answers, provide users with a good experience, and thus improve the efficiency of at least part of the test work.

[0107] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for answering a test question, characterized in that: include: Acquire the execution status of the test work, where the execution status at least includes a not started state, a started and not finished state, or a finished state; Determine corresponding problem information according to the execution status; Generate corresponding answer information according to the question information; When the execution state is the unstarted state, determining corresponding problem information according to the execution state includes: Determine whether there is a hot issue, wherein the hot issue is an issue that occurs a predetermined number of times in an operation log, wherein the operation log is a log recorded during the test work; In the case where the hot issue exists, it is determined that the information corresponding to the hot issue is the first issue information.

2. The method according to claim 1, characterized in that Determine if there are any hotspot issues, including: Obtaining a first question, where the first question is all questions in the operation log; Classifying the first problems to determine a plurality of problem clusters; Sorting the plurality of question clusters to obtain at least two predetermined question clusters; It is determined whether the hot issue exists in the predetermined issue cluster, where the hot issue is an issue that occurs more than a predetermined number of times in the predetermined issue cluster.

3. The method according to claim 1, characterized in that In the case where the execution state is the started and not ended state, determining corresponding problem information according to the execution state includes: Get test case information; According to the test case information, second question information is determined, where the second question information is information about questions that are predicted to be asked by the user.

4. The method according to claim 3, characterized in that The test case information includes at least historical test case information and current test case information, and determining the second question information according to the test case information includes: Converting the historical test case information and the current test case information into a first word sequence and a second word sequence respectively; The test case information is analyzed using a first determination model to determine the second question information, wherein the first determination model is trained through machine learning using multiple sets of data, and each set of the multiple sets of data includes at least: the historical test case information, the current test case information, the first word sequence corresponding to the historical test case information, and the second word sequence corresponding to the current test case information.

5. The method according to claim 1, characterized in that When the execution state is the ended state, determining corresponding problem information according to the execution state includes: Acquire third question information, where the third question information is information about at least one question that the user has asked; converting the third question information into a third word sequence; The third question information is analyzed using a second determination model to determine fourth question information, where the fourth question information is information for predicting the next question the user will ask, wherein the second determination model is trained through machine learning using multiple sets of data, and each set of data in the multiple sets of data includes at least: the third question information and the third word sequence corresponding to the third question information.

6. The method according to claim 1, characterized in that Generate corresponding answer information according to the question information, including: Performing text processing on the question information to obtain first processing information; Performing word segmentation processing on the first processed information to obtain second processed information; The second processed information is classified and processed to obtain the answer information.

7. The method according to claim 6, characterized in that Performing word segmentation processing on the first processed information to obtain second processed information includes: Performing word segmentation processing on the first processed information according to the Jieba word segmentation technology; The first processed information after word segmentation processing is subjected to word order processing to obtain the second processed information.

8. The method according to claim 6, characterized in that Classifying and processing the second processed information to obtain the answer information includes: Acquiring the confidence level of the second processing information; In a case where the confidence level of the second processed information is within a first predetermined confidence level interval, determining first answer information, where the first answer information is information of an answer to a question corresponding to the question information; When the confidence level of the second processed information is within a second predetermined confidence level interval, determining second answer information, where the second answer information is a plurality of information of answers corresponding to a predetermined number of the question information; When the confidence of the second processed information is in a third predetermined confidence interval, third answer information is determined, and the third answer information is information that does not answer the question, wherein the minimum value of the first predetermined confidence interval is greater than the maximum value of the second predetermined confidence interval, and the minimum value of the second predetermined confidence interval is greater than the maximum value of the third predetermined confidence interval.

9. A device for asking and answering test questions, characterized in that: include: An acquisition unit, used for acquiring an execution status of a test task, wherein the execution status at least includes a not started state, a started and not ended state, or an ended state; A determination unit, configured to determine corresponding problem information according to the execution state; A generating unit, used to generate corresponding answer information according to the question information; When the execution state is the unstarted state, the determining unit includes: A first determination module is used to determine whether there is a hot issue, wherein the hot issue is an issue that appears a predetermined number of times in an operation log, and the operation log is a log recorded during the test work process; The second determination module is used to determine that the information corresponding to the hot issue is the first issue information when the hot issue exists.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program implements the method according to any one of claims 1 to 8 when executed by a processor.

11. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 8 when running.