SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    winrunner ddt_to_array function

    We have a regression script, which calls an user defined ddt_to_array function. While running the script, an error message saying 'illegal reference to params_list' is poppingup at ddt_get_parameters function. Can any one help us, how to get past this line. Here is the function,

    function ddt_to_array(in table, out A[] ){

    auto a;
    auto array_columns[];
    auto counter;
    auto element_name;
    auto params_list[];
    auto params_num;

    ddt_get_parameters(table, params_list, params_num);

    split(params_list,array_columns,"\t");

    for (counter = 1; counter <= params_num; counter ++){
    element_name = array_columns[counter];
    A[element_name] = array_columns[counter];
    A[element_name] = ddt_val(table,element_name);
    A[element_name] = ltrim (A[element_name]);
    A[element_name] = rtrim (A[element_name]);
    }
    }

  2. #2
    SQA Knight
    Join Date
    Jun 2002
    Location
    Cupertino, CA, USA
    Posts
    2,164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: winrunner ddt_to_array function

    No:

    auto params_list[];


    Yes:

    auto params_list;

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: winrunner ddt_to_array function

    Thanks for the quick reply.I will try it. We are using Winrunner 9.2 now. We ran the same script with older versions before and it worked well. Is the new version making any difference?

  4. #4
    Moderator
    Join Date
    Mar 2000
    Location
    Orange County, CA
    Posts
    3,187
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: winrunner ddt_to_array function

    There were some changes related to handling (declaring) arrays when moving to 9.2

    It falls under the "code enforcement" modifications they mentioned in the release notes (README)

    I remember having to change the functions we used that worked arrays in the jump to ensure they would work correctly last year when we upgraded at my previous company.
    Insanity: doing the same thing over and over again and expecting different results

  5. #5
    Junior Member
    Join Date
    Mar 2008
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: winrunner ddt_to_array function

    Thanks for the info. It worked well after removing [].

 

 

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 10.71%
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 03:58 AM.

Copyright BetaSoft Inc.