tested app is not using the working folder
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tested app is not using the working folder
I use TestComplete to test web applications, but we are converting from a legacy Windows product. I need to write a test that opens our legacy program (among other things). I have added the legacy program as a tested app where the application path leads to the legacy program's main exe file. I have no command line parameters. The Working Folder is pointed to where the data has been restored (SQL database). When I run the tested app, I get the message "The start in directory 'C:\Windows' is invalid." When I look at the start in input of the properties for the legacy program's icon, it is pointing to the working folder that I set up in the tested app. If my manager does the same thing, it seems to be running correctly for him. I have looked through all the options and current project properties and I can't find anything to explain why I am getting this message. Please help and thanks in advance!
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure I understand what you mean by the working folder is set to an SQL database restore? Working folder should be a drive folder somewhere. Without a proper working folder, it cannot run the app properly.
Additionally, the user that you're logged into windows under, if it doesn't have the rights/privilege for that working folder, that may also give you an error.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was trying to say that the database is SQL. In order to open the database it has to be restored to a particular location. The working folder is pointed to that location, not to the program files exe.
I had already added the 'Everyone' group to the security permissions and set that to full control.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you share screenshots, please, of the app configuration?
Also, share either the script code you're executing or the Keyword test steps you're attempting to execute.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
App config:
At one point I deleted the tested app setup and recorded opening the program and letting TestComplete create the tested app for me. It was created exactly as I had set it up before.
I have also tried running the tested app from a keyword test by commenting out the first 2 lines below and pulling the InstallConvertBackupDBs into a keyword test.
Script:
I have been commenting out the first 2 lines in the script as they are already done and I am just focusing on getting the program to open.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, so, a number of things come to light.
1) Your working directory is on a mapped drive (Y). While you, as a user, may have the drive mapped, if you're running TestComplete as an administrator, that drive mapping may not translate.
2) Drive mapping I've found to be rather interesting, sometimes, when working with different kinds of applications. The drive may be mapped just fine in Windows but if you open up a command prompt, it may not be mapped. Windows does that sometimes and it's VERY annoying.
Recommendation:
Change the working directory to be the full network path (\\<servername>\<sharename>\<folder tree>\) OR
Restore the working data to a local C drive directory instead and have your tested app point to that local drive location.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was thinking I couldn't do that because we will be using the data on a remote server, but for the purposes of this test, that would work (restoring locally). We had tried the full network path and it didn't like that either. I will go ahead and accept this as a solution and see how it goes. Thanks!
