Forum Discussion

azeezuddin's avatar
azeezuddin
New Contributor
13 years ago

Word, Excel, PowerPoint process runs in back ground even after closing them using Close() function..



Hi,



Recently We’ve downloaded Test Complete 9.2 trial version to study Automation feasibility of our desktop application.  I’ve installed Test Complete and our desktop application in Windows 8 Office 2013 environment. I’ve mapped few objects from word, Excel and PowerPoint applications (like Home/Insert/Design tabs..). I’ve written a small script to launch these applications, perform any action on these objects(like clicking these objects) and close the application. The problem here is word/excel/PowerPoint process runs in background even after closing the application using Sys.process(“WINWORD”).Close() or Sys.process(“EXCEL”).Close() or Sys.process(“POWERPNT”).Close() function calls. Some times I’ve observed that these processes will remain in back ground even when just name mapping is performed. If I use ‘Terminate’ function instead of ‘Close’ function these processes will be removed from background, but terminating the process each time I wish to close the application will disable the add-in of our desktop application in Word/Excel/PowerPoint applications.  

 

Can any one please suggest a solution to overcome this problem such that Word/Excel/PowerPoint process don’t run in back ground once they are closed using Test Complete.



Thanks,

Azeez.

1 Reply

  • I have Excel defined as an OLEObject and it closes fine with .close



    Set MsExcel = Sys.OleObject("Excel.Application")



    Maybe add it as a tested app, or if its already there use TestedApps.Excel.Close instead of the Process cmmands?