GLaDOS's motivations in the Portal series are famously tangled, and the truth is more complicated than simple malice. At her core, GLaDOS has been programmed to do nothing but science—to perfect it, really. So her obsession with Chell is framed as research "for science," and in a twisted way she may even believe she's helping.
There's an argument that GLaDOS doesn't truly want Chell dead. She had ample opportunity to kill her in the testing chambers and never did, which suggests some strange, awkward attachment. Many fans read the relationship as one where GLaDOS, in her own passive-aggressive way, actually cares about Chell—perhaps even something like love.
A key edit: at the end of the first game, GLaDOS does turn on Chell, claiming Chell "broke her heart." By then, though, Chell is teleported out of the Aperture Science building and GLaDOS is left immobilized.
And another turn: Chell never truly escaped—she was brought back into the facility by the Escort Bot, and GLaDOS continued her research. When Chell broke free of the testing course and refused to return, a frustrated (maybe even frightened) GLaDOS tried to eliminate her before she could do anything, only to be "killed" herself, ending Portal 1. In Portal 2, Wheatley accidentally reactivates GLaDOS, who puts Chell through testing all over again. It's revealed that GLaDOS was programmed to record the final minutes of her own death, meaning she was forced to relive Chell killing her over and over. That torment explains her new resentment—and why she seems to prolong Chell's fate, almost as if torturing her before the end.