[Webtest] (no subject)
Vito Caleandro
webtest@lists.canoo.com
Mon, 31 Oct 2005 14:26:38 +0100
Hi,
In Some of my test-scripts there is a <clickButton> step that refer to a
button with onclick attribute. This links to a javascript code that Post a
request for a new page. Running the test with javascript enabled, it fails
reporting an arcane javascript error. More precisely the failure message is:
com.canoo.webtest.engine.StepFailedException: Step[clickbutton "<unknown>"
(2/3)]: Script error executing at: clickbutton, Step: ClickButton at
D:\JavaTools\Canoo_webtest_1018\kaletests\Tests\CVP_S_0002_VIC.xmt:80: with
(label="Erogazione identica", description="<unknown>",
stepType="clickbutton").
Cecked that doing it manually all goes right; I have realized that this is a
similar problem to one described in the Miller-Antonioli thread of this
list (from 05/10/2005 to 18/10/2005), but I have not yet clear how can I go
around the obstacle.
P.S.
For clarity I enclose the pieces of html and webtest script respectively:
...
<div class="sub">
<input type="submit" name="SubErogaIdentica" id="SubErogaIdentica"
value="Erogazione identica" tabindex="8" onclick="SubErogaIdenticaC()" />
<input type="submit" name="SubErogaDettaglio" id="SubErogaDettaglio"
value="Erogazione dettagliata" onclick="SubErogaDettaglioC()" tabindex="9"
/>
<input type="submit" name="SubErogaSenzaIUP" id="SubErogaSenzaIUP"
value="Erogazione priva di IUP" tabindex="10" onclick="SubErogaSenzaIUPC()"
/>
</div>
</form>
<div class="spacer"> </div>
...
And
...
<setinputfield name="TxtIdentificativoPrescrizione" value="#{valIUP}"/>
<clickButton label="Erogazione identica" />
... <verifytitle text="LISTA ANOMALIE EROGAZIONE"/> ...
Do anyone have any suggestion for me?
Thank you very much.
Vito Caleandro