[ptt-users] (TM5,B2,Windows) Running jython scripts with htmlunit

Dominique de Waleffe dominique.dewaleffe at denali.be
Mon Jul 9 09:42:12 PDT 2007


I am trying to run a simple scenario in jython, generated by testmaker 
from a recorded tesgen4web script.

All I can get to is errors about missing classes so far and not beeing 
able to even run the line

from XXX import HTMLUnit
in my script.

Has anybody succeeded in doing that kind of thing? What is the secret?


I attach the scenario and the almost emptied jython file...

[note that I already tried putting a more recent js.jar in the system, 
to no avail so far].

D.

-- 
Dominique de Waleffe
Technical director

Denali S.A., "Bridging the gap between Business and IT"
Rue de Clairvaux 8, B-1348 Louvain-la-Neuve, Belgium
Office: +32 10 43 99 51 Fax: +32 10 43 99 52
http://www.denali.be


Legal notice: this message and its attachments may contain
confidential and/or privileged information. If you are not the
addressee or authorized to receive this for the addressee, you must
not use, copy, disclose or take any action based on this message or
any information herein. If you have received this message by mistake,
please advise the sender immediately by return e-mail and delete this
message from your system. Thank you for your cooperation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fst1.xml
Type: text/xml
Size: 2013 bytes
Desc: not available
Url : http://cake.pushtotest.com/pipermail/users/attachments/20070709/3d799de2/fst1.xml
-------------- next part --------------
import sys
sys.add_package("com.pushtotest.tool")
# Import tells TestMaker where to find TOOL objects
from com.pushtotest.tool import HTMLUnit

class HTMLTest:
    def setUp( self ):
        pass

    def tearDown(self):
        pass

    def test(self):
        print "hello world()"

def getHTMLTest ():
        test = HTMLTest();
        return  test;


More information about the Users mailing list