By vaibhavc on Jan 22, 2008
Finally I reached on the verge to finish this tool. A simple tool
called "JTregConvertor". As I am already insisting to see OpenJDK and
here again. If you remember one of my blog entries, there is some
discussion on Jtreg. jtreg is nothing but a test suite for regression
test cases. Here we write/store all the testcases which can help code modifier(engineer) to check his code change. If his code change is causing some
problem somewhere say in area AWT, Swing, jtreg will fail that testcase and
hence you can get to know that this fix is not correct. But how jtreg
do this all. jtreg do this because the test case it runs is in a
special format called "jtreg format" which have some tags, some additional
classes and maybe some code changes with respect to normal test case.
Tags like which file to compile, in what order to compile, any applet
to run and many more.
See this part of the code in (openjdk\\jdk\\test\\java\\awt\\FontClass\\BigMetrics.java)
\* @bug 6533413
\* @summary Test no crashing getting metrics using large font.
\* @run main BigMetrics
This is the tags, we are talking off. You can check in any file in test folder.
This UI tool is all about converting the simple
test case into jtreg formatted test case, so that developer need not to
break his head in knowing jtreg tags and classes.
Here are some snap shots of the tool :
Since code still have some bugs, so i am not putting it right now. Soon, I will do that with executable jar as well.