Tip 3
Usage of _resource() API
How to Do This
1. Use _resource() API in the script/scenario while, while doing a distributed run.
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/66156f640f3cc7f1a554d608_SShot%201%233.jpg)
2. While doing a distributed run, only the script/scenario in a suite will be zipped and sent to the nodes.
3. Other files(.csv,.sah, etc) that take a part in the script/scenario need to be included explicitly using _resource() API, otherwise, it will show an error.
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/6615704954da3e40552d49e1_SShot%202%233.jpg)
4. Use a relative path instead of a full path, as the Sahi installation path changes from node to node.
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/661570566b2cd5a2e575c8d2_SShot%203%233.jpg)
5. Do not use variables in the _resource() API.
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/66157061addb0127c140dae8_SShot%204%233.jpg)