基于语句覆盖标准为JavaScript生成测试模块的工具

Pannawat Janthong, T. Suwannasart
{"title":"基于语句覆盖标准为JavaScript生成测试模块的工具","authors":"Pannawat Janthong, T. Suwannasart","doi":"10.1109/JCSSE.2014.6841890","DOIUrl":null,"url":null,"abstract":"JavaScript is the most popular language for client-side web application development. Some open-source tools provide frameworks for building JavaScript automation test. Developers can create and maintain automate test scripts with these tools. However, they will waste a lot of time to create and maintain test scripts because these are manual activities. This research presents a tool for generating unit test modules for JavaScript to meet statement coverage criteria. The tool can generate test cases by analyzing and instrument source code, generate test cases with random data based on type of parameters, execute the test cases, evaluate coverage, regenerate as well as re-execute until it reaches a target level of statement coverage, and then provide coverage report.","PeriodicalId":331610,"journal":{"name":"2014 11th International Joint Conference on Computer Science and Software Engineering (JCSSE)","volume":"19 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2014-05-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Tool for generating test module for JavaScript based on statement coverage criteria\",\"authors\":\"Pannawat Janthong, T. Suwannasart\",\"doi\":\"10.1109/JCSSE.2014.6841890\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"JavaScript is the most popular language for client-side web application development. Some open-source tools provide frameworks for building JavaScript automation test. Developers can create and maintain automate test scripts with these tools. However, they will waste a lot of time to create and maintain test scripts because these are manual activities. This research presents a tool for generating unit test modules for JavaScript to meet statement coverage criteria. The tool can generate test cases by analyzing and instrument source code, generate test cases with random data based on type of parameters, execute the test cases, evaluate coverage, regenerate as well as re-execute until it reaches a target level of statement coverage, and then provide coverage report.\",\"PeriodicalId\":331610,\"journal\":{\"name\":\"2014 11th International Joint Conference on Computer Science and Software Engineering (JCSSE)\",\"volume\":\"19 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2014-05-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2014 11th International Joint Conference on Computer Science and Software Engineering (JCSSE)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/JCSSE.2014.6841890\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2014 11th International Joint Conference on Computer Science and Software Engineering (JCSSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/JCSSE.2014.6841890","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

JavaScript是客户端web应用程序开发中最流行的语言。一些开源工具提供了构建JavaScript自动化测试的框架。开发人员可以使用这些工具创建和维护自动化测试脚本。然而,他们将浪费大量的时间来创建和维护测试脚本,因为这些都是手工活动。这项研究提出了一个为JavaScript生成单元测试模块以满足语句覆盖标准的工具。该工具可以通过分析和测试源代码来生成测试用例,基于参数类型的随机数据生成测试用例,执行测试用例,评估覆盖率,重新生成以及重新执行,直到它达到语句覆盖率的目标级别,然后提供覆盖率报告。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Tool for generating test module for JavaScript based on statement coverage criteria
JavaScript is the most popular language for client-side web application development. Some open-source tools provide frameworks for building JavaScript automation test. Developers can create and maintain automate test scripts with these tools. However, they will waste a lot of time to create and maintain test scripts because these are manual activities. This research presents a tool for generating unit test modules for JavaScript to meet statement coverage criteria. The tool can generate test cases by analyzing and instrument source code, generate test cases with random data based on type of parameters, execute the test cases, evaluate coverage, regenerate as well as re-execute until it reaches a target level of statement coverage, and then provide coverage report.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信