Forum Discussion

Tarzan1990's avatar
Tarzan1990
Occasional Contributor
8 years ago

Is it possible to achive 100% descriptive programming in TestComplte.?? For the desktop application

Is it possible to achive 100% descriptive programming in TestComplte.?? For the  desktop application

  • Define "descriptive programming".

     

    If you mean the concept used in HP QTP/UFT, that is, identifying objects without using the Object Repository - yes TestComplete supports this too. You do this by using the object names seen in the Object Browser and/or the Find* methods.

     

    For example:

    Sys.Process("explorer").Window("Button", "Start").Click();

    is a "descriptive programming" version of

    Aliases.explorer.btnStart.Click();

     

    Check out these threads for more examples:
    Can we do descriptive programming
    descriptive programming with Python

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Define "descriptive programming".

     

    If you mean the concept used in HP QTP/UFT, that is, identifying objects without using the Object Repository - yes TestComplete supports this too. You do this by using the object names seen in the Object Browser and/or the Find* methods.

     

    For example:

    Sys.Process("explorer").Window("Button", "Start").Click();

    is a "descriptive programming" version of

    Aliases.explorer.btnStart.Click();

     

    Check out these threads for more examples:
    Can we do descriptive programming
    descriptive programming with Python

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    No. (Assuming 'Descriptive Programming' means referencing all tested objects via NameMapping/Aliases only.)

    Just because your application uses (third-party) controls like grids/lists/combos/etc. that require custom access to their elements and the location of these elements is not static. (E.g.: "Locate the 'US $' cell in the Currencies table/grid and click Edit button in the right-most column to edit the exchange rate.")