A universal testing machine measures the tensile and compressive strength of materials through various components including a load frame, load cell, and cross head. It can be used for different testing methods and requires proper setup, conditioning, and measurement devices to record results accurately. The machines vary in size and capacity, catering to a wide range of testing needs.