Zedong Peng, J. Savolainen, Jianzhang Zhang, Nan Niu
{"title":"“What You See Is What You Test”: Recommending Features from GUIs for Requirements-Based Testing","authors":"Zedong Peng, J. Savolainen, Jianzhang Zhang, Nan Niu","doi":"10.1109/IRI58017.2023.00057","DOIUrl":null,"url":null,"abstract":"Requirements-based testing (RBT) advocates the design of test cases in order to adequately exercise the behavior of a software system without regard to the internal details of the implementation. To address the challenge that requirements descriptions may be inaccurate in practice, we align requirements engineering and software testing in a novel way by not counting on a complete and up-to-date requirements documentation. Rather, we maintain the black-box nature of RBT to recommend features as the units of testing from software’s graphical user interfaces (GUIs). In particular, we exploit optical character recognition (OCR) to identify the textual information from GUIs, and further build the GUI-feature correspondences based on software’s user-centric documentation which may exhibit partial correctness. Such correspondences from multiple software systems in the same domain serve as a foundation for our recommendation engine, which suggests the to-be-tested features related to a given GUI. We demonstrate our recommender’s feasibility with a study of five products in the web conferencing domain, and the results show the more complete set of features against which a GUI needs to be tested.","PeriodicalId":290818,"journal":{"name":"2023 IEEE 24th International Conference on Information Reuse and Integration for Data Science (IRI)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE 24th International Conference on Information Reuse and Integration for Data Science (IRI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IRI58017.2023.00057","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Requirements-based testing (RBT) advocates the design of test cases in order to adequately exercise the behavior of a software system without regard to the internal details of the implementation. To address the challenge that requirements descriptions may be inaccurate in practice, we align requirements engineering and software testing in a novel way by not counting on a complete and up-to-date requirements documentation. Rather, we maintain the black-box nature of RBT to recommend features as the units of testing from software’s graphical user interfaces (GUIs). In particular, we exploit optical character recognition (OCR) to identify the textual information from GUIs, and further build the GUI-feature correspondences based on software’s user-centric documentation which may exhibit partial correctness. Such correspondences from multiple software systems in the same domain serve as a foundation for our recommendation engine, which suggests the to-be-tested features related to a given GUI. We demonstrate our recommender’s feasibility with a study of five products in the web conferencing domain, and the results show the more complete set of features against which a GUI needs to be tested.