Electrical characterization of magnetic domain wall via distinctive hysteresis and magnetoresistance