In data driven test, how to add Documentation tag for each test

Hi,
Following is my test. it uses BDD+data-driven approach. How to add [Documentation] tag for each test. I want that in the report.html, for each test case, documentation should be displayed. How to achieve it?

Settings

Resource …/…/…/resources/high-level-api.robot

Library Collections

Test Template this is my test

Test Cases

TC1 ${data1} ${data2}

TC2 ${data3} ${data4}

TC3 ${data5} ${data6}

Keywords

this is my test

[Arguments]     ${valid_data1}        ${valid_data2}

When perform step1        ${valid_data1}

And step2                           ${valid_data1}

Then I should get              ${valid_data2}

Can anyone help on this?

Hi Jay,

You can added on testcase level the [Documention] tag, like:
TC01
[Documentation]
… | author: | your name |
… | Date: | date |
… | Goal: | fill in someting |
… | Expectation: | Fille in someting |

Hope this helps for you

Thank you so much for the reply. How to use this if I don’t want to use the pipe format?

Hi,

You can do it this way, if that’s what you mean?

*** Test Cases ***
TC01
[Documentation] GIVEN \n\n
… WHEN \n\n
… THEN
log to console someting

The result in the log is:
image