Forum Discussion
sure, (delphi script)
first I clear everything :
TestedApps.Clear;
then I add the app :
TestedApps.Add('my path\myapp.exe', '', 1, true, '');
TestedApps.myapp.Params.SimpleParams.CommandLineParameters:= '/i put all my eventual parameters here';
TestedApps.myapp.Run;
notice that you won't have the autocompletion for the app 'myapp.exe' but you could "blindly" use its aliases in the script.
I am assuming this code is for scenario 1. Is that correct?
Please post a screenshot of how you are mapping the application in your name mapping.
Put a breakpoint just before the line where you get the 'Object not found' error. Stop the script and see if TestComplete recognizes the application from NameMapping. Post here what you find.
- m_essaid10 years agoValued Contributor
djadhav, I cannot post any screenshot of my namemapping.
but it's quite simple.
when I build the scenario, I use alternatively the recorder with a script transcription or I map myself objects.
the mapping is set to Aliases.MyApp.etc.etc
When I clear all tested apps, and do not have the .exe launched in memory, the autocompletion don't give me anything.
But when the app is launched, the mapping knows that it's the right app.
Just by the process name.
- m_essaid10 years agoValued Contributor
yes, it's the first option