A Simple File Locker

I was doing a project that I will share will you all soon, and was running into an error whereby SpecRun was complaining to me that a file was locked by another process.

So I wanted to recreate this scenario and debug it to see what the problem was, so a quick Google on how to lock a file returned some strange results relating to securely locking a file with a password etc, a quick look on stackoverflow only resulted the code to lock a file.

So thought it would be quicker and simpler to write my own simple app to lock a file, and you can download it here (Click File>Download), its uploaded as a text file so you will have to rename to .exe in order to run it.

A few examples of where this application could be of use to you:-

  • Does you application write to a log file? If its threaded does each instance write to same file? Have the developer coded it to ignore locks? Use the app and find out.
  • Instance I had, several instances were trying to read and write to the same config file, was clearly a race and some instances lost and throw an error.
  • Upload dialog, see how your application behaves when trying to upload a locked file.
And no doubt lots of other uses.


My First Nottingham Testers Meetup

So last night we had the rebirth of the Nottingham Tester Meetup, and it was fantastic, but lets start at the beginning.

I will be honest, at 6.55 there was 3 people including me in the room, and it was hard to not feel a little deflated / disappointed, but I learnt a valuable lesson:


But by 7.30, we had a room containing 5 passionate testers and 1 passionate recruiter (he counts, as he doesn't work like your normal recruiter, but off course still a recruiter :D ) and the discussions began.

Was great talking to everyone, finding what they work on, what they roles are, how many in their teams, what tools are they using, well you get the point.

I had prepared some slides, which I went through and we discussed in slide, the end result was some great enthusiasm for this meetup, and I really can't wait for the next one.

The slides are here, nothing fancy, just my ideas and plans for Nottingham Testers Meetup.

They were spawned from this mind map. Side note, mindmup is a great tool.

So thank you Stephen, Dan, Alex, James, Dave and Vernon for coming.

Feedback received:

  • Dan Caseley
    What an utterly great night. Spent hours chatting about training, mentoring, managing, checking vs testing, automation vs tools assisted testing, and a bunch of stuff already leaking out of my head. I'll definitely be at the next one!
    Like · Reply · 3h ago · Mute
    • Dave Rutt
      Dave Rutt
      Good meeting you Dan, and the others. Shame I had to leave early. Will make sure I'm there for the duration next time :)
      These meetups are FAR more useful and interesting than anything on the ISTQB syllabus :-p

The next one will be arranged soon, and will consist of two talks, details next week, however I want to leave testers of East Midlands with the following warning:

I don't know who you are. I don't know what you want. If you are looking for dull passion lacking testers, I can tell you we don't have any. But what I do have are a very particular set of skills; skills I have acquired over a medium length career. Skills that make me a nightmare for people like you. If you register interest in my meetup below, that'll be the end of it. I will not look for you, I will not pursue you. But if you don't, I will look for you, I will find you, and you will join my meetup.