ContributionsMost RecentMost LikesSolutionsRunning a batch file via Tested apps not working as expected Hi I am running a batch file that should disconnect me from the Virtual machine, however, when i run the batch file via tested apps i get a syntax error in the batch file. The content is for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( %windir%\System32\tscon.exe %%s /dest:console ) The error is 'query' is not a recognized as an internal or external command, operable program or batch file. When I run the batch file manually it works as intended. Also Testcomplete is running in administrator mode. Any ideas? Re: Testlog Object - Getting the foldername where the selected TestLog object contents are stored I am found a solution to the problem, i just need to implement it. I can read in the projec.mds.tclogs file and search for the folder name by its index Re: Testlog Object - Getting the foldername where the selected TestLog object contents are stored I am creating 2 reports based upon the result set that was run 1 .Custom summary report 2. Where a test has failed an email containing all required steps to reproduce the error plus adding screenshots and application log files Re: Testlog Object - Getting the foldername where the selected TestLog object contents are stored I access the logs using the following method For latest log - Project.Logs.LogItem(Project.Logs.LogItemsCount - 1) For designated log i pass in its index Project.Logs.LogItem(0) Many thanks Re: Testlog Object - Getting the foldername where the selected TestLog object contents are stored Thanks, that works where the log is the current one. If i am interacting with an existing results set, then that property isn't available. Many thanks Testlog Object - Getting the foldername where the selected TestLog object contents are stored Hi I am currently writing a script to interact with the testlog object and its child structure. As part of the process i need to know the folder name where the contents are stored. I cannot seem to be able to get this from the testlog object itself. Does anyone have a solution? Many thanks Java Swing Controls (ComboBox) noticeable performance drop off Hi I have come an interesting problem when running tests against an application made up of java swing controls. The application has a primary window and in some cases where functionality is called a secondary dialog (at the same level as the primary window in the object browser) is made visible What I am noting is that should I interact with a ComboBox in the secondary window (even with 100+ items) it populates in almost instantly. When i interact with the same base control (JComboBox) on the main window it can take anything up to 20 seconds to select the item. I at first thought it was related to the lookup method (FindChildEx) for the specific control I was using and the depth of the control within the structure, but I have now dis-proven that, even though there is a minor delay. I have put timers in my code to determine where the main delay is occurring and it is at the ClickItem stage. Having scoured the forum I found a thread that explained about the dropdown component and its population possibly being responsible. Having put code in place to click, locate and select an item from the ComboBox.list component, I still notice a significant delay in selecting the item (even when the dropdown list only contains 3 items) Has anyone else noticed any similar issues and found a working solution? Excel - UpdateLinks := causing syntax error Hi Possible silly question time. I have several spreadsheets which contain links to cells in other spreadsheets. I need these links to be updated while a test is running, however whenever i open the workbook using the following i get a syntax error at the := Dim objWorkBook Set objWorkBook = objExcel.Workbooks.Open(strWorkBookName, Updatelinks:=True) I have tried replacing the := with just = and while the syntax error is resolved it doesn't update the link... Does anyone have a working solution to get around the := causing a syntax problem. Many thanks Re: DBTable - Interacting with a DBTable if it is a passed parameter to a function\routine Thanks, that works. DBTable - Interacting with a DBTable if it is a passed parameter to a function\routine Hi I currently have a DB table variable which is a variable of a keyword test. The DBTable is pointing to a spreadsheet stored on the local computer. The keyword test calls a function and I pass the DBtable variable as a parameter. The DBTable object is visible and passed when I inspect it via the watch list as it shows the columncount. My problems come when i try to interact with the passed variable as nothing i have tried appears to work. Do you have any documentation or examples to show how to interact with the passed DB Table variable. I want to iterate through all the columns and rows and extract the stores values. Solved