You need to sign in to do that
Don't have an account?

self test - how to schedule test class in salesforce
I have a Unit Test Apex, and I would like to schedule this test for execution every day in a specific hour
how to make this?
how to make this?
All Answers
Hey Arthur,
There are many, many ways to automate it. You can subscribe to an app like GearSet to schedule automations, you can set up a CI/CD (Continuous Integration/Continuous Delivery) system to run tests on a schedule, you can use the basic core features of Windows or Linux systems to run a Windows Task or Cronjob, deploy a container to Heroku or AWS, etc, or you could write Apex code in a scheduled class to run at the desired time. Each solution will have different technical requirements, may require a subscription, etc.
For Scheduling Run All test, refer this : https://salesforce.stackexchange.com/questions/46073/scheduling-run-all-tests
Hope it was helpfiul.
Kindly mark it as the best answer, if it helps so that it can help others as well.
Thanks & Regards,
Priya Ranjan