SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2003
    Location
    London
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Too many columns in data table

    Im currently using the following to grab columns in a data table :-

    ddt_get_parameters(table,colList,noOfColumns);

    split(colList,tableColnameArray," ");

    However, there are too many columns in the data table and the ddt_get... doesnt grab all the column names. any ideas of how to get round this?

    note - changing the data table isnt really an option.

  2. #2
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Too many columns in data table

    I think, you can get each column and add one by one into your list.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  3. #3
    Member
    Join Date
    Feb 2003
    Location
    London
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Too many columns in data table

    hey,

    I see no way of doing that. if there was an index behind the column names (or an active column - which would have been useful but doesnt seem to be available) I wouldnt need to get the names in the first place. Could you elaborate your idea? Anyone else?

    Currently im stuck with the following options -

    1) load all the data into a temporary data table that has a structure with less columns (and mimics the shape of the web page that the data is then compared against).

    2) Manually move an index that is based on the ASCII values that the columns titles represent (using sprintf). My columns are titled A,B,C... AA,AB,AC... BA,BB,BC etc like a normal excel spreadsheet so this is possible but not great.

    I was just assuming it wouldnt be this much of a hassle and/or hack.

    cheers

    David Carter
    Test Consultant
    Oyster Partners

  4. #4
    Senior Member
    Join Date
    Dec 2003
    Location
    US
    Posts
    342
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Too many columns in data table

    Have u tried this way ..

    # Driver script ...

    MyArray [ ] =
    {
    "FIRST" = ddt_val(table, "FirstName");
    "LAST" = ddt_val(table, "LastName");
    }

    # Called script will have

    edit_set("FirstName", Person["FIRST"]);
    edit_set("LastName", Person["LAST"]);

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:44 AM.

Copyright BetaSoft Inc.