Naive Bayes Classification Model for Precondition-Postcondition in Software Requirements

2023 International Conference on Data Science and Its Applications (ICoDSA)(2023)

引用 0|浏览2
暂无评分
摘要
The quality of a test case primarily depends on the software requirements. However, manually identifying crucial elements like preconditions and post-conditions within software requirements can be time-consuming and labor-intensive. This challenge has prompted a research study to propose a novel approach for test case generation using text classification. The proposed approach involves categorizing software requirements into two labels: ”none” and ”both.” These labels indicate the presence or absence of preconditions and post-conditions in software requirements. To achieve this, the research employs the Naive Bayes algorithm, a widely used probabilistic classification algorithm in text classification tasks. The algorithm leverages two libraries, namely Scikit-learn and Natural Language Toolkit (NLTK). The Scikit-learn model proves quite effective through experimentation, achieving an impressive accuracy score of 0.86. This result demonstrates the feasibility of reducing the effort and time required for classifying test case components based on software requirements. By automating this process, the proposed approach offers a promising route for enhancing the efficiency and effectiveness of test case generation in software testing. By leveraging text classification and machine learning techniques, the proposed approach not only streamlines the identification of essential components in software requirements but also opens up possibilities for further automation and optimization of the testing process.
更多
查看译文
关键词
requirements,test case classification,text classification,natural language preprocessing
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要