ContributionsMost RecentMost LikesSolutionsAdd "Save" and "Import" methods for Stored Tables to allow a script to add Tables to Projects. Requested Features: A “Save” method for Stored Tables, similar to the Objects.Save method. An “Import” method for Stored Tables to add a saved table to a new Project Reasons for Request: Although the Table Wizard is useful for adding individual tables to a TestComplete project, some tests require hundreds of configurations and associated tables of information. The ability to generate and name these stored tables using a script would significantly reduce the work needed to set up for such tests. If a new version of a tested application changes the hierarchy of the application, the aliases for the tables will change. The new “Save” method can save the tables from the original version of the application in a separate location with a revised alias. The new “Import” method can pull the saved tables into a new TestComplete Project to test the new version of the application. This would allow the test script to compare baseline data from the previous version with the data displayed by the new version of the application. Description of the Save Method Tables.Save (Table, Name, Alias, OutputDirectory, AddToCollection) Parameter Descriptions This method has the following parameters: Table - The displayed table object whose values you want to save. (Required) Name - Unique name of the Tables collection item to which you want to store the values. If the item already exists, it will be overwritten. (Required) Alias - If blank, the alias of the displayed table object will be used. OutputDirectory – The path to the directory where the Table will be saved. If blank, the Table will be added to the Tables Collection and stored in the <ProjectFolder>\Stores\Tables folder. AddToCollection – If True, adds the Table to the Tables Collection for the current project. If False, the Table can be saved with a changed alias for use in a new version of the application without being added to the Table Collection of the current project. The default is True. Result Value The method returns True if the Table’s values were stored successfully, and False otherwise. Description of Import Method Tables.Import(Name, InputDirectory) Parameters This method has the following parameters: Name - The name of a saved Table. If a Table of this name already exists in the Project it will be overwritten. (Required) InputDirectory – The path to the directory where the Table exists. If blank, the Table will be added to the Tables collection and stored in the <ProjectFolder>\Stores\Tables folder. Result Value The method returns True if the Table was added to the Tables collection, and False otherwise. Re: How can I automate the process of creating stored tables for baseline comparisons? Robert, Thanks for the information. Only the settings are stored in the excel file. The program being tested uses each setting to generate a table that I want to use for comparison. Since the regression test I want to create would use 288 tables, I would prefer to generate the stored table automatically rather than using the wizard 288 times during the first run of the test. I suppose I could store the tables as tabs in a spreadsheet but that seems like reinventing TestComplete stored tables. Do you see any way of using the Objects Add method to store a screen object such as a data grid in Objects stores, give it a unique identifier, and then use it for the comparisons? Thanks How can I automate the process of creating stored tables for baseline comparisons? I am automating regression tests that require using Table Checkpoints for 288 stored tables (initially). I would like to use a script to create the baseline stored tables using data from an excel file. My problem is how to create the stored table without using the Table CheckPoint Wizard. I know about the ".check" command to update an existing stored table. Is there a command that I can use in a script to create a stored table? Can a TestComplete script check whether the Stores option to Update Table Elements is selected? Ideally I would like the script to detect whether the TestComplete option under Tools/Engine/Stores/Update Table Elements is selected and run the appropriate subscript. I would also like to be able to change whether the option is selected or not from within the script. Note: we have one license for TestComplete and one for TestExecute. Is this possible? Does TestComplete support the DataGridTextBox Class? Does TestComplete support the DataGridTextBox Class? I created a keyword test for a .Net application that adds data to two cells in a grid. When I rerun the test, it adds data to the cells, but does not compare the two values and put the value in a third cell if they match. The Class alias for the cell as listed in the object properties is System.Windows.Forms.DataGridTextBox. I don't see that class as a choice in Object Mapping. I believe the cell is a custom control, and I am hoping that if I can map it to the correct class that TestComplete supports, that the keyword test will work correctly. Thanks! Can Testcomplete do distributed testing if an application is installed at different locations? Can Testcomplete do distributed testing if an application is installed at different locations? On one PC the application is installed in Program Files, in the other it is installed in Program Files (x86). When I run the verification on a task created on one PC, it can't find the application on the other one. Solved