Forum Discussion

sudhir_optima's avatar
sudhir_optima
Contributor
13 years ago

Why Saved recored script / keyword Test failed

Hi  two days back i haved recoreded Script test. Successfully played it without any error.



But today when i tried to play it it gives following error.



Tested Object

Alias: Aliases.QBIS.MainMirandaConsole.MdiClient.Workbook1.navBarData.NavBarGroupControlContainerWrapper.navBarGroupControlContainer4.navBarControlLeft.NavBarGroupControlContainerWrapper.navBarGroupControlContainerFileds.dimensionTreeUC1.tvFields



Mapping item: NameMapping.Sys.QBIS.MainMirandaConsole.MdiClient.Workbook1.navBarData.NavBarGroupControlContainerWrapper.navBarGroupControlContainer4.navBarControlLeft.NavBarGroupControlContainerWrapper.navBarGroupControlContainerFileds.dimensionTreeUC1.tvFields


Missing Object

Alias: Aliases.QBIS.MainMirandaConsole.MdiClient.Workbook1.navBarData.NavBarGroupControlContainerWrapper.navBarGroupControlContainer4.navBarControlLeft.NavBarGroupControlContainerWrapper.navBarGroupControlContainerFileds



Mapping item: NameMapping.Sys.QBIS.MainMirandaConsole.MdiClient.Workbook1.navBarData.NavBarGroupControlContainerWrapper.navBarGroupControlContainer4.navBarControlLeft.NavBarGroupControlContainerWrapper.navBarGroupControlContainerFileds



It seems the object properties get chnaged. But i am using same build. There is no change. Why the Alias get chnaged ?



1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    Same build does not necessarily mean that the object doesn't have dynamic properties.  Especially when working with web applications and certain .NET structures, the properties of an object may change which will make situations like you encountered occur.  Check out the following video for some tips as to how to handle this.



    http://smartbear.com/support/screencasts/testcomplete/reliable-tests-for-dynamic-objects/



    Another possibility may be that the object itself is not incorrectly identified but may be a timeout issue.  You're requesting actions against a component whose parent component does not exist for some reason.  It could be that the timing of your automation may be attempting to perform that action before all the components have resolved.  You can try putting a "Delay" call to test this theory.  You can also mitigate this somewhat by using the WaitAliasChild method as well as increasing the Auto-wait timeout in your project.