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

seabreeze631
Community profile seabreeze631 Level 2
Job title here
Location here
6 BADGES
Level 2

Level 2

Learn more
Joined the community 18-07-2019 4:43:04 PM
Offline
Top badges earned by seabreeze631
Customize the badges you want to showcase on your profile
Re: How to retrieve SlingHttpServletRequest from ResourceResolver
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

156

Likes

0

Replies

0
Re: How to retrieve SlingHttpServletRequest from ResourceResolver
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

154

Likes

0

Replies

0
How to retrieve SlingHttpServletRequest from ResourceResolver
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

308

Likes

0

Replies

4
Re: initializationError while running integration tests
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

403

Likes

0

Replies

0
initializationError while running integration tests
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

529

Likes

0

Replies

1
Re: Exception when installing apps package.
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

575

Likes

0

Replies

0
Running Integration Tests
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

165

Likes

0

Replies

0
Exception when installing apps package.
Avatar
Give Back 3
Level 2
seabreeze631
Level 2

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Ignite 3
Give Back
Ignite 1
Validate 1
View profile
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

888

Likes

0

Replies

2