mkorpela / pabot

Parallel executor for Robot Framework test cases.
https://pabot.org
Apache License 2.0
476 stars 152 forks source link

Pabot is not copy correct screenshots folder #487

Closed rarajabs closed 2 years ago

rarajabs commented 2 years ago

Hi,

I am not sure is this problem is belongs to pabot or selenium. Please close this if it is not related to pabot.

Issue I am facing is pabot not copy the correct screeshots when I had setup another folder to store screenshots.

test.robot

*** Settings ***
Library             SeleniumLibrary    run_on_failure=NOTHING    screenshot_root_directory=${OUTPUTDIR}${/}Screenshots

Suite Teardown      Close All Browsers
Test Template       Open Page

*** Test Cases ***
Bing    https://www.bing.com
Google    https://www.google.com
Wikipedia    https://www.wikipedia.org/

*** Keywords ***
Open Page
    [Arguments]    ${url}
    Open Browser    browser=Chrome    url=${url}    remote_url=http://localhost:4444/wd/hub
    Capture Page Screenshot
    Close Browser

Log image

my pabot command as below: ''' pabot --testlevelsplit --processes 3 --argumentfile .\variables\argument.txt --variablefile .\variables\variables.yaml ".\Testsuites\test.robot" '''

I have pass argumentfile and variablefile param to pabot, but they are not affect the test run as I didn't consume values from both argument and variable files in test.robot

mkorpela commented 2 years ago

Actually I think this is both.. thanks for the feedback! I think this could be resolved by improving pabot and library interactions!

mkorpela commented 2 years ago

After taking closer look I realised that --artifactsinsubfolders option should have been used and using this option fixes the problem. Closing as invalid.