Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Functional testing set date property.


Level 2

Hi All,


How to set date property to a component in functional testing .

I have extending the AbstractComponent and i able to set String properties but not date. appriciate your help.


testcomponent comp = new Banner(componentclient, xfPath,"/master/jcr:content/root/testcomponent", "testcomponent");



Not able to set 

banner.setProeprty("date", date);



Thanks in advance.


3 Replies


Community Advisor

Please try the below


Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT"));





Level 2


It is not working.

In AbstractComponent class there is no method like -->  setProperty(string, calendar). 

I have created new one but no luck.

public void setDateProperty(String name, Calendar calendar) {



API :  com.adobe.cq.testing.client.ComponentClient;

Thanks in advance.