[Dev] TestGen4Web runner and transformer improvements

Frank Cohen fcohen at pushtotest.com
Mon Jan 28 17:17:38 PST 2008


Dear PushToTest Developers:

I updated ticket 196 (http://bugs.pushtotest.com/ticket/196) to  
include the final requirements. This enhancement improves the  
TestGen4Web test runner and adds a new transformation utility to  
transform TestGen4Web test files into Java or Jython classes.

-Frank

--

I changed the TM 5.1 script runner to use the  
com.spike.tg4w.htmlunit.HtmlUnitInterpreter?. This is a class in tm5/ 
testgen4web-branch. HtmlUnitInterpreter? does a much more thorough  
job of interpreting the Tg4w files and running the tests.
ticket 196 notes that TestGen?4Web includes the  
com.spike.tg4w.htmlunit. StandaloneTestGenerator? class to translate  
TestGen?4Web XML files into Java. To accomplish this:

1. The transform utility uses a Velocity macro file that generates a  
java class, by running through the XML and adding one call to the  
HTMLUnit per step in the session.

2. We will require to redo that macro file (VM file) to generate the  
calls into Jython.

3. And make the intepreter to use that new macro instead of the  
included one.

4. The we will need to test the generated Jython.

This ticket changes the current  
com.pushtotest.testmaker.XSTest.client.TestGen?4Web's toJython method  
to call StandaloneTestGenerator? with a modification to output Jython  
scripts instead of Java scripts.

Additionally, this ticket changes the Tools menu -> Import TestGen? 
4Web command to have submenus for Java and Jython.

-Frank





--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122
TestMaker open-source test automation




--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 871 0122
TestMaker open-source test automation





More information about the Dev mailing list