@autoweb/domain-models 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -0
- package/index.d.ts +594 -0
- package/index.js +3 -0
- package/package.json +55 -0
- package/python-models/__init__.py +68 -0
- package/python-models/action-configs.py +1112 -0
- package/python-models/build/lib/floweb_models/__init__.py +194 -0
- package/python-models/build/lib/floweb_models/action_configs.py +783 -0
- package/python-models/build/lib/floweb_models/debug.py +209 -0
- package/python-models/build/lib/floweb_models/debug_models.py +141 -0
- package/python-models/build/lib/floweb_models/environment.py +158 -0
- package/python-models/build/lib/floweb_models/execution_results.py +208 -0
- package/python-models/build/lib/floweb_models/flow.py +345 -0
- package/python-models/build/lib/floweb_models/flow_validation.py +316 -0
- package/python-models/build/lib/floweb_models/parallel_execution.py +258 -0
- package/python-models/build/lib/floweb_models/performance_test.py +605 -0
- package/python-models/build/lib/floweb_models/websocket_communication.py +697 -0
- package/python-models/debug.py +209 -0
- package/python-models/dist/floweb_domain_models-1.0.0-py3-none-any.whl +0 -0
- package/python-models/environment.py +158 -0
- package/python-models/execution-results.py +208 -0
- package/python-models/flow-validation.py +316 -0
- package/python-models/flow.py +369 -0
- package/python-models/floweb_domain_models.egg-info/PKG-INFO +9 -0
- package/python-models/floweb_domain_models.egg-info/SOURCES.txt +16 -0
- package/python-models/floweb_domain_models.egg-info/dependency_links.txt +1 -0
- package/python-models/floweb_domain_models.egg-info/requires.txt +1 -0
- package/python-models/floweb_domain_models.egg-info/top_level.txt +1 -0
- package/python-models/floweb_models/__init__.py +194 -0
- package/python-models/floweb_models/__pycache__/__init__.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/action_configs.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/debug.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/debug_models.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/environment.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/execution_results.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/flow.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/flow_validation.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/parallel_execution.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/performance_test.cpython-312.pyc +0 -0
- package/python-models/floweb_models/__pycache__/websocket_communication.cpython-312.pyc +0 -0
- package/python-models/floweb_models/action_configs.py +1062 -0
- package/python-models/floweb_models/debug.py +209 -0
- package/python-models/floweb_models/debug_models.py +141 -0
- package/python-models/floweb_models/environment.py +158 -0
- package/python-models/floweb_models/execution_results.py +208 -0
- package/python-models/floweb_models/flow.py +345 -0
- package/python-models/floweb_models/flow_validation.py +316 -0
- package/python-models/floweb_models/parallel_execution.py +229 -0
- package/python-models/floweb_models/performance_test.py +605 -0
- package/python-models/floweb_models/websocket_communication.py +697 -0
- package/python-models/floweb_models.egg-info/PKG-INFO +9 -0
- package/python-models/floweb_models.egg-info/SOURCES.txt +16 -0
- package/python-models/floweb_models.egg-info/dependency_links.txt +1 -0
- package/python-models/floweb_models.egg-info/requires.txt +1 -0
- package/python-models/floweb_models.egg-info/top_level.txt +1 -0
- package/python-models/parallel-execution.py +475 -0
- package/python-models/performance-test.py +605 -0
- package/python-models/setup.py +13 -0
- package/python-models/websocket-communication.py +697 -0
- package/schemas/action-configs.json +1501 -0
- package/schemas/debug.json +203 -0
- package/schemas/environment.json +165 -0
- package/schemas/execution-results.json +209 -0
- package/schemas/flow-validation.json +311 -0
- package/schemas/flow.json +381 -0
- package/schemas/parallel-execution.json +219 -0
- package/schemas/performance-test.json +600 -0
- package/schemas/websocket-communication.json +1118 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://floweb.com/schemas/parallel-execution.json",
|
|
4
|
+
"title": "Parallel Execution Models",
|
|
5
|
+
"description": "Schema for parallel test execution requests and results",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"parallelExecution": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"requests": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"$ref": "#/$defs/ParallelTestsRequest"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"results": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"$ref": "#/$defs/ParallelTestsResult"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"$defs": {
|
|
27
|
+
"FlowExecutionRequest": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"description": "Request to execute a single test/flow",
|
|
30
|
+
"properties": {
|
|
31
|
+
"flow": {
|
|
32
|
+
"$ref": "flow.json#/$defs/Flow",
|
|
33
|
+
"description": "Flow to execute with all required fields"
|
|
34
|
+
},
|
|
35
|
+
"mode": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["full", "partial"],
|
|
38
|
+
"default": "full",
|
|
39
|
+
"description": "Execution mode"
|
|
40
|
+
},
|
|
41
|
+
"recording": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"description": "Recording configuration",
|
|
44
|
+
"additionalProperties": true
|
|
45
|
+
},
|
|
46
|
+
"metadata": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"description": "Additional test metadata",
|
|
49
|
+
"additionalProperties": true,
|
|
50
|
+
"default": {}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["flow"]
|
|
54
|
+
},
|
|
55
|
+
"FlowExecutionResult": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Result of a single test execution",
|
|
58
|
+
"properties": {
|
|
59
|
+
"flow_id": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "ID of the executed flow"
|
|
62
|
+
},
|
|
63
|
+
"flow_name": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Name of the executed flow"
|
|
66
|
+
},
|
|
67
|
+
"success": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "Whether the test passed"
|
|
70
|
+
},
|
|
71
|
+
"status": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": ["completed", "error", "stopped", "running", "pending"],
|
|
74
|
+
"description": "Execution status"
|
|
75
|
+
},
|
|
76
|
+
"total_actions": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 0,
|
|
79
|
+
"description": "Total actions in the flow"
|
|
80
|
+
},
|
|
81
|
+
"executed_actions": {
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"minimum": 0,
|
|
84
|
+
"description": "Number of actions executed"
|
|
85
|
+
},
|
|
86
|
+
"successful_actions": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 0,
|
|
89
|
+
"description": "Number of successful actions"
|
|
90
|
+
},
|
|
91
|
+
"duration_seconds": {
|
|
92
|
+
"type": "number",
|
|
93
|
+
"minimum": 0,
|
|
94
|
+
"description": "Total execution time in seconds"
|
|
95
|
+
},
|
|
96
|
+
"report": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"description": "Full flow report",
|
|
99
|
+
"additionalProperties": true
|
|
100
|
+
},
|
|
101
|
+
"error": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Error message if failed"
|
|
104
|
+
},
|
|
105
|
+
"metadata": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"description": "Additional test metadata",
|
|
108
|
+
"additionalProperties": true,
|
|
109
|
+
"default": {}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": ["flow_id", "flow_name", "success", "status", "total_actions", "executed_actions", "successful_actions", "duration_seconds", "report"]
|
|
113
|
+
},
|
|
114
|
+
"ParallelTestsRequest": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"description": "Request to execute multiple tests in parallel",
|
|
117
|
+
"properties": {
|
|
118
|
+
"tests": {
|
|
119
|
+
"type": "array",
|
|
120
|
+
"items": {
|
|
121
|
+
"$ref": "#/$defs/FlowExecutionRequest"
|
|
122
|
+
},
|
|
123
|
+
"description": "List of tests to execute"
|
|
124
|
+
},
|
|
125
|
+
"data": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"description": "Shared data containing environment and globalVariables for all tests",
|
|
128
|
+
"additionalProperties": true
|
|
129
|
+
},
|
|
130
|
+
"max_parallel": {
|
|
131
|
+
"type": "integer",
|
|
132
|
+
"minimum": 1,
|
|
133
|
+
"maximum": 50,
|
|
134
|
+
"default": 10,
|
|
135
|
+
"description": "Maximum number of parallel executions"
|
|
136
|
+
},
|
|
137
|
+
"stop_on_failure": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"default": false,
|
|
140
|
+
"description": "Stop all tests if one fails"
|
|
141
|
+
},
|
|
142
|
+
"cleanup_after": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"default": true,
|
|
145
|
+
"description": "Cleanup resources after execution"
|
|
146
|
+
},
|
|
147
|
+
"browser_mode": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"enum": ["headful", "headless"],
|
|
150
|
+
"default": "headful",
|
|
151
|
+
"description": "Browser mode"
|
|
152
|
+
},
|
|
153
|
+
"browser": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"enum": ["chrome", "firefox", "safari", "edge"],
|
|
156
|
+
"default": "chrome",
|
|
157
|
+
"description": "Browser to use for execution"
|
|
158
|
+
},
|
|
159
|
+
"incognito": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"default": false,
|
|
162
|
+
"description": "Run tests in incognito/private mode"
|
|
163
|
+
},
|
|
164
|
+
"max_retries": {
|
|
165
|
+
"type": "integer",
|
|
166
|
+
"minimum": 0,
|
|
167
|
+
"maximum": 10,
|
|
168
|
+
"default": 3,
|
|
169
|
+
"description": "Maximum retries for transient failures"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["tests"]
|
|
173
|
+
},
|
|
174
|
+
"ParallelTestsResult": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"description": "Result of parallel test execution",
|
|
177
|
+
"properties": {
|
|
178
|
+
"total_tests": {
|
|
179
|
+
"type": "integer",
|
|
180
|
+
"minimum": 0,
|
|
181
|
+
"description": "Total number of tests"
|
|
182
|
+
},
|
|
183
|
+
"passed_tests": {
|
|
184
|
+
"type": "integer",
|
|
185
|
+
"minimum": 0,
|
|
186
|
+
"description": "Number of passed tests"
|
|
187
|
+
},
|
|
188
|
+
"failed_tests": {
|
|
189
|
+
"type": "integer",
|
|
190
|
+
"minimum": 0,
|
|
191
|
+
"description": "Number of failed tests"
|
|
192
|
+
},
|
|
193
|
+
"skipped_tests": {
|
|
194
|
+
"type": "integer",
|
|
195
|
+
"minimum": 0,
|
|
196
|
+
"default": 0,
|
|
197
|
+
"description": "Number of skipped tests"
|
|
198
|
+
},
|
|
199
|
+
"total_duration_seconds": {
|
|
200
|
+
"type": "number",
|
|
201
|
+
"minimum": 0,
|
|
202
|
+
"description": "Total execution time"
|
|
203
|
+
},
|
|
204
|
+
"results": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"items": {
|
|
207
|
+
"$ref": "#/$defs/FlowExecutionResult"
|
|
208
|
+
},
|
|
209
|
+
"description": "Individual test results"
|
|
210
|
+
},
|
|
211
|
+
"success": {
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"description": "Overall success status"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": ["total_tests", "passed_tests", "failed_tests", "total_duration_seconds", "results", "success"]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|