arXiv Science⌕ Search

arXiv subjects

Andrei Coman

Publications and source records attributed to Andrei Coman.

2 recordsLinked to original sources

LLM-based Generation of Diverse and Realistic Domain Model Instances

Large Language Models (LLMs) have recently been proposed to support domain modeling tasks, mostly for the completion of partial models. However, another important task is the instantiation of domain models into concrete objects, which has received little attention. Existing generators focus on structural validity, but leave aside whether instances are realistic and diverse, although only such instances are understandable for humans and useful, e.g., for teaching modeling, for model-based testing, or as training data for machine learning. To address this gap, this paper presents LIMoGen (LLM-based Instance Model Generation), an approach that generates UML object diagrams from UML class diagrams with LLMs that use feedback from the USE model validation tool to repair malformed or non-conforming instances. We compare two prompting strategies, a single instruction-based prompt and a Chain-of-Thought strategy that steers the generation toward specific unusual scenarios, such as boundary, edge, and over-constraint cases. We applied LIMoGen to ten domain models and evaluated the generated instances for validity, coverage, diversity, and realism, the latter with domain-specific checks and an LLM-as-a-judge audited by human experts. The results show that all instances are well-formed, conforming, and diverse in values and structure. Most realism problems are inconsistencies between values, which the judge largely detects, as confirmed by the experts. Furthermore, we show that these findings help improve the domain models, as uninstantiated classes suggest abstract classes, over-constraint scenarios reveal multiplicities that are too strict, and realism problems uncover implicit domain knowledge that can be encoded as additional invariants.

cs.SE↗

AMoRE: An agentic framework for end-to-end metamorphic testing of web applications

Web applications are widely used in everyday activities such as e-commerce, banking, transportation, and healthcare, therefore ensuring their reliability is essential. End-to-end testing allows developers to validate complete workflows from the user's perspective, but designing and maintaining these tests remains costly. While interaction flows can be clearly defined, determining their expected outcomes is challenging when interfaces depend on dynamic data, session state, or external services. This challenge, known as the oracle problem, can be addressed through metamorphic testing, which verifies relations between related executions instead of requiring explicit expected results. However, metamorphic relations are typically defined manually and tailored to individual pages, limiting their applicability to generic web interfaces and their scalability in the context of increasingly prevalent AI-generated code. To address these limitations, we present \emph{AMoRE} (Agentic Metamorphic Relation Explorer), an agentic tool for automatically discovering and generating metamorphic tests for websites supplied at test time. AMoRE follows a hybrid architecture that combines vision-language model-based UI exploration with deterministic test compilation, execution, and evaluation. A vision-language model explores the interface using a Set-of-Mark inventory and proposes structured metamorphic relations. These relations are then compiled into Playwright tests and evaluated through paired executions by a deterministic engine, without requiring further model calls. In a preliminary evaluation across five commercial websites, AMoRE generated and compiled 63 metamorphic relations from 100 exploration attempts, with 48 tests executing successfully.

cs.SE↗