2014-12-29 5 views
1

의 키워드 섹션에서 "키워드를 실행하십시오"를 실행할 수 없습니다.이 로봇 프레임 워크 코드의 실행을 시도하고 있습니다. 항상 오류가 발생합니다. "키워드 실행"If 문 오류 메시지 : 이름이 'Run keyword'인 키워드가 없습니다. '$ {checkmessageoutput}'== '예상 항공기 ID, 즉 MLH001'이 (가) 발견되었습니다.Robotframework 코드

도움을 주시면 감사하겠습니다. 가 더 Run Keyword If라는 키워드가 아니라 Run Keyword If '${check...가 없습니다 말을 하지

No keyword with name 'Run Keyword If '${checkmessageoutput}' == 'Expected aircraft ID, i.e. MLH001'' found. 

공지 사항 :

은 가능하지

*** Settings *** 

Documentation  A Test of the TAS-APP-FDD-3 
...    Kari Dec 2014 

Suite Setup  fdd attach to application 

Library   BuiltIn 
Library   fddlibrary 

*** Test Cases *** 
Send a valid flight plan 
    [Template] send a flightplan 
    FI352 \ 

Fill out a flight plan missing callsign 
    [Template] send a flightplan 
    / Expected aircraft ID, i.e. MLH001 

*** Keyword *** 
fill out flight plan 
    fdd select msg 
    fdd msg select fpl 
    fdd msg fpl priority     FF 
    fdd msg fpl ssr      1234 
    fdd msg fpl flightrules    I 
    fdd msg fpl flighttype    S 
    #fdd msg fpl callsign     FI351 
    fdd msg fpl aircrafttype    A310 
    fdd msg fpl wakecategory    H 
    fdd msg fpl equipmentcommnav   SHIR 
    fdd msg fpl equipmentsurveillance  S 
    fdd msg fpl departureairport   BIKF 
    fdd msg fpl departuretime    0800 
    fdd msg fpl crusingspeed    M080 
    fdd msg fpl cruisinglevel    F300 
    fdd msg fpl route      ALDAN RATSO 
    fdd msg fpl destinationairport  EKCH 
    fdd msg fpl eet      0300 
    fdd msg fpl otherinformation   Flightplan 1 

send a flightplan 
    [arguments]  ${callsign}  ${checkmessageoutput} 
    fill out flight plan 
    fdd msg fpl callsign    ${callsign} 
    check flight plan     ${checkmessageoutput} 
    Run Keyword If '${checkmessageoutput}' == 'Expected aircraft ID, i.e. MLH001'  log to console  \nRun send flight plan 
    ELSE log to console  \nRun send no flight plan  

check flight plan 
    [arguments]      ${checkmessageoutput} 
    fdd msg fpl check message 
    ${message}=  fdd msg fpl return message 
    Should be equal  ${message} ${checkmessageoutput}  

send flight plan 
    fdd msg fpl send message 

display strip  
    fdd select flights 
    fdd flights display electronic strip 

답변

2

오류 메시지를 자세히 보려면 ​​사용하는 것입니다. 즉, 키워드와 인수 사이에 구분 기호가 누락되어 전체 문장이 단일 키워드라고 생각합니다. Run Keyword If 이후에 다른 공백이나 탭 또는 사용중인 것을 추가하십시오.

이러한 종류의 오류 때문에 파이프 분리 형식을 사용하는 것이 좋습니다.이 유형의 오류는 거의 발생하지 않으며 진단하기가 훨씬 쉽습니다.

관련 문제