11 messages in com.canoo.lists.webtestRE: [Webtest] Error while executing i...
FromSent OnAttachments
Frank D'Souza17 Feb 2005 03:02 
Dierk Koenig18 Feb 2005 01:50 
Frank D'Souza18 Feb 2005 04:56 
Dierk Koenig18 Feb 2005 05:31 
Edward O'Flynn18 Feb 2005 06:00 
Dierk Koenig18 Feb 2005 06:24 
Frank D'Souza20 Feb 2005 21:37 
Frank D'Souza20 Feb 2005 22:16 
Dierk Koenig21 Feb 2005 02:34 
Frank D'Souza21 Feb 2005 02:45 
Dierk Koenig21 Feb 2005 04:22 
Subject:RE: [Webtest] Error while executing invoke command...
From:Dierk Koenig (dier@canoo.com)
Date:02/21/2005 04:22:28 AM
List:com.canoo.lists.webtest

As you still work with version 1.5, the JavaScript on your page will not be executed as you may expect. Have you tried with the latest 1.7 version?

cheers Mittie

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Frank D'Souza Sent: Montag, 21. Februar 2005 11:45 To: webt@gate2.canoo.com Subject: Re: [Webtest] Error while executing invoke command...

Hi Mittie,

Your understanding is correct.

Attached the html source page, may be get some more input out of this.

Regards Frank

<html>

<head> <script language="javascript">

<!-- The below function prevents to get DATA MISSING error from browser. --> function nothing( ) { }

function confirmResetPassword( ) { var result = confirm( "Do you want to continue resetting the password?" ); return result; }

function sendPasswordTo(to, uid, password, app) { var msg = escape("Your password for the " app + " user id '" + uid + "' is '" + password + "'."); var subject = escape(app +" user password"); var screenX = window.screenX + 50; var screenY = window.screenY + 50; var url = "/jsp/MailInfo.jsp?to="+to+"&message="+msg+"&uid="+uid+"&subject=" +subject; window.open(url, "", "width=200,height=200,screenX="+screenX+",screenY="+screenY);

}

</script>

<link rel="stylesheet" href="/style-sheets/css/default.css" type="text/css"> </head>

<body bgcolor="#ffffff">

<!--start password reset-->

<center><b> Security Credential Information</b></center> <br><br> <table border="0" width="100%">

<tbody> <tr></tr> <tr><td align="right"><font face="arial,helvetica,sans-serif"

User Name :</font></td>

<td></td> <td align="left"><font face="arial,helvetica,sans-serif" > FrankdsouzaNithinfeb8 </font></td> </tr>

<tr><td align="right"><font face="arial,helvetica,sans-serif" >Security Question :</font></td> <td></td> <td align="left"><font face="arial,helvetica,sans-serif" > What is your pet's name? </font></td>

</tr>

<tr><td align="right"><font face="arial,helvetica,sans-serif" >Security Answer :</font></td> <td></td> <td align="left"><font face="arial,helvetica,sans-serif" > Scott </font></td> </tr>

<tr><td align="right"><font face="arial,helvetica,sans-serif" >Record status :</font></td>

<td></td> <td align="left"><font face="arial,helvetica,sans-serif" > Active </font></td> </tr>

<tr><td align="right"><font face="arial,helvetica,sans-serif" >Application Name :</font></td> <td></td> <td align="left"><font face="arial,helvetica,sans-serif" >

<form name="ResetPasswordForm" action="/jsp/SAMSPasswordReset.jsp?uid=FrankdsouzaNithinfeb8&amp;a ction=reset" method="post">

<select name="applicationName"> <option value="" SELECTED >Choose Application</option>

<option value="CNPI">CNPI</option>

<option value="MySun">MySun</option>

<option value="Order Status">Order Status</option>

<option value="OSC">OSC</option>

<option value="Pricer Tool">Pricer Tool</option>

<option value="Profile Tool">Profile Tool</option>

<option value="PWD">PWD</option>

<option value="Reseller Web">Reseller Web</option>

<option value="SDLC">SDLC</option>

<option value="ShareSpace">ShareSpace</option>

<option value="SPE">SPE</option>

<option value="StoreFront">StoreFront</option>

<option value="SunSolve">SunSolve</option>

<option value="SunTan">SunTan</option>

</select> </font></td> </tr>

</tbody></table>

</center>

<br> <center><b>Please verify the user's security question and answer prior to resetting the password. </b></center>

<!-- <form name="ResetPasswordForm" action="/jsp/SAMSPasswordReset.jsp?uid=FrankdsouzaNithinfeb8&amp;a ction=reset" method="post"> --> <br> <center> <input type="button" class="buttonblue" name="SubmitPassword" onmouseover="this.style.color='#fbe249';" onmouseout="this.style.color='#FFF';" value="Reset Password" onclick="ResetPasswordForm.submit()" >

</form>

</body></html>

Dierk Koenig wrote:

Hi Frank,

