A cable accessory device, including a one-way conducting element and a grounding
electrode. One end of the one-way conducting element is connected to a conductor structure in a cable, and the other end is connected to the grounding
electrode. By applying voltages with different polarities to the one-way conducting element, the one-way conducting element is enabled to have different on / off states. When the on / off state of the one-way conducting element is an on state, the conductor structure in the cable is connected to the grounding
electrode via the one-way conducting element, so as to measure
direct current resistance of the conductor structure. Moreover, when the on / off state of the one-way conducting element is an off state, the one-way conducting element breaks connection between the conductor structure and the grounding electrode, so as to measure
insulation resistance of an insulation structure. In this way, tests for measuring
direct current resistance of the conductor structure and
insulation resistance of the insulation structure may be facilitated, so that failures of the cable may be comprehensively investigated to damages in the cable may be found in time, thus reducing subsequent costs in locating and maintenance.