Skip to content
Extraits de code Groupes Projets
Valider be264a17 rédigé par Rémi's avatar Rémi
Parcourir les fichiers

test: testing automation for D-Link, Philips Hue, TP-Link

more details later
parent 48eb863a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!1Add rule timeout & support for duplicate requests
appId: com.dlink.mydlinkunified
name: D-Link Caméra
---
- launchApp:
appId: "com.dlink.mydlinkunified"
# clearState: true
stopApp: true
label: Start the D-Link app
- tapOn:
id: "com.dlink.mydlinkunified:id/clStatus"
label: "Open the camera"
- waitForAnimationToEnd:
timeout: 10000
label: "Wait 10 secs"
- launchApp:
appId: "com.amazon.dee.app"
label: "Open the Amazon Alexa app"
# clearState: true
stopApp: true
- tapOn: "Cameras"
- tapOn: "Camera D"
appId: com.amazon.dee.app
name: "Power-on/off TP-Link plug using Alexa"
---
- launchApp:
clearState: false
stopApp: true
label: "Open the Amazon Alexa app"
- tapOn:
id: "com.amazon.dee.app:id/tab_channels_device"
label: "Open the Devices tab"
- tapOn:
id: "DevicePageSearchButton"
label: "Open the search menu"
- tapOn:
id: "DeviceSearchPageSearchInput_SearchInput"
label: "Open the search bar"
- inputText:
text: "Lamp"
label: "Type 'Lamp' in the search bar"
- doubleTapOn:
text: "Lamp"
index: 1
label: "Select the Philips Hue lamp"
- tapOn:
point: "50%,23%"
label: "Turn on the lamp"
- tapOn:
id: "ColorControl::Color=Custom-primary"
label: "Open the color picker"
- scroll:
label: "Scroll down the color picker"
- tapOn:
text: "Orange"
label: "Set the color to orange"
- tapOn:
id: "header-back-button"
label: "Close the color picker"
- tapOn:
point: "85%,55%"
label: "Set the power to 100%"
- tapOn:
point: "50%,23%"
label: "Turn off the lamp"
\ No newline at end of file
appId: com.tplink.kasa_android
---
- runFlow:
file: hueEssentials.yml
label: "Edit the light using Hue Essentials"
- runFlow:
file: alexa.yml
label: "Edit the light using Alexa"
\ No newline at end of file
appId: com.superthomaslab.hueessentials
name: Hue Essentials
---
- launchApp:
appId: "com.superthomaslab.hueessentials"
clearState: false
stopApp: true
label: "Open the Hue Essentials app"
- tapOn:
text: "Office"
index: 1
label: "Tap on the Office room"
- tapOn:
point: "87%,31%"
label: "Turn on the light"
- tapOn:
point: "81%,76%"
label: "Open the device settings"
- tapOn:
point: "61%,76%"
label: "Open the color picker"
- eraseText:
label: "Remove the old HEX color"
- inputText:
text: "#3F2A56"
label: "Set the new HEX color to purple"
- tapOn:
id: "com.google.android.inputmethod.latin:id/0_resource_name_obfuscated"
index: 82
label: "Select the purple color"
- hideKeyboard:
label: "Hide the keyboard"
- tapOn:
point: "50%,16%"
label: "Set the power to 50%"
- tapOn:
text: "Close"
label: "Close the device settings"
- tapOn:
point: "87%,31%"
label: "Turn off the light"
\ No newline at end of file
appId: com.samsung.android.oneconnect
title: "Power-on/off TP-Link plug using SmartThings"
---
- launchApp:
appId: "com.samsung.android.oneconnect"
clearState: false
stopApp: true
label: "Open the SmartThings app"
- tapOn:
id: "com.samsung.android.oneconnect:id/menu_devices"
label: "Open the Devices tab"
\ No newline at end of file
appId: com.android.settings
name: "Connect to a Wi-Fi network"
# env:
# WIFI : "wifiname"
---
- launchApp:
# appId: "com.android.settings"
clearState: false
stopApp: true
label: "Open the Settings app"
- tapOn:
text: "Network & internet"
label: "Open the Network & internet settings"
- tapOn:
text: "Wi‑Fi"
label: "Open the Wi-Fi settings"
- tapOn:
text: ${WIFI}
label: "Connect to the provided Wi-Fi network"
\ No newline at end of file
appId: com.amazon.dee.app
name: "Power-on/off TP-Link plug using Alexa"
---
- launchApp:
clearState: false
stopApp: true
label: "Open the Amazon Alexa app"
- tapOn:
id: "com.amazon.dee.app:id/tab_channels_device"
label: "Open the Devices tab"
- tapOn:
id: "DevicePageSearchButton"
label: "Open the search menu"
- tapOn:
id: "DeviceSearchPageSearchInput_SearchInput"
label: "Open the search bar"
- inputText:
text: "TP-Link"
label: "Type 'TP-Link' in the search bar"
- doubleTapOn:
text: "TP-Link plug"
label: "Select the TP-Link plug"
- tapOn:
point: "50%,23%"
label: "Toggle the plug power"
- tapOn:
point: "50%,23%"
label: "Toggle the plug power"
appId: com.tplink.kasa_android
---
- runFlow:
file: kasa.yml
label: "Power-on/off TP-Link plug using Kasa"
- runFlow:
file: smarthings.yml
label: "Power-on/off TP-Link plug using SmartThings"
- runFlow:
file: "alexa.yml"
label: "Power-on/off TP-Link plug using Alexa"
- runFlow:
file: "wifiUCLouvain.yml"
env:
WIFI: "UCLouvain"
label: "Connect to the UCLouvain Wi-Fi network"
- runFlow:
file: kasa.yml
label: "Power-on/off TP-Link plug using Kasa"
- runFlow:
file: smarthings.yml
label: "Power-on/off TP-Link plug using SmartThings"
- runFlow:
file: "alexa.yml"
label: "Power-on/off TP-Link plug using Alexa"
- runFlow:
file: "wifiUCLouvain.yml"
env:
WIFI: "OpenWrt-5GHz"
label: "Connect to the OpenWrt-5GHz Wi-Fi network"
\ No newline at end of file
appId: com.tplink.kasa_android
title: "Power-on/off TP-Link plug using Kasa"
---
- launchApp:
appId: "com.tplink.kasa_android"
clearState: false
stopApp: true
label: "Open the Kasa app"
- tapOn:
id: "com.tplink.kasa_android:id/device_switch"
label: "Toggle the plug power"
- tapOn:
id: "com.tplink.kasa_android:id/device_switch"
label: "Toggle the plug power"
\ No newline at end of file
appId: com.samsung.android.oneconnect
title: "Power-on/off TP-Link plug using SmartThings"
---
- launchApp:
appId: "com.samsung.android.oneconnect"
clearState: false
stopApp: true
label: "Open the SmartThings app"
- tapOn:
id: "com.samsung.android.oneconnect:id/menu_devices"
label: "Open the Devices tab"
\ No newline at end of file
appId: com.android.settings
name: "Connect to a Wi-Fi network"
# env:
# WIFI : "wifiname"
---
- launchApp:
# appId: "com.android.settings"
clearState: false
stopApp: true
label: "Open the Settings app"
- tapOn:
text: "Network & internet"
label: "Open the Network & internet settings"
- tapOn:
text: "Wi‑Fi"
label: "Open the Wi-Fi settings"
- tapOn:
text: ${WIFI}
label: "Connect to the provided Wi-Fi network"
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter