Gary Feldman
2005-01-20 22:45:37 UTC
I'd like to automate the testing of our installation kits. This means having the host machine fire up the virtual machine, and then fire up the install on the virtual machine.
I think I can get part way by using the "run script at startup" feature, and having that script look at another script in the folder that's shared with the host. The host machine could then populate that folder with whatever was needed before firing up the virtual - all very easy to do via NAnt or other scripting on the host.
The issue I'm worrying about is logging on and perhaps system security. I'm assuming that the "run script at startup" runs at the SYSTEM user (or something similar). But for testing purposes, I'd really prefer it run as a real user with minimal admin privileges (to match the way the product will actually be installed). I'm not sure what the best way is to do that? I suppose I've been spoiled by the UNIX world, where I use ssh for this purpose. And that might be the answer, since I know I can run an sshd daemon on Windows 2K. But the tester in me really dislikes having any other software on the virtual machine that isn't required by the installation being tested. So I'm wondering if Windows provides any other hooks that would be appropriate?
This is the first time I've tried automating Windows installation testing, so I also welcome any comments or criticisms on my overall approach.
Gary
I think I can get part way by using the "run script at startup" feature, and having that script look at another script in the folder that's shared with the host. The host machine could then populate that folder with whatever was needed before firing up the virtual - all very easy to do via NAnt or other scripting on the host.
The issue I'm worrying about is logging on and perhaps system security. I'm assuming that the "run script at startup" runs at the SYSTEM user (or something similar). But for testing purposes, I'd really prefer it run as a real user with minimal admin privileges (to match the way the product will actually be installed). I'm not sure what the best way is to do that? I suppose I've been spoiled by the UNIX world, where I use ssh for this purpose. And that might be the answer, since I know I can run an sshd daemon on Windows 2K. But the tester in me really dislikes having any other software on the virtual machine that isn't required by the installation being tested. So I'm wondering if Windows provides any other hooks that would be appropriate?
This is the first time I've tried automating Windows installation testing, so I also welcome any comments or criticisms on my overall approach.
Gary