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.
Through out the game, the quest log will be capped to 20 many times. The guide makes use of maximizing the total amount of quests you can accept at once. Because of this it is important to follow the guide exactly and only accept quests if the guide tells you to so you won't run into issues not being able to accept a quest. If you do accept a quest that is not listed in the guide, write it down because you may need to abandon it in order to keep following the guide if your quest log is full.