healenium / healenium-web

Self-healing library for Selenium Web-based tests
Apache License 2.0
171 stars 40 forks source link

Unable to execute tests after including healenium web dependency [3.5.4] #288

Open divyak1987 opened 1 month ago

divyak1987 commented 1 month ago

Describe the problem

Unable to execute tests using mvn commands after using healenium depency.

Build get successful but tests are not picked up for execution.

Its a cucumber bdd framework has integration with maven and testng. testng tool is being used to run the tests in local and maven is being used in jenkin pipeline.

When tests are executed using testng it works fine but mvn command fails to run the script.

command used : clean test/ clean test --debug output: --- resources:3.3.1:testResources (default-testResources) @ AutomationTesting --- [INFO] Copying 39 resources from src\test\resources to target\test-classes [INFO] [INFO] --- compiler:3.12.1:testCompile (default-testCompile) @ AutomationTesting --- [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 35 source files with javac [forked debug target 17] to target\test-classes [WARNING] [options] system modules path not set in conjunction with -source 17 [INFO] [INFO] --- surefire:3.3.1:test (default-test) @ AutomationTesting --- [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] [INFO] --- jar:3.3.0:jar (default-jar) @ AutomationTesting --- [INFO] Building jar: C:\Users\ei12416\UI_Automation_Framework\2024.6_Selfhealing\QA_UIAutomation_Selenium\target\AutomationTesting-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.1:install (default-install) @ AutomationTesting --- [INFO] Installing C:\Users\ei12416\UI_Automation_Framework\2024.6_Selfhealing\QAUIAutomation

Healenium Web version

3.5.4

Healenium Backend version

Latest version

Selenium version

4.21.0

Platform

Java Cucumber BDD

Properties file

No response

Logs appeared during using Healenium

--- resources:3.3.1:testResources (default-testResources) @ AutomationTesting ---
[INFO] Copying 39 resources from src\test\resources to target\test-classes
[INFO] 
[INFO] --- compiler:3.12.1:testCompile (default-testCompile) @ AutomationTesting ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 35 source files with javac [forked debug target 17] to target\test-classes
[WARNING] [options] system modules path not set in conjunction with -source 17
[INFO] 
[INFO] --- surefire:3.3.1:test (default-test) @ AutomationTesting ---
[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] 
[INFO] --- jar:3.3.0:jar (default-jar) @ AutomationTesting ---
[INFO] Building jar: C:\Users\ei12416\UI_Automation_Framework\2024.6_Selfhealing\QA_UIAutomation_Selenium\target\AutomationTesting-0.0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- install:3.1.1:install (default-install) @ AutomationTesting ---
[INFO] Installing C:\Users\ei12416\UI_Automation_Framework\2024.6_Selfhealing\QA_UIAutomation_

Additional context

Issue similar to open tickets

  1. https://github.com/healenium/healenium-web/issues/281
  2. https://github.com/healenium/healenium-web/issues/275