Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Need support]: Unable to execute tests after including healenium web dependency #275

Open
anjanamoorthy opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@anjanamoorthy
Copy link

Describe the problem

Followed the below instructions to intergrate with healenium web: https://github.com/healenium/healenium-web?tab=readme-ov-file#how-to-start.
But my tests are not executing and there is no error.
The tests were executing before the integration and after I remove the healenium dependency too.
TestNG version: 7.10.2

Healenium Web version

3.5.3

Healenium Backend version

Latest

Selenium version

4.22.0

Platform

Java

Properties file

recovery-tries = 1
score-cap = 0.5
heal-enabled = true
hlm.server.url = http://localhost:7878
hlm.imitator.url = http://localhost:8000

Logs appeared during using Healenium

[WARNING] The artifact junit:junit-dep:jar:4.11 has been relocated to junit:junit:jar:4.11: The artifact junit:junit does not contain Hamcrest anymore but declares a dependency to Hamcrest. Thus, junit:junit-dep has become obsolete.
[INFO] 
[INFO] �[1m--- �[0;32mresources:3.3.0:resources�[m �[1m(default-resources)�[m @ �[36mias-help-demo�[0;1m ---�[m
[INFO] Copying 7 resources
[INFO] 
[INFO] �[1m--- �[0;32mcompiler:3.10.1:compile�[m �[1m(default-compile)�[m @ �[36mias-help-demo�[0;1m ---�[m
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] �[1m--- �[0;32mresources:3.3.0:testResources�[m �[1m(default-testResources)�[m @ �[36mias-help-demo�[0;1m ---�[m
[INFO] Copying 1 resource
[INFO] 
[INFO] �[1m--- �[0;32mcompiler:3.10.1:testCompile�[m �[1m(default-testCompile)�[m @ �[36mias-help-demo�[0;1m ---�[m
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] �[1m--- �[0;32msurefire:3.1.2:test�[m �[1m(default-test)�[m @ �[36mias-help-demo�[0;1m ---�[m
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] �[1m------------------------------------------------------------------------�[m
[INFO] �[1;32mBUILD SUCCESS�[m
[INFO] �[1m------------------------------------------------------------------------

Additional context

No response

@anjanamoorthy anjanamoorthy added the help wanted Extra attention is needed label Jul 17, 2024
@FlaviusZichil
Copy link

I had this issue too.

After adding the healenium-web dependency, the tests started to use JUnitPlatformProvider (in your code: Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider). This provider did not recognize any of my tests.

I needed the tests to be run using testng provider (Using auto detected provider org.apache.maven.surefire.testng.TestNGProvider). To do so, I excluded 2 junit dependencies from healenium-web:

       <dependency>
            <groupId>com.epam.healenium</groupId>
            <artifactId>healenium-web</artifactId>
            <version>3.5.3</version>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.jupiter</groupId>
                    <artifactId>junit-jupiter-engine</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.junit.jupiter</groupId>
                    <artifactId>junit-jupiter-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants