SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    vsk
    vsk is offline
    Junior Member
    Join Date
    Oct 2001
    Location
    Andover
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List of STRING size issue..and GetLinks

    Hello...
    Im having a problem with the GetLinks method and String lengths..

    I have some simple code that gets the links on a page using the GetLinks() method which returns a List of Strings.. the issue is that some of the links are very large and they get truncated at 256 chars.. is there a way to increase the size of the STRING in the List to accommodate this?

    THanks!

    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of STRING size issue..and GetLinks

    As far as I know, SilkTest strings are simply limited to 256 characters, some functions (like SYS_GetFileContents) are limited to 128. I do not think there is a possibility to make them longer.
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

  3. #3
    vsk
    vsk is offline
    Junior Member
    Join Date
    Oct 2001
    Location
    Andover
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of STRING size issue..and GetLinks

    Thats strange.. no larger than 256!?

    I just found this in the help:
    Data type ranges

    This topic describes the range of valid values for the core built-in 4Test data types.

    4Test data type Range of values
    STRING Minimum: Zero characters (the empty string)Maximum: 16,383 characters
    STRING constant (Unevaluated characters inside quotation marks)Minimum: Zero characters (the empty string)Maximum: 4096 characters



    ------------------

  4. #4
    vsk
    vsk is offline
    Junior Member
    Join Date
    Oct 2001
    Location
    Andover
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of STRING size issue..and GetLinks

    Ok i just made a small program to Append a String to a List with over 256 chars and when i printed the list out all the chars were there.. so what gives here?

    Bug in GetLinks?

    thanks

    ------------------

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of STRING size issue..and GetLinks

    After reading your post, I noticed this in SilkTest help for GetContents():

    "For each item in the list of strings, GetContents returns only the first 255 characters, even though the item contains more characters than that. Other methods exhibit this behavior as well."

    Seems to be the same limit you hit :-(

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  6. #6
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of STRING size issue..and GetLinks

    Seems like I have been wrong in theory. I've taken this from my experience with many SYS_* functions of SilkTest... and I've just run into problems when a string got longer than 256 chars (especially when dealing with the file functions) and some just 128.

    My experience with the HTML specific functions is little, though.

    I apologize for the wrong information.

    ------------------
    Disclaimer: Nothing of what I mentioned above is to be taken as a racist or sexist remark nor as a personal attack.

    Klaus Kiesenhofer
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 02:16 AM.

Copyright BetaSoft Inc.