Based on the comment on function " unit test starts here : $filename " ======== " unit test ends here " read the file name and generate the unit test case along with file based on the $filename for test case and save it.