Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What is a scenario?
A scenario is a self-contained Feature that demonstrates a specific use-case for Drupal. Each scenario should start with a script that informs the use-case, actors, and functionality to showcase. A scenario will typically contain:
- Drupal entities, views and other settings
- Custom code
- Scenario data
- Theme and other design assets
Partner Demo scenario
In this example, we will step through creating a scenario called Partner Demo, a fictitious partner portal for Widget Software.
Partner Demo scenario script
The script is fairly simple:
- Chris Barker is a manager at Alpha Agency. Alpha Agency is is an enterprise-level partner for Widget Software.
- Chris logs in (chris@partner.demo/password) and sees content and events related to Alpha Agency and enterprise-level partners.
- Ryan Allen is a developer at Pixel Digital Agency. Pixel Digital is a community-level partner for Widget Software.
- Ryan logs in (ryan@partner.demo/password) and sees content and events related to Pixel Digital.
- Susan Mills is on the channel sales team at Widget Software.
- Susan logs in (susan@partner.demo/password) and sees content and events related to partners assigned to her.
Attachment | Size |
---|---|
df_enable.png | 285.34 KB |