Contributions
Reloading Test Complete stores item - Tables
Hi all, I am fairly new with testcomplete, so any suggestions are welcome. In my tested app., I have a tabular control and I am using test complete's inbuilt stores item - tables to verify its data every-time a change is made. The problem is, now I have different table headings for the same control and hence the existing tables item can only work with type of headings because it relies on the table headings. See example below First Name Last Name DOB John Smith 1/1/1900 ... ... ... ... ... ... ファーストネーム 苗字 DOB John Smith 1/1/1900 ... ... ... ... ... ... Currently, I have two sets of tables files that I am copying into testcomplete's stores/tables directory depending on what I need. Ihave function that basically copy/pastes these files from its location but the problem is testcomplete is not reloading these tables automatically. It only reloads them when I start the next test run. I need a solution that will reload these files automatically during test run. My currentmethod is as below. Thanks for your help. //------------------------------------------------------------------------------ // Copies all the table files from reference folder to test complete stores/tables folder based on the language installed. function reference_tables(){ try{ aqFileSystem.DeleteFile(ProjectSuite.Variables.TESTCOMPLETE_TABLES + "*.*"); Log.Message("Old stored tables removed from -> " + ProjectSuite.Variables.TESTCOMPLETE_TABLES + "*.*"); } catch(f){ Log.Warning("Could not delete tables from test complete folder -> " + f); } aqUtils.Delay(1000); try{ if(aqFileSystem.CopyFile(ProjectSuite.Variables.REFERENCE_TABLES + Project.Variables.Culture_info + "\\*.*",ProjectSuite.Variables.TESTCOMPLETE_TABLES,false)){ Log.Checkpoint("All reference tables for " + Project.Variables.Culture_info + " were successfully copied into " + ProjectSuite.Variables.TESTCOMPLETE_TABLES); } else{ Log.Warning("Could not copy reference tables from -> " + ProjectSuite.Variables.REFERENCE_TABLES + Project.Variables.Culture_info + "\\*.*" + ". Table checkpoints may fail."); } } catch(e){ Log.Warning("Could not copy reference tables -> " + e); } //Just a little trick to reload the tables, but testcomplete window does not respond during test run. Tables.CVMS_V8_Patients.Name; Sys.Process("TestComplete").Window("TfrmTCMainForm", "TestComplete - path", 1).Maximize(); Sys.Process("TestComplete").Window("TfrmTCMainForm", "TestComplete - path", 1).Minimize(); aqUtils.Delay(6000,"Waiting for Test Complete to load tables."); }564Views0likes0Comments