Elysia Tools
Mobile Navigation
Entwicklertools
FullStory: synthetische Offline-Übungen
Drei endliche Beispiele prüfen: Vorschau standardmäßig ablehnen, Feld-Positivliste, Ablaufgrenze.
Beispiele
Einträge in dieser Sammlung
Vorschau standardmäßig ablehnen
Drei consent/localPreview-Paare strikt boolesch auswerten. collectionEnabled und exportEnabled bleiben false.
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "preview-gate",
"rule": "previewAllowed = consent === true AND localPreview === true; collection and export always disabled",
"input": [
{
"consent": false,
"localPreview": true
},
{
"localPreview": true
},
{
"consent": true,
"localPreview": true
}
],
"collectionEnabled": false,
"exportEnabled": false,
"expected": [
false,
false,
true
]
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
Feld-Positivliste
Aus dem synthetischen Objekt nur count behalten, freeText und route entfernen.
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "allowlist",
"allow": [
"count"
],
"input": {
"count": 3,
"freeText": "synthetic text",
"route": "synthetic label"
},
"expected": {
"count": 3
}
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
Ablaufgrenze
Bei TTL 10 nur Alter unter 10 behalten; 0, 9, 10 und 11 prüfen.
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "expiry",
"ttl": 10,
"ages": [
0,
9,
10,
11
],
"rule": "retain only when age < ttl; relative toy units",
"expected": [
0,
1
]
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
Werkzeuge
Tools, die oft mit diesem Beispiel genutzt werden
Verwandt
Verwandte Beispielsammlungen
Verwandt