what is aem component testing? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sady_Rifat

Hello @chiragta1 ,

Component testing is a type of software testing in which individual components of a system are examined using independent test cases to evaluate their behavior when combined with other modules. This form of testing is carried out throughout the development lifecycle and can result in benefits such as faster time-to-market and increased product stability. Static analysis, runtime checks, integration tests, and performance evaluations are examples of techniques.

More Details: 

https://brainstation-23.com/software-test-planning-strategy-for-aem-component-testing/ 

https://brainstation-23.com/testing-in-aem-a-guide-to-adobe-experience-manager-quality-assurance/ 

 

After going through these you will get an overall idea.

2 replies

Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
April 26, 2023

Hello @chiragta1 ,

Component testing is a type of software testing in which individual components of a system are examined using independent test cases to evaluate their behavior when combined with other modules. This form of testing is carried out throughout the development lifecycle and can result in benefits such as faster time-to-market and increased product stability. Static analysis, runtime checks, integration tests, and performance evaluations are examples of techniques.

More Details: 

https://brainstation-23.com/software-test-planning-strategy-for-aem-component-testing/ 

https://brainstation-23.com/testing-in-aem-a-guide-to-adobe-experience-manager-quality-assurance/ 

 

After going through these you will get an overall idea.

Anmol_Bhardwaj
Community Advisor
Community Advisor
April 26, 2023

Hey @chiragta1 ,
AEM component testing is a process of testing individual AEM components to ensure they are functioning correctly and as expected. 

This article pretty much covers the whole process of it:
https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/hobbes.html?lang=en#:~:text=AEM%20provides%20a%20framework%20for,testing%20library%20written%20in%20Javascript

ChiragTa1Author
Level 2
June 5, 2023

Hey @anmol_bhardwaj ,

Thanks that really helped.

Well i'm new to testing in aem so could please elobarate more that what particularly the difference between aem component testing and UI testing?

And can you guide me from where i can learn this hobbes js so that i can implement it.

Thanks

 

Anmol_Bhardwaj
Community Advisor
Community Advisor
June 5, 2023

Certainly.

In very simple terms, AEM Component testing (also called Unit Testing )primarily focuses on testing the individual components of an AEM application. This is done through Mockito/Junit/AEMComponentTesting.

 

Whereas, UI testing deals with the functional part of the component and the page, where we test whether the component is behaving/rendering as it is supposed to do, based on different authored values or style systems.