Writing Test Classes in Salesforce

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024

Комментарии • 58

  • @apexhours
    @apexhours  2 года назад

    Test class best practices in Salesforce www.apexhours.com/apex-test-class-best-practices/

  • @akshitnagar9981
    @akshitnagar9981 Год назад +2

    This is best place to learn salesforce in detail very well explained. No need to waste time anywhere else

  • @shelleywardwell3384
    @shelleywardwell3384 3 года назад +5

    Thank you so much for this video. Just getting started with Apex and Test Classes and this helped to clarify some things.

    • @apexhours
      @apexhours  3 года назад

      Great to hear! keep watching

  • @guptagopal
    @guptagopal 4 года назад +5

    Amazing videos, Easy to understand and a way to explain is awesome

    • @apexhours
      @apexhours  4 года назад +2

      Glad you like them!

  • @shivadumnawar467
    @shivadumnawar467 Год назад +2

    Awesome content

  • @tejapeesapati4311
    @tejapeesapati4311 3 года назад +5

    This video was really confusing. You were so quick with explaining and removing/changing text in developer console that I couldn't understand what was being changed. Beginners would really find it hard. You could explain the points in PPT little better, you went on with your explanation irrespective of what's written in the ppt. Could be a lot better if it was simpler cause with so much written the class with various methods and DML, it was looking complicated. Not worth the time.

    • @apexhours
      @apexhours  3 года назад

      Thank you so much for your feedback. We will take care in future. It was live coding session so hard to put code in PPT. Check this session on test class. I hope this will help you ruclips.net/video/Bam41ncmr2o/видео.html
      Thank you so much for watching. I hope you enjoyed the old sessions and will join other session as well. FREE free to ask any technical question here. We would love to answer. Wish you all the best for your learning.

  • @rubenverster250
    @rubenverster250 2 года назад

    I have completed Test Classes in Salesforce :D

  • @BalajiBalaji-jv1gt
    @BalajiBalaji-jv1gt Год назад

    Hi amit
    I have a doubt when should run test class as synchronusly and asynchronously and what is the different.

  • @u2lover10
    @u2lover10 4 года назад +2

    Excellent Video! Thanks!

  • @narendersinghraman4529
    @narendersinghraman4529 4 года назад +1

    WOW , very good work. thanks a lot

  • @snekas4035
    @snekas4035 3 года назад

    Why there's no public or private mentioned before static void setup()?

  • @kiranvrao9714
    @kiranvrao9714 7 месяцев назад

    Thank you

  • @shivanidhanak5614
    @shivanidhanak5614 Год назад

    can you please explain how can we right test for map. Thank you.

  • @lokmancinar
    @lokmancinar Год назад +1

    is there a way to get whole code blocks retrievable which are used in these videos, so we can also easy play with them to practice as well.
    Thanks in advance for everything.

  • @kapavenkatasaiprakashreddy8528
    @kapavenkatasaiprakashreddy8528 2 года назад

    Can send code for test class when a new account is created then create a contact related to that account

  • @preetibharti2803
    @preetibharti2803 4 года назад +1

    Hii .. Sir ,
    You have been shown us contactTrigger as exp. there u have implemented for quickAction. Is it lightning Logic something ?

    • @apexhours
      @apexhours  3 года назад

      If you are talking about contactTrigger then its trigger code not lightning component

  • @joeyvillaceran6204
    @joeyvillaceran6204 4 года назад +4

    This is so helpful

    • @apexhours
      @apexhours  4 года назад

      Glad it was helpful!

  • @adarsh.photography1043
    @adarsh.photography1043 2 года назад +1

    Pretty Basic!!Do you have link to more advanced content

    • @apexhours
      @apexhours  2 года назад

      What you are looking for in Advance content

    • @adarsh.photography1043
      @adarsh.photography1043 2 года назад

      @@apexhours TESTing API callouts (REST).. please share link if you have did one.. Thank you..

  • @gauravbhardwaj7595
    @gauravbhardwaj7595 3 года назад +1

    Please send me the apex code which is used by the test class in this tutorial

    • @apexhours
      @apexhours  3 года назад

      Code is available on Apex Hours website.

    • @rubenverster250
      @rubenverster250 2 года назад

      ```
      @isTest
      private class CommonTestSetup
      {
      @testSetup
      static void setup()
      {
      Account acct = new Account();
      acct.Name = 'Salesforce.com';
      acct.Industry = 'Technology';
      insert acct;
      Contact cont = new Contact();
      cont.FirstName = 'Amit';
      cont.LastName = 'Chaudhary';
      cont.AccountId = acct.Id;
      insert cont;
      }
      @isTest
      static void testMethod1()
      {
      Account acct = [SELECT Id FROM Account WHERE Name='Salesforce.com' LIMIT 1];
      acct.Phone = '555-1212';
      update acct;
      }
      @isTest
      static void testMethod2()
      {
      Account acct = [SELECT Phone FROM Account WHERE Name='Salesforce.com' LIMIT 1];
      System.assertEquals(null, acct.Phone);
      }
      }
      ```

  • @deepaktripathi8299
    @deepaktripathi8299 3 года назад +1

    instead to name can we use id

    • @apexhours
      @apexhours  3 года назад

      Can you please explain your question please

  • @deependraverma7316
    @deependraverma7316 2 года назад +1

    You told about the code coverage
    So if it is covering all the line then how can we resolve it. 🙂

  • @7vj7ik
    @7vj7ik 4 года назад +1

    Do you provide training in Salesforce Developer?

    • @apexhours
      @apexhours  3 года назад

      Its available on ApexHours RUclips channel

  • @vaishnavi36
    @vaishnavi36 4 года назад +1

    AWESOME

  • @yuktamahajan8958
    @yuktamahajan8958 3 года назад +1

    Sir is testing in salesforce is easier than web development as I wanted to go for the easiest one ..

    • @apexhours
      @apexhours  3 года назад +1

      All the best

    • @yuktamahajan8958
      @yuktamahajan8958 3 года назад +1

      @@apexhours sir but I m asking that is testing in salesforce easier than front e.nd

  • @arshadtaj1889
    @arshadtaj1889 3 года назад +1

    can i have your codes to understand better

    • @apexhours
      @apexhours  3 года назад

      We will plan soon to post the code.

  • @soumyaprakashsahoo8823
    @soumyaprakashsahoo8823 4 года назад +1

    Previous videos were awesome, but this sir could not explain properly Test class

    • @apexhours
      @apexhours  4 года назад

      Let us know your question. We would love to help you

  • @harishpal1594
    @harishpal1594 3 года назад

    Why calculate class run? When we execute DemoTestClass

  • @rishabhverma3158
    @rishabhverma3158 2 года назад +1

    please suggest me better example video of test classes. This video is not upto the mark

  • @Mbthakur569
    @Mbthakur569 4 года назад +2

    Dir pls speak in hindi.

    • @apexhours
      @apexhours  4 года назад +6

      I wish we can do that. But this the recording of global gathering (Live session) where we can use English only.

    • @guptagopal
      @guptagopal 4 года назад

      Brother, you also speak that line in English, And if you want to be a developer than you must be able to understand English.

    • @armybratfromfamilyservingn2496
      @armybratfromfamilyservingn2496 4 года назад

      Hi MB, your purpose may get be resolved by here ruclips.net/channel/UCtmcyCNzb4g_RfhM85iS2Hw
      They are making special videos for Hindi lovers.

  • @pavannaik9065
    @pavannaik9065 4 года назад

    Sorry to say sir this video is very much awful to understand and explanation is not good

    • @apexhours
      @apexhours  4 года назад +1

      Thank you so much for your feedback. Can you please let us know what you did not liked. We will try to improve the same in future.

    • @apexhours
      @apexhours  4 года назад

      Check this recording on Test Class. I hope you will enjoy ruclips.net/video/Bam41ncmr2o/видео.html