C# Syntax
public interface IDevice : HP.LFT.SDK.IEnvironment, HP.LFT.SDK.ITestObject, HP.LFT.SDK.ITestObjectDescriber
Name | Description | |
---|---|---|
![]() | DisplayName | The object display name defined in the Application Model. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | FleetType | The fleetType of the device, as defined on Digital Lab. The fleetType is relevant only when the device is hosted by OpenText or stored on an AWS farm. (DeviceSource=Hosted or AmazonDeviceFarm) C# Syntax string FleetType {get;} |
![]() | Id | The ID of the device in Digital Lab. |
![]() | Location | The geographical location of the public device, as defined on Digital Lab. The location is relevant only when the DeviceSource is Hosted and the fleetType is Public. C# Syntax string Location {get;} Possible values: Any (default) or a string representing the geographic location. |
![]() | Manufacturer | The manufacturer of the device. |
![]() | Model | The model name of the device. |
![]() | Name | The name of the device as defined in Digital Lab. |
![]() | OSType | The operating system currently running on the device. |
![]() | OSVersion | The operating system version currently running on the device. |
![]() | Parent | The parent test object of this test object. The child object must be obtained using the Describe method, otherwise, it returns null. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | Source | The Source to take the device from. DeviceSource |
Name | Description | |
---|---|---|
![]() | Back | Presses the device's Back button. (Android Only) |
![]() | CloseViewer | Closes the RDP window for the device (if open). Calling this method does not release the device if it is locked. |
![]() | Describe<TChild> | Creates a child test object of this test object. (Inherited from HP.LFT.SDK.ITestObjectDescriber) |
![]() | Dispose | (Inherited from System.IDisposable) |
![]() | Exists | Checks whether this object exists in the AUT before the default object synchronization timeout elapses. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | FindChildren<TChild> | Returns all the child test objects that match the specified test object type and description filter. For example, you can use this method to retrieve all Web buttons on a Page with type="submit". (Inherited from HP.LFT.SDK.ITestObject) |
![]() | GetDescription | Returns a clone of the description for this test object. The test object must be obtained using the Describe method, otherwise, this method returns null. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | GetLogs | Get device logs collected since the device was locked. |
![]() | GetSnapshot | Captures a bitmap of this test object and returns a System.Drawing.Image of it. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | GetTextLocations | Returns all rectangle areas containing the specified text within this object (Windows only). (Inherited from HP.LFT.SDK.ITestObject) |
![]() | GetVisibleText | Returns all visible text from this object. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | GetVitals | Get an accumulation of the device vitals from the time the device was locked, in one second intervals. |
![]() | Highlight | Highlights this object in the AUT. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | HighlightMatches<TChild> | Highlights all children that match the specified test object type and description filter. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | Home | Presses the device's Home button. (Android Only) |
![]() | IsViewerOpen | Checks if the RDP window for the device is open. |
![]() | Menu | Presses the device's Menu button. (Android Only) |
![]() | NetworkVirtualizationStart | Starts the Network Virtualization service using the specified network profile. |
![]() | NetworkVirtualizationStop | Stops the Network Virtualization service. |
![]() | OpenViewer | Opens an RDP window for the device. If a window for the device is already open, another window does not open. |
![]() | Pan | Overloaded. Performs a Pan gesture on the device. |
![]() | RecentApps | Opens the list of recent applications. |
![]() | SendKey | Overloaded. Simulates pressing a special key in the device keyboard. |
![]() | SendString | Overloaded. Simulates entering text (a string) using the device keyboard. |
![]() | SetDescription | Replaces this test object's description with the supplied description. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | SetOrientation | Sets the device orientation. |
![]() | SimulateGPSRelocate | Simulates a change in the device's GPS location. (Android Only) |
![]() | SimulateIncomingCall | Overloaded. Simulates an incoming call. |
![]() | SimulateIncomingSMS | Overloaded. Simulates an incoming SMS. |
![]() | Uploads scenario definition files to the device and makes them available in the current session. C# Syntax string SvUploadScenario(string svServiceId, string scenarioFilesFolder) Parameters
Return value A string representing the ID of the uploaded scenario. | |
![]() | Uploads a service definition file to the device and makes it available in the current session. C# Syntax string SvUploadService(string serviceFileContents) Parameters
Return value A string representing the ID of the uploaded service. | |
![]() | Starts a specific service virtualization scenario. C# Syntax void SvStartScenario(string svScenarioId) Parameters
| |
![]() | Stops a specific service virtualization scenario. C# Syntax void SvStopScenario(string svScenarioId) Parameters
| |
![]() | Swipe | Overloaded. Swipes the device in the specified direction starting from a specific location. |
![]() | Touch | Overloaded. Touches the device at the specified coordinates. (Android Only) |
![]() | Unlock | Unlocks the device in Digital Lab if the device is not locked by another device object. This method also closes the RDP window. |
![]() | UploadMedia | Overloaded. Upload a media file to the device for camera or video simulation. The files are deleted when the device is released. |
![]() | VerifyImageExists | Checks whether a snapshot of this object contains the supplied image. (Inherited from HP.LFT.SDK.ITestObject) |
![]() | VerifyImageMatch | Checks whether a snapshot of this object and the supplied image are a match, given the specified pixel and RGB tolerance values. (Inherited from HP.LFT.SDK.ITestObject) |