arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1608.06549cs.SEcs.CL
收藏

基于语义相似度的Web应用测试输入主题识别

Using Semantic Similarity for Input Topic Identification in Crawling-based Web Application Testing

Jun-Wei Lin, Farn Wang

摘要:

为了自动测试Web应用程序,通常采用基于爬虫的技术来挖掘应用程序的行为模型,探索状态空间或检测违反的不变量。然而,在现有的爬虫中,用于识别输入文本字段的主题的规则,例如登录ID、密码、电子邮件、日期和电话号码,必须手动配置。此外,一种应用的规则往往不适合另一种应用。此外,当多个规则冲突并将输入文本字段与多个主题匹配时,可能难以确定哪个规则建议更好的匹配。本文提出了一种自然语言的方法来自动识别爬行过程中遇到的输入字段的主题,通过语义比较其与标注语料库中的输入字段的相似性。在我们对100个真实世界的表单进行的评估中,所提出的方法表现出与基于规则的方法相当的性能。我们的实验还表明,基于规则的方法的准确性可以提高高达19%,当与我们的方法相结合。

英文摘要:

To automatically test web applications, crawling-based techniques are usually adopted to mine the behavior models, explore the state spaces or detect the violated invariants of the applications. However, in existing crawlers, rules for identifying the topics of input text fields, such as login ids, passwords, emails, dates and phone numbers, have to be manually configured. Moreover, the rules for one application are very often not suitable for another. In addition, when several rules conflict and match an input text field to more than one topics, it can be difficult to determine which rule suggests a better match. This paper presents a natural-language approach to automatically identify the topics of encountered input fields during crawling by semantically comparing their similarities with the input fields in labeled corpus. In our evaluation with 100 real-world forms, the proposed approach demonstrated comparable performance to the rule-based one. Our experiments also show that the accuracy of the rule-based approach can be improved by up to 19% when integrated with our approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