This is a migrated thread and some comments may be shown as answers.

Name 'variable name' is not declared

1 Answer 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saima
Top achievements
Rank 1
Saima asked on 25 Jan 2011, 01:48 PM
Hi,

While using Customize step in code in WEBUI QA, i have added the following row using a variable 'rowcount' and then bind this variable to output in generic dialog box.

pages.Dashboard3.SilverlightApp.CategoryGridRadgridview.Rows.Count(rowcount)

 

When executed the test failed to compile with the error "Name 'rowcount' is not declared". Here is the failure log

C:\Documents and Settings\wahabs\My Documents\WebUI Test Studio Projects\Regression project\Change Content.aii.vb: Line 72: (BC30545) Property access must assign to the property or use its value.
C:\Documents and Settings\wahabs\My Documents\WebUI Test Studio Projects\Regression project\Change Content.aii.vb: Line 72: (BC30451) Name 'rowcount' is not declared.

Please help me to resolve the issue. Many thanks.

Thanks,
Saima

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 31 Jan 2011, 09:33 AM
Hello Saima,
   I assume you've declared/initialized rowcount previously (int rowcount=0; or something similar)?

Could you please give me your entire code-behind class? In order to open the entire class, open your test and go to Record View. Click on View Class - the entire class will appear on the bottom of the screen (see screenshot 1).

Hope to hear from you soon!

All the best,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Saima
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or