mkorpela / pabot

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

Parallel execution is not working if we create multiple Testcases via data driven approach #548

Open Kartheeswari-git opened 1 year ago

Kartheeswari-git commented 1 year ago

Script: Settings Library Selenium2Library Library DataDriver ../Resource/inputfile.xlsx Test Template Launch_chrome

Test Cases CheckGolivefor${URL} [Tags] CheckGolivefor${URL}

Keywords Launch_chrome [Arguments] ${URL} ${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver Call Method ${chrome_options} add_argument --incognito

Call Method ${chrome_options} add_argument --headless

 Create WebDriver    Chrome    chrome_options=${chrome_options}
 Go To    ${URL}
 set selenium implicit wait  15s
 set window size    1920    1080
     sleep    5s
 select frame        <iframetag>
 press keys     path     data+ENTER
 sleep       6s
 Element should contain     path     data

Pabot --testlevelsplit --processes 3 Testcase/filename.robot

Its executing my Testcase one after another. Seems like its because of getting data from excel. Can you have a solution for this?