SiebCalendar Object

Description

A calendar control in a Siebel test automation environment.

Operations

The sections below list the built-in methods and properties that you can use as operations for the SiebCalendar object.

Note: You can also view a list and descriptions of the SiebCalendar description properties, for use in object repository descriptions, programmatic descriptions, checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.

Methods

Method CancelPopupCloses the calendar popup applet without saving changes (for example, by clicking the Cancel button).
Common Method CaptureBitmapSaves a screen capture of the object as a .png or .bmp image, depending on the specified file extension.
Common Method CheckChecks whether the actual value of an item matches the expected value.
Common Method CheckPropertyChecks whether the specified object property achieves the specified value within the specified timeout.
Common Method ChildObjectsReturns the collection of child objects contained within the object.
Common Method GetAllROProperties

Returns the collection of properties and current values from the object in the application.

Method ClosePopupCloses the calendar popup applet after saving changes (for example, by clicking the Save button).
Common Method GetROPropertyReturns the current value of the specified description property from the object in the application.
Common Method GetTOPropertiesReturns the collection of properties and values used to identify the object.
Common Method GetTOPropertyReturns the value of the specified description property from the test object description.
Common Method HighlightHighlights the object in the application.
Method NextMonthChanges the displayed month in the calendar popup applet to the next month (for example, from February to March).
Method OpenPopupOpens the calendar popup applet.
Common Method OutputRetrieves the current value of an item and stores it in a specified location.
Method PrevMonthChanges the displayed month in the calendar popup applet to the previous month (for example, from April to March).
Common Method RefreshObjectInstructs UFT One to re-identify the object in the application the next time a step refers to this object.
Method SelectTimeZoneSets the Time Zone in the open calendar popup applet.
Method SetDaySets the Day in the open calendar popup applet.
Method SetMonthSets the Month in the open calendar popup applet.
Method SetTextEnters text in the parent control for the calendar.
Method SetTimeSets the Time in the open calendar popup applet.
Common Method SetTOPropertySets the value of the specified description property in the test object description.
Method SetYearSets the Year in the open calendar popup applet.
Common Method ToStringReturns a string that represents the current test object.
Common Method WaitPropertyWaits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step.

Properties

Property CalendarTypeThe type of calendar.
Property ClassNameThe class of the object.
Property DayThe current day in the open calendar control.
Common Property ExistChecks whether the object currently exists in the open application.
Property IsEnabledIndicates whether the object is enabled.
Property IsOpenIndicates whether the associated popup applet is open.
Property IsRequiredIndicates whether the object is required.
Property MonthThe current month in the open calendar control.
Property RepositoryNameThe name of the object as it is stored in the repository.
Property TextThe text value of the object.
Property TimeThe current time in the open calendar control.
Property TimeZoneThe current time zone in the open calendar control.
Property TimeZoneCountThe number of time zones in the time zone picklist for the open calendar control.
Property UINameThe name of the object as it is appears in the user interface.
Property YearThe current year in the open calendar control.

Back to top

 

CancelPopup Method

Description

Closes the calendar popup applet without saving changes (for example, by clicking the Cancel button).

Syntax

object.CancelPopup

Return Type

None.

Example

Back to top

 

ClosePopup Method

Description

Closes the calendar popup applet after saving changes (for example, by clicking the Save button).

Syntax

object.ClosePopup

Return Type

None.

Example

Back to top

 

NextMonth Method

Description

Changes the displayed month in the calendar popup applet to the next month (for example, from February to March).

Syntax

object.NextMonth

Return Type

None.

IMPORTANT

Before running this method, ensure that the calendar is open in the application.  For example, add a SiebCalendar.OpenPopup method immediately prior to the NextMonth step, or include the NextMonth step in an If statement that checks whether the calendar exists.

Example

Back to top

 

OpenPopup Method

Description

Opens the calendar popup applet.

Syntax

object.OpenPopup

Return Type

None.

Example

