Questions related to Custom Functional Testing | Community
Skip to main content
July 15, 2022
Solved

Questions related to Custom Functional Testing

  • July 15, 2022
  • 2 replies
  • 1114 views

A few questions while building an AEM custom functional test:  

To build a test for a custom component, such as the one below, what kind of arguments are needed. What should be the format of the argument? 

 

 

Are there any demos available to use as a reference?  

AEM Functional Testing Reference: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-cloud-manager/test-results/functional-testing.html?lang=en

 

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 Jagadeesh_Prakash

@kabrawalaak 

 

I did not get the exact ask assuming that you are talking about running the ui.test and it.test reference can you refer to below project as an example and try 

 

https://github.com/adobe/aem-project-archetype/tree/develop/src/main/archetype/it.tests/src/main/java/it/tests

 

https://github.com/adobe/aem-project-archetype/tree/develop/src/main/archetype/ui.tests

 

Unit testing custom component

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/unit-testing.html?lang=en

 

 

Hope this is useful

 

2 replies

Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
July 16, 2022
Manu_Mathew_
Community Advisor
Community Advisor
July 16, 2022
Level 2
February 22, 2023

Hi @kabrawalaak @manu_mathew_ @jagadeesh_prakash ,

 

How to set date property to component in it.test functional testing.

TestComponent com = new TestComponent(componentclient, xfPath,"/master/jcr:content/root/componenent", "comp");

com.setProperty("html", "test");

we have option to set string and string[] and int values but not date property. i am extending the 

AbstractComponent. 

import com.adobe.cq.testing.client.ComponentClient;

import com.adobe.cq.testing.client.components.AbstractComponent;

 

Could you please help here. 

 

Thanks in advance.