A flame test is an analytic procedure used in chemistry to detect the presence of certain elements, primarily metal ions, based on each element's characteristic emission spectrum.he test involves introducing a sample of the element or compound to a hot, non-luminous flame, and observing the color of the flame that results.