Autotesting AD cmdlets

Looks like the AD cmdlets team has decided to start using PowerGUI autotesting pack to test their releases.

They are basically suggesting the community to add our own tests to the set of the ones they will make sure to run before each and every release. This way you can ensure that whatever the team does the functionality you need always works.

I also think that since AD cmdlets are absolutely free this is a good chance to give back and help the team make the product better for all of us.

I have already posted a couple of scripts to the thread: one just creating a user account, checking success and then deleting it, the other – adding a user and a group to another group. (The latter test by the way does find a bug in 1.0.4.)

As a nice side-effect you can use these sample scripts as examples of scripting AD cmdlets, and as sample PowerShell automated software tests.

Tags: , , , , , , , , ,

4 Responses to “Autotesting AD cmdlets”

  1. 1 Ambers September 7, 2007 at 2:56 pm

    I tried to download the AutoTesting Pack, but the zip file at seems to be corrupt.

  2. 2 dmitrysotnikov September 7, 2007 at 3:21 pm

    Thanks for the note! I don’t know what happened but it looks like we did have a problem there. I have re-uploaded the zip and it seems to be fine now. Please try downloading again.


  3. 3 Anonymous July 19, 2012 at 9:39 pm

    Any ideas about how we can run these tests using a continuous integration tool like TeamCity?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

My Recent Tweets


The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

September 2007

%d bloggers like this: