Reply
Regular Contributor
prashant1985
Posts: 47
0
Accepted Solution

Code Coverage Issue

Hi,

 

Code coverage issue.

 

when i run all test  from setup-->develop-->apex classes  its show 76% code coverage.

but when i go to make new package.

I add all apex class and  pages, tabs,buttons in package.

and when i go for upload this package its show error you can not upload this package code coverage is 12%

 

so please suggest why this happen its show 76% code coverage when i run all test from apex class.

 

so give solution.

 

Thanks

Prashant

 

Trusted Contributor
BSridhar
Posts: 279
0

Re: Code Coverage Issue

Hi Prashant,

 

Did you added all the test classes to the package?

 

Regards,

Sridhar Bonagiri

Regular Contributor
prashant1985
Posts: 47
0

Re: Code Coverage Issue

Ya I have added all test cases class in package.

 

 

Regular Contributor
prashant1985
Posts: 47
0

Re: Code Coverage Issue

Thanks for solution. i have added all testcases in package.

Regular Contributor
prashant1985
Posts: 47
0

Re: Code Coverage Issue

I have make the package. i am getting Installtion URL now.

but i am not getting how to deploy in sandbox.

 

so please suggest me.

 

Thanks

Prashant

Trusted Contributor
BSridhar
Posts: 279
0

Re: Code Coverage Issue

Hi Prashant,

 

To install in Sandbox you need to the change the url in this way.

 

Normal Installation URL: http://login.salesforce.com/.......

 

chnage this URL to work in sandbox like this.

 

http://test.salesforce.com/.....

 

 

Regards,

Sridhar Bonagiri

Regular Contributor
prashant1985
Posts: 47
0

Re: Code Coverage Issue

Thanks for reply.

 

i have do that i change http://login.salesforce.com/....... to http://test.salesforce.com/.......

 

installtion process started but after some times its give me error.

 

"Your requested installtion is failed please try again "

Trusted Contributor
BSridhar
Posts: 279
0

Re: Code Coverage Issue

Hi,

 

Is it displaying any error messages other than this?

 

Regards,

Sridhar Bonagiri

Regular Contributor
prashant1985
Posts: 47
0

Re: Code Coverage Issue

 

 

Below is error msg.

 

"Your requested installtion is failed. please try again.".

none of the data or setup information in your salesforce.com organisation should have been affected by this error.

 

If this error persists. contact  salesforce.com support through your normal channels and referance number 5464300003-516(811533829).

Trusted Contributor
BSridhar
Posts: 279
0

Re: Code Coverage Issue

Hi,

 

I think you need to contact SFDC support to resolve this issue.

 

Regards,

Sridhar Bonagiri