hi, Siegfried

thanks a lot for reply !

here is my test xml file . any idear about it ?

?xml version="1.0"?>

<!DOCTYPE project SYSTEM "../dtd/Project.dtd">

<project default="test">

<target name="test">

    <webtest name="test">
          <config
            host="*******"
            port="80"
            protocol="http"
            summary="true"
            saveresponse="true"
            resultpath="E:\test\results"
          >
          </config>

                <repeat count="2" countername="countTmp">
                                    <storeProperty name="offValue"
value="#{countTmp} * 30" eval="true" propertyType="dynamic"/>
                        <invoke description="Click link"
url="index.php?offset=#{offValue}" saveResponse="false"/>
                        <repeat
xpath="//[EMAIL PROTECTED]/[EMAIL 
PROTECTED]'list_data_cell'][contains(text(),'2008-Dec-04')]/parent::*//[EMAIL 
PROTECTED]'_list_title']/@href"
counterName="curLink">

                                        <storeXPath xpath="$curLink"
property="uri" />

                                         <invoke description="Click link"
url="#{uri}" saveResponse="false"/>

                            <enableJavaScript enable="false"/>

                            <!--crawl information : title,description -->
                            <storeXPath description=" title"
xpath="//tbody/tr[2]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[1]/td[2]"
property="title" />
                            <storeXPath description=" description"
xpath="id('_post')/tbody/tr[3]/td/div" property="description" />

                            <!--crawl post detail information -->

                            <storeXPath description=" postBy"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[1]/td[2]"
property="postby" />
                            <storeXPath description=" function"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[2]/td[2]"
property="function" />
                            <storeXPath description="start date"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[3]/td[2]"
property="startdate" />
                            <storeXPath description="salary"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[4]/td[2]"
property="salary" />

                            <storeXPath description="cellphone"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[5]/td[2]"
property="cellphone" />
                            <storeXPath description="email"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[6]/td[2]"
property="email" />

                            <storeXPath description="location"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[7]/td[2]"
property="location" />
                            <storeXPath description="deadline"
xpath="//tbody/tr[3]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[10]/td[2]"
property="deadline" />

                            <!-- crawl category information-->

                            <storeXPath description="type"
xpath="//tbody/tr[4]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[3]/td[2]"
property="type"/>

                            <storeXPath description="classification"
xpath="//tbody/tr[4]/td/[EMAIL PROTECTED]'dynamic_form']/tbody/tr[4]/td[2]"
property="type"/>
                        </repeat>

                </repeat>

    </webtest>

</target>
</project>


On Sun, Dec 7, 2008 at 6:07 AM, Siegfried Goeschl <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> it might help to provide some more information ...
>
> Cheers,
>
> Siegfried Goeschl
>
> 张伟伟 wrote:
> > Hi all :
> > this is the exception in background , any idea about it ? when i check
> > WebTestReport.xml , i find the WebTestReport.xml 's formate is not
> > well-formed , why ? about  my test xml file ?
> >
> >  INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to
> > E:\mashup\results\00
> > ERROR (com.canoo.webtest.ant.WebtestTask) - Exception caught while
> > writing test report
> > java.io.IOException: The character ' is an invalid XML character
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.fatalError(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.surrogates(Unknown Source)
> >         at org.apache.xml.serialize.XMLSerializer.printEscaped(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.printAttribute(Unknown Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown
> > Source)
> >         at
> > org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown Source)
> >         at
> > com.canoo.webtest.reporting.XmlReporter.writeXmlFile(XmlReporter.java:71)
> >         at
> > com.canoo.webtest.reporting.XmlReporter.writeXmlFile(XmlReporter.java:51)
> >         at
> >
> com.canoo.webtest.reporting.XmlReporter.generateReport(XmlReporter.java:79)
> >         at com.canoo.webtest.ant.WebtestTask.report(WebtestTask.java:348)
> >         at
> >
> com.canoo.webtest.ant.WebtestTask.callSelectedReporter(WebtestTask.java:340)
> >         at
> >
> com.canoo.webtest.ant.WebtestTask.writeTestReportIfNeeded(WebtestTask.java:33
> >         at
> com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:224)
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> >         at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> >
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> >         at org.apache.tools.ant.Task.perform(Task.java:348)
> >         at org.apache.tools.ant.Target.execute(Target.java:357)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >         at
> >
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExe
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> >         at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> >
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> >         at org.apache.tools.ant.Task.perform(Task.java:348)
> >         at org.apache.tools.ant.Target.execute(Target.java:357)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >         at
> >
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExe
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> >         at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> >
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> >         at org.apache.tools.ant.Task.perform(Task.java:348)
> >         at org.apache.tools.ant.Target.execute(Target.java:357)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >         at
> > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> >         at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.ja
> >         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:698)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>

Reply via email to