I have Python 3.7.0, Robot Framework 3.2.2, and AutoItLibrary 1.2.7 installed. I have the following test case to simply run an app I have developed in .NET:

*** Settings ***
Library           AutoItLibrary

*** Variables ***
${APP_PATH}       C:\\path\\to\\my\\app.exe
${SW_SHOW}        5

*** Test Cases ***
    Run    ${APP_PATH}    ${EMPTY}    ${SW_SHOW}

Running the test with robot test_case.robot passes the test case, but no window shows? What is the cause of this? Strangely, replacing ${APP_PATH} with notepad.exe opens the Notepad window correctly.

  • 1
    Run should return a value from which you can tell if the launch was successful or not. What is this value in your example? Or you can see if a new process is running. It also might be in the flag, I don't know if value 5 is correct, if it's not ignored etc.
    – pavelsaman
    Commented Mar 16, 2021 at 9:57
  • Where can I find the return value? I checked the command line and log file.
    – Al2110
    Commented Mar 16, 2021 at 10:11
  • 1
    I guess this should work ${return_value}= Run ${APP_PATH} ${EMPTY} ${SW_SHOW}, then you can log the value to console for example.
    – pavelsaman
    Commented Mar 16, 2021 at 10:43
  • @pavelsaman ok, using a variable like that, I got the value 36680
    – Al2110
    Commented Mar 16, 2021 at 11:43
  • That looks like a PID to me, so it seems your app.exe has been launched, so you need to figure out why you don't see any window.
    – pavelsaman
    Commented Mar 16, 2021 at 14:04


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.