Contributions
Re: I get an erroneous "Cross references are not allowed." message
No, the unit DialogFunctions_TSTruss does not contain any USEUNIT references to Main_TrussStudio. There is something else that I failed to mention. TestComplete appears to be fixated on the second line of the DesignTrusses1A unit. I have tried reordering the USEUNIT lines and no matter what unit is referenced in line 2 TestComplete always throws the same error. TestComplete seems to think that the second line is "//USEUNIT Main_TrussStudio" no matter what is there. I have even tried copying the contents of DesignTrusses1A to a new unit file with a different name, then deleted the original DesignTrusses1A, and then renamed the copy back to DesignTrusses1A and that also didn't work. TestComplete still manifests the same bogus error.1.7KViews0likes5CommentsI get an erroneous "Cross references are not allowed." message
I have two JavaScript files - Main_TrussStudio andDesignTrusses1A. When I attempt to run the test from the Main script file the script view jumps to the DesignTrusses1A file and presents an error dialog with the following content: Syntax error(s). The units DesignTrusses1A and Main_TrussStudio refer to each other. Cross references are not allowed in JScript units. Error location: Unit: "CSAutomation\CSDirector\Script\DesignTrusses1A" Line: 2 Column: 1. The error is bogus/erroneous because DesignTrusses1A script unit does not contain any USEUNIT reference to the Main_TrussStudio script unit. The referenced line is: //USEUNIT ToolbarFunctions_TSLayout Which is obviously not "//USEUNIT Main_TrussStudio" as implied. Has anyone seen this before or know a way I can work around it? I am using TestComplete 11.31.2420.7.Solved1.7KViews0likes7CommentsWhen a test is paused during playback, are all of the application-under-test's threads also paused?
When I specify a breakpoint in my test and run the test, when the test pauses upon reaching the breakpoint, is everything in the test application also paused? Are all of its threads paused? Also, if I halt the test after the pause, is the application-under-test also halted at that point or does TestComplete wait for the application to complete the current task(s) including allowing all threads to complete?Solved1.3KViews0likes2CommentsRe: Issues accessing menu items in an MFC based application
No, I am pretty sure I am referring to the Object Spy. I invoke it from the following toolbar: I click on the second button from the left. And when I hover my mouse cursor over it the tooltip says 'Display Object Spy'.1.2KViews0likes1CommentRe: Issues accessing menu items in an MFC based application
Robert, Once I figured out how to access the 'context' menu in the Object Spy application and select 'Map Object', the Map Object dialog initially told me I had to map an unmapped parent object. The problem is that the parent object is already mapped and when I click 'Yes' on the dialog to map it I get an error telling me the object I want to map is not visible. While this is certainly true for the menu display list I am trying to map it is not true of the parent object. When I click the 'OK' button on the error dialog the whole process exits and I am stuck back at the beginning again. Randall1.3KViews0likes3CommentsIssues accessing menu items in an MFC based application
In my application being tested I have been able to access the menus on the menu bar via the following name mapping: Aliases.TrussStudioProcess.LayoutFrame.TopDockBar.LayoutMenuBar I can access the menu using index numbers like this: Aliases.TrussStudioProcess.LayoutFrame.TopDockBar.LayoutMenuBar.ClickItem(0, true); In this example the File menu, which is the first menu on the left, is clicked and opened. The problem I am having is that the menu will not stay open so I can name map it. If I record selecting something off of a menu TestComplete maps the menu item list to 'Item'. So I am only able to script the opening of a menu but not the selection of an item on the displayed list. How do I get the menus to stay open long enough so that I can name map them to names like FileMenuList, ApplicationMenuList, etc.? I am using JavaScript if that makes a difference in the answer. I have already tried everything in the 'Addressing Menu Items' article in the Help section for Desktop testing and was unable to get anything suggested to work.1.3KViews0likes5CommentsI am missing the Events project item in my TestComplete project. How do I get it back?
I need to create an event handler but to do so I need to access the Events project item. The problem is my project is missing the Events project handler. Is it something I failed to install? Is there a setting that will turn it on? How do I get it back into my projects?Solved863Views0likes1CommentHow do I control what the record engine writes to the file?
Somehow I did something that has caused my record engine to write statements to the file that start with "NameMapping.Sys.Process("TrussStudio")...." instead of "Aliases.TrussStudio...". How do I get it back to the latter format?Solved1.1KViews0likes2Comments