The test, developed by an Israeli company, allows researchers to use genetic material to identify the source of the cancer.
Identifying the source will help doctors better treat cancer, because not all therapies work on all cancers.
The test is still under development.
The study is in the Journal of Nature Biotechnology.