Forum Discussion

domik's avatar
domik
Occasional Contributor
14 years ago

Moving project from QTP to TC8

Hello,



I'm evaluating TC8 demo right now. I want to move my automation project from QTP to TC. I'm automating Delphi application.



Do you have any standard solutions for this case?



For
example I used "Description.Create" in QTP - I know that I could use findChild
method instead but I would need to convert my descriptions to arrays.



Same thing for GetRoProperty - sometimes I just need to delete it and use TC property but hwnd in QTP is named Handle in TC.



Dates: in QTP - now is aqDateTime.now



Thing is that we have wrapped QTP objects to our own classes and used them in tests. Much of this will work in TC but some parts need to be rewritten in new way (compatible with TC)



Any help would be appreciated.

4 Replies

  • Hi Dominik:



      I may totally understood your situation right now because I was using QTP for a long time and now I'm using TC to test Delphi application that recompiled by Delphi XE.



      QTP and TC are different from object hierarchy perspective.



      1. QTP wrapped all objects start from application level such as Window(IdenAttr).Button(IdenAttr1) or Browser(IdenAttr).Page(IdenAttr1).WebEdit(IdenAttr2) things like this, but TC gives you all objects start from system level such as Sys.Process(YourApp).Window(IdenAttr).



      2. QTP and TC are using separately internal functions or objects to support itself automated script.



      3. TC does not support Descriptive programming.



     
    4. TC support Delphi application testing better than QTP based on what I'm understanding right now.



      5. QTP product maturity level higher than TC



      6. You may create user defined objects in your framework(little bit hard then you think) and implement them in TC or rewrite your framework(I'm doing redesign now).



      7. QTP and TC both are using VBScript engine, so they are identical from VBScript perspective and totally different from implementation perspective.



    Good luck,



    Allan

       
  • domik's avatar
    domik
    Occasional Contributor
    Well I know what you are saying.

    I was using TC for about 3 years so I think that I know what I'm doing ;)

    I used QTP 11 for 3 months and didn't like it at all.



    That's why I would expect that any help file already exist ;) What's even more - I read that there is something like Mission to Mars (something about moving existing tests in QTP to TC).



    So I'm only asking for help. Current framework is complex and uses mainly VBScript classes that's why it's hard to fix everything.



    Also change from "desktop" to "process" as an home for application is difficult to maintain right now.



    But right now I'm doing fine but if such help would exist I would appreciate that.