Search code examples
pythonpycharmrobotframework

No keyword with name '[email protected]' found. in robot framework. When i try to run the this script on pycharm, i'm getting this error message


*** Settings ***
Library     SeleniumLibrary
Resource    ../Resources/LoginError.robot
Suite Setup    Open my browser
Suite Teardown    Close my browser
Test Template

*** Test Cases ***    U_name    pwd

Wrong Username and Wrong Password    [email protected]    123
Wrong Username and Right password    [email protected]    admin
Right Username and Wrong Password    [email protected]    123
Right Username and Empty Password    [email protected]    ${EMPTY}
Wrong Username and Empty Password    [email protected]    ${EMPTY}

*** Keywords ***

Invalid Login
        [Arguments]    ${Username}    ${Password}
        Input the Username    ${Username}
        Input the Password    ${Password}
        Click on login
        Verify Presence of error message

No keyword with name '[email protected]' found. in robot framework. When i try to run the this script on pycharm, i'm getting this error message .


Solution

  • How about you pass Invalid Login to the Test Template ?

    *** Settings ***
    Library     SeleniumLibrary
    Resource    ../Resources/LoginError.robot
    Suite Setup    Open my browser
    Suite Teardown    Close my browser
    Test Template     Invalid Login
    
    *** Test Cases ***    U_name    pwd
    (...)