I am automating tests using Silk4J. For the SapTree [MicroFocus] class, there are the methods getColumnHeaders() [Microfocus], getColumnNames() [MicroFocus] and getColumnTitles() [MicroFocus].
The description of them is very similar and I'm trying to understand the differences.
What I found out so far:
- the methods return different results. In my case, it differs only in the first element and I'm not sure whether it might differ in more cases.
This is how my tree looks like in SAP GUI (called a column tree):
This is the difference between name and header - in my case is just in the first column:
Column name: ZMAPP_STEXT
Column header: HierarchyHeader
Column name: ORG_OBJID
Column header: ORG_OBJID
Column name: ORG_SHORT
Column header: ORG_SHORT
Column name: ORG_BEGDA
Column header: ORG_BEGDA
Column name: ORG_ENDDA
Column header: ORG_ENDDA
...
I have tried:
- I asked the MicroFocus support, but the answer is, that this is basically a copy of the SAP automation documentation
- I got a copy of the SAP GUI Scripting API [SAP] and looked up the documentation of the GuiTree class, but that one is even worse.
So, what is the difference between getColumnHeaders(), getColumnNames() and getColumnTitles()? In which situation do I need which method? Does it depend on the tree type?