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.
Where to get materials and reagents you may ask? Buy for cheap off farmers in bulk or track Auction House lots. Get in touch with most big sellers. Communication is important here, send a whisper or write them a letter. It would be good for both of you to establish business relationships. Constant suppliers and buyers is convenient for both parties to save the time and effort.