since ‎10-07-2019
‎01-07-2020
srinivas_chann1
Level 4
Find out all the Heavy query components in AEM6.3 srinivas_chann1 - Adobe Experience Manager
Hi, Is there any mechanisms in AEM6.3 through which we can find out customs query s that is consuming too much time to respond back even though we have good network. The purpose is that we would want to improve page load time Thanks
128
Views
0
Likes
4
Answers and Comments
Re: AEM 6.3 Junit with javascript srinivas_chann1 - Adobe Experience Manager
Hi,Thanks for the input .I am looking for javascript testing .As you mentioned jest will be helpful.I am using AEM6.3 version can i use jest also if there any more examples on jest with aem help.I could not understand from the example assume i am having javascript located at /etc/clients/comoponent/abc/abc.js then how to write test case . Does jest support even css testing?? Thanks
70
Views
0
Likes
0
Comments
Re: AEM 6.3 Junit with javascript srinivas_chann1 - Adobe Experience Manager
Hi,Thanks for the input.I am looking any option where we could write test case for javascript file functions,It would be helpful if the same is supported in upcoming versions of AEM. Any git sample codes will be helpful Thanks again
58
Views
0
Likes
0
Comments
AEM 6.3 Junit with javascript srinivas_chann1 - Adobe Experience Manager
Hi , Wanted to know if there is any possibility to integrate javascript with junit for writing test cases. Thanks
147
Views
0
Likes
5
Answers and Comments
Re: AEM MockitoJUnitRunner using powermockito for testing... srinivas_chann1 - Adobe Experience Manager
The issue is still not solved .I had also add org.powermock powermock-api-mockito 1.7.4 test But the actual issue is Below the code is not resolving in IDEcomponent = PowerMockito.mock(componentClass); Here component is not resolving protected T component;protected final Class componentClass = (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];component = PowerMockito.mock(componentClass);
66
Views
0
Likes
0
Comments
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr... srinivas_chann1 - Adobe Experience Manager
Any inputs from anyone on this
70
Views
0
Likes
0
Answers
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr... srinivas_chann1 - Adobe Experience Manager
I nocticed that when using CI tool it doing the binfding that is present in WCMUsePojo and works when we do currentPage = getCurrentPage();if(null==currentPage ){ currentPage =(Page)this.get("currentPage", Page.class);}But i would not want to add this code in the component as i would then to add this code in each component.Please let me know how this could be solved with doing this for CI tool build. Note:- There is no change required when using IDE intelij
113
Views
0
Likes
0
Answers
MockitoJUnitRunner bind for WCMUsePojo fails for currentPage and resource in CI (continuous-integration tool) srinivas_chann1 - Adobe Experience Manager
Hi,I am using MockitoJUnitRunner for Junit . As per the below code the bind is not happening in the WCMUsePojo component due to which it shows nullpointer expection for both currentPage and resource that is present in activate method of the component ,but the bind works for request and response. Also it works in my intellji but the same does not work when same is run in CI tool what could be the issue,with the same code @Overridepublic void activate() throws Exception {//does not work null point...
187
Views
0
Likes
2
Answers and Comments
Re: AEM MockitoJUnitRunner using powermockito for testing... srinivas_chann1 - Adobe Experience Manager
Any inputs on the issue
130
Views
0
Likes
0
Answers
AEM MockitoJUnitRunner using powermockito for testing components using WCMUsePojo for aemcontext srinivas_chann1 - Adobe Experience Manager
Hi,i am referring the link https://www.exadel.com/news/aem-tip-junit-tests-for-wcmusepojo-objects/ I am working on adding the abstract Below the code is not resolving in IDEcomponent = PowerMockito.mock(componentClass); any inputs as what could be the reason and how to resolve it import org.apache.poi.ss.formula.functions.T;import org.powermock.api.mockito.PowerMockito;import java.lang.reflect.ParameterizedType;import java.util.HashMap;protected T component;protected final Class componentClass =...
266
Views
0
Likes
4
Answers and Comments
Re: AEM MockitoJUnitRunner for servlet how to set resourc... srinivas_chann1 - Adobe Experience Manager
Thanks for inputs.It showing an error in IDE for line MockSlingHttpServletRequest request = new MockSlingHttpServletRequest(resolver); That MockSlingHttpServletRequest (org.osgi.framework.BundleContext) in MockSlingHttpServletRequest cannot be applied to (ResourceResolver)
181
Views
0
Likes
0
Comments
Re: AEM MockitoJUnitRunner how to bind WCMUsePojo to test... srinivas_chann1 - Adobe Experience Manager
Thanks for the inputs . Based on the link it uses PowerMockRunner.class . Below the component = PowerMockito.mock(componentClass); is not working any inputs as what could be the reason import org.apache.poi.ss.formula.functions.T;import org.powermock.api.mockito.PowerMockito;import java.lang.reflect.ParameterizedType;import java.util.HashMap;protected T component;protected final Class componentClass = (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];com...
211
Views
0
Likes
0
Comments
AEM MockitoJUnitRunner how to bind WCMUsePojo to test using AEMContext srinivas_chann1 - Adobe Experience Manager
Hi,Could some one provide inputs how could i bind my component to WCMUsePojo using AEMContext.I am getting below error based on my component and the test casejava.lang.NullPointerExceptionat com.adobe.cq.sightly.WCMUsePojo.get(WCMUsePojo.java:108)at com.adobe.cq.sightly.WCMUsePojo.getCurrentPage(WCMUsePojo.java:142) public class Myclass extends WCMUsePojo { @Overridepublic void activate() throws Exception {....getCurrentPage()getRequest()getResponse()getResource()private ValueMap valmAP=getPrope...
553
Views
0
Likes
3
Answers and Comments
AEM MockitoJUnitRunner for servlet how to set resourceResolverFactory for AEMContext srinivas_chann1 - Adobe Experience Manager
Hi, Could some one provide inputs on the below code in servlet is giving null exception for resourceResolverFactory .how to mock that using aemContext Servelt class public void doGet(final SlingHttpServletRequest request,final SlingHttpServletResponse response){@referenceprivate ResourceResolverFactory resourceResolverFactory;@Overridepublic void doGet(final SlingHttpServletRequest request,final SlingHttpServletResponse response) throws ServletException, IOException {.......Map subService = new ...
548
Views
1
Like
3
Answers and Comments
Re: AEM JMockit for servlet how to set node value and oth... srinivas_chann1 - Adobe Experience Manager
Thanks again for the inputs the issue is the below code in servlet is giving null exception for resourceResolverFactory .how to mock that using aemContext Servelt classpublic void doGet(final SlingHttpServletRequest request,final SlingHttpServletResponse response){.......Map subService = new HashMap<>();subService.put(ResourceResolverFactory.SUBSERVICE, SUB_SERVICE);resourceResolver = resourceResolverFactory.getServiceResourceResolver(subService);session = resourceResolver.adaptTo(Session.class)...
570
Views
0
Likes
0
Comments
Re: AEM JMockit for servlet how to set node value and oth... srinivas_chann1 - Adobe Experience Manager
Thanks again for the inputs the issue is the below code in servlet is giving null exception for resourceResolverFactory .how to mock that using aemContext Map subService = new HashMap<>();subService.put(ResourceResolverFactory.SUBSERVICE, SUB_SERVICE);resourceResolver = resourceResolverFactory.getServiceResourceResolver(subService);session = resourceResolver.adaptTo(Session.class);} I tried by doing below but did not solve private Session session;@Beforepublic void init() throws Exception {servl...
338
Views
0
Likes
0
Answers
Re: AEM JMockit for servlet how to set node value and oth... srinivas_chann1 - Adobe Experience Manager
Thanks for the input.The link was very useful When i execute the test case it throwing null pointer exception for session.How to resolve it finally { // System.out.println("session="+session); if (null != session && session.isLive()) { session.logout(); } if (null != resourceResolver || resourceResolver.isLive()) { resourceResolver.close(); }} I tried by doing below but did not solve private Session session;@Beforepublic void init() throws Exception {servletUnderTest = new servletUnderTest ();re...
660
Views
0
Likes
0
Comments
Re: AEM JMockit for servlet how to set node value and oth... srinivas_chann1 - Adobe Experience Manager
Thanks for the input.The link was very useful When i execute the test case it throwing null pointer exception for session and resolver.How to resolve it finally { // System.out.println("session="+session); if (null != session && session.isLive()) { session.logout(); } if (null != resourceResolver || resourceResolver.isLive()) { resourceResolver.close(); }} I tried by doing below but did not solve private Session session;@Beforepublic void init() throws Exception {servletUnderTest = new servletUn...
312
Views
0
Likes
0
Answers
AEM JMockit for servlet how to set node value and other parameters srinivas_chann1 - Adobe Experience Manager
Hi , i am using jmockit for creating a test caseI am trying to mock a servlet and1>I noticing that even though i have mocked Node class it is passing null value so how to set up node class with a particular path In the code below i am using@Mockedprivate Node ne; 2>In servlet I have to ad a test case for finding value of a particular tag values in a set ,how to do that as servlet does not return vertical tag at the end of servlet it just return response and the method i am looking is a private m...
1051
Views
0
Likes
6
Answers and Comments
Re: AEM 6.3 (WITH SP2) touch ui pages don't come up after... srinivas_chann1 - Adobe Experience Manager
Any inputs on this from anyone
4558
Views
0
Likes
0
Replies
AEM 6.3 (WITH SP2) touch ui pages don't come up after installing aem-6.3.3-cfp-8.0.zip srinivas_chann1 - Adobe Experience Manager
Hi , Could some one provide inputs as what could have gone wrong. We had aem-service-pkg-6.3.3.zip and aem-6.3.3-cfp-5.0.zip pre installed on the aem instance and touch ui pages were working After installing aem-6.3.3-cfp-8.0.zip touch ui pages don't render i.e it just shows plain empty page (it does not have even preview or edit buttons) When we hit any touch ui page like host:4502/editor.html/content/page.html But classic UI pages come up with no issues Thanks
5072
Views
1
Like
3
Replies
Re: Coral touch ui How to increase style width option in... srinivas_chann1 - Adobe Experience Manager
Any inputs from anyone 
1091
Views
0
Likes
0
Answers
Re: Coral touch ui How to increase style width option in... srinivas_chann1 - Adobe Experience Manager
Any inputs on this from anyone
1097
Views
0
Likes
0
Answers
Re: How to create a index for a query in AEM6.3 with sp2 srinivas_chann1 - Adobe Experience Manager
Hi sunjot16, Please provide inputs.
3176
Views
0
Likes
0
Comments
AEM6.3 (SP2) Current live copies don't show up on all page under page properties even though present srinivas_chann1 - Adobe Experience Manager
Hi, I am using AEM6.3 with sp2 package1>I noticed that for certain pages under page properties -> blueprint ->Current Live CopiesIt shows live copies for certain page pages it does show up even though present.What could be the reason 2>Now for the page which does not show up current live copies Now if i set up standard roll out then it start's showing the current live copies 1>Could you please provide inputs as why this is happening 2>I would to find all the pages which are having this issue how...
1584
Views
0
Likes
1
Answers and Comments
AEM 6.3 (sp2) style option disabled when row is selected for table in RTE on touch ui srinivas_chann1 - Adobe Experience Manager
Hi , I am using AEM6.3 (SP2) with coral touch ui In touch ui dialog in RTE table want to add a style to row .When i select a row on table the style option is getting disabled .Due to this styles cannot be applied to row. Is there a way we can enable the style when selecting a row on touch ui for tables. Thanks
595
Views
0
Likes
1
Answers and Comments
Coral touch ui How to increase style width option in AEM6.3 (SP2) srinivas_chann1 - Adobe Experience Manager
Hi , I am using AEM 6.3 with coral touch UI .1>Could you please help me out as how i could increase the style width as it showing with ellipse ... option, due to which we cannot see the full style details Thanks
1680
Views
0
Likes
2
Answers and Comments
Re: AEM touch ui (AEM6.3 SP2) new style option for cells... srinivas_chann1 - Adobe Experience Manager
Hi , Any inputs from anyone on this
1119
Views
0
Likes
0
Answers
AEM touch ui (AEM6.3 SP2) new style option for cells under table in RTE srinivas_chann1 - Adobe Experience Manager
Hi , I am using coral touch UI and would want to add new option for different styles for each cell under table. Please let me know how this can achieved. Thanks
1133
Views
0
Likes
1
Answers and Comments
Re: In Authoring environment RTE in Touch ui show empty w... srinivas_chann1 - Adobe Experience Manager
Hi, Thanks for the input. On the Link https://helpx.adobe.com/in/experience-manager/kb/how-to-configure-linkchecker-tomark-alllinks-asvalid.htmlI had 2 queries.Could you please provide inputs as how this work for RTE:- 1>In which file should i add the below ,so that RTE will bypass the link validationOptionally use x-cq-linkchecker="skip" in the . Link Checker will not even check for validity 2>The Link Checker should not be enabled on publish instancesHow to achieve this that it works in author but is not enabled in publish Thanks
1405
Views
0
Likes
0
Answers