Test Chamber 19 walkthrough – Portal

Quick answer: Guide the energy pellet, ride the moving platform through the chamber, then escape the fire pit with portals and sneak through the maintenance areas behind the test chambers.
Show walkthrough (story spoilers)
How to start
Test Chamber 19 is the last test, right after Test Chamber 18. GLaDOS promises cake and a party at the end. The main new parts are a moving platform, energy pellets and pools of goo.
The pellet at the start
At the end of the first hallway, use the tilted panels to bounce the energy pellet into its catcher. If it keeps missing, wait until the pellet passes next to the catcher, then put a portal on the wall under the emitter. Do not stand in the pellet’s path, as one hit kills you.
Ride the moving platform
Step onto the moving platform and duck under the metal pipe as you pass. Jump to the corner platform, then back on when the platform comes round to the far side. Press the switch as soon as you can, then shoot a portal past the door that opens and go through it from a nearby wall.
Through the last rooms
Bounce the next pellet with a portal near the ceiling at the end of the hall and one where the pellet hits the wall. Keep riding the platform and use portals to pass through the walls in your way. At the end, step through a portal onto the platform as it slides past.
The fire pit
Instead of a party, the platform carries you into a fire pit and GLaDOS tries to burn you. You must leave the platform with portals before it reaches the flames. See how to escape the fire pit.
Behind the scenes
Past the fire pit you are in the maintenance areas behind the chambers. The stairs collapse as you climb them, so use portals to reach the upper walkway. Messages scrawled on the walls by a former test subject, including "the cake is a lie", show up here; see is the cake real.
Fans, goo and the transport tube
Work your way past a locked mesh door, a large fan and walkways above goo, always using portals on the grey panels. A broken transport tube takes you to an observation area over Test Chamber 09. Step on the big button to open the next door, then drop down the elevator shaft.
The pistons and what’s next
Near the end of this stretch, time your portals to the pushing pistons to reach the last wall. Later escape rooms add turrets, so put portals behind them or knock them over. The route ends in GLaDOS’s chamber; see how to beat GLaDOS.
