Contributions
Add "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 tocompare 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.1.8KViews0likes0CommentsRe: How can I automate the process of creating stored tables for baseline comparisons?
Robert, Thanks for the information. Only the settings arestored in the excel file.The program being tested uses each setting to generatea 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 reinventingTestComplete 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? Thanks1.2KViews0likes1CommentHow 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 ascript 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 acommand that I can use ina script to createa stored table?1.2KViews0likes3CommentsCan 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 isselected and run the appropriate subscript. I would also like to be able to changewhether the option is selectedor not from within the script. Note: we have one license for TestComplete and one for TestExecute. Is this possible?974Views0likes2CommentsDoes 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 Irerun the test, it adds data to the cells, but does notcompare thetwo values and put the value in a third cell if they match. The Class alias for the cell as listed in the object properties isSystem.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!725Views0likes1CommentCan 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.Solved2.8KViews0likes7Comments