since ‎18-07-2019
‎10-12-2019
seabreeze631
Level 1
Re: How to retrieve SlingHttpServletRequest from ResourceResolver
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
Using the requestResponseFactory in conjunction with the request processor is definitely what I would like to do to. The issue is from that approach is that I seem unable to adapt the request to my model afterwards.

Views

62

Likes

0

Replies

0
Re: How to retrieve SlingHttpServletRequest from ResourceResolver
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
Hi Jorg,Ok then, if that is the case. What would be the best way to stimulate a request for a server side integration test and receive a SlingHttpServletRequest from which I can retrieve the resource.

Views

62

Likes

0

Replies

0
How to retrieve SlingHttpServletRequest from ResourceResolver
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
I would like to retrieve the request used to resolve the resources I retrieve from the ResourceResolver.I am performing integration testing using Teleporter Rule And can resolve the resource but can't find its corresponding request.@Rule public final TeleporterRule teleporter = TeleporterRule.forClass(getClass(), "Launchpad"); @Test public void testPage() throws LoginException { ResourceResolverFactory resourceResolverFactory = teleporter.getService(ResourceResolverFactory.class); ResourceResolv...

Views

206

Likes

0

Replies

4
Re: initializationError while running integration tests
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
The issue I encountered can be resolved by:Making sure you import all packages required to run you tests (by default, every packaged needed is imported Apache Felix - Apache Felix Maven Bundle Plugin (BND) ). Also update your org.apache.sling.junit.core bundle to make sure TeleporterRule is there and exported correctly.

Views

212

Likes

0

Replies

0
initializationError while running integration tests
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
Hi everyone,I would like to create integration tests using Teleporter for my AEM project but run into and error while trying to execute a simple test.I run the command mvn clean verify -PintegrationTests -Dtest.server.url=http://localhost:4502and receive this error:Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.346 s <<< FAILURE! - in com.adobe.wknd.it.launcher.SlingServerSideTest[ERROR] initializationError(com.adobe.wknd.it.tests.BasicTeleporterTest)(com.adobe.wknd.it.launche...

Views

338

Likes

0

Replies

1
Re: Exception when installing apps package.
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
I have no idea. I wiped my header directory once again and it resolved my issue, not sure why it didn't work last time.

Views

434

Likes

0

Replies

0
Running Integration Tests
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
Hi everyone,I am attempting to run the integration test that is provided in the AEM archetype (version 19). I have had no success running the test as the surefire-plugin does not find any tests.The command I run at the root of the project: mvn clean verify -PintegrationTestsresult:[INFO] --- maven-failsafe-plugin:2.22.1:integration-test (integration-test) @ com.adobe.aem.guides2.wknd2.it.launcher ---[INFO][INFO] -------------------------------------------------------[INFO] T E S T S[INFO] ------...

Views

101

Likes

0

Replies

0
Exception when installing apps package.
Avatar

seabreeze631

seabreeze631
- Adobe Experience Manager
Hi everyone.I am currently doing the WKND Project tutorial and I am encountering an issue I cannot diagnose.When I run the mvn -PautoInstallPackage clean install command in the ui.apps folder or at the project root level I encounter this error:[INFO] Installing aem-guides-wknd.ui.apps (/Volumes/Projects/aem-projects/aem-guides-wknd/aem-guides-wknd/ui.apps/target/aem-guides-wknd.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp[ERROR] Request failed: org.apache.jackrabb...

Views

741

Likes

0

Replies

2