NavigateURL is not set

2 posts, 0 answers
  1. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 07 Sep 2010 Link to this post

    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.
  2. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 07 Sep 2010 Link to this post


    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
Back to Top