SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 1999
    Location
    Portland, OR, USA
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SYS_RemoveFile () failsi n function call

    SYS_RemoveFile works ok at the top level of a test script in the main thread.

    But on some machines it fails when called from a subroutine/funtion.

    It also fails when run in a spawned thread.

    Here is an example.

    SYS_RemoveFile ("naVerify.dll.old") works fine at the top level of a testcase, but when put down into a function (in an include file), here is what happens (run under Windows-NT4.0sp5 Workstation).

    The file is writable by all, so the file permission report is erroneous. The file can be deleted in windows explorer and in a dos shell with no difficulty.

    ====
    beacradley SYS_SetDir ("C:\Autotest\Common")
    beacradley SYS_RemoveFile ("naVerify.dll.old")
    beacradley Exception on undefined *** Error: Unable to remove file -- Permission denied
    beacradley SYS_GetDir ()
    beacradley {{SYS_RemoveFile, , 0}, {mvOld, \vsswork\TVD.inc, 821}, {getnaverify, \vsswork\TVD.inc, 1698}, {setClient, \vsswork\TVD.inc, 1065}, {OAS, vtcoas.t, 276}} PWD is C:\Autotest\Common
    beacradley Agent.DisplayMessage ("Verification Message", "Press OK to continue, or Cancel to halt execution.")
    beacradley *** Error: Script aborted by user
    beacradley Occurred in DisplayMessage
    beacradley Called from halt at \vsswork\TVD.inc(225)
    beacradley Called from exceptReport at \vsswork\TVD.inc(1407)
    beacradley Called from mvOld at \vsswork\TVD.inc(826)
    beacradley Called from getnaverify at \vsswork\TVD.inc(1698)
    beacradley Called from setClient at \vsswork\TVD.inc(1065)
    beacradley Called from OAS at vtcoas.t(276)

    ------------------
    Charles F. Radley - CSQE
    Oregon, USA.

    [This message has been edited by cradley (edited 09-12-2000).]

    [This message has been edited by cradley (edited 09-12-2000).]

    [This message has been edited by cradley (edited 09-12-2000).]
    Quality Control Analyst at Syntel Inc
    Project Test Lead for client Daimler Trucks - North America.
    Interested in testing dot net web services and SOA systems.
    Charles F. Radley
    Oregon, USA.

  2. #2
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_RemoveFile () failsi n function call

    Try to include the whole path when removing a file.

    Also you cannot call remove file on a network share.

    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Portland, OR, USA
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SYS_RemoveFile () failsi n function call

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by AJ:
    Try to include the whole path when removing a file.
    ===

    OK, I'll try that next time the probelm reappears.

    ====
    Also you cannot call remove file on a network share.

    <HR></BLOCKQUOTE>

    Well, I do this successfully quite often...in fact, my tests are checking specifically for behavior over network shares (amongst other things). Log files are kept out on shares, and I use silk to update them and rename them.
    Quality Control Analyst at Syntel Inc
    Project Test Lead for client Daimler Trucks - North America.
    Interested in testing dot net web services and SOA systems.
    Charles F. Radley
    Oregon, USA.

 

 

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 04:07 AM.

Copyright BetaSoft Inc.