[Webtest] error while testing

prashanth k p prashanth k p" <konkodi210@gmail.com
Tue, 9 Jan 2007 18:05:47 +0530


------=_Part_96788_31989183.1168346147673
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

we have one web application. i want test using canoo webtest.I have recorded
the xml config using mozzila plug in which shown below

<project name="SimpleTest" basedir="." default="main">

    <property name="webtest.home" location="C:\Documents and
Settings\pkonkodi\My Documents\mozila download\build(2)" />
    <import file="${webtest.home}/lib/taskdef.xml"/>

    <target name="main">
        <webtest name="myTest">
            <config
                    host="http://9.124.47.175:9081"
                    port="80"
                    protocol="http"
                    basepath="wps/portal" />
            <steps>
                <invoke description="Get the page" url="
http://9.124.47.175:9081/wps/portal"/>
                <setInputField description="Set text field
wps.portlets.userid" name="wps.portlets.userid" value="userName"/>
                <setInputField description="Set password field password:
password" name="password" value="password"/>
                <clickButton description="Click submit button: Log in"
name="PC_7_0_64__login"/>
                <setInputField description="Set password field
com_ibm_lifesci_score_ui_WorkArearepositoryPassword: password"
name="com_ibm_lifesci_score_ui_WorkArearepositoryPassword"
value="password"/>
                <clickButton description="Click submit button: Log in"
name="submitinput"/>
                <clickLink description="Click link: Regulated"
label="Regulated"/>
            </steps>
        </webtest>
    </target>
</project>

Appserer:Websphere Portal server
when ever it try to find the link Regulated  it throws exception saying it
has not found link. but i can see that link in normal browser.

same thing i have tried using HtmlUnit API. i got same issue. can i know
what is the root problem.
-- 
regards
Prashantha K P

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

Hi all,<br><br>we have one web application. i want test using canoo webtest.I have recorded the xml config using mozzila plug in which shown below<br><br>&lt;project name=&quot;SimpleTest&quot; basedir=&quot;.&quot; default=&quot;main&quot;&gt;
<br><br>&nbsp;&nbsp;&nbsp; &lt;property name=&quot;webtest.home&quot; location=&quot;C:\Documents and Settings\pkonkodi\My Documents\mozila download\build(2)&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;import file=&quot;${webtest.home}/lib/taskdef.xml&quot;/&gt;
<br><br>&nbsp;&nbsp;&nbsp; &lt;target name=&quot;main&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;webtest name=&quot;myTest&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;config<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=&quot;<a href="http://9.124.47.175:9081">http://9.124.47.175:9081</a>
&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; port=&quot;80&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol=&quot;http&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; basepath=&quot;wps/portal&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;steps&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;invoke description=&quot;Get the page&quot; url=&quot;
<a href="http://9.124.47.175:9081/wps/portal">http://9.124.47.175:9081/wps/portal</a>&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;setInputField description=&quot;Set text field wps.portlets.userid&quot; name=&quot;wps.portlets.userid
&quot; value=&quot;userName&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;setInputField description=&quot;Set password field password: password&quot; name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clickButton description=&quot;Click submit button: Log in&quot; name=&quot;PC_7_0_64__login&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;setInputField description=&quot;Set password field com_ibm_lifesci_score_ui_WorkArearepositoryPassword: password&quot; name=&quot;com_ibm_lifesci_score_ui_WorkArearepositoryPassword&quot; value=&quot;password&quot;/&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clickButton description=&quot;Click submit button: Log in&quot; name=&quot;submitinput&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">&lt;clickLink description=&quot;Click link: Regulated&quot; label=&quot;Regulated&quot;/&gt;
</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/steps&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/webtest&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;<br>&lt;/project&gt;<br><br><span style="font-weight: bold;">Appserer:<span style="font-weight: bold;"><span style="font-weight: bold;">
Websphere Portal server</span></span></span><br clear="all">when ever it try to find the link <span style="font-weight: bold;">Regulated&nbsp; </span>it throws exception saying it has not found link. but i can see that link in normal browser.
<br><br>same thing i have tried using HtmlUnit API. i got same issue. can i know what is the root problem.<br>-- <br>regards<br>Prashantha K P

------=_Part_96788_31989183.1168346147673--