-1
我嘗試編寫測試用於GUI應用程序拋出Winium + Selenium 但重點,我不能完成處理什麼開始扔測試。機器人框架:殺死進程
*** Settings ***
Library Process
Suite Setup suite_setup
Suite Teardown suite_teardown
*** TestCases ***
testcase1
Click Element id=btnHome
Click Element id=tbLPN
Input Text id=tbLPN testtext
Click Element id=btnManualRequest
Click Element id=btnHome
*** Keywords ***
suite_setup
Start process C:\\test\\Winium.Desktop.Driver.exe shell=yes alias=first
Start process C:\\test\\Services.exe shell=yes alias=second
${procID1} = Get Process Id first #here I just checked that alias is working
${procID1} = Get Process Id second #here I just checked that alias is working
Import Library Selenium2Library
${winium_host}= Set Variable localhost
${winium_port}= Set Variable 9999
${capabilities}= Create Dictionary app=C:\\test\\Gui.exe
Create Webdriver Remote command_executor=http://${winium_host}:${winium_port} desired_capabilities=${capabilities}
sleep 8
suite_teardown
Terminate Process first True
我認爲這個問題是winium,因爲我用簡單的calc.exe嘗試這種方式,它運行良好。
如何殺死GUI應用程序?因爲投終止進程它不工作(
阿爾喬姆
我不明白你問:( – Goralight
我問起如何完成的加工的最佳方式,因爲GUI應用程序不能下載命令'終止進程' –
什麼錯誤?你能告訴我嗎?還是它什麼都不做? – Goralight