Mobile Application Development: Automated Test Input Generation Via Model Inference based on User Story and Acceptance Criteria

Hena Iqbal
{"title":"Mobile Application Development: Automated Test Input Generation Via Model Inference based on User Story and Acceptance Criteria","authors":"Hena Iqbal","doi":"10.1109/ICD47981.2019.9105761","DOIUrl":null,"url":null,"abstract":"In the past few years, there has been observed explosive growth in the development of Mobile Applications across Android and iOS operating system which has led to the direct impact towards mobile app development. In order to design and propose quality-oriented apps, it is the primary responsibility of the developers to devote time and sufficient efforts towards testing to make the Apps bug free and operational in the hands of end users without any hiccup. In order to test the mobile apps, manual testing procedures takes prolonged amount of time in writing test cases and even the full testing requirements are not met. In addition to this, lack of sufficient knowledge by the tester also impacts overall quality and assurance that app is bug free. To overcome all the issues of testing, and to assure that apps designed by developers are almost bug free, we propose a new testing methodology cum tool “AgileUATM” which works primarily towards white-box and black-box testing. With this tool, all the test cases are generated automatically based on user stories and acceptance criteria by using formal specification and Z3 SMT solvers. To test the validity of the proposed tool, we applied the tool in real-time operational environment with regard to test Mobile apps. Using this tool, all the acceptance criteria is determined via user stories. The testers/developers specify requirements with formal specifications based on programs properties, predicates, invariants, and constraints. From the results, it is observed that the proposed tool i.e. AgileUATM generated effective and accurate test cases, test input, and expected output was generated in a unified fashion from the user stories to meet acceptance criteria. In addition to this, the tool also reduced the development time to identify test data as compared to manual Behavior Driven Development (BDD) methodologies. With this tool, the developers got better idea with regard to required tests and able to translate the customers natural languages to the computer language as well.","PeriodicalId":277894,"journal":{"name":"2019 International Conference on Digitization (ICD)","volume":"46 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 International Conference on Digitization (ICD)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICD47981.2019.9105761","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In the past few years, there has been observed explosive growth in the development of Mobile Applications across Android and iOS operating system which has led to the direct impact towards mobile app development. In order to design and propose quality-oriented apps, it is the primary responsibility of the developers to devote time and sufficient efforts towards testing to make the Apps bug free and operational in the hands of end users without any hiccup. In order to test the mobile apps, manual testing procedures takes prolonged amount of time in writing test cases and even the full testing requirements are not met. In addition to this, lack of sufficient knowledge by the tester also impacts overall quality and assurance that app is bug free. To overcome all the issues of testing, and to assure that apps designed by developers are almost bug free, we propose a new testing methodology cum tool “AgileUATM” which works primarily towards white-box and black-box testing. With this tool, all the test cases are generated automatically based on user stories and acceptance criteria by using formal specification and Z3 SMT solvers. To test the validity of the proposed tool, we applied the tool in real-time operational environment with regard to test Mobile apps. Using this tool, all the acceptance criteria is determined via user stories. The testers/developers specify requirements with formal specifications based on programs properties, predicates, invariants, and constraints. From the results, it is observed that the proposed tool i.e. AgileUATM generated effective and accurate test cases, test input, and expected output was generated in a unified fashion from the user stories to meet acceptance criteria. In addition to this, the tool also reduced the development time to identify test data as compared to manual Behavior Driven Development (BDD) methodologies. With this tool, the developers got better idea with regard to required tests and able to translate the customers natural languages to the computer language as well.
移动应用开发:基于用户故事和验收标准的模型推理自动测试输入生成
在过去的几年里,Android和iOS操作系统上的移动应用开发出现了爆炸性的增长,这对移动应用开发产生了直接的影响。为了设计和提出以质量为导向的应用程序,开发人员的主要责任是投入时间和足够的精力进行测试,以使应用程序无漏洞,并在最终用户手中无任何问题地运行。为了测试移动应用程序,手工测试程序需要花费大量的时间来编写测试用例,甚至无法满足完整的测试需求。除此之外,测试人员缺乏足够的知识也会影响应用的整体质量和确保应用无漏洞。为了克服测试中的所有问题,并确保开发人员设计的应用程序几乎没有bug,我们提出了一种新的测试方法和工具“AgileUATM”,主要用于白盒和黑盒测试。有了这个工具,所有的测试用例都是通过使用正式的规范和Z3 SMT求解器,基于用户描述和验收标准自动生成的。为了测试所提出的工具的有效性,我们将该工具应用于测试移动应用程序的实时操作环境中。使用这个工具,所有的验收标准都是通过用户描述确定的。测试人员/开发人员使用基于程序属性、谓词、不变量和约束的正式规范来指定需求。从结果中,可以观察到被提议的工具,例如AgileUATM,生成了有效且准确的测试用例,测试输入,并且预期的输出以一种统一的方式从用户场景中生成,以满足接受标准。除此之外,与手动行为驱动开发(BDD)方法相比,该工具还减少了识别测试数据的开发时间。有了这个工具,开发人员对所需的测试有了更好的了解,并且能够将客户的自然语言翻译成计算机语言。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信