SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    limitation on the length of the line

    Can you please let me know if winrunner has any limitation on the length of the line. If so, what should I do to continue the statement in the next line

  2. #2
    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: limitation on the length of the line

    have you tried to see how long you can make it before you get an error?

    Have you experienced an error at this point?

    what type of comand are you using?

    share with us, and you'd probably see us share more with you.
    Insanity: doing the same thing over and over again and expecting different results

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

    Re: limitation on the length of the line

    I am just passing the parameters (there are many, about 30) using a call_close statement. It works when I give the values with in the call_close statement whereas it generates an error 'Unterminated string' when I do the same thing datadriven.

    When I run the script it generates that error. I does not generate any error if I make the line short(by passing only the required one and pasing "" for the rest). So I thought there is a limit on the length of the line.

  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: limitation on the length of the line

    you have two limits you might be running into.

    1) length of line - I always limit to 256 characters. You can always spilt the line at a comma to go down to the next. I am not sure if there truly is a length of line per se as I haven't run into anything as yet to force that issue. Other may have.

    2) number of parameters - 30!! Good grief that is probably more than you should use. I know there was a discussion a while back on this subject, so you might want to do a search on it (as you really should have done for starters as I am sure both of these items have been addressed previously).

    3) undetermined string - this may be something unrelated to the string length or # of params, as long as it isn't a string that gets cut off due to the length of the line.

    you might want to post the line of code you are having issues with so others can look and help out a little more in the future. Code segments are like pictures - worth a thousand words.

    If you have to have the 30 parameters, I would recommend reducing what it is you pass to the function. If the information exceeds 5-7 items for my functions, I rely on loading an array (in the style of a hash) to allow the passing of a single item, but having it contain any number of items. Just sharing my experience on that one, something to consider to make it easier on you for debugging as it will 1) reduce the length of the line, 2) reduce the number of parameters to ensure are correct, and 3) make it easier for others to read the code on what is being passed.
    Insanity: doing the same thing over and over again and expecting different results

 

 

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 08:17 AM.

Copyright BetaSoft Inc.