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
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.3 Junit with javascript

Avatar

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

21 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 4
srinivas_chann1
Level 4

Likes

21 likes

Total Posts

222 posts

Correct Reply

6 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
srinivas_chann1
Level 4

29-06-2020

Hi ,

 

Wanted to know if there is any possibility to integrate javascript with junit  for writing test cases.

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

29-06-2020

Hi @srinivas_chann1, I think you are asking about JavaScript unit tests for your client library. If you want to write JavaScript Unit tests for your client libraries, you can follow the steps provided in this blog article, How to write Javascript Unit Tests for AEM Client Libraries with Jest

Provided in the steps from the blog, you can review an example of JavaScript unit tests being invoked as a part of the Maven build command; using the Maven front-end Plugin. The Jest test library is being utilised.

However, if you want to write Java Unit Tests using JavaScript, please explain your use case...

Answers (1)

Answers (1)

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

29-06-2020

@srinivas_chann1 What is your exact use case ? I don't understand your question clearly ? Do you want to write unit test for the FE components ? In 6.3 there is support for Hobbes testing framework , which was later deprecated in the other versions. You can find more details https://helpx.adobe.com/in/experience-manager/6-3/sites/developing/using/hobbes.html

http://keysandstrokes.info/aem-automating-front-end-testing-using-hobbes/

 

Thanks

Veena