Monday, January 14, 2008

GUI Test Tools

Hello,

I have played around last week with some test tools and one of them I would like to discuss more about. It is called AutoIt (http://www.autoitscript.com/autoit3/) and it seems to be very interesting.

It is free and has a lot of script samples, support COM, has its own GUI functions to create temporary dialogs for your tests and much more.

I think this could be a good start to study how to use it with AutoCAD to allow us to test our applications exactly the way we expect our users will use.

I will study it more and if anyone have some experience using AutoIt with AutoCAD maybe it is time to share with us.

Cheers!

8 comments:

Anonymous said...

Hi,

How to send the AutoCAD command through Autoit tool. do you have any sample?


Thanks,
Raj

Fernando Malard said...

Hello Raj,

I was unable to do that by a consistent way.

One trick would be get the command prompt window and send strings to it but it seems to be very instable once the way to get the window may vary among AutoCAD versions and flavors.

Did you have try this way?

Regards,
Fernando.

bertvan said...

Hi,

Have you taken a look at Gallio yet? They also have a AutoCAD testing module. And it's open source.

I don't exactly know the possibilities, but you 'd might find it interesting...

Fernando Malard said...

Hi bertvan,

No, I haven't.
Ummmm, seems to be interesting. I will take a look.

Thank you for the tip.

Marco said...

Autoit is a very special programm. $AcAp=Objget("","AutoCAD.Application")
or
$AcAp=Objget("D:\Disegno.dwg")
This is a strig to connect autoit to Autocad,

there are only one problem.. the matrix in AutoCad are matrix() in autoit are matrix[] and they don't understand. sorry for my english.

Anonymous said...

And I haven't found away of passing and receiving w/t/achars to autocad with autoit. Which kills the chances to fully interact with autocad unfortunately as far as I can tell.

Anonymous said...

As far as I know, there is no way of sending/receiving Achars or W/Tchars to AutoCad 2012 with AutoIt.

Fernando Malard said...

Hi,

Actually recently I have found an API called "White" and one of my developers tried it with success inside AutoCAD on either MFC or WPF based dialogs.

It works though based on handles and it requires you to first dissect the dialog controls.

More information here: http://white.codeplex.com

Regards,