Salesforce Developer Interview Questions : principles of test classes

  Рет қаралды 4,061

Salesforce & Interviews

Salesforce & Interviews

Күн бұрын

In Salesforce, a test class is a piece of code that verifies that a particular piece of code is working correctly. Test classes are an important part of the Salesforce development process because they allow developers to ensure that their code is working as intended and that it will not cause any problems in the production environment.
There are a few principles that should be followed when writing test classes in Salesforce:
Test classes should be comprehensive: Test classes should cover as many scenarios as possible to ensure that the code is working correctly under different conditions.
Test classes should be independent: Test classes should not rely on any external data or other code that could affect their results.
Test classes should be repeatable: Test classes should produce the same results each time they are run, regardless of when or where they are run.
Test classes should be automated: Test classes should be able to run automatically without any manual intervention.
Test classes should be well-documented: Test classes should be documented clearly and concisely so that other developers can understand what they are doing and how they are being used.
By following these principles, developers can create test classes that are reliable, efficient, and easy to maintain, which helps to ensure that their code is working correctly and is ready for deployment to the production environment.

Пікірлер: 15
@extremeweirdness1528
@extremeweirdness1528 Жыл бұрын
One more important part is writing unit tests not integration tests. I see a lot of big orgs write dmls in their test classes and then it takes 1 whole day for deployment validation in production.
@Mtripathi347
@Mtripathi347 Жыл бұрын
good point.
@aadeshchavan7729
@aadeshchavan7729 Жыл бұрын
hello sir. your videos are very helpful can you make complete video on all governor limit inc asynchronous
@Mtripathi347
@Mtripathi347 Жыл бұрын
Sure byddy
@SasikalaK-jw6mc
@SasikalaK-jw6mc Жыл бұрын
Sir, I have checked your Integration shorts...Much understandable and awesome...Please make detailed videos on integration...Meanwhile please provide some source where we can learn integration as I am a beginner...Waiting for integration videos.
@Mtripathi347
@Mtripathi347 Жыл бұрын
www.sfdckid.com/p/salesforce-integration-solution.html
@crazyhackerarjun5533
@crazyhackerarjun5533 Жыл бұрын
Hello sir...i follow ur videos for my preparation....I am going to complete my Salesforce course this week...if I apply resume in next week...is there any chance to get entry in companies....or how much it will take time
@Mtripathi347
@Mtripathi347 Жыл бұрын
All the best
@raghuvarma700
@raghuvarma700 Жыл бұрын
1st view Brother
@rutujathakare2684
@rutujathakare2684 Жыл бұрын
Nice sir... can u provide some pdf of interview questions...
@Mtripathi347
@Mtripathi347 Жыл бұрын
Hello, I currently do not have them on PDF, I am planning to put them on a blog and will share the link with you.
@poojabharti9012
@poojabharti9012 Жыл бұрын
Could you please suggest any article or platform to go through the mentioned test class functionality.
@Mtripathi347
@Mtripathi347 Жыл бұрын
please go through sfdc99.com , they have blogs for this.
@prashantkatore9102
@prashantkatore9102 Жыл бұрын
Sir...I have 5 years of Gap after mechanical engineering due to preparation of government exam...can I join any classes for salesforce developer.. is it good decision...gap affects on interviews...plz reply
@Mtripathi347
@Mtripathi347 Жыл бұрын
gaps do make it difficult, but no one can stop u if u r determined to do something.
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
How to whistle ?? 😱😱
00:31
Tibo InShape
Рет қаралды 14 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 4,1 МЛН
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
07 Q&A | Apex Test Class Interview Q&A | Salesforce Developer Interview Preparation
15:31
Google system design interview: Design Spotify (with ex-Google EM)
42:13
IGotAnOffer: Engineering
Рет қаралды 1,1 МЛН