JTreg Convertor

 

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)

/\*
 \* @test
 \* @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 :

Main Window



 Since code still have some bugs, so i am not putting it right now. Soon, I will do that with executable jar as well.

Comments:

Post a Comment:
Comments are closed for this entry.
About

Hi, I am Vaibhav Choudhary working in Sun. This blog is all about simple concept of Java and JavaFX.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today