SiebTaskAssistant Object
Description
The Task Assistant 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 SiebTaskAssistant object.
Note: You can also view a list and descriptions of the SiebTaskAssistant 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
CaptureBitmap | Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension. |
Check | Checks whether the actual value of an item matches the expected value. |
CheckProperty | Checks whether the specified object property achieves the specified value within the specified timeout. |
ChildObjects | Returns the collection of child objects contained within the object. |
GetAllROProperties | Returns the collection of properties and current values from the object in the application. |
Close | Closes the task list. |
Done | Clicks the Return To link. |
GetROProperty | Returns the current value of the specified description property from the object in the application. |
GetTOProperties | Returns the collection of properties and values used to identify the object. |
GetTOProperty | Returns the value of the specified description property from the test object description. |
Highlight | Highlights the object in the application. |
Next | Clicks the See additional steps link. |
Output | Retrieves the current value of an item and stores it in a specified location. |
RefreshObject | Instructs UFT One to re-identify the object in the application the next time a step refers to this object. |
SetTOProperty | Sets the value of the specified description property in the test object description. |
Start | Clicks the link of the specified task to start a task. |
Step | Clicks the specified step. |
StepView | Clicks the View link for the specified step. |
ToString | Returns a string that represents the current test object. |
WaitProperty | Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. |
Properties
ActiveStepNum | Closes the task list. |
ActiveTask | The name of the current task. |
ActiveTaskId | The Id of the current task. |
ClassName | The class of the object. |
Exist | Checks whether the object currently exists in the open application. |
RepositoryName | The name of the object as it is stored in the repository. |
StepCount | The number of visible steps. |
TaskCount | The number of tasks in the current list. |
UIName | The name of the object as it appears in the user interface. |
Close Method
Description
Closes the task list.
Syntax
object.Close
Return Type
None.
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
Done Method
Description
Clicks the Return To link.
Syntax
object.Done
Return Type
None.
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
Next Method
Description
Clicks the See additional steps link.
Syntax
object.Next
Return Type
None.
Example
'The following example uses the Step method to select step 2 in the task assistant, 'and then uses the Next method to select the next step in the task assistant. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step "2" SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Next
Start Method
Description
Clicks the link of the specified task to start a task.
Syntax
object.Start (TaskIndex)
Arguments
Parameter | Description |
---|---|
TaskIndex |
Required. A String value. The Id of the task to start. |
Return Type
None.
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
Step Method
Description
Clicks the specified step.
Syntax
object.Step (StepNum)
Arguments
Parameter | Description |
---|---|
StepNum |
Required. A String value. The number of the step. |
Return Type
None.
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
StepView Method
Description
Clicks the View link for the specified step.
Syntax
object.StepView (StepNum)
Arguments
Parameter | Description |
---|---|
StepNum |
Required. A String value. The number of the step. |
Return Type
None.
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
ActiveStepNum Property
Description
Closes the task list.
Syntax
object.ActiveStepNum
Value Type
A long integer value.
Property type
Read-only property
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
ActiveTask Property
Description
The name of the current task.
Syntax
object.ActiveTask
Value Type
A String value.
Property type
Read-only property
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
ActiveTaskId Property
Description
The Id of the current task.
Syntax
object.ActiveTaskId
Value Type
A String value.
Property type
Read-only property
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
ClassName Property
Description
The class of the object.
Syntax
object.ClassName
Value Type
A String value.
Property type
Read-only property
Example
'The following example uses the UIName and ClassName properties to display this 'information for all child objects of the Siebel Call Center application. 'Retrieve all the children of the siebel application object Set MyDescription = Description.Create() Set MyChildren = SiebApplication("Siebel Call Center").ChildObjects(MyDescription) childCount = MyChildren.Count 'Display the UI names and classes for each object. For i = 0 To childCount - 1 MsgBox MyChildren(i).UIName + " object of class " + MyChildren(i).ClassName 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
StepCount Property
Description
The number of visible steps.
Syntax
object.StepCount
Value Type
A long integer value.
Property type
Read-only property
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
TaskCount Property
Description
The number of tasks in the current list.
Syntax
object.TaskCount
Value Type
A long integer value.
Property type
Read-only property
Example
'The following example reviews all of the steps of a task in the Siebel Call Center application. ' retrieve the total number of tasks available for the user Dim MyTaskCount MyTaskCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").taskCount If MyTaskCount > 0 Then 'start task number 1 from the TaskAssistant list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Start ("1") 'display information about the task in message boxes. MsgBox "Started task called " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTask MsgBox "The active task id running now is - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveTaskId 'go over each of the steps of the specified task and review them one at a time. Dim MyStepCount MyStepCount = SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").stepCount If (MyStepCount > 0) Then For i = 1 To MyStepCount 'select the specified step from steps list SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Step (CStr(i)) ' click the "View" link of the specified step SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").StepView (CStr(i)) MsgBox "Finished performing step number - " + SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").ActiveStepNum Next End If ' When finished, click the return link to return to the list of all available tasks SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Done ' Close the task assistant list. SiebApplication("Siebel Call Center").SiebTaskAssistant("TaskAssistant").Close End If
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