activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

UIAutomation-Aktivitäten

Letzte Aktualisierung 29. Sep. 2025

Verbindung (Connection)

A Connection is a class that represents the connection that you create between a device and an application, using the Connect/ ConnectAsync APIs. This is the class that exposes all the APIs that you can use to automate mobile testing scenarios.

Zum Erstellen einer Verbindung müssen ein Gerät und eine Anwendung konfiguriert sein. Der Mobile Automation-Dienst stellt APIs zur Erstellung und Konfiguration von Geräten oder Anwendungen bereit.

For example, to create and configure a device you can use the following APIs and their corresponding classes: CreateDevice, GetDevice, GetDevices, while for applications you can use the following APIs: CreateApplication, GetApplication, GetApplications.

Erstellen einer Verbindung

  1. Configure a device and an application. You can either do this directly in the code using CreateDevice and CreateApplication APIs, or within Mobile Device Manager.
  2. Erstellen Sie eine Variable mit dem Schlüsselwort var . Zum Beispiel: var connection.
  3. Invoke the mobile service on this variable using the Connect/ ConnectAsync API, and provide the device and application configured in the previous step as parameters:
    var connection = mobile.Connect(device, application)var connection = mobile.Connect(device, application)
    Remember, you can also use Connect/ConnectAsync with the device and application names configured in Mobile Device Manager:
    var connection = mobile.Connect("<deviceName>", "<applicationName>")var connection = mobile.Connect("<deviceName>", "<applicationName>")
  4. Wenn die Variable nun eingerichtet ist, können Sie die erforderlichen APIs aufrufen und Ihre mobilen Testszenarien automatisieren.
    connection.Tap()connection.Tap()
  • Erstellen einer Verbindung

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
Uipath Logo
Vertrauen und Sicherheit
© 2005–2025 UiPath. Alle Rechte vorbehalten