Hi, thanks for the information, but what is the relation with the JS problem?
Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com [EMAIL PROTECTED] wrote: > Hi, All > > A few days ago, I poped a strange erroe of "Cannot call method "submit" > of undefined", and Marc offered lots help,still not work out. > I almost gave up, yesterday Ifixed it, I think I should report tht > vesolve to the list, it may helps newbies on WebTest like me. > > the key point is DTD file. What I did: > > 1. Creat a build.xml anywhere you like.the content as follows: > <?xml version="1.0" encoding="UTF-8"?> > <project> > <target name="makedtd"> > <antstructure output="project.dtd" /> > </target> > </project> > > 2. Go to the very directory where the build.xml is in. type: ant makedtd > although a build failed will be reported, a file named project.dtd > will be created as well. copy it to the dtd folder of my test project. > make a little change: > > * on the 3ed line"<!ENTITY % tasks "propertyfile |........" , add > webtest as one of the parameters > * on the 6th line"<!ELEMENT project (target | %tasks; | %types;)*>", > change the * into > > 3. copy WebTest.dtd and MyWebTest.dtd to the dtd folder of my test > projest. make changes on MyWebTest.dtd as follows: > > * <!ENTITY % webtest SYSTEM "../config/WebTest.dtd" > => <!ENTITY > % webtest SYSTEM "../dtd/WebTest.dtd" > > * <!ENTITY % project SYSTEM "../config/Project.dtd"> => <!ENTITY > % project SYSTEM "../dtd/Project.dtd"> > * add follow lines > > <!-- project Ant entities --> > <!ENTITY % projectAnt SYSTEM "../dtd/ProjectAnt.dtd"> > %projectAnt; > > 4. change the associated scheme of test script into WebTest.dtd in dtd > folder. > > That's all > > I don't figure out the reason clearly, But it works. > > It would be great if anyone could tell me why it works. > > thanks. > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

