The Guild Wars 2 Beta began in December 2011. It ran until the official release of the game and it contained different beta events. According to wiki.guildWars2 it contained closed beta tests, Beta Weekend events, and Stress tests. [Guild Wars 2 main page]
During these tests select players were able to get a free taste of the game. All of this went on for quite some time.
There were various closed beta events and the final beta test was on the weekend of July 20th; after which there were only stress tests in August; available to any player who pre-purchased the game, these tests were the last beta type events for Guild Wars 2.
And check out the "suggested by the author" links below for more!