Contributions
When exexute automation suite with AntHill Pro or Schedule task with Win7 OS few objects are niot getting identified and scripts are getting failed.
Hi, I am working With Testcomplete9 and facing the below problem while automation suite execution. Problem: When we exexute automation suite with AntHill Pro or Schedule as task with Win7 OS few objects are niot getting identified and scripts are getting failed. And our observation is that same scripts are getting passed when executed manyally by running project suite whlie the VM window kept open. Environment Details: OS -> Win7 64 Bit Tool -> Testcomplete9 CI tool -> AnTHill Pro Application UI technology->Silverlight 5 Please let me know if you require more information. Your help will be highly appreciated!! Thanks Vara Prasad B1.5KViews0likes1CommentRe: Test complete sometimes crashing when “Refresh” method is called on the parent object
Hi Tanya, Thanks for your reply. As you suggested, i tried to execute script using DbgServices and launch tested applicaition to trace the exceptions and to obtain call stack data with the below piece of code. i am getting the "First chance exception" error log. Please refer the attached screen shot for the log i got when executed the below code and kindly help how to resolve this error mentioned above to proceed further and to find out the reason for application crash. Sub Main Set launchTestedApplication = DbgServices.LaunchTestedApplication DbgServices.Options.EnableEvents = True DbgServices.Options.ActiveExceptions = True Log.Message("Exceptions are being traced.") ''''To login into application with valid credintials call ApplicationLoginUser("vbulus1","Setup2000") End Sub Function ApplicationLoginUser(ByVal sUserName, ByVal sPassword) Dim oApp,oUserName,oPassword,oLogin,oLogout Dim arrProp,arrUNVal,arrPwdVal,arrLBVal,arrLOVal Dim iChildDpt,bFound iChildDpt= 20 arrProp = Split("Name|Visible","|") arrUNVal=Split("UIAObject(""UserId"")|True","|") arrPwdVal=Split("UIAObject(""Password_2"")|True","|") arrLBVal=Split("UIAObject(""Login_2"")|True","|") arrLOVal = Split("UIAObject(""Log_out"")|True","|") Set oApp = oProcess Set oUserName = oApp.Find(arrProp,arrUNVal,iChildDpt,False) Set oPassword= oApp.Find(arrProp,arrPwdVal,iChildDpt,False) Set oLogin = oApp.Find(arrProp,arrLBVal,iChildDpt,False) delay(2000) IF oUserName.Exists Then oUserName.SetValue sUserName oPassword.SetValue sPassword Delay(3000) If oLogin.Exists THen oLogin.Click Delay(15000) oApp.Refresh Set oLogout = oApp.Find(arrProp,arrLOVal,iChildDpt,False) IF oLogout.Exists Then bFound = True arrPUVal = Split("UIAObject(""Popup"")|True","|") Set oPopup = oApp.Find(arrProp,arrPUVal,iChildDpt,False) If oPopUP.Exists Then If oPopup.Child(0).ObjectIdentifier = "BusyChildWindow" Then While oPopUP.Child(0).Exists Delay(1000) oApp.Refresh wEnd End If End IF Set oPopup = oApp.Find(arrProp,arrPUVal,iChildDpt,False) If oPopUP.Exists Then Log.Warning("Unable to Load Work Flow module") arrOkVal = Split("UIAObject(""Ok"")|True","|") Set oOK = oPopup.Find(arrProp,arrOkVal,iChildDpt,False) If oOK.Exists THen oOK.Click End If End If Else bFound = False End if Else Log.Error("Login Button Not found") bFound = False End if Else Log.Error("Login Page Not found") bFound = False End if ApplicationLoginUser = bFound Set oApp = Nothing Set oUserName = Nothing Set oPassword= Nothing Set oLogin = Nothing Set oLogout = Nothing End Function Thanks & Regards, Vara Prasad2KViews0likes0CommentsWhile spying JQuery objects Testcomplete is getting hanged.
We are working on Testcomplete(9.31) and on an application that is developed using JQuery. Please let us know if Testcomplete supports Jquery or not? Because when i try to spy objects ot the application tool is getting hanged. Thanks, Vara Prasad2KViews0likes1CommentTest complete sometimes crashing when “Refresh” method is called on the parent object
Test complete sometimes crashing when “Refresh” method is called on the parent object to get the properties of immediate Childs at runtime. Please go through the sample code cited below. In the below highlighted line of code the for Find method where silver light application is getting crashed. Please let us know how to handle this application crash issue: Tools and S/w versions: Testcomplete version :9.31 Silverlight version : 5.1.20513.0 Sample Code to search a button and to perform click operation on it: Function SlvButtonClicker(ByVal sProperty, ByVal sValue, ByVal sField)' <@as> Boolean Dim arrProperty,arrValue,iChildDepth Dim bFound iChildDepth = 40 ' *HardCoded - Child Search Depth bFound = false If IsNull(sValue) or sValue="" or IsNull(sField) or sField="" then log.Error("Invalid parameters..") SlvButtonClicker = False Exit Function End if arrProperty = Split(sProperty, "|" ) 'To identify an object arrValue = Split(sValue, "|" ) If Ubound(arrProperty) = Ubound(arrValue) Then oProcess.Refresh Set oObject = oProcess.Find(arrProperty, arrValue, iChildDepth, False) If oObject.exists Then log.Message(sField &": object found") bFound = True Else bFound = False End If If bFound Then If oObject.enabled Then Log.Message(sField &": is enabled..") oObject.Click SlvButtonClicker = true Else SlvButtonClicker = false End If End If End If End Function4.6KViews0likes6Comments