You need to sign in to do that
Don't have an account?
KrishSingh
Test Class
Hi All,
I am newbie, so can any one tell me what is a test class and how to write it.
Krish
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi All,
I am newbie, so can any one tell me what is a test class and how to write it.
Krish
All Answers
Another good link :
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_testing.htm
Thanks Ankit_Arora, this helped me a lot.
Best
Krish
I know we need 75% min of code coverage, can you tell me what does this means?
Best
Krish
Code coverage comes in role when you are creating a package, means when you want to deploy your code/functionality/product to any client then you need to create a package.
To create a package you need minimum of 75% code coverage of all the classes which you are including in your package.
From where I should create a package....?
I have created a visualforce page , class and its test class. I want to send it to other org.
Best
Krish
Please let me know on which org you working, is it production/enterprise/developer edition?
From where I can check this??? Is it mentioned in setup area???
Just mouse over your browser tab and it will display your edition.
It is saying -> User: Krish Singh ~ salesforce.com - Developer Edition.
Thanks for the info. Now click on setup > App Setup > Create > Package > Create a new package > Add your components in it and click upload.
Not it will create a URL. Copy that URL and paste it in other browser, now fill credentials of your other org and install the package. Now all classes and pages will be available to use if your package is unmanaged.
Make sure your code coverage is above 75% and there is no org dependent data.
What do you mean by managed and unmanaged package? I have only option to create unmanaged package and Managed checkbox is disabled.
Please go to this :
https://na1.salesforce.com/help/doc/en/salesforce_packaging_guide.pdf
Ok I will read this, and really thanks a lot for helping me out.....Your patience is really appreciable. If I have some other problem regarding this, I will throw it down here :)
Hope you won't mind.
Thanks Krish, and sure feel free to ask anything would love to help you :)
Hi Ankit_Arora,
I have a apex class which send email to users. I am facing error Too many Email Invocations: 11, can you please tell me something regarding this.
thanks
krish
This question is bit different from the one for which you have started the thread, so can you please create another post for it?