as I understand, 'login' and 'search' works fine but 'update user' fails with HTTP 500 (internal server error).

I guess everything works fine when tested manually.

Did I understand you correctly?

cheers Mittie

-----Original Message-----

From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On

Behalf Of Frank D'Souza Sent: Montag, 21. Februar 2005 6:38 To: webt@gate2.canoo.com Subject: Re: [Webtest] Error while executing invoke command...

Hi Mittie,

The difference between module which works fine and not working is:

1) Login to the module and search for a user ( which is there in the form(Used follow frame)) 2) The module which is not working fine is search a user and update that user. This should redirect to a different page.

Xml of module which works fine:

<setinputfield stepid="Verify User Name Value." name="IDToken1" value="${cc.loginUserId}"/> <setinputfield stepid="Verify User Password Value." name="IDToken2" value="${cc.loginPassword}"/> <invoke stepid="Access the Custom Console login page." url="amserver/login?module=LDAP&amp;goto=https://${config.host}:8 080/jsp/SAM SAdminScreen.jsp&amp;IDToken1=${cc.loginUserId}&amp;IDToken2=${cc .loginPassw ord}&amp;Submit=Log In" save="${responseFileId}" /> <verifytitle stepid="Verify Login Passed" text="${cc.loginVerifyTitle}" />

<if property="${cc.verifyUserName}"> <followframe stepid="Go the left frame" name="leftFrame" save="${responseFileId}" /> <verifytext stepid="Verify on user search frame." text="form name=&quot;SearchForm&quot;"/>

<submitform stepid="Submit the form to perform search." label="false" name="newSrch" save="${responseFileId}"> <form name="SearchForm"/> </submitform>

<verifytext stepid="Verify expected user search results." text="${cc.verifyUserName}"/> </if>

Regards Frank

Dierk Koenig wrote:

Can you tell the difference from the modules where the invoke works and where it doesn't?

Mittie

-----Original Message-----

From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On

Behalf Of Frank D'Souza Sent: Freitag, 18. Februar 2005 13:57 To: webt@gate2.canoo.com Subject: Re: [Webtest] Error while executing invoke command...

Hi Mittie,

Thank you for the update. The same invoke command works for few modules. I have tried without colon and getting blank page.

Regards Frank

Dierk Koenig wrote:

Hi Frank,

it seems your url ist not correctly url-encoded. Query params like the value of the LDAP param contain the colon character which may confuse the httpunit that comes with your version (1.5).

cheers Mittie

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Frank D'Souza Sent: Donnerstag, 17. Februar 2005 12:03 To: webt@gate2.canoo.com Subject: [Webtest] Error while executing invoke command...

Hi All,

I am using canoo webtest from November 2004. Ant version 1.6.1 and canoo webtest version is 1.5.

I have all the parameters in property file. While executing the below (ResetPassword.xml) test xml - <invoke stepid ="Invoke the URL behind the Reset Password button."

url="amserver/login?module=LDAP&amp;goto=https://${config.host}:80

80/jsp/SAMSPasswordReset.jsp&amp;uid=${cc.verifyUserName}&amp;act ion=info;"

save="${responseFileId}" />

unable to continue from this step and all the step from the above is failing.

If I manually execute this which works fine. While executing I observed the following :

a) amserver/login?module=LDAP&amp;goto=https://${config.host}:8080/js p/SAMSPasswordReset.jsp - executes this step ignoring uid=${cc.verifyUserName}&amp;action=info; b) Because of the above step, the HTML will be blank and script is failed.

Required: Any shortcuts to perform this action.

Input from the different property file : 1) config.host 2) verifyUserName 3) firstName and lastName .. etc..

This is my XML file <setinputfield stepid="Verify User Name Value." name="uid" value="${cc.verifyUserName}"/> <invoke stepid ="Invoke the URL behind the Reset Password button."

url="amserver/login?module=LDAP&amp;goto=https://${config.host}:80

80/jsp/SAMSPasswordReset.jsp&amp;uid=${cc.verifyUserName}&amp;act ion=info;"

save="${responseFileId}" /> <verifytext stepid="Verify Security Credential Information page" text="Security Credential Information"/> <verifytext stepid="Verify User's First and Last Name." text="${cc.firstName} ${cc.lastName}"/> <verifytext stepid="Verify the security question." text="${cc.securityQuestion}"/> <verifytext stepid="Verify the security answer." text="${cc.securityAnswer}"/> <verifytext stepid="Verify the user is active." text="Active"/> <invoke stepid="Invoke the URL behind the Reset Password button."

url="amserver/login?module=LDAP&amp;goto=https://${config.host}:80

80/jsp/SAMSPasswordReset.jsp&amp;uid=${cc.verifyUserName}&amp;act ion=reset;"

save="${responseFileId}" /> <verifytext stepid="Verify password reset was successful." text="Password Reset is successful for user ${cc.verifyUserName}."/> <verifytext stepid="Verify inform user message." text="Please inform the user of their new password"/>

Kindly suggest.