Forum Discussion
12 years ago
It looks like you need to modify (at runtime) the Path property of your TestedApp object.
I did it (in TestComplete v9.31) something like this:
var folderPath = aqFileSystem.GetFileFolder(myExecutablePath);
var fileName = aqFileSystem.GetFileName(myExecutablePath);
if (fileName != TestedApps.MyExecutable.FileName)
{
Log.Error("The executable's name needs to be " + TestedApps.MyExecutable.FileName);
throw "error, dude"; // don't know if this is valid syntax... either way, something fails =)
}
TestedApps.MyExecutable.Path = folderPath;
I did it (in TestComplete v9.31) something like this:
var folderPath = aqFileSystem.GetFileFolder(myExecutablePath);
var fileName = aqFileSystem.GetFileName(myExecutablePath);
if (fileName != TestedApps.MyExecutable.FileName)
{
Log.Error("The executable's name needs to be " + TestedApps.MyExecutable.FileName);
throw "error, dude"; // don't know if this is valid syntax... either way, something fails =)
}
TestedApps.MyExecutable.Path = folderPath;