An online detection method for magnetoelasticity performance of thin-ferromagnetic-film, which belongs to the field of engineering materials, structure deformation, and mechanical test. The device implementing the method of the invention comprises a thin-ferromagnetic-film non-uniform stress measuring light path and a film hysteresis loop measuring light path, wherein, the film non-uniform stress measuring light path comprises a laser, a beam expander, a grating, a lens, a filter screen, and a CCD camera; and the film hysteresis loop measuring light path comprises a laser, a beam expander, a polarizer, an analyzer, and a photodetector. The method of the invention comprises the steps of measuring non-uniform curvature of the thin-ferromagnetic-film surface by shearing interferometer to obtain the non-uniform stress in film, and measuring the hysteresis loop of the film by using magnetooptic Kerr effect of the thin-ferromagnetic-film surface. The method can simultaneously online measure the non-uniform stress and the hysteresis loop of thin-ferromagnetic-film, so as to provide experimental basis for the research on magnetoelasticity coupling behavior of the thin-ferromagnetic-film.