You can use the Test Case Generator plugin to generate these tests. You can get the plugin pointing eclipse to this update site: http://resources.openmrs.org/eclipse/update/ . See also https://wiki.openmrs.org/display/docs/Step+by+Step+Installation+for+Developers