http://boards.gamefaqs.com/gfaqs/genmessage.php?board=934386&topic=38815824
Okay, here's the complete backstory from the ApertureScience.com website, game resources and commentary. FOR THE LOVE OF ALL THAT IS HOLY, DO NOT READ THIS UNLESS YOU HAVE BEATEN PORTAL! SRSLY!
First, the notes from the CJOHNSON/TIER3 login on ApertureScience.com:
"1953 - Aperture Science begins operations as a manufacturer of shower curtains. Early product line provides a very low-tech portal between the inside and outside of your shower. Very little science is actually involved. The name is chosen to make the curtains appear more hygienic.
1956 - Eisenhower administration awards Aperture a contract to provide shower curtains to all branches of the military except the Navy.
1957 - 1975 - Mostly shower curtains.
1978 - Aperture Founder and CEO, Cave Johnson, is exposed to mercury while secretly developing a dangerous mercury-injected rubber sheeting from which he plans to manufacture seven deadly shower curtains to be given as gifts to each member of the House Naval Appropriations committee.
1979 - Both of Cave Johnson's kidneys fail. Brain damaged, dying, and incapable of being convinced that time is not now flowing backwards, Johnson lays out a three tiered R&D program. The results, he says, will 'guarantee the continued success of Aperture Science into the fast-approaching distant past.'
Tier 1: The Heimlich Counter-Maneuver - A reliable technique for interrupting the life-saving Heimlich Maneuver.
Tier 2: The Take-A-Wish Foundation - A charitable organization that will purchase wishes from the parents of terminally ill children and redistribute them to wish-deprived but otherwise healthy adults.
Tier 3: 'Some kind of rip in the fabric of space... That would... Well, it'd be like, I don't know, something that would help with the shower curtains I guess. I haven't worked this idea out as much as the wish-taking one.'
1981 - Diligent Aperture engineers compelte the Heimlich Counter-Maneuver and Take-A-Wish Foundation initiatives. The company announces products related to the research in a lavish, televised ceremony. These products become immediately wildly unpopular. After a string of very public choking and despondent sick child disasters, senior company officials are summoned before a Senate investigative committee. During these proceedings, an engineer mentions that some progress has been made on Tier 3, the 'man-sized ad hoc quantum tunnel through physical space with possible applications as a shower curtain.' The committee is quickly permanently recessed, and Aperture is granted an open-ended contract to secretly research on the 'Portal' and Heimlich Counter-Maneuver projects.
1981-1985 - Work progresses on the 'Portal' project. Several high ranking Fatah personnel choke to death on lamb chunks despite the intervention of their bodyguards.
1986 - Word reaches Aperture management that another defense contractor called Black Mesa is working on a similar portal technology. In response to this news, Aperture begins developing the Genetic Lifeform and Disk Operating System (GLaDOS), an artificially intelligent research assitant and disk operating system.
1996 - After a decade spent bringing the disk operating parts of GLaDOS to a state of more or less basic functionality, work begins on the Genetic Lifeform component.
Several Years Later - The untested AI is activated for the first time as one of the planned activities on Aperture's first annual bring-your-daughter-to-work day.
In many ways, the initial test goes well..."
From this and the events that occur in Portal, it's pretty clear that GLaDOS immediately locks down the facility and takes over the security system. She then attempts to kill everyone in the facility with a deadly neurotoxin, but is stopped when a hastily-constructed "morality core" is installed into her main processor. She does not relinquish control of the facility, however, and continues to work on the Portal project herself. Meanwhile outside the events of Black Mesa and its aftermath occur and the Combine began its takeover of Earth.
GLaDOS finally completes work on the portal gun. It is strongly suggested that the girls who visited Aperture on its first annual "Bring Your Daughter To Work Day" are now young women due to the years spent trapped in the facility, and it is they who are the test subjects that GLaDOS is using.
One test subject sneaks a wrench and a pair of pliers into the testing course and manages to break into the infrastructure. She seems to have had trouble progressing through the course; it apparently taking her weeks or perhaps even months to get through some of the tests. It is possible that the reason she has so much trouble is that she is not equipped with the heelsprings that your character starts the game with, and thus is not protected from falling damage. She makes "nests" in the infrastructure in tests that take her a long time to complete and writes notes on the walls about what she is doing. These seem to get more and more erratic as she progresses through the test.
At the end of the test she breaks out and gets into the infrastructure again, this time making it much farther than she ever had before. She marks her path as she goes. She apparently gets to the final turret ambush before dying (I am assuming this because the mark that points you to the turret ambush is the last one of hers you ever see).
GLaDOS, dissatisfied with her performance in the test, selects a new test subject - your character. At this point the game begins. The second test subject (your character) progresses through the test much faster, possibly due to changes in the test, changes to the portal gun, and the fact that your character is equipped with heelsprings. Your character also escapes at the end of the test, follows the path of the first test subject, and eventually finds, confronts, and destroys GLaDOS' current computer core. This apparently opens a huge portal to the surface that the debris and your character get sucked through, apparently allowing your character to escape (this is disputable, however - it is possible your character did not survive).
Unfortunately, GLaDOS has many backup cores that she can use to re-create herself, and her domination over Aperture Science (and obsession with cake) will continue.
Interesting facts: I think by far the most interesting thing about Portal is the fact that there are no men in the game at all. You are female. The previous test subject was female. GLaDOS self-identifies as female. GLaDOS mentions "Bring Your Daughter To Work Day" and also states at one point that you can donate your organs to the Aperture Self-Esteem Fund for Girls. In fact, the only male presence in the entire game are a few pictures on the wall and the CJOHNSON/TIER3 easter egg you find in one of the nests.
The final song "Still Alive" was written by Jonathan Coulton, which explains why it's so awesome. It was performed by Ellen McLane, the voice of GLaDOS. Ellen McLane also voices the announcer in Team Fortress 2 and the Overwatch voice in the Half-Life 2 series, making her the only person to be in every game in the Orange Box.