Validation 如何使用robot框架迭代分割数据。基于此功能,我有3个场景需要验证

Validation 如何使用robot框架迭代分割数据。基于此功能,我有3个场景需要验证,validation,robotframework,Validation,Robotframework,**使用上述数据,我们应该得到每个函数的状态为True,然后只有我可以继续使用另一个功能 对于第二个函数,我试图在框架中使用should-be-equal关键字验证完整的数据,但它返回None 对于我正在使用的第三个函数,应该包含关键字。对于第一个变量,我们得到的数据为“awp ss wrd”,这里我想验证“aws”是否可用,但条件仍然失败 对于第4个,我想用'06/30/2020 6.40 PM'格式验证日期,在这里我尝试只验证日期而不验证时间,但它仍然不返回任何值。要获取变量true fal

**使用上述数据,我们应该得到每个函数的状态为True,然后只有我可以继续使用另一个功能

对于第二个函数,我试图在框架中使用should-be-equal关键字验证完整的数据,但它返回None 对于我正在使用的第三个函数,应该包含关键字。对于第一个变量,我们得到的数据为“awp ss wrd”,这里我想验证“aws”是否可用,但条件仍然失败
对于第4个,我想用'06/30/2020 6.40 PM'格式验证日期,在这里我尝试只验证日期而不验证时间,但它仍然不返回任何值。

要获取变量true false的返回状态,请尝试使用此关键字
运行关键字和返回状态

预期的结果将是正确的和错误的。

如果您可以使用有效的部分(变量、测试用例、关键字等)粘贴整个robot文件,这将非常有用
       Profile User
        ${profile_user}     ${profile_domain}=      Split String       ${username}    separator=@
        ${profile_user}=    Replace String          ${profile_user}    -              ${SPACE}
        ${profile_user}=    Convert To Uppercase    ${profile_user}
        [Return]            ${profile_user}
    
    # Both are equal , but still return None    
    Validate Owner field
        [Arguments]            ${owner}
        ${text}=               Convert To Uppercase      ${owner}
        ${profile_user}=       Profile User
        log                    ${text}
        ${status}=             should contain      ${profile_user}      ${text}
        [Return]               ${status}
    
    # We can validate awp text
    Validate softwarebundle field
        [Arguments]            ${softwarebundle}      ${bundle_id}
        ${bundle_id}=          Convert To Uppercase      ${bundle_id}
        ${bundle_id}=          Replace String            ${bundle_id}    -              ${SPACE}
        ${status}=             should contain       ${softwarebundle}         ${bundle_id}
        [Return]               ${status}
    
    **# I want to validate weather complete date is matching with the same format  using current date**
    Validate Create time
        [Arguments]               ${expdate}
        ${UI_Creation_time}=      Set Variable             ${text}
        ${CurrentDate} =    Get Current Date    result_format=%m/%d/%Y
        Log    ${CurrentDate}
        ${status}=                should contain           ${text}      ${CurrentDate}
        [Return]                  ${status}
        
        
        
****Data:
${username}=    UAT APP USER
${owner}=       UAT APP USER
${softwarebundle}=          awp 9.4 se      
${bundle_id}=               awp
${expdate}=    06/30/2020 6.40PM****
        
    
${status}=      Run Keyword And Return Status   should contain      ${profile_user}      ${text}