Tuesday, 20 January 2009

Locky - the file locking test tool

When I test applications that read files I like to test how they handle locked files.
And yes, I once had a situation where I needed to lock lots of files, and then lock some more and then lock even more. So I wrote Locky to help me. [Download]


I obviously had a lot of time on my hands as I made it fairly generic. I honestly don't know how long ago I wrote this. Yet another tool from my hard drive archives - and yes more probably exist.
Basically create an ini file with the files to lock. Run locky, add some more files to the ini file (that is what the spare files section is for so you can copy and paste them) then hit retry and you lock some more.
I could make it more sophisticated and have different locking schemes and unlocks... but I probably won't - I include the AutoIt source code in the archive so that you can if make it do that if you want to. [Download]

7 comments:

  1. Useful tool, thanks for sharing!

    Thanks for commenting - happy to know you found it useful.

    ReplyDelete
  2. Very good toll, which helped me a lot testing my application!

    Tanks a lot!

    Bernd

    ReplyDelete
  3. You're welcome. Thanks for the feedback.

    ReplyDelete
  4. Your tool has really saved me from coding similar tester. Thank you!

    ReplyDelete
    Replies
    1. Thanks for letting me know. Glad you found it useful.

      Delete
  5. broken download link

    ReplyDelete
    Replies
    1. Thanks. I moved everything over to github, and forgot to change the links.

      Delete