ContributionsMost RecentMost LikesSolutionsRe: Add a script file from one project to another project... Well, the plot thickens. I thought the earlier response (that I accepted) was right as I did note it was a JScript project and the scripts were all C#. However, after attempting to fix this, I come to find out that there is no C# project. Using the "Create a New Project" wizard, I started off to create a project specifically for my C# scripts. However, the last screen, which is the one where you pick your scripting language, only shows {{VBScript}, {JScript}, {DelphiScript}, {ConnectedApps Script}}. If you look at the info provided for a JScript project, it specifically says, and I quote, "Java like scripting syntax (similar to the C++ and C# syntax). OK, so it says "similar". But I don't see an option for C# scripts. So what should I use? And more importantly, how can I go about including scripts from other projects into my current project!? I'm getting a little frustrated with trying to do something that seems like it should be pretty simple, but appears to actually be difficult to do. Any other suggestions would be greatly appreciated. Thanks. -Ron Re: Add a script file from one project to another project... After doing some more research, I found that all of my scripts are C# scripts. I can see the language (C# in all cases) for my scripts in the editor's status bar. What I cannot figure out is, if my project is setup for JScript, why did it let me create all of these C# scripts? From what I have read, there is no way to change the project's script type, but why does it let you do this in the first place? Unless anyone else has another suggestion, it looks like I will have to create a new project and copy my scripts there. Thanks all for the help. Re: How to trap/catch TestComplete "Stop on Error" Hmm, not sure about the comment about the limitation of the scripting language. I was using the C# script format which, I thought, was supposed to be based on javascript. I know for sure that javascript has try/catch/finally baked in. I'll freely admit that I now nothing about VB/VBA. Re: Add a script file from one project to another project... This was the issue. Thanks very much for pointing this out. Add a script file from one project to another project... OK, I know this can be done as I have done it before, but my searches are not finding the information I need. I have a script file in one project called (example) AppControl.scs. Notice the extension here is .scs and NOT .sj. Now I want to use this same script file in several other projects with ALL of them pointing to the same copy. This will allow me to make a change to the one being referenced so all of the projects will see this change. When I navigate into a project/folder where I want to add the script (.scs file), I right click and select "Add Existing Item". But the only thing it seems to allow is adding .sj files. If I try to "trick" it by double-clicking on the "AppControl.scs" file, it opens what appears to be another folder that is empty. But if I change the "Files of type:" to "All Files (*.*)", it shows a AppControl.scs.tcVis. I have tried to select this, but it comes back and tells me that it is NOT a .sj file and won't add it. What am I doing wrong?? Thanks! SolvedRe: How to trap/catch TestComplete "Stop on Error" While both answers could possibly work, I was hoping for something in code that would allow one to catch an error, such as: try{ ... } catch (Exception e) { ... (ignore error) } Most languages have such a construct to catch ANY exception. Is there no such thing in TestCompletes scripting language? How to trap/catch TestComplete "Stop on Error" I have a WPF application that has "hidden" buttons along the top, bottom, left, and right of a map. When a user moves their mouse to an edge, these buttons become active. To click one of these, I move the mouse to the edge of the screen by doing a click in a specific area. It then "unhides" the button. I can see it work when I run the script and the button does indeed get pressed as the "new" window appears in the proper location. However, TestComplete seems to think that the control is still hidden, even though the click event worked!? The script stops on the click event with the errors: The controls is invisible. The action cannot be executed. The test has stopped because the "Stop on Error" setting is enabled. I still want the stop on "real" errors, but how do I go about ignoring this falsely reported error? Thanks. -Ron Re: pass executable name to test script This is just what I was looking for and just tested it. Works great. Thanks very much for this. -Ron Re: pass executable name to test script Not a bad idea, but it only solves part of the problem. Even if I were to load the name from a file, I still cannot figure out how to "run" the file. The only way I can see to startup a desktop application is to add it to "TestedApps" and use the .Run() method as stated above: TestedApps.[Executable Name].Run(); I cannot find an Execute(filename) command, or a RunFile(filename) or something like this. I even tried to simply load a variable with the filename to see if there was a "Run" method in desperation, but this obviously was not going to work and it didn't. Ex. var fileToRun = "C:\\[directory]\\[filename.exe]"; fileToRun.Run(); Am I missing something really obvious here? Is there another way to startup your app without adding it to TestedApps? Thanks again. -Ron pass executable name to test script Currently we use a "TestedApps" executable for use in our test scripts; ie. TestedApps.[Executable Name].Run(); We would like to be able to pass the executable name to TestExecute as an input parameter that is based on the build number in the directory. Is there a way to do this? Or is there a way to modify the "TestedApps" file location via command line? This is for testing a nightly build. Thanks. -Ron Solved