The invention discloses an electric heating method of liquid metal, the liquid metal flows through a test pipeline and test equipment, the method comprises the following steps: S1, dividing the field test pipeline and test equipment into regions to obtain a plurality of sub-regions, S2, calculating the thermal load of the liquid metal in the test pipeline or test equipment corresponding to each sub-region; s3, arranging a plurality of heating wires for heating liquid metal in the test pipeline or the test equipment outside the test pipeline or the test equipment in each sub-region, wherein the plurality of heating wires are connected in parallel; and S4, each sub-region is provided with a junction box, and the heating wire of the sub-region is connected with the junction box of the sub-region. And S5, the solid-state relay conducts or cuts off the heating wire, and the liquid temperature is made to be within the set range. According to the invention, a plurality of low-power heating loops are used for heating, the heating is uniform, the power is adjustable, non-stop maintenance and replacement can be conveniently realized when a fault occurs on site, and the device is suitable for the condition of narrow or irregular site space.