SiebView Object
Description
A view object 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 SiebView object.
Note: You can also view a list and descriptions of the SiebView 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
![]() | Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension. |
![]() | Checks whether the actual value of an item matches the expected value. |
![]() | Checks whether the specified object property achieves the specified value within the specified timeout. |
![]() | Returns the collection of child objects contained within the object. |
![]() | Returns the collection of properties and current values from the object in the application. |
![]() | Returns the number of objects of the specified type. |
![]() | Returns the RepositoryName of the object. |
![]() | Returns the RepositoryName of the item with the specified index. |
![]() | Returns the current value of the specified description property from the object in the application. |
![]() | Returns the collection of properties and values used to identify the object. |
![]() | Returns the value of the specified description property from the test object description. |
![]() | Highlights the object in the application. |
![]() | Navigates to the specified applet corresponding to the specified applet repository name. |
![]() | Retrieves the current value of an item and stores it in a specified location. |
![]() | Instructs UFT One to re-identify the object in the application the next time a step refers to this object. |
![]() | Sets the value of the specified description property in the test object description. |
![]() | Returns a string that represents the current test object. |
![]() | Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. |
Properties
![]() | The active applet repository name under the current view. |
![]() | The number of applets under the current view. |
![]() | The class of the object. |
![]() | Returns the test object corresponding to the applet that is currently active. |
![]() | Checks whether the object currently exists in the open application. |
![]() | The name of the object as it is stored in the repository. |
![]() | The name of the object as it appears in the user interface. |
GetClassCount Method
Description
Returns the number of objects of the specified type.
Syntax
object.GetClassCount (ClassName)
Arguments
Parameter | Description |
---|---|
ClassName |
Required. A String value. The type of object to be counted. |
Return Type
A long integer value.
Example

'The following example uses the GetClassCount method to retrieve the number 'of applets in the current view, and then check whether the expected 'repository name matches the repository name of the active applet. SiebApplication("Siebel Call Center").CurrentSiebScreen.GotoView "Account List View" var_count = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetClassCount("SiebApplet") For i = 0 To var_count - 1 var_AppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetRepositoryNameByIndex("SiebApplet", i) SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GotoApplet var_AppletRN var_curAppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.CurrentSiebApplet.RepositoryName If var_curAppletRN = var_AppletRN Then Reporter.ReportEvent 0, "Success ", "The application is opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" Else Reporter.ReportEvent 1, "Fail ", "The application is not opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" End If Next
GetRepositoryName Method
Description
Returns the RepositoryName of the object.
Syntax
object.GetRepositoryName (ClassName, UIName)
Arguments
Parameter | Description |
---|---|
ClassName |
Required. A String value. The ClassName of the child object. |
UIName |
Required. A String value. The UIName of the child object. |
Return Type
A String value.
The repository name of the specified child object.
IMPORTANT
The specified object must be a direct child object of the SiebView object.
GetRepositoryNameByIndex Method
Description
Returns the RepositoryName of the item with the specified index.
Syntax
object.GetRepositoryNameByIndex (ClassName, Index)
Arguments
Parameter | Description |
---|---|
ClassName |
Required. A String value. The ClassName of the object. |
Index |
Required. A long integer value. The index of the object in the value returned by the GetClassCount method. |
Return Type
A String value.
Example

'The following example uses the GetRepositoryNameByIndex method to 'enumerate through the applets in the current view and check whether 'the expected name matches the repository name of the active 'applet. SiebApplication("Siebel Call Center").CurrentSiebScreen.GotoView "Account List View" var_count = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetClassCount("SiebApplet") For i = 0 To var_count - 1 var_AppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetRepositoryNameByIndex("SiebApplet", i) SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GotoApplet var_AppletRN var_curAppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.CurrentSiebApplet.RepositoryName If var_curAppletRN = var_AppletRN Then Reporter.ReportEvent 0, "Success ", "The application is opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" Else Reporter.ReportEvent 1, "Fail ", "The application is not opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" End If Next
GotoApplet Method
Description
Navigates to the specified applet corresponding to the specified applet repository name.
Syntax
object.GotoApplet (Applet)
Arguments
Parameter | Description |
---|---|
Applet |
Required. A String value. The RepositoryName of the applet. |
Return Type
None.
Example

