Forum Discussion

RadGuru's avatar
RadGuru
Occasional Contributor
2 years ago
Solved

POM for keyword test on TestComplete

Hello,

Is there any example (or documentation) of POM structure for Keyword test on TestComplete for desktop applications?

  • What do you mean by POM structure? 

6 Replies

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    From what I've just read about POM, it seems like it's similar to Name Mapping, a repository that stores all the objects of your tested applications.

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      This is correct.  POM is about setting up a model of the objects that you're going to automate against and then build methods and properties on those objects.  It's not necessary to build a POM in TestComplete because NameMapping essentially builds most of that for you.  If you want to build custom functions to operate against particular objects, that's possible but it's not exactly POM because you can't just call Aliases.MyPage.MyControl.MyCustomFunction.  Instead, you'd have to do something like MyCustomFunctions(Aliases.MyPage.MyControl,"MyAction") to execute a custom action against a control.

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Just a minor note to what was suggested by tristaanogre and rraghvani : you should use not NameMapping, but Aliases which is a higher abstraction built over NameMapping.

     

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    What do you mean by POM structure?