Hi,
We have big application with too many web objects.Its very hard to manage the object Repository.
1.What is the best way to manage?
2.How can we use Page Object Model in Katalon Studio?
Thanks,
Manjinder
Hi,
We have big application with too many web objects.Its very hard to manage the object Repository.
1.What is the best way to manage?
2.How can we use Page Object Model in Katalon Studio?
Thanks,
Manjinder
For a large application, it is unmanageable, IMO.
If youāre comfortable writing/creating your own Test Objects (āliveā in memory) you donāt need to use the OR at all.
Search for POM and Page Object Model. Thereās a post from @Brandon_Hein which explains a pretty good method. Plus, Brandon has a nice way of storing the details for his objects in the same model.
I knock on Brandonās door and see if heās availableā¦
When are you saying āwriting/creating your own Test Objects (āliveā in memory)ā.Does it mean that create test object by own without record and play mode?
Yes. It may come as a shock to you, but you donāt need:
1 - The Recorder
2 - The Object Repository
But like I said, you need to be comfortable writing code (in the Script view).
Hereās a link to a post where I give an example of how to implement the POM in Katalon:
I have only been using KS for about 6 months, so I still use the Object Repository. I create folders under the OR and put the objects of one page together. I also manually change the names of the objects from what the Spy Web finds to better show the section and accompanying label associated with the object. Currently, I have 45 folders (pages) under the Object Repository. Some folder have only about 50 objects, some have hundreds.
Then I drag and drop the objects from the OR into the Script page (I also remove the phrase, Object Repository/ from all text to reduce the statement length after every section.) So far, I have been enjoying myself doing it this way.
I believe this was the original vision for Katalon Studioās ābuilt inā implementation of the Page Object Model, so Iām glad that itās working for you
Iām building my OR as well by creating folders and putting the objects from each page together. The mistake I made was to add my folders in a drill down fashion without labeling the top first, before adding the second folder (for a sub menu). Now, the top menu items are in line with the sub menu and I cannot drag and drop to fix. So, Looks like Iāll need to delete my second and third drill down folders to keep my OR āneatā. Or is there a way to rearrange the objects?
The Administration Menu folder should be below the āSystemā objectā¦
I might be missing your point butā¦
I just created a new folder called XXX under Pages and dragged under Instrument.
You can drag files into a folder.
You can drag a folder into a folder.
You cannot drag a folder into a file (obviously)
Hi Russ,
Say you have multiple objects under your Instrument folder. And the xxx folder falls inside of those objects. ie: your Instrument folder having an object named zzz
My objects under Corp_Top_Menu_Items are interrupted by the Corp_Administration_Menu folder. I need to drag it under āSystemā. Is there a way to do that?
What is System? Iām not familiar with that icon. Is it a file?
Itās a link. All the objects in that folder are links to click
Ah sorry. My bad. I didnāt fully comprehend your original post
I never use the OR. But let me go play and see what I can come up with (hopefully, a little more than nothing).
Right. So the ...
icon is a test object which is akin to a file (in this sense itās āatomicā - there isnāt anything smaller than it). In which case, it canāt contain anything.
My suggestion:
Iām creating the OR in the path that the test will go for that part of the application. Unfortunately, we will not be able to let the last object in the previous folder determine what the next folder will be called
I donāt understand, sorry.
You will not be able to put a Folder (the icon which looks like a file folder, which contains your page objects), under an Element (or Object), which in the image above has an icon that looks like a textbox with dots (or a cassette tape if you are old enough to know what that is) but you could create a Folder with the same name as the Element to assist you with the linkage of Elements to pages. I think you might want the word Page attached to the Folder, like System Page, or Settings Page to assist with recognition.