Theoretically, torque measurement is supposed to be done by attaching a known weight to a rope which is reeled up by the spinning shaft of the motor. The shaft is a known diameter. The resulting torque value is stated in foot-pounds.
This is a difficult measurement to take. It can only be done while the motor is spinning.
An alternative is to apply friction in some manner. (Example, cloth-covered clamp.) This tends to polish surfaces thus reducing friction, making this an unreliable test.
Another way is to create magnetic friction in the form of eddy currents. Attach a plate to the shaft and hold a magnet close to it while it spins. If not done carefully this could disrupt operation within the motor.
Another way to create a load is to make the motor spin a paddle, which is immersed in water to various depths.