Is adding a DATAPOOL_CONFIG statement in a .h (header file) a viable way for split scripts to share the same datapool?
Is adding a DATAPOOL_CONFIG statement in a .h (header file) a viable way for split scripts to share the same datapool?
Why would you want to do that?
Maybe there is a better solution.
Could you tell us a bit more on what you want to achieve?
Each split script being able to use values from same row of same datapool. By default Robot adds a separate datapool config for each split script. Not really what I want. I need for example, script 1 getting a userid from datapool, but script 2 needs password (from datapool) of the userid that script 1 used. Not exactly what I'm doing, just using this as an example.
There have been times where I did put several DATAPOOL_CONFIG sections of my test scripts in a header file. It provided an easier way to maintain and manage the datapool access of all the seperate datapools I was using during my tests. So, it can be done. If split scripts need to share datapool values, you may want to look into using persistent variables across the test scripts.
Using DP_PERSISTENT?
You must log in to post.
Video embedded using Easy Video Embed plugin