• kullayappa Adapala
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi All,

I am facing the Issue Like: Whenever we hide the Opportunity fields in pagelayout getting error

please help me on this Issue.
User-added image


Thanks,
Kullayappa.
 

How to Cover the test class for Loop?
 

User-added image
@istest

Private class dummy_email_testclass{
     static testMethod void dummy_email_testclassa(){
         Contact con=new Contact();
         
         COn.Lastname='test';
         con.Email='test@gmail.com';
         
         insert con;
         update con;
         
     }
}



How to Cover the test class for Loop?
 

User-added image
@istest

Private class dummy_email_testclass{
     static testMethod void dummy_email_testclassa(){
         Contact con=new Contact();
         
         COn.Lastname='test';
         con.Email='test@gmail.com';
         
         insert con;
         update con;
         
     }
}