I'm having an issue trying to launch Adobe Acrobat Reader XI from TestComplete, either from the TestedApps or from a script. So far I've been unable to work out why it's not working properly and wonder if anyone could help me.
When I attempt to launch Acrobat from TestComplete, nothing happens. The processes appear in Windows task manager and TC's object browser; but nothing appears on screen.
The only differences I can see between attempting to launch it from TC and launching it successfully from shortcut/start are how the processes are displayed. From TC, both processes are listed under 'Background processes' (first image) whereas normally they're split under 'Apps' and 'Background processes' (second image).
The problem seems to also be intermittent depending on machine used (all same setup). Acrobat 9 and 10 both worked successfully. Any ideas? I've also attached the ReportGenerator log.
Right-clicking on it in TestedApps and clicking 'Run selected'
Using that method it seems to work for me. I would try readding the AcroRd32 to your testedapps collection. Check your application path under the "Run-mode parameters" make sure you don't have any command line parameters or working folder and that it says something like: C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe
In the Application path. Also make sure the "Run Mode" is set to simple.
I've reinstalled Acrobat, readded it in TestedApps and restarted my machine.
The application path is definitely correct and there are no parameters, working folder or anything and run mode is set to simple (see attached image).
However, still an issue. On top of this, Acrobat seems very unstable when being accessed by TestComplete, either from the script or from the spy tool, and it often terminates unexpectedly. I've switched off the accessbility option that attempts to auto-tag the PDF; which was causing some issue, but no effect.
I'm just going to try it again on another machine with TC version 10 incase it's something to do with the latest update.
That is interesting. It sounds almost like it's not running with your current Windows user and is instead starting under a different user thus not showing the main form. That is of course based on the fact that you can launch reader outside of test complete. So one thing you can try doing is logging in as the local administrator on your machine and try it. If that works then you'll know it's probably the way you launched test complete, domain rights, etc.
I'm unable to access my local administrator account at this time, but my domain account is an administrator on this machine and both Acrobat processes run under this account.
Some good news though, my colleague has managed to get it to work by playing around with some of the settings in Acrobat under Edit | Preferences.
On 3D & Multimedia | 3D Tool Options, changing both 'Open Model Tree on 3D Activation' and 'Default Toolbar State' from 'Use annotation's settings' to 'Yes' and 'Shown' respectively,
And under Security (Enhanced)| Sandbox Protection, unticking 'Enable Protected Mode at startup'.
This somehow seemed to do the job and I can now run Acrobat XI from TC. I can't confirm whether some or all of the above settings were the cause, as putting them back to how they were doesn't recreate the error - Acrobat will still run successfully.
It's also worth noting I was playing around with the MSAA option under the Project Properties | Open Applications | MSAA '*' option, which may have affected it; but again, everything was reset back to default with it still working fine!
One more idea is to start TestComplete as administrator (right-click and select Run as administrator). Does this improve the situation?
Regards, /Alex [Community Hero] ____ [Community Heroes] are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Posts made by [Community Heroes] may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. The [Community Hero] signature is used with permission by SmartBear Software. https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame ================================