
Actor Testing
No credit card required

Actor Testing
No credit card required
Test your actors with varying inputs and expected outputs, duplicates, bad output fields, or unexpected log messages using Jasmine
You can access the Actor Testing programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1{
2 "openapi": "3.0.1",
3 "info": {
4 "version": "0.0",
5 "x-build-id": "oPvWNyTli8axAT1al"
6 },
7 "servers": [
8 {
9 "url": "https://api.apify.com/v2"
10 }
11 ],
12 "paths": {
13 "/acts/pocesar~actor-testing/run-sync-get-dataset-items": {
14 "post": {
15 "operationId": "run-sync-get-dataset-items-pocesar-actor-testing",
16 "x-openai-isConsequential": false,
17 "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18 "tags": [
19 "Run Actor"
20 ],
21 "requestBody": {
22 "required": true,
23 "content": {
24 "application/json": {
25 "schema": {
26 "$ref": "#/components/schemas/inputSchema"
27 }
28 }
29 }
30 },
31 "parameters": [
32 {
33 "name": "token",
34 "in": "query",
35 "required": true,
36 "schema": {
37 "type": "string"
38 },
39 "description": "Enter your Apify token here"
40 }
41 ],
42 "responses": {
43 "200": {
44 "description": "OK"
45 }
46 }
47 }
48 },
49 "/acts/pocesar~actor-testing/runs": {
50 "post": {
51 "operationId": "runs-sync-pocesar-actor-testing",
52 "x-openai-isConsequential": false,
53 "summary": "Executes an Actor and returns information about the initiated run in response.",
54 "tags": [
55 "Run Actor"
56 ],
57 "requestBody": {
58 "required": true,
59 "content": {
60 "application/json": {
61 "schema": {
62 "$ref": "#/components/schemas/inputSchema"
63 }
64 }
65 }
66 },
67 "parameters": [
68 {
69 "name": "token",
70 "in": "query",
71 "required": true,
72 "schema": {
73 "type": "string"
74 },
75 "description": "Enter your Apify token here"
76 }
77 ],
78 "responses": {
79 "200": {
80 "description": "OK",
81 "content": {
82 "application/json": {
83 "schema": {
84 "$ref": "#/components/schemas/runsResponseSchema"
85 }
86 }
87 }
88 }
89 }
90 }
91 },
92 "/acts/pocesar~actor-testing/run-sync": {
93 "post": {
94 "operationId": "run-sync-pocesar-actor-testing",
95 "x-openai-isConsequential": false,
96 "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97 "tags": [
98 "Run Actor"
99 ],
100 "requestBody": {
101 "required": true,
102 "content": {
103 "application/json": {
104 "schema": {
105 "$ref": "#/components/schemas/inputSchema"
106 }
107 }
108 }
109 },
110 "parameters": [
111 {
112 "name": "token",
113 "in": "query",
114 "required": true,
115 "schema": {
116 "type": "string"
117 },
118 "description": "Enter your Apify token here"
119 }
120 ],
121 "responses": {
122 "200": {
123 "description": "OK"
124 }
125 }
126 }
127 }
128 },
129 "components": {
130 "schemas": {
131 "inputSchema": {
132 "type": "object",
133 "properties": {
134 "testSpec": {
135 "title": "Test spec",
136 "type": "string",
137 "description": "Write your tests here like you would in a .spec jasmine file. Refer to the README for matchers information"
138 },
139 "testName": {
140 "title": "Test Name",
141 "type": "string",
142 "description": "Pick a descriptive name for this test suite. Otherwise the task name will be used",
143 "default": ""
144 },
145 "defaultTimeout": {
146 "title": "Default timeout",
147 "type": "integer",
148 "description": "Changes the default timeout for each individual test, in milliseconds. Defaults to 5 minutes",
149 "default": 1200000
150 },
151 "verboseLogs": {
152 "title": "Verbose Log",
153 "type": "boolean",
154 "description": "Print progress information",
155 "default": true
156 },
157 "abortRuns": {
158 "title": "Abort runs",
159 "type": "boolean",
160 "description": "Aborts the underlying actor runs upon aborting this actor as well",
161 "default": true
162 },
163 "customData": {
164 "title": "Custom data",
165 "type": "object",
166 "description": "Anything you may want to access through input.customData inside tests",
167 "default": {}
168 },
169 "filter": {
170 "title": "Filter tests",
171 "type": "array",
172 "description": "You can filter tests providing their names here",
173 "default": [],
174 "items": {
175 "type": "string"
176 }
177 },
178 "email": {
179 "title": "Email notification",
180 "type": "string",
181 "description": "Receive failing tests on the provided email",
182 "default": ""
183 },
184 "slackToken": {
185 "title": "Slack token",
186 "type": "string",
187 "description": "Slack token"
188 },
189 "retryFailedTests": {
190 "title": "Retry failed tests",
191 "type": "boolean",
192 "description": "Retry failed tests one more time",
193 "default": false
194 },
195 "slackChannel": {
196 "title": "Slack channel",
197 "type": "string",
198 "description": "Slack channel"
199 },
200 "slackPrefix": {
201 "title": "Slack prefix",
202 "type": "string",
203 "description": "This string will be prepended to all slack messages"
204 },
205 "token": {
206 "title": "Token",
207 "type": "string",
208 "description": "Optional account token"
209 }
210 }
211 },
212 "runsResponseSchema": {
213 "type": "object",
214 "properties": {
215 "data": {
216 "type": "object",
217 "properties": {
218 "id": {
219 "type": "string"
220 },
221 "actId": {
222 "type": "string"
223 },
224 "userId": {
225 "type": "string"
226 },
227 "startedAt": {
228 "type": "string",
229 "format": "date-time",
230 "example": "2025-01-08T00:00:00.000Z"
231 },
232 "finishedAt": {
233 "type": "string",
234 "format": "date-time",
235 "example": "2025-01-08T00:00:00.000Z"
236 },
237 "status": {
238 "type": "string",
239 "example": "READY"
240 },
241 "meta": {
242 "type": "object",
243 "properties": {
244 "origin": {
245 "type": "string",
246 "example": "API"
247 },
248 "userAgent": {
249 "type": "string"
250 }
251 }
252 },
253 "stats": {
254 "type": "object",
255 "properties": {
256 "inputBodyLen": {
257 "type": "integer",
258 "example": 2000
259 },
260 "rebootCount": {
261 "type": "integer",
262 "example": 0
263 },
264 "restartCount": {
265 "type": "integer",
266 "example": 0
267 },
268 "resurrectCount": {
269 "type": "integer",
270 "example": 0
271 },
272 "computeUnits": {
273 "type": "integer",
274 "example": 0
275 }
276 }
277 },
278 "options": {
279 "type": "object",
280 "properties": {
281 "build": {
282 "type": "string",
283 "example": "latest"
284 },
285 "timeoutSecs": {
286 "type": "integer",
287 "example": 300
288 },
289 "memoryMbytes": {
290 "type": "integer",
291 "example": 1024
292 },
293 "diskMbytes": {
294 "type": "integer",
295 "example": 2048
296 }
297 }
298 },
299 "buildId": {
300 "type": "string"
301 },
302 "defaultKeyValueStoreId": {
303 "type": "string"
304 },
305 "defaultDatasetId": {
306 "type": "string"
307 },
308 "defaultRequestQueueId": {
309 "type": "string"
310 },
311 "buildNumber": {
312 "type": "string",
313 "example": "1.0.0"
314 },
315 "containerUrl": {
316 "type": "string"
317 },
318 "usage": {
319 "type": "object",
320 "properties": {
321 "ACTOR_COMPUTE_UNITS": {
322 "type": "integer",
323 "example": 0
324 },
325 "DATASET_READS": {
326 "type": "integer",
327 "example": 0
328 },
329 "DATASET_WRITES": {
330 "type": "integer",
331 "example": 0
332 },
333 "KEY_VALUE_STORE_READS": {
334 "type": "integer",
335 "example": 0
336 },
337 "KEY_VALUE_STORE_WRITES": {
338 "type": "integer",
339 "example": 1
340 },
341 "KEY_VALUE_STORE_LISTS": {
342 "type": "integer",
343 "example": 0
344 },
345 "REQUEST_QUEUE_READS": {
346 "type": "integer",
347 "example": 0
348 },
349 "REQUEST_QUEUE_WRITES": {
350 "type": "integer",
351 "example": 0
352 },
353 "DATA_TRANSFER_INTERNAL_GBYTES": {
354 "type": "integer",
355 "example": 0
356 },
357 "DATA_TRANSFER_EXTERNAL_GBYTES": {
358 "type": "integer",
359 "example": 0
360 },
361 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
362 "type": "integer",
363 "example": 0
364 },
365 "PROXY_SERPS": {
366 "type": "integer",
367 "example": 0
368 }
369 }
370 },
371 "usageTotalUsd": {
372 "type": "number",
373 "example": 0.00005
374 },
375 "usageUsd": {
376 "type": "object",
377 "properties": {
378 "ACTOR_COMPUTE_UNITS": {
379 "type": "integer",
380 "example": 0
381 },
382 "DATASET_READS": {
383 "type": "integer",
384 "example": 0
385 },
386 "DATASET_WRITES": {
387 "type": "integer",
388 "example": 0
389 },
390 "KEY_VALUE_STORE_READS": {
391 "type": "integer",
392 "example": 0
393 },
394 "KEY_VALUE_STORE_WRITES": {
395 "type": "number",
396 "example": 0.00005
397 },
398 "KEY_VALUE_STORE_LISTS": {
399 "type": "integer",
400 "example": 0
401 },
402 "REQUEST_QUEUE_READS": {
403 "type": "integer",
404 "example": 0
405 },
406 "REQUEST_QUEUE_WRITES": {
407 "type": "integer",
408 "example": 0
409 },
410 "DATA_TRANSFER_INTERNAL_GBYTES": {
411 "type": "integer",
412 "example": 0
413 },
414 "DATA_TRANSFER_EXTERNAL_GBYTES": {
415 "type": "integer",
416 "example": 0
417 },
418 "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
419 "type": "integer",
420 "example": 0
421 },
422 "PROXY_SERPS": {
423 "type": "integer",
424 "example": 0
425 }
426 }
427 }
428 }
429 }
430 }
431 }
432 }
433 }
434}
Actor Testing OpenAPI definition
OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for Actor Testing from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients:
Actor Metrics
2 monthly users
-
10 bookmarks
86% runs succeeded
Created in Dec 2020
Modified 2 days ago