Diagnostic tests are a means to rule out or confirm conditions and diseases through different medical processes. An X-ray test is a type of non-invasive diagnostic test, which is quick and painless. It produces images of the structures of our body – bones in particular.