# tricentis/simulation architecture

> Architecture diagram of the GitHub repository tricentis/simulation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tricentis/simulation
- Repository: https://github.com/tricentis/simulation

## Overview

This repository is a catalog of Tricentis Simulation configuration examples, not the simulation engine. The documented workflow is to use an example to define a virtual API or service so testing can continue when a dependency is unavailable. The tree also exposes scenario examples and feature demonstrations, plus a JSON schema for YAML editor support. Source excerpts were not provided, so relationships below rely only on README statements; the individual configurations’ runtime behavior is not verified here.

Main entry points: [`examples`](https://github.com/tricentis/simulation/tree/main/examples) (Simulation examples), [`schema.json`](https://github.com/tricentis/simulation/blob/main/schema.json) (YAML JSON schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scenarios["Service scenarios"]
  node_scenario_examples["Simulation examples"]
  node_shopping_cart["Shopping cart<br/>[simpleState.yml]"]
  node_car_service["Car service<br/>[carService.yml]"]
  node_data_driven["Data-driven service"]
  node_dynamic_resource["Dynamic resource"]
  node_payment_history["Payment history"]
  node_rate_limiting["Rate limiting<br/>[rateLimiting.yml]"]
end

subgraph group_features["Configuration features"]
  node_feature_examples["Feature demonstrations"]
  node_expressions["Expressions<br/>[try.yml]"]
  node_tree_feature["Tree configuration<br/>[tree.yml]"]
  node_use_feature["Template use<br/>[use.yml]"]
  node_variables["Variables<br/>[variables.yml]"]
  node_http_feature["HTTP configuration<br/>[http.yml]"]
end

subgraph group_support["Authoring support"]
  node_schema["YAML JSON schema<br/>[schema.json]"]
end

node_tester(("Testers and developers"))
node_virtual_dependency["Virtual API or service"]

node_tester -->|"uses examples"| node_scenario_examples
node_scenario_examples -->|"simulates dependency"| node_virtual_dependency
node_tester -->|"configures editor"| node_schema

click node_scenario_examples "https://github.com/tricentis/simulation/tree/main/examples"
click node_shopping_cart "https://github.com/tricentis/simulation/blob/main/examples/shoppingCart/simpleState.yml"
click node_car_service "https://github.com/tricentis/simulation/blob/main/examples/carServiceDemo/carService.yml"
click node_data_driven "https://github.com/tricentis/simulation/blob/main/examples/dataDriven/DataDrivenMagic.yaml"
click node_dynamic_resource "https://github.com/tricentis/simulation/blob/main/examples/dynamicResource/dynamic_resource.yml"
click node_payment_history "https://github.com/tricentis/simulation/blob/main/examples/paymentsHistory/TRI-PaymentService.yml"
click node_rate_limiting "https://github.com/tricentis/simulation/blob/main/examples/rateLimiting/rateLimiting.yml"
click node_feature_examples "https://github.com/tricentis/simulation/tree/main/features"
click node_expressions "https://github.com/tricentis/simulation/blob/main/features/expressions/try/try.yml"
click node_tree_feature "https://github.com/tricentis/simulation/blob/main/features/tree/tree.yml"
click node_use_feature "https://github.com/tricentis/simulation/blob/main/features/use/use.yml"
click node_variables "https://github.com/tricentis/simulation/blob/main/features/variables/variables.yml"
click node_http_feature "https://github.com/tricentis/simulation/blob/main/features/http.yml"
click node_schema "https://github.com/tricentis/simulation/blob/main/schema.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scenario_examples,node_shopping_cart,node_car_service,node_data_driven,node_dynamic_resource,node_payment_history,node_rate_limiting toneBlue
class node_feature_examples,node_expressions,node_tree_feature,node_use_feature,node_variables,node_http_feature toneAmber
class node_schema,node_virtual_dependency toneMint
class node_tester toneIndigo
```

## Components

### Service scenarios

- [Simulation examples](https://github.com/tricentis/simulation/tree/main/examples): `examples`
- [Shopping cart](https://github.com/tricentis/simulation/blob/main/examples/shoppingCart/simpleState.yml): `examples/shoppingCart/simpleState.yml`
- [Car service](https://github.com/tricentis/simulation/blob/main/examples/carServiceDemo/carService.yml): `examples/carServiceDemo/carService.yml`
- [Data-driven service](https://github.com/tricentis/simulation/blob/main/examples/dataDriven/DataDrivenMagic.yaml): `examples/dataDriven/DataDrivenMagic.yaml`
- [Dynamic resource](https://github.com/tricentis/simulation/blob/main/examples/dynamicResource/dynamic_resource.yml): `examples/dynamicResource/dynamic_resource.yml`
- [Payment history](https://github.com/tricentis/simulation/blob/main/examples/paymentsHistory/TRI-PaymentService.yml): `examples/paymentsHistory/TRI-PaymentService.yml`
- [Rate limiting](https://github.com/tricentis/simulation/blob/main/examples/rateLimiting/rateLimiting.yml): `examples/rateLimiting/rateLimiting.yml`

### Configuration features

- [Feature demonstrations](https://github.com/tricentis/simulation/tree/main/features): `features`
- [Expressions](https://github.com/tricentis/simulation/blob/main/features/expressions/try/try.yml): `features/expressions/try/try.yml`
- [Tree configuration](https://github.com/tricentis/simulation/blob/main/features/tree/tree.yml): `features/tree/tree.yml`
- [Template use](https://github.com/tricentis/simulation/blob/main/features/use/use.yml): `features/use/use.yml`
- [Variables](https://github.com/tricentis/simulation/blob/main/features/variables/variables.yml): `features/variables/variables.yml`
- [HTTP configuration](https://github.com/tricentis/simulation/blob/main/features/http.yml): `features/http.yml`

### Authoring support

- [YAML JSON schema](https://github.com/tricentis/simulation/blob/main/schema.json): `schema.json`

### Other components

- **Testers and developers**
- **Virtual API or service**

## Connections

- Testers and developers → Simulation examples: uses examples (evidence: `README.md`)
- Simulation examples → Virtual API or service: simulates dependency (evidence: `README.md`)
- Testers and developers → YAML JSON schema: configures editor (evidence: `README.md`)
