Flexiberry
Features
Docs
Examples
Get Started
GitHub
Open App
Preset:
Swagger Petstore Flow
Kitchen Sink Demo
Secure Auth Decryption
Runner Mode:
Dry (Simulated)
Live (Fetch)
Format
Run Script
scratchpad.berry
## --------------------------------------------------------- ## SWAGGER PETSTORE SEQUENCE EXAMPLE ## --------------------------------------------------------- Var @UAT Petstore Settings - baseUrl: 'https://petstore.swagger.io/v2' - petId: '123456789' Api POST #addPet Add a new pet to the store Url {{baseUrl}}/pet Header - Content-Type: 'application/json' Body JSON ` { "id": {{petId}}, "name": "BerryDoggie", "status": "available" } ` Api GET #getPetById Find pet by ID Url {{baseUrl}}/pet/{{petId}} Header - Accept: 'application/json' Task Add Pet and Find Sequence Step Call Api addPet Capture - createdId: response.id - createdName: response.name Check - $.status == 200 OR $.status == 201 - $.id != null Step Call Api getPetById Params - petId: Step.1.createdId Capture - petName: response.name Check - $.status == 200 - $.name == Step.1.createdName
Console Output
Execution Summary
Terminal idle. Click "Run Script" to start execution logs.