Search code examples
robotframeworkallure

Allure Framework - How to take the screenshots into the folder


I want to take the captured screenshots into the folder. In the robot framework I did it by using the below command;

robot -d TestResults/LoginFolder Test/Login.robot

Now, I want to do the same thing using allure framework. I have attached my code.

 [Arguments]     ${Email}  ${Password}  

    input text    ${LOCATOR_Email}    ${Email}
    capture page screenshot
    input text    ${LOCATOR_Password}    ${Password}
    capture page screenshot
    Click element  xpath=//div[3]/div/button[2]
    Sleep  20s

Now I have compiled code by using below command;

robot --listener 'allure_robotframework;./TestResult/Login' Test/Login.robot

When I run the code by using above command, all the screenshots are saving with excel sheets and there is no any folder for excel sheets.

What I am doing wrong? How can I take all the screenshots into one folder. Please help me


Solution

  • You can do that by using the --outputdir foo/baz/ cli argument.