A compression-relaxation test is used to determine the softness and elasticity in different soft candy.