Automated model-based test generation presents a viable alternative to the costly manual test creation currently employed for regression testing of web apps. However, existing model inference techniques rely on threshold-based whole-page comparison to establish state equivalence, which cannot reliably identify near-duplicate web pages in modern web apps. Consequently, existing techniques produce inadequate models for dynamic web apps, and fragile test oracles, rendering the generated regression test suites ineffective. We propose a model-based test generation technique, FRAGGEN, that eliminates the need for thresholds, by employing a novel state abstraction based on page fragmentation to establish state equivalence. FRAGGEN also uses fine-grained page fragment analysis to diversify state exploration and generate reliable test oracles. Our evaluation shows that FRAGGEN outperforms existing whole-page techniques by detecting more near-duplicates, inferring better web app models and generating test suites that are better suited for regression testing. On a dataset of 86,165 state-pairs, FRAGGEN detected 123% more near-duplicates on average compared to whole-page techniques. The crawl models inferred by FRAGGEN have 62% more precision and 70% more recall on average. FRAGGEN also generates reliable regression test suites with test actions that have nearly 100% success rate on the same version of the web app even if the execution environment is varied. The test oracles generated by FRAGGEN can detect 98.7% of the visible changes in web pages while being highly robust, making them suitable for regression testing.
Web通信已成为移动应用程序不可或缺的特性。然而,目前尚不清楚这些应用程序传输了哪些数据,传输给了谁,以及这种传输会产生什么后果。我们从安全的角度分析了移动应用程序中的Web通信。我们首先手动研究了160个Android应用程序,以确定常用的通信库,并了解它们在这些应用程序中的使用方式。然后,我们开发了一个工具来静态识别应用程序中使用的Web API URL,并恢复JSON数据模式,包括每个参数的类型和值。我们提取了3,376个应用程序中使用的9,714个不同的Web API URL。我们发现开发人员经常使用java.net包进行网络通信,但是,许多应用程序中也使用了OkHttp等第三方库。我们发现,不安全的HTTP连接在闭源应用程序中的普遍程度是开源应用程序的七倍,并且嵌入式SQL和JavaScript代码在500多个不同的应用程序中用于Web通信。这一发现是毁灭性的;它使数十亿用户和API服务提供商容易受到攻击。
Software Product Line for Metaverse: Preliminary Results
Metaverse是通过互联网基础设施相互连接的延展实境应用程序(XR应用程序)网络,允许网络用户,系统和设备访问它们。针对XR应用程序实施解决方案是非常具有挑战性的,因为需要解决的问题非常复杂:多个用户使用非传统的输入和输出设备,需要解决的硬件平台不同,交互速率高,以及实验性交互技术等问题。因此,这项工作的目的是提出一种基于软件产品线(SPL)的方法来支持Web XR应用程序的开发。更具体地说,我们定义了一个表示相似性和变量的功能模型(域分析);我们定义了一个由通用和可重用软件工件组成的核心(域项目);我们开发了一个接口来支持Web XR应用程序系列的实例化,名为MetaSee Features Model Editor(域实现)。这种方法与MetaSEE架构的一个组件(用于软件工程教育的元宇宙)集成。初步评估发现,从Web XR应用程序多模态交互的复杂性来看,特征模型具有概念上的一致性。作为未来的工作,特征模型和工件将随着改进而增加,并将进行大量参与者的评估。
Technical University of Munich(慕尼黑工业大学);Università degli Studi di Napoli Federico II(那不勒斯费德里科二世大学);University of St. Gallen(圣加仑大学);Università della Svizzera italiana(瑞士意大利语区大学)