I have created API Flow in Library and executed it is working Fine.
That Same Library when I Published to Test Automation Project and running I am getting the following Error. Could not load file or assembly ‘RestSharp, Version=106.6.10.0, Culture=neutral, PublicKeyToken=598062e77f915f75’. The system cannot find the file specified.
I tried removing the UiPath.WebAPI.Activities (Version: 1.9.2) Package and Downlaoded it again but still no resolution. Can anyone help me on this.
This indicates that there is a version mismatch or missing assembly reference related to the RestSharp library in your UiPath project.
Try with these troubleshooting steps
Ensure that you are using the correct version of the RestSharp library in your project. The error message specifies “Version=106.6.10.0,” so make sure you have this exact version referenced.
Remove RestSharp and UiPath.WebAPI.Activities from your project, then reinstall them using the Package Manager to ensure a clean installation.
Ensure that the RestSharp library you are using is compatible with the .NET Framework version that your UiPath project is targeting.
Or
Sometimes, restarting UiPath Studio can help resolve reference issues.
Removed RestSharp and UiPath.WebAPI.Activities from Test Automation Project and downloaded again with same RestSharp Package versions.
Now the Testcase Executing Successfully.
Thank you @Palaniyappan