Run Code snippet error
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Run Code snippet error
Hi Im having issues with running a code snippet the actual problem is it's erroring for no reason. It actually fires the application up correctly however when it comes to the end of the test it fails due to the reason below.
Can anyone help?
File name:
C:\Program Files (x86)\Enserve Group Ltd\Job Track Enterprise (FCAMSYS)\Water\JobTrackEnterprise.exe
Possible reasons:
- You are using Windows Vista or a later Windows version, and TestComplete is running without administrator privileges.
- The working folder path is unavailable or does not exist:
[n\a] - The command-line arguments specified for the application are invalid:
[n\a] - The specified file is a non-executable file that cannot be launched using the selected Run mode.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can we see the code snippet too please?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So now we work through the error messages.
Are you running TC as Windows administrator?
Can you get to that path C:\Program Files (x86)\Enserve Group Ltd\Job Track Enterprise (FCAMSYS)\Water\JobTrackEnterprise.exe just by navigating in Windows?
Can you run that command line from the code snippet from a Run box?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So now we work through the error messages.
Are you running TC as Windows administrator? Yes I have tried administrator.
Can you get to that path C:\Program Files (x86)\Enserve Group Ltd\Job Track Enterprise (FCAMSYS)\Water\JobTrackEnterprise.exe just by navigating in Windows? Yes
Can you run that command line from the code snippet from a Run box? And Yes just tried this now and it runs.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try the items listed under Notes at the bottom of this article:
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi thanks for this I'm not sure this helped unfortunately though.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Enservepete,
Does the issue persist when you run your tested application from:
- the TestComplete GUI in the TestedApps Editor?
- when using the Run method instead of RunAs in your code?
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello I've just tried this I've put my other user details in. I'm not sure what yo mean when saying using the run method instead of RunAs. I've created a new instance of the application and called it other user under RunAs and though TC said it has failed again it actually loads up the application albeit it takes a lot longer than if it was me logging into it.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Enservepete,
Right now, you are using the RunAs method to launch your application. It means that you need to specify the credential information of a user under which account you want to start the application. The Run method is simply run the application under the account under which TestComplete was started.
Try adding your tested application to TestComplete’s TestedApps list as it’s described in the Defining Applications to Test ( http://smartbear.com/viewarticle/68684/ ) article.
Tanya Yatskovskaya
SmartBear Community and Education Manager
