[Webtest] Need debugging ideas, please

Jeannie Graham webtest@lists.canoo.com
Fri, 26 Mar 2004 10:12:56 -0800


Lisa,

	I also ran into problems with recognizing buttons and links, and got
around it by doing this:

link code:   <clicklink
			stepid="Click Get a Quote button/link"
			label=""
			href="/NALController.srv?action=NEW_SEARCH" />

button code:   <clickbutton
			stepid="Click Next Page button"
			label="" >
				<form name="rate_form" />
				<index value="0" />
			</clickbutton>

Hope that gives you some ideas,
Jeannie

-----Original Message-----
From: lisa.crispin@att.net [mailto:lisa.crispin@att.net]
Sent: Friday, March 26, 2004 9:39 AM
To: webtest@lists.canoo.com
Subject: [Webtest] Need debugging ideas, please


Hello,
I'm stumped on these problems, I think I can work around for now with
invoke, but would someone please give me ideas how to debug?

I have a bunch of scripts where clicklink and clickbutton work just fine.  I
see clicklink has changed and now takes either the label or the htmlid, mine
all use the label so they still work fine.

I tried to write a new test that starts on the public page of our site,
http://www.fast401k.com.  I want to test 'start a new plan', there are both
a link in the top nav bar and a button on the page to do this.

When I try to use the button, I get this error:
Test step clickbutton named "Start plan establishmenty" failed with message
"Button with name <startAPlan> and value <<not specified>> not found!"

My test looks like this:
 <clickbutton stepid="Start plan establishmenty"
      		  name="startAPlan"/>


And the html for it is:
<input name="startAPlan" type="button" class="formButton" value="Click here
to start a new 401(k) plan..." onclick="javascript: location.href =
'/control.jsp?site=erStart&page=index&ts=80345';">

A lot of my clickbuttons for buttons that look like this work fine, but a
few others also get this same error.

Would someone please give me suggestions for how to debug this?  On other
pages where we have this problem we tried cleaning up any invalid HTML but
that didn't help.  I'd appreciate a push in the right direction.

The clicklink error is:
Test step clicklink named "start a plan" failed with message "No link found
in page http://bobkat/home/index.jsp?ts=01279: label <Get started today>,
htmlId <null>"

My test is (I've tried various ways):
      	<clicklink stepid="start a plan"
      	     label="Get started today"/>
      	     	
The HTML for it is:
<a class="topNavOff" name="toptab5"
href="/control.jsp?site=erStart&ts=80345" title="Get started
today">&nbsp;Start a 401(k)&nbsp;</a>
It's part of a nav bar, does that present some special problem?

Thanks very much!
-- Lisa
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest