SPONSORS:






User Tag List

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

    Re: Files are the same by every measure except Silk

    I did get this once a long time ago. I forget exactly what the cause was.

    First reboot your computer to make sure that Silk or the OS hasn't gotten flaky.
    (a lot of people don't do this !)

    The other possibility is that different applications use different characters to mark the end of lines.

    Some use the newline character, "Chr(10)", others the carriage return, "Chr(13)",
    some use both together.

    This is a common cross-platform issue when dealing with Unix and Windows.

    Some comparison tools filter to ignore this difference, others do not.

    Use a Hex Dump or Hex Edit tool to see if this is the case.

    So, is this a cross-platform issue ?

    What version of Silk are you using ?


    [This message has been edited by RobKapteyn (edited 02-08-2001).]
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  2. #2
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Files are the same by every measure except Silk

    SYS_VerifyText function does not return any value (the Online Help says that it raises an error if there are differences). I was just wondering if you have tried SYS_CompareText function?
    Simply use Notepad. Type in a line of text. Save As "text1.txt" then Save As "text2.txt".
    Use either of the functions and you'll see that both of them work fine!!!

  3. #3
    Member
    Join Date
    Oct 2000
    Location
    South San Francisco, CA, USA
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Files are the same by every measure except Silk

    Thanks for your suggestions Rob and Gilbert. As it turns out, there were no hex differences in the files...I am only dealing with Win2K here. With a restart and all, the diff viewer continued to be triggered with SYS_VerifyText. However with SYS_CompareText, the comparison works, so I am still not sure what is up with this function and my text files. (I'm using 5.0.3.1). In any case thanks again for the suggestions.
    Michael

  4. #4
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Files are the same by every measure except Silk

    [edit]
    Hmmm, Win2K and SilkTest 5.0.3.1... Are you using Win2K Service Pack 1? At some point I'll try and experiment, we use Win2K and SilkTest 5.0.3.1 on our Win2K automation lab PC's...

    [This message has been edited by styler (edited 02-08-2001).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Files are the same by every measure except Silk

    You can also just read the two files (assuming they are ASCII files) using ListRead (ls, sFile) and then use Verify (aActual, aExpected) to compare the two lists.

    Hope this helps

    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  6. #6
    Member
    Join Date
    Oct 2000
    Location
    South San Francisco, CA, USA
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Files are the same by every measure except Silk

    I'm using SYS_VerifyText and finding that files that are identical are considered different. No blue line shows any difference in the difference viewer. I keep updating the file with the newly created text file but still no go. I've used DOS compare plus a number of text editors; they all can find no difference. Any experiences with this?

  7. #7
    Junior Member
    Join Date
    Oct 2001
    Location
    India
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Files are the same by every measure except Silk

    Hi,
    I faced the very same problem when using SilkTest v5.0.1. Everytime I tried to compare two identical files using SYS_VerifyText or SYS_CompareText, I would be told that the files were different.
    Ultimately I came up with a workaround. I split my code into two parts.
    a) Testcase
    b) Method
    In the testcase I simply created the files that needed to be compared and made the filepaths for the same global. Then from within this testcase I called a method where I used the SYS_VerifyText function to compare the files using their filepaths.
    Funnily enough it now worked. Identical files were shown as identical and non-identical ones as non-identical.

 

 

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

Copyright BetaSoft Inc.