Prev: st<ring trimleft and xml
Next: Timing TCL code
From: Helmut Giese on 21 May 2010 15:06 Hello out there, I have written a fairly big application in .NET (what an experience) and would like to add some automatic/regression tests - if possible using tcltest's infrastucture. I can (in the C# app) add some hooks to e.g. compensate for mouse clicks and other user actions and to retrieve internal values (which would be the result of user actions), and the like. That's the basic idea, but I don't yet see a path to its realisation. I am aware of (and downloaded) Eagle - but I don't really know what to do with it. If anybody has realized or knows of something (even remotely) similar any pointer will be greatly appreciated. Best regards Helmut Giese
From: Rasmus Debitsch on 24 May 2010 05:43 Maybe you can "register for COM" your application and use tcom. I did this long time ago for a MFC application and it worked pretty well. But there are lot of tools for .NET based test automation. MSDN comes with some interesting articles (http://msdn.microsoft.com/en-us/magazine/cc163864.aspx). If you want to test business logic first, fitnesse.NET is an option too. Perhaps you should consider using on of these and drop the Tcl based idea. Rasmus "Helmut Giese" <hgiese(a)ratiosoft.com> schrieb im Newsbeitrag news:lhkdv5l2hkmsejuiel7qns07jvtamgtdf1(a)4ax.com... > Hello out there, > I have written a fairly big application in .NET (what an experience) > and would like to add some automatic/regression tests - if possible > using tcltest's infrastucture. > > I can (in the C# app) add some hooks to e.g. compensate for mouse > clicks and other user actions and to retrieve internal values (which > would be the result of user actions), and the like. > > That's the basic idea, but I don't yet see a path to its realisation. > I am aware of (and downloaded) Eagle - but I don't really know what to > do with it. > > If anybody has realized or knows of something (even remotely) similar > any pointer will be greatly appreciated. > Best regards > Helmut Giese
From: Helmut Giese on 25 May 2010 11:52 Hi Rasmus, >But there are lot of tools for .NET based test automation. MSDN comes with >some interesting articles >(http://msdn.microsoft.com/en-us/magazine/cc163864.aspx). thanks for this link - a very interesting article. Maybe I can borrow some ideas from it. >Perhaps you should >consider using on of these and drop the Tcl based idea. No way - I want to get away from the drudgery of typing so much C# code to achieve so little and get back to Tcl's productivity level. And as this is specifically about testing: Nothing beats the flexibility of the tcltest harness (well, at least nothing I know): As a simple example consider how easy it is to use your own own custom match function to determine whether a result is correct. Pure string comparison often is not enough. Take XML: The order of attributes within a tag is not significant so <node attr1="val1" attr2="val2"/> and <node attr2="val2" attr1="val1"/> describe identical nodes. Adding a custom match to tcltest makes it a manageable task to determine that the test passes. But to each his or her preferences. Again thanks for the helpful link and best regards. Helmut Giese
From: Jeff Hobbs on 25 May 2010 16:47 On May 21, 12:06 pm, Helmut Giese <hgi...(a)ratiosoft.com> wrote: > Hello out there, > I have written a fairly big application in .NET (what an experience) > and would like to add some automatic/regression tests - if possible > using tcltest's infrastucture. > > I can (in the C# app) add some hooks to e.g. compensate for mouse > clicks and other user actions and to retrieve internal values (which > would be the result of user actions), and the like. > > That's the basic idea, but I don't yet see a path to its realisation. > I am aware of (and downloaded) Eagle - but I don't really know what to > do with it. > > If anybody has realized or knows of something (even remotely) similar > any pointer will be greatly appreciated. You might find Eagle interesting: http://wiki.tcl.tk/6580 This is a project by Joe Mistachkin that he showed off at a couple of conferences. Looked pretty good, being a C# implementation (hook?) for Tcl. Jeff
From: Helmut Giese on 25 May 2010 18:27 Hi Jeff, >> I am aware of (and downloaded) Eagle - but I don't really know what to >> do with it. > >You might find Eagle interesting: http://wiki.tcl.tk/6580 I did have a look at Eagle, having the impression that it is by far the most complete attempt to integrate Tcl and .Net. I read practically everything which is linked to off of http://eagle.to/, but I didn't see an approach to what I am planning - some examples may have helped me. I am currently looking at (and sort of playing around with) tclinterop from http://www.xdobry.de/tclinterop.zip - at least it comes with an example I can build on and (not yet having hit a dead end) I have the impression that it comes close to what the doctor ordered. Best regards Helmut Giese
|
Pages: 1 Prev: st<ring trimleft and xml Next: Timing TCL code |