Answer :
In flame tests salts that are dissolved in water are evaporated using a hot flame. In the flame the metal atoms become excited and produce their characteristic spectrum of light. Hope this answers the question. Have a nice day. Feel free to ask more questions.