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
Nihar SharmaNihar Sharma 

what is system.assert?

Best Answer chosen by Nihar Sharma
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I hope that will help u
https://techman97.wordpress.com/2013/10/07/why-you-should-use-system-assert/
http://amitsalesforce.blogspot.com/2015/06/salesforce-testing-best-practice.html

1) To Test for your desired result (POSITIVE)
2) To Test for common errors (NEGATIVE)
3) To Test as the user(s) and profile(s) that will use this functionality

Please let us know if this will help u

All Answers

Hengky IlawanHengky Ilawan
Have you checked the documentation?

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_system.htm#apex_System_System_assert

 
Nihar SharmaNihar Sharma
Hey Khaiwong

Thank you for this.:)
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I hope that will help u
https://techman97.wordpress.com/2013/10/07/why-you-should-use-system-assert/
http://amitsalesforce.blogspot.com/2015/06/salesforce-testing-best-practice.html

1) To Test for your desired result (POSITIVE)
2) To Test for common errors (NEGATIVE)
3) To Test as the user(s) and profile(s) that will use this functionality

Please let us know if this will help u
This was selected as the best answer