[Webtest] [webtest][JIRA] Closed: (WT-4) The step <selectform> attribute index does not work.
Paul King (JIRA)
webtest@lists.canoo.com
Tue, 24 May 2005 15:27:08 +0200 (CEST)
[ http://webtest-community.canoo.com/jira/browse/WT-4?page=history ]
Paul King closed WT-4:
----------------------
Assign To: Paul King
Resolution: Fixed
The selectForm.xml self test shows that this is now working for both index and name.
> The step <selectform> attribute index does not work.
> ----------------------------------------------------
>
> Key: WT-4
> URL: http://webtest-community.canoo.com/jira/browse/WT-4
> Project: WebTest
> Type: Bug
> Environment: Any platform.
> Reporter: Koorosh Vakhshoori
> Assignee: Paul King
>
> When using <selectform> step in one of my test scripts, I get the following error message:
> Attribute name must be set, Step: SelectForm ...
> The line it was referring to is:
> <selecform index="2"/>
> Based on the documentation:
> http://webtest.canoo.com/webtest/manual/syntax.html#new_selectform
> Either name or index is required. When looking at the file:
> SelectForm.java
> in method verifyParameters(), it enforces the 'name' attribute only. The fix is to add an extra check for 'index' attribute as well. Here is the code change:
> protected void verifyParameters()
> {
> //Koorosh: Fixed the check so it would work either with name or index.
> if ((getName() == null) && (getIndex() == null))
> {
> throw new StepExecutionException("Attribute name/index must be set", this);
> }
> }
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira