The quality of captured wild pets is random. As of patch 5.1, upon entering a battle the Pet Battle UI shows the quality of a wild pet (idicated by a color-coded border around its icon). If you're farming a specific quality, if you forfeit the match your team will incur a small damage penalty (roughly 10%). There is no accurate way to determine a pet's quality prior to the start of a battle.
Beginning May 15, select WoW players will be invited to participate in a small-scale, focused closed beta test. Players will also get a chance to help put our servers and technology through their paces in a series of stress tests running from May through July—you can opt in now through Account Management and select the WoW Classic beta. Subsequent stress tests will extend the opportunity to even more players. Level caps will also be in place to ensure we’re emphasizing the “stress” in “stress test”