Get started with window base app testing with robotframework and appiumlibrary
Install
System info: windows 10
After installing Win app driver , goto C:\Program Files (x86)\Windows Application Driver and run WinAppDriver.exe, that will start It will listen at http://127.0.0.1:4723/
Goto RF editor
*** Settings ***
# Library SeleniumLibrary
Library AppiumLibrary
Library Collections
Library Process
Test Setup Log TC Executed
*** Variables ***
${Path} C:\\ABC\testwpf.exe
${Username} admin
${Password} adminadmin
${note} C:\\Windows\\System32\\notepad.exe
*** Comments ***
*** Keywords ***
*** Test Cases ***
Launch EXE
Log To Console Test
Open Application http://127.0.0.1:4723 platformName=Windows deviceName=SYSTEMNAME app=${note}
Here put the devicename as your computer name
Goto winappdriver and run the winappdriver exe and then execute script so that notepad should open
- Robotframework
- appiumlibrary
- Windows application driver Download it https://github.com/microsoft/WinAppDriver
Problem Statement: To create POC of win exe automation with robot framework and suitable library
System info: windows 10
After installing Win app driver , goto C:\Program Files (x86)\Windows Application Driver and run WinAppDriver.exe, that will start It will listen at http://127.0.0.1:4723/
Goto RF editor
*** Settings ***
# Library SeleniumLibrary
Library AppiumLibrary
Library Collections
Library Process
Test Setup Log TC Executed
*** Variables ***
${Path} C:\\ABC\testwpf.exe
${Username} admin
${Password} adminadmin
${note} C:\\Windows\\System32\\notepad.exe
*** Comments ***
*** Keywords ***
*** Test Cases ***
Launch EXE
Log To Console Test
Open Application http://127.0.0.1:4723 platformName=Windows deviceName=SYSTEMNAME app=${note}
Here put the devicename as your computer name
Goto winappdriver and run the winappdriver exe and then execute script so that notepad should open
If everything setup properly it should launch the notepad.
Same way any other exe can be opened and able to perform other automation on windows app.
Hope it helps.
Comments
Post a Comment