Get the page loading time Change language The script below opens the http://www.automatedqa.com page and estimates how long the page is loaded. Open Internet Explorer before running the script. VBScriptCopy Code Sub Test Dim iexplore, page, startTime, loadTime Set iexplore = Sys.Process("IEXPLORE") Set page = iexplore.Page("*") page.ToUrl("http://www.automatedqa.com/") page.Form("aspnetForm").Panel(1).Panel(0).Panel(1).Panel(0).Link(6).Click() startTime...
Applies to: TestComplete Updated: 7/19/2010
Send an e-mail message Change language The script below demonstrates how to send an e-mail message from TestComplete if you need to use a GMail account. VBScriptCopy Code Sub Test() Call SendEmail("FROM_EMAIL", "TO_EMAIL", "Test", "TestMessage", "") End Sub Function SendEmail(mFrom, mTo, mSubject, mBody, mAttachment) Dim smtpServer, portNumber, userName, userPassword...
Download a file from the Internet Change language The script below downloads a file from the Internet and saves it to the specified directory on your computer. VBScriptCopy Code Sub Test Dim strFileURL, strHDLocation, objHTTP, objADOStream, objFSO ' Specify the names of the source and destination files strFileURL = "http://www.automatedqa.com/file...