function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suhas GB 4Suhas GB 4 

What is synchronous vs asynchronous test run in salesforce

There is a critical update - View Setup permission now required to run tests synchronously using the POST method for runTestsSynchronous. How to enable this Permission. Please explain in steps
NagendraNagendra (Salesforce Developers) 
Hi Suhas,

View Setup user permission now required to run tests synchronously using the POST method for runTestsSynchronous.

With this update, running Apex tests synchronously using the POST method for the REST Tooling API /runTestsSynchronous/without View Setup permission enabled gets an error. View Setup user permission is now required to run tests synchronously.

You can add this permission via the System Permissions section of the permission set.

Hope this helps.

Mark this as solved if it's resolved.

Thanks,
Nagendra
 
Beer NutthawanBeer Nutthawan
Hi Suhas

Where is the  View Setup permission? What if I get the error for this issue then how can I fixe this? 

Thanks, 
Nutthawan P.
saurabh_kumar_Ssaurabh_kumar_S
Hi @Beer , As Suhas said you can add this(View Setup and Configuration) using permmision set  (System permission ) section  Or you can  also have this by providing   this access to current user profile (Adminsitrative Section (View Setup and Configuration) )

User-added image