Menu

Remove tables, variables and list

Help
Anonymous
2010-08-02
2013-05-28
  • Anonymous

    Anonymous - 2010-08-02

    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

     
  • Homfri

    Homfri - 2010-08-03

    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.

     
  • Anonymous

    Anonymous - 2010-08-09

    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

     

Log in to post a comment.