Completed
Last Updated: 08 Jul 2020 14:04 by ADMIN
Rey
Created on: 07 Jul 2020 15:38
Type: Bug Report
0
Specific web page sets window.top to null or undefined and Test Studio cannot verify a checkbox state

A customer application sets window.top to null or undefined at some point and thus the test execution fails to verify the state of a checkbox with the following error: 

 Executing step 6 "Verify checked value is 'True' on 'PhysiciansCensusTypeICheckBox'"...
[07/07 09:16:39,ArtOfTest.Runner.exe(60868:4),Error] ExecutionEngine.CatchExecuteStepException() : EXCEPTION! (see below)
     Outer Exception Type: ArtOfTest.WebAii.Exceptions.ExecuteCommandException
     Message: ExecuteCommand failed!
          InError set by the client. Client Error:
          System.InvalidOperationException: Javascript call [((window.top.Telerik && window.top.Telerik.TestStudio && window.top.Telerik.TestStudio.Common && window.top.Telerik.TestStudio.Common.DomProviders && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory.getProvider().getElementByTagNameAndIndex(document, 'input', 33)) || document.getElementsByTagName('input')[33]).checked] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: Unable to get property 'Telerik' of undefined or null reference
          at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJson, IHTMLDocument2 doc)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
          BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'((window.top.Telerik && window.top.Telerik.TestStudio && window.top.Telerik.TestStudio.Common && window.top.Telerik.TestStudio.Common.DomProviders && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory.getProvider().getElementByTagNameAndIndex(document, 'input', 33)) || document.getElementsByTagName('input')[33]).checked',ClientId:'Client_db882bcb-7e2c-45a0-a39c-5eb37cff3119',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.InvalidOperationException: Javascript call [((window.top.Telerik && window.top.Telerik.TestStudio && window.top.Telerik.TestStudio.Common && window.top.Telerik.TestStudio.Common.DomProviders && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory.getProvider().getElementByTagNameAndIndex(document, 'input', 33)) || document.getElementsByTagName('input')[33]).checked] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: Unable to get property 'Telerik' of undefined or null reference
          at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJson, IHTMLDocument2 doc)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
          InnerException: none.
     HRESULT: 0x80131500 (Official ID (if app.) = COR_E_EXCEPTION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5376)
     Call Stack:
          at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
          at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
          at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script, Boolean refreshDom, Boolean waitUntilReady)
          at ArtOfTest.WebAii.ObjectModel.Element.GetValue[T](String propertyName, T defaultValue)
          at ArtOfTest.WebAii.ObjectModel.Element.GetValue[T](String propertyName)
          at ArtOfTest.WebAii.Controls.HtmlControls.HtmlRadioCheckboxControl.get_Checked()
          at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.CheckVerificationDescriptor.ExtractData(IAutomationHost targetBrowser, DescriptorValueStore dataStore)
          at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

 

1 comment
ADMIN
Elena
Posted on: 08 Jul 2020 14:04

Hi,

A fix was implemented for the listed issue and will be publicly available in the next official release of Test Studio - R2 2020, planned for August 2020. 

Regards,
Elena
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.