blackfire/player

A powerful web crawler and web scraper with Blackfire support

Installs: 14 622

Dependents: 0

Suggesters: 0

Security: 0

Stars: 485

Watchers: 37

Forks: 64

Open Issues: 15

Type:project

v1.31.0 2023-04-19 10:58 UTC

README

Blackfire Player is a powerful performance testing application. It provides a nice DSL to crawl HTTP services, assert responses, and extract data from HTML/XML/JSON responses.

Read more about how to download and use Blackfire Player.

Usage

Use blackfire-player with Docker. Working directory is expected to be at /app in the container.

Example running a scenario located in my-scenario.bkf file:

docker run --rm -it -e BLACKFIRE_CLIENT_ID -e BLACKFIRE_CLIENT_TOKEN -v "`pwd`:/app" blackfire/player run my-scenario.bkf

Note

BLACKFIRE_CLIENT_ID and BLACKFIRE_CLIENT_TOKEN environment variables need to be properly exposed from the host in order to be able to use the Blackfire Profiler integration.

You may also add a shell alias (in .bashrc, .zshrc, etc.) for convenience.

alias blackfire-player=docker run --rm -it -e BLACKFIRE_CLIENT_ID -e BLACKFIRE_CLIENT_TOKEN -v "`pwd`:/app" blackfire/player

Then, after sourcing your RC file, you can use blackfire-player as if it was the binary itself:

blackfire-player --version
blackfire-player list
blackfire-player run my-scenario.bkf