Your application's critical user journeys can be protected by assessing their performance regularly.
Blackfire provides an easy way to describe custom scenarios and when evaluated, Blackfire will trigger a profile for every URL described in all the steps and scenarios.
As for all profiles, the matching assertions will be evaluated, and all the results will be grouped in a convenient report.
Scenarios are written in .bkf files using the Blackfire Player DSL:
1 2 3 4 5 6 7 8 9 10 11
name "Website Pages Check"
scenario
visit url('/pricing')
name 'Pricing page'
expect status_code() == 200
assert metrics.sql.queries.count < 10
visit url('/docs/introduction')
name 'Documentation'
expect status_code() == 200
An online validator can help you validate
the syntax of your .bkf files.
Explore the full Player DSL, including reusable blocks, variables, form submission, and more.