Contributions
TestComplete and its reliance on MS Script Debugger
Hi AQ Team, Our IT administrators here are concerned about installating Microsoft's Script Debugger because the version required of the Script Debugger is deprecated technology and is no longer supported by Microsoft. It even states that on the Script Debugger home page: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=2F465BE0-94FD-4569-B3C4-DFFDF19CCD99&displaylang=en What should I tell the admins andare there any plans to move to technology that is supported by Microsoft? Thanks, Adrian15KViews0likes1CommentHow can I run / open a file, process or executable without using TestedApps?
Hi All, How can I run / open a file, process or executable without using TestedApps? The file I want to open is “KA.application” which is a ClickOnce application but unfortunately the TestedApps section only allows typical executable files e.g. EXE, CMD, BAT, COM. I am running TC version 7.20.562.7 on Windows Vista. I search help for a number of different keywords but with no luck. Thanks, Adrian21KViews0likes4CommentsRe: Is there a way to access variables across different script units w/out using proj vars?
Figured it out: UNIT1 script contents: 'USEUNIT Unit2 public sMessage1 Sub sSampleSub1 sMessage = "Hello" sSampleSub2 End Sub UNIT2 script contents: 'the below line HAS TO BE here otherwise it wont work 'USEUNIT Unit1 Sub sSampleSub2 msgbox sMessage End Sub530Views0likes0CommentsIs there a way to access variables across different script units w/out using proj vars?
Hi All, Is there a way to access variables across different script units without using project variables? I can easily pass variables in and out of different subroutines in the same script unit with no hassle but I’m not aware how to do this without using project variables. BTW I'm using VB Script. Thanks, Adrian12KViews0likes1CommentIs there a way to return the name of the current sub routine or function?
Hi All, Is there a way to return the name of the current sub routine or function that is being run. It would be nice to enter into the log. I am currently coding in VB Script. I assume there is no way to do it using VB script but is there a TestComplete inbuilt function? Thanks heaps, Adrian31KViews0likes29CommentsRe: TestComplete's .Exists Function
Ok thanks heaps. So there is no way to find out if a button exists without erroring, i can only find out if some other object in the panel's heirarchy exist without erroring? e.g. for the following button: Sys.Process("iexplore", 2).Page("http://qvw3appem02/ems2/Default.aspx").Form("FormDefault").Frame("iframeMain").Form("aspnetForm").Table(0).Cell(1, 0).Panel("ctl00_pnlMainContent").Panel("ctl00_ContentPlaceHolderMain_upnlDisplayOrSearch").Panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch").Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_pnlFind").Table(0).Cell(0, 1).Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_upnlFind").SubmitButton("ctl00_ContentPlaceHolderMain_DocumentSearch1_btnFind") As TestComplete is erroring with: Unable to find the object panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch"). As a result I have to use this instead? Sys.Process("iexplore", 2).Page("http://qvw3appem02/ems2/Default.aspx").Form("FormDefault").Frame("iframeMain").Form("aspnetForm").Table(0).Cell(1, 0).Panel("ctl00_pnlMainContent").Panel("ctl00_ContentPlaceHolderMain_upnlDisplayOrSearch").WaitPanel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch",1).Exists5.3KViews0likes0CommentsRe: TestComplete's .Exists Function
Thanks for the response guys, but Im running into problems: If I use WaitProcess: Set Object = Sys.WaitProcess("iexplore",0,2).page("http://qvw3appem02/ems2/Default.aspx").Form("FormDefault").Frame("iframeMain").Form("aspnetForm").Table(0).Cell(1, 0).Panel("ctl00_pnlMainContent").Panel("ctl00_ContentPlaceHolderMain_upnlDisplayOrSearch").Panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch").Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_pnlFind").Table(0).Cell(0, 1).Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_upnlFind").SubmitButton("ctl00_ContentPlaceHolderMain_DocumentSearch1_btnFind") If Object.Exists Then MsgBox("Object exists") Else MsgBox "Object does not exist" End If The execution pauses and the log reads: Unable to find the object panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch"). The object does not exist. If I use WaitChild: Set Object = Sys.Process("iexplore",2).page("http://qvw3appem02/ems2/Default.aspx").Form("FormDefault").Frame("iframeMain").Form("aspnetForm").Table(0).Cell(1, 0).Panel("ctl00_pnlMainContent").Panel("ctl00_ContentPlaceHolderMain_upnlDisplayOrSearch").Panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch").Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_pnlFind").Table(0).Cell(0, 1).Panel("ctl00_ContentPlaceHolderMain_DocumentSearch1_upnlFind").waitchild("ctl00_ContentPlaceHolderMain_DocumentSearch1_btnFind",0) If Object.Exists Then MsgBox("Object exists") Else MsgBox "Object does not exist" End If The execution pauses and the log reads: Unable to find the object panel("ctl00_ContentPlaceHolderMain_pnlDocumentSearch"). The object does not exist. Help :)5.3KViews0likes0CommentsTestComplete's .Exists Function
Hi Guys, I am used to Quick Test Pro so I am sometimes lost as to what to do in TestComplete. I am familiar with doing the following: If WebpageObject.exists Then ‘do something Else ‘do something else End If QTP simply runs through this and if the object is not there it simply moves on to the else statement without pausing or logging an error. The problem with TestComplete is that when the .Exists part fails, it logs and error to the log and in my case it pauses test execution (because I have “Pause test execution on posting an error” ticked). I don’t want it to pause because it almost defeats the point of automation in that someone has to keep monitoring the script to see what is happening with it. I don’t want to remove the tick in “Pause test execution on posting an error” because instances where something fails badly the scripts keeps executing nonstop which is silly if the first screen returns a server error and keeps executing through many screens that aren’t there. What solutions do I have with TestComplete to check if an object exists without pausing the script. This applies to web page objects and desktop applications e.g. .Net Thanks, Adrian27KViews0likes14Comments