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

why did we are mention @symbol in test class and also why did we have mentioned istest(seealldata=true ) in test class ?Could you pls expalin me ?what is the reason ?
HI ALL,
why did we are mention @symbol in test class and also why did we have mentioned istest(seealldata=true ) in test class ?Could you pls expalin me ?what is the reason ?
Thanks,
Viswa.
why did we are mention @symbol in test class and also why did we have mentioned istest(seealldata=true ) in test class ?Could you pls expalin me ?what is the reason ?
Thanks,
Viswa.
@istest is used to make the salesforce apex code compiler know that your class is a test class . seealldata=true lets the test class access org records.
Just for addition - @ symbol means annotation, that's cames from Java world. You can learn about them here https://docs.oracle.com/javase/tutorial/java/annotations/

Thank you so very much DENIS