How To

Looking for a receipt? Find it in the How To section - a constantly-extending collection of recommended solutions, best practices and interesting features.

Search
Product:
v
Most Frequently Viewed
Get the page loading time

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

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...

Applies to: TestComplete     Updated: 7/19/2010

Download a file from the Internet

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...

Applies to: TestComplete     Updated: 7/19/2010

 
© 2010 SmartBear Software. All rights reserved.
Home | Privacy | Terms of Use | About | Contact Us | Site Map | Print