• ramm12
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 4
    Replies
Hi to all,

In my production i have 90% code coverage and in Full copy only having 80%. Both instance having same classes and installed packages.

Total class in both prod and full copy is 25
Total installed packages in both prod and full copy is 10.


How to caluclate the overall code coverage?  What is the reason for the huge code coverage difference b/w fullsb and prod.
  • September 25, 2014
  • Like
  • 0
hi experts,

I have a string like below,

String s = '(1 OR 2) or 3';

so the above string contains numbers i.e 1,2,3. If number contains means i need to get string like below using apex code,

String s = '(1# OR 2#) or 3#';

Any help much appreciated...!

Thanks in advance...
Hi ,

I have the below two list

Issue 1:

Public List<Opportunity> test{get;set;}
Public List<AggregateResult> test1{get;set;}

if(test.size()>0 && test1.size()==0)
{
//some code
}

Issue 2:


ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.INFO,'this is not valid.'));

How to write and cover the above two issues in apex test class??



  • February 26, 2014
  • Like
  • 0
hi to all,

I have a retrieved week number from soql using aggregate result method.

For example January 10 menas it show WEEK 2.

I need to get start date and end date of the particular week 2


I dont want to use such as today function or date fields in formula or apex class.. I only need to get start date and end date using only the week number ?

Any help friends.......!
  • February 13, 2014
  • Like
  • 1
hi to all,

I have a retrieved week number from soql using aggregate result method.

For example January 10 menas it show WEEK 2.

I need to get start date and end date of the particular week 2


I dont want to use such as today function or date fields in formula or apex class.. I only need to get start date and end date using only the week number ?

Any help friends.......!
  • February 13, 2014
  • Like
  • 1
hi experts,

I have a string like below,

String s = '(1 OR 2) or 3';

so the above string contains numbers i.e 1,2,3. If number contains means i need to get string like below using apex code,

String s = '(1# OR 2#) or 3#';

Any help much appreciated...!

Thanks in advance...
Hi ,

I have the below two list

Issue 1:

Public List<Opportunity> test{get;set;}
Public List<AggregateResult> test1{get;set;}

if(test.size()>0 && test1.size()==0)
{
//some code
}

Issue 2:


ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.INFO,'this is not valid.'));

How to write and cover the above two issues in apex test class??



  • February 26, 2014
  • Like
  • 0