Back to top

 

PrevMonth Method

Description

Changes the displayed month in the calendar popup applet to the previous month (for example, from April to March).

Syntax

object.PrevMonth

Return Type

None.

IMPORTANT

Before running this method, ensure that the calendar is open in the application.  For example, add a SiebCalendar.OpenPopup method immediately prior to the PrevMonth step, or include the PrevMonth step in an If statement that checks whether the calendar exists.

Example

Back to top

 

SelectTimeZone Method

Description

Sets the Time Zone in the open calendar popup applet.

Syntax

object.SelectTimeZone (ItemName)

Arguments

ParameterDescription
ItemName Required. A String value.
The Time Zone value in the format "(GMT-09:00) Alaska".

Return Type

None.

Example

Back to top

 

SetDay Method

Description

Sets the Day in the open calendar popup applet.

Syntax

object.SetDay (Day)

Arguments

ParameterDescription
Day Required. A long integer value.
The new day value.

Return Type

None.

Example

Back to top

 

SetMonth Method

Description

Sets the Month in the open calendar popup applet.

Syntax

object.SetMonth (Month)

Arguments

ParameterDescription
Month Required. A long integer value.
The new month value.

Return Type

None.

Example

Back to top

 

SetText Method

Description

Enters text in the parent control for the calendar.

Syntax

object.SetText (Text)

Arguments

ParameterDescription
Text Required. A String value.
The text to enter

Return Type

None.

Example

Back to top

 

SetTime Method

Description

Sets the Time in the open calendar popup applet.

Syntax

object.SetTime (Time)

Arguments

ParameterDescription
Time Required. A String value.
The new time value.

Return Type

None.

Example

Back to top

 

SetYear Method

Description

Sets the Year in the open calendar popup applet.

Syntax

object.SetYear (Year)

Arguments

ParameterDescription
Year Required. A long integer value.
The new year value.

Return Type

None.

Example

Back to top

 

CalendarType Property

Description

The type of calendar.

Syntax

object.CalendarType

Value Type

A String value.

Property type

Read-only property

IMPORTANT

The value of this property must be either Date, DateTime, or DateTimeZone.

Example

Back to top

 

ClassName Property

Description

The class of the object.

Syntax

object.ClassName

Value Type

A String value.

Property type

Read-only property

Example

Back to top

 

Day Property

Description

The current day in the open calendar control.

Syntax

object.Day

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

 

IsEnabled Property

Description

Indicates whether the object is enabled.

Syntax

object.IsEnabled

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

 

IsOpen Property

Description

Indicates whether the associated popup applet is open.

Syntax

object.IsOpen

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

 

IsRequired Property

Description

Indicates whether the object is required.

Syntax

object.IsRequired

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

 

Month Property

Description

The current month in the open calendar control.

Syntax

object.Month

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

 

RepositoryName Property

Description

The name of the object as it is stored in the repository.

Syntax

object.RepositoryName

Value Type

A String value.

Property type

Read-only property

Back to top

 

Text Property

Description

The text value of the object.

Syntax

object.Text

Value Type

A String value.

Property type

Read-only property

Example

Back to top

 

Time Property

Description

The current time in the open calendar control.

Syntax

object.Time

Value Type

A String value.

Property type

Read-only property

Example

Back to top

 

TimeZone Property

Description

The current time zone in the open calendar control.

Syntax

object.TimeZone

Value Type

A String value.

Property type

Read-only property

Example

Back to top

 

TimeZoneCount Property

Description

The number of time zones in the time zone picklist for the open calendar control.

Syntax

object.TimeZoneCount

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

 

UIName Property

Description

The name of the object as it is appears in the user interface.

Syntax

object.UIName

Value Type

A String value.

Property type

Read-only property

Example

Back to top

 

Year Property

Description

The current year in the open calendar control.

Syntax

object.Year

Value Type

A long integer value.

Property type

Read-only property

Example

Back to top

See also: