[Webtest] [webtest][JIRA] Closed: (WT-300) JavaScript error encountered while running WebTest

Marc Guillemot (JIRA) Marc Guillemot (JIRA)" <noreply@canoo.com
Wed, 11 Apr 2007 14:11:47 +0200 (CEST)


     [ http://webtest-community.canoo.com/jira/browse/WT-300?page=all ]
     
Marc Guillemot closed WT-300:
-----------------------------

    Resolution: Invalid

This is not support!!!

Please bring your questions to the mailing list!

> JavaScript error encountered while running WebTest
> --------------------------------------------------
>
>          Key: WT-300
>          URL: http://webtest-community.canoo.com/jira/browse/WT-300
>      Project: WebTest
>         Type: Bug

>  Environment: Windows XP, MyEclipse, Java, JSF 
>     Reporter: Shyam Bhaskaran
>  Attachments: ACM_Manage_Account_Assignment.xml, logoTeam.faces.htm
>
> Hello Support, 
> My WebTest using canoo is failing with the below error message, the test fails at step 34 when the Submit Button is clicked, I am also attaching the script file and the html file along with this Issue. Please have a look and let me know how to resolve this issue, Let me know if you need more information.
>   31  setCheckbox 
> Select checkbox associated with Analog Devices Logo checked true 
> htmlId f1:_id52:0:selectedItem 
>  0 
>   32  setselectfield 
> Pick an existing team for AC assignment
> Resulting page name f1:bottomBlueBar:selectedTeam 
> text test 
>  00:00:06 
>   33  setselectfield 
>  name f1:bottomBlueBar:leadAcs 
> stepid select an existing team for AC assignment 
> value pcrao 
>  141 
>   34 
> Error 
> Page clickButton 
> Submit for Assignment Creation
> Resulting page name f1:bottomBlueBar:submit 
>  156 
>   35  clicklink 
>  label ${logout.link} 
> save logoutPage 
> stepid logout user 
>     
>   36  verifytitle 
>  stepid Verify logout 
> text ${login.title} 
>     
>   37  verifytext 
>  regex true 
> stepid Look for logout text 
> text You have successfully logged out. 
>     
> Error 
> Message
> JavaScript error loading page http://mikeb.synopsys.com:12000/aca/logoTeam.faces: TypeError: Cannot read property "0" from null (event for HtmlSubmitInput[<input id="f1:bottomBlueBar:submit" name="f1:bottomBlueBar:submit" value="Submit" onclick=" clearCommandLinkHiddenField(); var b = checkLeadAcBox(findElement(forms[0], 'leadAcs')); if(!b) return false; b = checkLogoOrTeamAssign(this.form, 'selectedItem', 'selectedTeam'); if(b) showStatus(); return b; " type="submit">]#1)
> Location
> C:\MyEclipse-workspace\ACAccount\functional_test\usecases\ACM_Manage_Account_Assignment.xml (line: 135)
> Details
> javascript error TypeError: Cannot read property "0" from null (event for HtmlSubmitInput[<input id="f1:bottomBlueBar:submit" name="f1:bottomBlueBar:submit" value="Submit" onclick="    clearCommandLinkHiddenField();  var b = checkLeadAcBox(findElement(forms[0], 'leadAcs'));  if(!b)   return false;  b = checkLogoOrTeamAssign(this.form, 'selectedItem', 'selectedTeam');  if(b)   showStatus();  return b;  " type="submit">]#1) 
> line 1 
> javascript source function () {
> 	[native code, arity=0]
> }
>  
> failing line function () { 
> Back to Test Report Overview 
> --------------------------------------------------------------------------------
> Created using Canoo Webtest (R_1533). Report created at 11.04.2007 17:07 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira