SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    File open error..

    I am comparing two text files in two different folders. The fuction was working fine until I decided to compare two files from some other folders. I am getting

    *** Error: Unable to open
    files and folder exists and I can open them aswell. Here are the agent call
    1. It get the contents from file
    2. it verify SYS_FileExists
    3. It perform SYS_CompareText that is where it gets -- File open error

    **********************************************

    [ ] SYS_GetDirContents ("C:\Automation\QuickSilver_QA\Installation_Verifi cation_Baseline\Applet Information\PortfolioApplets")
    [ ] SYS_FileExists ("C:\Automation\QuickSilver_QA\RegResults\Apple t Information\PortfolioApplets\GroupAppletInformatio n_0001.txt")
    [ ] SYS_CompareText ("C:\Automation\QuickSilver_QA\Installation_Verifi cation_Baseline\Applet Information\PortfolioApplets\GroupAppletInformatio n_0001.txt", "C:\Automation\QuickSilver_QA\RegResults\Apple t Information\PortfolioApplets\GroupAppletInformatio n_00)
    [ ] *** Error: Unable to open file 'C:\Automation\QuickSilver_QA\Installation_Verific ation_Baseline\Applet Information\PortfolioApplets\GroupAppletInformatio n_0001.txt' -- File open error


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

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

    Re: File open error..

    I've seen this error when filepaths exceed 128 characters.

    To avoid this you can shorten the paths to your actual and expected results files.

    You can also use a kernel32.dll function to get the short path name of your files, then pass these names to SYS_CompareText

    put this into an include file called dll.inc:
    Put this into a T file
    Create c:\mylongpathdir then run the T file
    you should get this in the results file:

    c:\MYLONG~1



    ------------------
    Steven Tyler
    Lead SQA Automation Engineer
    Workforce Central Group
    Kronos Incorporated
    E-Mail: styler@kronos.com
    www.kronos.com
    Improving the Performance of People and Business™
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  3. #3
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File open error..

    Thank You . It is working...

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

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File open error..

    Similar problem happened with me, using other silk's file related functions. Once I reduced the length of the path everything worked fine. For me I was creating a file with a long path(including filename) and it didn't even return an error until I had to access the file, because the file was never created(something like that).

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

 

 

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 09:23 PM.

Copyright BetaSoft Inc.