Looks like the start_suite function runs before every test case in robot file when we run tests in parallel using pabot witn option --splittestlevel. Could someone suggest if there is a way to make start_suite run only once for all test cases? Below is what is happening for me now on running tests in parallel using pabot
start_suite
start_test
test a
end_test
end_suite
start_suite
start_test
test b
end_test
end_suite
However, I have been exploring to make it work like below
start_suite
start_test
test a
end_test
start_test
test b
end_test
end_suite
Hi Bhushan,
See Run Setup Only Once
in Execution affecting keywords
Dave.
@damies13 Thanks for the response
I tried to do it. But could not import the pabot library in robot file. Could you suggest on how to import it? I tried below
Library. pabot/PabotLib
Hi Bhushan,
There’s additional info on the pabot github page
- When you run pabot, you need to use the
--pabotlib
option
- the library import is (you were close):
Library pabot.PabotLib
Dave.
1 Like
@damies13 I am able to import pabot library now. There was an issue with my IDE due to which it could not recognize the library. Thanks
1 Like