Preparations
- Follow the instructions on https://web.archive.org/web/20160623200504/https://java.net/projects/adoptopenjdk/pages/InstallJtreg and https://java.net/projects/adoptopenjdk/pages/EclipseProjectForJTReg [dead-link] to learn more about the OpenJDK JTReg. For more details steps to build JTReg have a look at the link. 
- Interesting blog on what to keep in mind before writing tests. 
- Have a look at these JTReg tutorial videos. 
 Quick Start Guide tutorial on jtreg.
- To see an online help for JTReg perform via command - $ jtreg -onlineHelp
- If you don't wish to build it on your own, then download the latest JTReg artifact from the Adopt OpenJDK Cloudbees Jenkin server. After doing the above make a copy of the win32, linux and lib sub-folders from within the dist/jtreg sub-folder into the jtreg folder - to prevent errors when running tests. In some editions, the files in the win32 folder must be made executable ( - chmod u+x …).