Contributions
Re: Reading from xls file for some cell
Hallo Ann, I did not write a script in this case, I just did a data driven loop within a simple keyword test. The code you see is just the code automatically generated by test complete: 1. I attached a log action 2. Rightclick->make Datadriven loop...->used the wizard (create new variable, browse for the xls file, select the worksheet). 3.Modified the log so that it uses value from the table in the additional information. I think that differently from the script, in the keyword test the DBobject is a keywordtest variable. Are you sure it work properly?Look for instance at the message that should be read in row 16: is that complete?1.3KViews0likes0CommentsRe: Reading from xls file for some cell
Hi, thanks for the answer. There is not really much code here: the translation of the keyword test is as follows: function Test2() { Project.Variables.myXlsTable.Reset(); for(; !Project.Variables.myXlsTable.IsEOF();) { //Posts an information message to the test log. Log.Message("", Project.Variables.myXlsTable.Value("Msg")); Project.Variables.myXlsTable.Next(); } } where myXlstable is the .xls table attached before. some messages are trunkated. TC version: 8.70.727 Excel version: 14.0 (2010 professional plus)1.3KViews0likes0CommentsRe: process close and terminate does not work
Hi,thanks for the answer. The test application is launched within the following function function startPopulateHelper() { //variables var TestApp ; try { //fetch the Testedapp TestApp = TestedApps.Items("Ident_PersistenceAccess_PopulateHelper"); //set the path, if given (should be the same where the Ident.exe is located) if (ProjectSuite.Variables.VariableExists("identPath")) TestApp.Path = aqFileSystem.IncludeTrailingBackSlash(ProjectSuite.Variables.VariableByName("identPath")) ; //run the application TestApp.Run(); return true; } catch(e) { Log.Error("Could not run the application", e.description); return false; } } It does not close neither with TestApp.Close() nor with TestApp.terminate()1.9KViews0likes0Comments- 1.4KViews0likes0Comments
Re: namemapping - mapping child
it is just to avoid conflict while working with many testers. If you create the whole namemapping at the beginning, there are less chance of having conflicts. consider that most ofthe tester which want to use test complete will just record what they normally do manually, so they won´t modify the namemapping in any way.1.4KViews0likes0CommentsRe: process close and terminate does not work
Hi, thanks for the answer. No, there is only one application running. Moreover, if there were more, it should also close all of them with no loop, as the manual says "If several instances of the application exist in the system, this method closes all of them."1.9KViews0likes0Comments