List Info

Thread: Unit testing COM clients and Servers




Unit testing COM clients and Servers
user name
2006-06-16 00:40:23
I'd like to use Test Drive Development when using ADSI, WMI
and other 
COM libraries on Windows with Python. Can anyone give some
hints as to 
how to get started or how they do it?

I'm fairly new to it and it seems like to write tests, you
have to 
simulate the responses ADSI or WMI. I can find lots of help
doing 
standard python unit testing but how does this change when
using COM?

thanks.

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
Unit testing COM clients and Servers
user name
2006-06-18 08:04:08
> I'm fairly new to it and it seems like to write tests,
you have to
> simulate the responses ADSI or WMI. I can find lots of
help doing
> standard python unit testing but how does this change
when using COM?

The only advice I can offer is to not think of this as a COM
problem.  All
apps that talk to servers beyond there control suffer the
same problem (eg,
a program talking LDAP on any platform, or written against
Oracle, etc).

When possible, I just tend to use unittest based tests, with
setUp and
tearDown methods that hit a test server, and try not leave
too much of a
mess behind...)

Mark

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )