{"title":"用自然语言从输入规范中自动生成测试用例","authors":"Tianyu Li, Xiuwen Lu, Hui Xu","doi":"10.1109/ISSREW55968.2022.00076","DOIUrl":null,"url":null,"abstract":"This paper studies the problem of automated test case generation for online coding test, i.e., given an input specification in natural language, how can we generate test cases automatically to examine the correctness of the code implemented by the testee? To tackle the problem, this paper proposes an approach that first extracts noun phrases from an input specification; then it removes irrelevant noun phrases and only retains the key phrases related to input construction; by reorganizing these key phrases, it can form an information tree and generate test cases accordingly. We have evaluated our approach with two datasets from LeetCode and ACM and achieved promising results.","PeriodicalId":178302,"journal":{"name":"2022 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Automated Test Case Generation from Input Specification in Natural Language\",\"authors\":\"Tianyu Li, Xiuwen Lu, Hui Xu\",\"doi\":\"10.1109/ISSREW55968.2022.00076\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This paper studies the problem of automated test case generation for online coding test, i.e., given an input specification in natural language, how can we generate test cases automatically to examine the correctness of the code implemented by the testee? To tackle the problem, this paper proposes an approach that first extracts noun phrases from an input specification; then it removes irrelevant noun phrases and only retains the key phrases related to input construction; by reorganizing these key phrases, it can form an information tree and generate test cases accordingly. We have evaluated our approach with two datasets from LeetCode and ACM and achieved promising results.\",\"PeriodicalId\":178302,\"journal\":{\"name\":\"2022 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)\",\"volume\":\"16 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ISSREW55968.2022.00076\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISSREW55968.2022.00076","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Automated Test Case Generation from Input Specification in Natural Language
This paper studies the problem of automated test case generation for online coding test, i.e., given an input specification in natural language, how can we generate test cases automatically to examine the correctness of the code implemented by the testee? To tackle the problem, this paper proposes an approach that first extracts noun phrases from an input specification; then it removes irrelevant noun phrases and only retains the key phrases related to input construction; by reorganizing these key phrases, it can form an information tree and generate test cases accordingly. We have evaluated our approach with two datasets from LeetCode and ACM and achieved promising results.