xamMonthCalendar Test Object Replay-Only Methods Summary
Replay-only methods summary chart
The following table briefly explains the replay-only methods for testing the control. Detailed information about the methods is provided below the table.
The following table lists the possible exceptions for the method and the reason that is likely to be causing them.
Exception name
Possible reasons
• The specified value is not a DateTime
• The following CalendarItem was not found.
The method parameter is not valid.
ClickCalendarItem Method
Description
This method replays the click action on a specified xamMonthCalendar item combined with pressing of a specified keyboard button.
Details
First, the specified calendar item is validated, then the item is brought into view and a specified key state is set. After that a click action is performed and the key state is reset.
The possible values for the key state are the following:
igShift
igAlt
igShiftAlt
igCtrl
igShiftCtrl
igAltCtrl
igShiftAltCtrl
Parameters
The following table explains the method’s parameters together with some sample code.
Method Parameter
Description
Calendar item
(required)
Key state
(optional)
This method is using a calendar item and a key state to perform a clickaction.
Example
Clicking on two dates and pressing the CTRL key in order to add these dates to a selected dates collection:
The following table lists the possible exceptions for the method and the reason that is likely causing them.
Exception name
Possible reasons
• The specified value is not a DateTime
• The following CalendarItem was not found.
The method parameter is not valid.
ClickSubItem Method
Description
This method is used for performing a click on a specified item at a specifed location. This method is common for most of the supported controls that have sub items.
Details
In the context of testing, the xamMonthCalendar the sub item type can take one of the following values:
• calHdr (calendar header sub item type)
• calItem (calendar item sub item type)
Parameters
The following table explains the method’s parameters together with some sample code.
Method Parameter
Description
Sub Item Type
(Required)
Sub Item
(Required)
Region
(Optional)
X
(Optional)
Y
(Optional)
Example
Click on the calendar item “2011” when the current calendar mode is Years:
This topic provides reference information about the proxy class that supports the testing of the xamMonthCalendar™ control in Micro Focus Unified Functional Testing software.