'The following example uses the GotoApplet method to enumerate through 'the applets in the current view and select a specific applet according 'to its repository name. SiebApplication("Siebel Call Center").CurrentSiebScreen.GotoView "Account List View" var_count = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetClassCount("SiebApplet") For i = 0 To var_count - 1 var_AppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetRepositoryNameByIndex("SiebApplet", i) SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GotoApplet var_AppletRN var_curAppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.CurrentSiebApplet.RepositoryName If var_curAppletRN = var_AppletRN Then Reporter.ReportEvent 0, "Success ", "The application is opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" Else Reporter.ReportEvent 1, "Fail ", "The application is not opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" End If Next
ActiveApplet Property
Description
The active applet repository name under the current view.
Syntax
object.ActiveApplet
Value Type
A String value.
Property type
Read-only property
Example

'The following example checks the number of applets under the current view and 'returns the active one, if at least one exists. Dim active_Applet, applet_Count applet_Count = SiebApplication("Siebel Call Center").SiebScreen("Home").SiebView("Siebel Web Call Center").appletCount If (applet_Count > 0) Then active_Applet = SiebApplication("Siebel Call Center").SiebScreen("Home").SiebView("Siebel Web Call Center").activeApplet MsgBox "The active applet is " + active_Applet End If
AppletCount Property
Description
The number of applets under the current view.
Syntax
object.AppletCount
Value Type
A long integer value.
Property type
Read-only property
Example

'The following example checks the number of applets under the current view and 'returns the active one, if at least one exists. Dim active_Applet, applet_Count applet_Count = SiebApplication("Siebel Call Center").SiebScreen("Home").SiebView("Siebel Web Call Center").appletCount If (applet_Count > 0) Then active_Applet = SiebApplication("Siebel Call Center").SiebScreen("Home").SiebView("Siebel Web Call Center").activeApplet MsgBox "The active applet is " + active_Applet End If
ClassName Property
Description
The class of the object.
Syntax
object.ClassName
Value Type
A String value.
Property type
Read-only property
CurrentSiebApplet Property
Description
Returns the test object corresponding to the applet that is currently active.
Syntax
object.CurrentSiebApplet
Value Type
An Object.
Property type
Read-only property
Example

'The following example uses the CurrentSiebApplet property to retrieve the 'repository name of the current applet and compare it with the expected 'repository name. SiebApplication("Siebel Call Center").CurrentSiebScreen.GotoView "Account List View" var_count = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetClassCount("SiebApplet") For i = 0 To var_count - 1 var_AppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GetRepositoryNameByIndex("SiebApplet", i) SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.GotoApplet var_AppletRN var_curAppletRN = SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.CurrentSiebApplet.RepositoryName If var_curAppletRN = var_AppletRN Then Reporter.ReportEvent 0, "Success ", "The application is opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" Else Reporter.ReportEvent 1, "Fail ", "The application is not opened on View " & SiebApplication("Siebel Call Center").CurrentSiebScreen.CurrentSiebView.UIName & " with active applet " & (i + 1) & " from " & var_count & " applets on the screen" End If Next
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
UIName Property
Description
The name of the object as it appears in the user interface.
Syntax
object.UIName
Value Type
A String value.
Property type
Read-only property
Example

'The following example finds all the objects in the Daily Calendar with the same 'classname as a specified SiebPickList object and then displays the Repository 'name of each of these objects. Set MyDescription = Description.Create() MyDescription("classname").Value = SiebApplication("Siebel Call Center").SiebScreen("Home").SiebView("Siebel Web Call Center").SiebApplet("Daily Calendar").SiebPicklist("SiebPicklist").ClassName Set MyChildren = SiebApplication("Siebel Call Center").SiebScreen("Home").SiebView("Siebel Web Call Center").SiebApplet("Daily Calendar").ChildObjects(MyDescription) childCount = MyChildren.Count ' now we show test object names For i = 0 To childCount - 1 MsgBox MyChildren(i).RepositoryName Next
See also:
- SblAdvancedEdit
- SblButton
- SblCheckBox
- SblEdit
- SblPickList
- SblTable
- SblTabStrip
- SblTreeView
- SiebApplet
- SiebApplication
- SiebButton
- SiebCalculator
- SiebCalendar
- SiebCheckbox
- SiebCommunicationsToolbar
- SiebCurrency
- SiebInkData
- SiebList
- SiebMenu
- SiebPageTabs
- SiebPDQ
- SiebPicklist
- SiebRichText
- SiebScreen
- SiebScreenViews
- SiebTask
- SiebTaskAssistant
- SiebTaskLink
- SiebTaskStep
- SiebTaskUIPane
- SiebText
- SiebTextArea
- SiebThreadbar
- SiebToolbar
- SiebTree
- SiebView
- SiebViewApplets