Any examples for pabot 'Set Parallel Value For Key'?

Hi Everyone,

I have been trying to use pabotlib ‘Set Parallel Value For Key’ keywords and trying to set value of a global variable to be used across parallel processes but I see the other processes not able to get the value.

This is what I have been trying to do:

“”"
Suite Setup Run Setup Only Once Setup Test Suite

*** Keywords ***
Setup Test Suite
[Documentation] This function is used to setup test suite.
${test_sn}= hello-12345
Set global variable ${test_sn}
Set Parallel Value For Key ${test_sn} ${test_sn}

*** Test Cases ***
TC001 First test case
${cell}= Get Parallel Value For Key ${test_sn}
log many cell

TC002 Second test case
${cell}= Get Parallel Value For Key ${test_sn}
log many cell
“”"

When I try to run the tests in parallel using pabot, two processes gets created. The 1st process able to get the parallel value for the key but the 2nd process gives error like “Variable ${test_sn} not found.”

Any pointers of what could be missing?

Regards,
Ankur G

Able to resolve the issue. Seems like I was not setting the key correctly. The key needs to be set as

Set Parallel Value For Key test_sn ${test_sn}

and then it needs to be fetched as

${cell}= Get Parallel Value For Key test_sn