Staging Process
What is the Staging Process?
The staging process refers to promoting a build through a sequence of environments — typically DEV → Test/QA → Staging → Production — with verification at each stage before moving to the next.
Why Staging Matters
- The staging environment closely mirrors production, allowing final validation under realistic conditions.
- It catches environment-specific issues (configuration, data, integrations) that may not appear in earlier environments.
- It provides a safe space for UAT and final sign-off before going live.
Typical Staging Activities
- Deploying the release candidate build to the staging environment.
- Running smoke tests, regression tests, and UAT.
- Performing final performance and security checks.
- Obtaining formal sign-off before promoting to production.
How a Release Moves Through the Stages
Each environment has a gate. A build only moves forward when it meets the exit criteria of the current stage, and the same build artifact is promoted rather than rebuilt for every environment.
| Stage | Who mainly works there | Exit criteria example |
|---|---|---|
| DEV | Developers | Code reviewed, unit tests pass, build created |
| Test / QA | Testers | Functional and integration tests pass, no open critical defects |
| Staging | QA, business users, operations | Smoke, regression and UAT signed off, deployment steps rehearsed |
| Production | Operations, support | Post-release checks pass, monitoring shows normal behaviour |
A Worked Example
Imagine a payment change for an online store. The build passes in QA, so release candidate 2.4.0-rc1 is deployed to staging.
- The deployment team uses the same scripts planned for production, which tests the deployment itself.
- Testers run a smoke suite: login, browse, add to cart, pay with the sandbox gateway.
- The regression suite runs overnight against staging.
- Business users complete UAT scenarios such as partial refunds.
- A defect appears only in staging: the gateway URL in staging configuration points to an old endpoint. QA never caught it because QA used a mock gateway.
- The configuration is fixed, the same artifact is redeployed, smoke tests run again, and sign-off is recorded.
This is exactly the kind of environment-specific issue staging exists to catch.
Keeping Staging Close to Production
- Same versions: operating system, runtime, database engine and web server match production.
- Same shape: load balancer, caching and background workers are present, even if smaller.
- Realistic data: production-like volume, with personal data masked or synthetic records used instead.
- Same deployment method: pipelines and infrastructure-as-code, not manual copying of files.
- Safe integrations: sandbox accounts for payment, email and SMS so no real customer is contacted.
Mistakes to Avoid
- Rebuilding the code for production, so the tested binary is not the one released.
- Letting developers hot-fix staging directly, which makes it drift away from production.
- Copying raw production data, including customer details, into a less protected environment.
- Treating staging as optional when a release is "small"; small configuration changes cause many outages.
- Skipping a rollback rehearsal.
Release-day checklist: artifact version confirmed, staging sign-off attached, rollback plan ready, monitoring dashboards open, and a named person to approve the go-live.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.