Contributions
Re: TC loses mapping while executing script
Jared, Thank you for the response. I am using TC v7.51.667 I haven't gotten around to doing the latest update yet, but I do intend to soon. Do you think that will help? I get an error stating that such-and-such object does not exist. When I investigate by trying to use the object browser to highlight the object on the screen it picks up the whole MSACCESS form as one object. It does not, however, confuse anything else besides the form. I've gotten around the issue by closing the form and reopening it whenever it can't find an object. This would be fine, except that the "X" button to close the form can only be located by coordinates (or at least that's the only way I knew to make it work). So now my test has to be modified for different resolutions. When I get time I guess I'll add a bunch of IF statements and checkpoints to try to find the X before clicking it. I'm sure there must be a better way... Example of error: An error occurred when executing the "Click" method or property of the "btn_Pivot_Tbl_wGS" object. The object or one of its parent objects was not found in the system. Tested Object ------------------ Alias: Aliases.MSACCESS.Microsoft_Access_UPS_Rating_System.cl_Workspace.UPS_Rating_System.btn_Pivot_Tbl_wGS Mapping item: NameMapping.Sys.MSACCESS.Microsoft_Access_UPS_Rating_System.cl_Workspace.UPS_Rating_System.btn_Pivot_Tbl_wGS Missing Object ------------------ Alias: Aliases.MSACCESS.Microsoft_Access_UPS_Rating_System.cl_Workspace.UPS_Rating_System.btn_Pivot_Tbl_wGS Mapping item: NameMapping.Sys.MSACCESS.Microsoft_Access_UPS_Rating_System.cl_Workspace.UPS_Rating_System.btn_Pivot_Tbl_wGS I am grateful for any advice. If you need any further details just ask. thanks ~Logan1.4KViews0likes0CommentsTC loses mapping while executing script
I am using a keyword script to process csv files using MSACCESS. Each csv only has a few things done to it in accessbefore moving to the next. Lately, TC seems to lose track of the MSACCESS screen objects after running about twenty files. It sees the entire form as one object suddenly and can't find any of the buttons, fields, etc. Restarting TC or MSACCESS will reset the mapping. What can I do to prevent this mapping issue? thanks ~Logan11KViews0likes4CommentsDriver by name in in keyword testing
I've run into a circumstance where I would like to run two different DDT drivers (ADO and CSV) in the same keyword script. I see in the help menu where it describes how to assign driver names, but I'm not sure how to implement this in a keyword test. Should I replace the call object method with a code snippet? The Using 'DDT Drivers' help section has examples, but they seem to suggest a user is using more than one test script. Can two drivers be used in the same script? thanks for the help ~Logan14KViews0likes1CommentRe: Large queries in Keyword testing
Thank you for the expeditious reply. What are the limits of TC's ability to work with SQL queries in Keyword tests? I guess I should be more specific about the query in question. I'm only running select statements (so far), but this particular query does several joins and one sub-query. At what point should I determine that my query is too complex to be handled in a a keyword setting? I'm still pretty unafamiliar with traditional scripting. Thanks for the help. Logan2KViews0likes0CommentsLarge queries in Keyword testing
I'm using some large queries in keyword data-driven testing and need a better way to insert my query into the Call Object Method Operation Parameter tablename. I use apps like Enterprise Manager to help build the query, but TestComplete seems to require that the query be a single long line. I tried to use find/replace to remove line breaks but it doesn't seem to recognize them. Does anybody know a good way to get a query from Management Studio or Enterprise Manager into TC? thanks, lcraig Transportation Insight12KViews0likes3Comments