Test case generation method based on slot filling
The invention discloses a test case generation method based on slot filling, which can automatically generate a test case and effectively save labor cost. The method comprises the steps of 1, identifying paragraphs in a required document, taking each paragraph as an input text, performing word segme...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a test case generation method based on slot filling, which can automatically generate a test case and effectively save labor cost. The method comprises the steps of 1, identifying paragraphs in a required document, taking each paragraph as an input text, performing word segmentation on the input text, and constructing a word vector for each word in the paragraph according to a word segmentation result; step 2, taking the word vector as initial input of a Transformer + CRF network model to perform model training, labeling a word sequence of an input text by using the trained model, and performing decoding by using a Viterbi algorithm to obtain an optimal labeling result; and 3, extracting labels of the same type in the optimal labeling result, obtaining test information according to the labels of the same type, and generating a test case.
本发明公开了一种基于槽填充的测试用例生成方法,能够自动生成测试用例,有效节省人力成本。该方法包括:步骤1、识别需求文档中的段落,将每一个所述段落作为输入文本,并对所述输入文本进行分词,根据分词结果为所述段落中的每一个单词构造词向量;步骤2、将所述词向量作为Transformer+CRF网络模型的初始 |
---|