Forum Discussion
- rraghvaniChampion 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.
- tristaanogreEsteemed 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.
- fredsmithNew Contributor
Keyword tests by their very nature aren't Object Orientated so it's a little difficult to implement the Page Object Model. However, an approach is detailed here...
https://www.testmanagement.com/blog/2023/02/building-a-framework-with-testcomplete/
It has limitations! Ultimately you'll probably want to move towards an object orientated coded approach (either JavaScript or Python), but this might help.
- AlexKarasChampion 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.
- rraghvaniChampion Level 3
What do you mean by POM structure?
- RadGuruOccasional Contributor
Page Object Model
Related Content
- 5 years ago
- 10 months ago
Recent Discussions
- 16 hours ago
- 16 hours ago
- 4 days ago