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

NavigateURL is not set

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sam varg
Top achievements
Rank 1
sam varg asked on 07 Sep 2010, 04:41 PM
I am using WebUI Test studio Developer Edition for VS2008. I am new to this.

I was able to successfully record the test but when I run the test I am getting error. This is what I am trying to record and test.

1. Click on the link (Link is in a RadPanelBarItem) which opens a data entry form and when click on the submit button it insert the record to DB and opens a telerik report in a report viewer.
2. Then click on another link (Link is in a RadPanelBarItem) and enter data and click submit.

The test runs fine until when it click the link after the report viewer ie. the step 2.

I try to run the test from both quick execute and Test>Run both give me the same error.

Here is the error

'9/7/2010 11:27:50 AM' - 'Pass' : 47. RadComboBox('ctl00_main_cmbHumanExposure'): text is 'NO'.
'9/7/2010 11:27:52 AM' - 'Pass' : 48. RadComboBox('ctl00_main_cmbHumanExposure'): drop down is not opened.
'9/7/2010 11:27:53 AM' - 'Pass' : 49. RadComboBox('ctl00_main_cmbAnimalExposure'): text is 'NO'.
'9/7/2010 11:27:55 AM' - 'Pass' : 50. RadComboBox('ctl00_main_cmbAnimalExposure'): drop down is not opened.
'9/7/2010 11:27:57 AM' - 'Pass' : 51. Click 'ReviewSpan'
'9/7/2010 11:27:57 AM' - 'Pass' : 52. Click 'MainBtnSubmitSubmit'
'9/7/2010 11:28:01 AM' - 'Pass' : 53. RadPanelBarItem('ctl00_RadPanelBar1'): 'CLINICAL' action -> 'Expand'
'9/7/2010 11:28:02 AM' - 'Fail' : 54. [SampleEntry_CodedStep] : @"RadPanelBarItem('ctl00_RadPanelBar1'): 'Sample Entry' action -> 'Navigate' to '../Clinical-UI/Clinical-EntryForm.aspx'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[SampleEntry_CodedStep] : @"RadPanelBarItem('ctl00_RadPanelBar1'): 'Sample Entry' action -> 'Navigate' to '../Clinical-UI/Clinical-EntryForm.aspx''.
InnerException:
System.InvalidOperationException: Cannot navigate -- NavigateURL is not set!
   at Telerik.WebAii.Controls.Html.RadPanelBarItem.Navigate()
   at DCLSNET.Web.UI.Test.SampleEntry.SampleEntry_CodedStep() in C:\Svn\DCLSNET_Regression_Test\DCLSNET.Web.UI.Test\SampleEntry.aii.cs:line 76
--------------------------------------------------
'9/7/2010 11:28:02 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'9/7/2010 11:28:02 AM' - Overall Result: Fail
--------------------------------------------------

Thanks for the help.

1 Answer, 1 is accepted

Sort by
0
sam varg
Top achievements
Rank 1
answered on 07 Sep 2010, 09:27 PM

I think I figure out the problem. What I did was added a new step. Before I click on the link I added a new step to verify the navigate URL.


Thanks
Sam
Tags
General Discussions
Asked by
sam varg
Top achievements
Rank 1
Answers by
sam varg
Top achievements
Rank 1
Share this question
or