i'm creating tables from excel files in a loop
the problem is that for each loop (except the 1st) the created table name has "_{i}" at its end
for ex:
myTable
myTable_1
myTable_2
because created tables are not dropped between loops
in fact, what i'd want, is:
- either having a remove table TestCase
- or being able to set the scope of the table
in C#, when you define a variable in a loop, its scope is the loop
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'm creating tables from excel files in a loop
the problem is that for each loop (except the 1st) the created table name has "_{i}" at its end
for ex:
myTable
myTable_1
myTable_2
because created tables are not dropped between loops
in fact, what i'd want, is:
- either having a remove table TestCase
- or being able to set the scope of the table
in C#, when you define a variable in a loop, its scope is the loop
thanks
Hi,
The variables/ lists/tables are global in the scenario so you cant look at it like variable in a C# loop.
I uploaded a small test case to delete variables (or lists or tables)
http://sourceforge.net/projects/qaliber/files/Repositorys/QAliber.Repository.DeleteVariable.dll/download
Add it to your repository, a new Test Case called "Delete Global Variables" should be added to your repository.
provide the type (Tables) in your case and the name of the table, it should provide you what you need.
We are about to set repository bank in our web site, so the link is temporarily available though SF.
thanks for the test case
i think it would be a good idea to add it in your product, in the same repository as "set variable" test case