Forum Discussion
This may seem like a "duh" question...
...but have you verified that the application is actually running on the machine when you run it from TestExecute? Can you go to the machine, either via remote or directly, run the TestExecute commandline and verify that it is launching your application?
Also, something to just make sure of that the application is running under the same user as the TestExecute process... it's possible that this could "hide" your application from TestExecute as well, depending upon privilege levels.
I really don't know what properties are used to map the application. I have TestComplete open, and I'm looking at Mapped Objects, but I don't know what to look for.
The application is running, I can see it. I start the application manually before running the test, because there is manual setup I have to do anyway. I may add functionality to have my script start the app later. I could try having the script start the application and see if that helps.
As far as I can tell, the application is running under the same user as TestExecute is.
- tristaanogre9 years agoEsteemed Contributor
OK... under Mapped Objects, you should see a collopsed node that says "Sys". Expand that. Somewhere in that list is your app (you called it "MyApp"). Click on that.
In the right hand side then, you should see all the properties being used to map your application. For example, in this screenshot, I'm mapping the Windows Paint application as Aliases.mspaint and it is using the simple criteria that it has a process name of "mspaint".
If, on the off chance, MS Paint starts and it has a DIFFERENT process name than "mspaint", even though the application is running, Aliases.mspaint will return an object not found error.- rlent9 years agoContributor
I got it working. I had the script start the application, and then the script could find the process. I'm still not sure why it couldn't find the process if it didn't start the application, but this works. Thanks.
- rlent9 years agoContributor
For some reason, I don't see Sys under here. (Workbench is my application). It does work when I have the script start the application, but I am curious why it didn't work otherwise. If I don't figure it out, I'll be OK. Thanks again