[Webtest] Re: VerifyXPath on Flash objec

Tokutan Tokutan <tokutan@gmail.com>
Thu, 17 Jul 2008 20:59:48 +1000


------=_Part_18839_29125821.1216292391337
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Marc,

Sorry if I am not clear or just being simply not understanding the way that
webtest does. However, I have used quite a lot of webtest and it is very
much helpful in terms of web testing. Can you advise me again why my test
was wrong:?  I can verify any xpath in the page including any node or
attribute of the dom page except the shockwave/flash object itself.  Thanks
<?xml version="1.0"?>

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

<project name="demo.googleWebTestSteps" default="test">

    <import file="../definitions.xml"/>

    <target name="test" depends="wt.defineMacros">


        <webtest name="Test Xpath">
          <config haltonerror="false" haltonfailure="false"
         autorefresh="true">

                 <option name="ThrowExceptionOnScriptError"
                value="false"
                 />
                          <option name="ThrowExceptionOnFailingStatusCode"
        value="false"/>
            <header name="User-Agent" value="Mozilla/5.0 (Windows; U;
Windows NT 5.1; de; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"/>
    </config>
                <enableJavaScript description="stop java" enable="false"/>
                <invoke url="
http://www.careerone.com.au/jobs/job-search/special-features/asc-offers-opportunities-to-move-and-grow
"/>

                <verifyXPath xpath="//html"/>



            </webtest>

        </target>
        </project>

------=_Part_18839_29125821.1216292391337
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi Marc,<br><br>Sorry if I am not clear or just being simply not understanding the way that webtest does. However, I have used quite a lot of webtest and it is very much helpful in terms of web testing. Can you advise me again why my test was wrong:?&nbsp; I can verify any xpath in the page including any node or attribute of the dom page except the shockwave/flash object itself.&nbsp; Thanks<br>
&lt;?xml version=&quot;1.0&quot;?&gt;<br><br>&lt;!DOCTYPE project SYSTEM &quot;../dtd/Project.dtd&quot;&gt;<br><br>&lt;project name=&quot;demo.googleWebTestSteps&quot; default=&quot;test&quot;&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;import file=&quot;../definitions.xml&quot;/&gt;<br>
<br>&nbsp;&nbsp;&nbsp; &lt;target name=&quot;test&quot; depends=&quot;wt.defineMacros&quot;&gt;<br>&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;webtest name=&quot;Test Xpath&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;config haltonerror=&quot;false&quot; haltonfailure=&quot;false&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;autorefresh=&quot;true&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;option name=&quot;ThrowExceptionOnScriptError&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value=&quot;false&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;option name=&quot;ThrowExceptionOnFailingStatusCode&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; value=&quot;false&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;header name=&quot;User-Agent&quot; value=&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:<a href="http://1.8.1.12">1.8.1.12</a>) Gecko/20080201 Firefox/<a href="http://2.0.0.12">2.0.0.12</a>&quot;/&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;/config&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;enableJavaScript description=&quot;stop java&quot; enable=&quot;false&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;invoke url=&quot;<a href="http://www.careerone.com.au/jobs/job-search/special-features/asc-offers-opportunities-to-move-and-grow">http://www.careerone.com.au/jobs/job-search/special-features/asc-offers-opportunities-to-move-and-grow</a>&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;verifyXPath xpath=&quot;//html&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/target&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/project&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br></div>

------=_Part_18839_29125821.1216292391337--