Closed ZathrasOne closed 1 year ago
I have tried reproducing this issue using TestNG 7.8.0
(this requires JDK11) using the below attached project and I am not able to recreate this issue.
java -cp target/issue_2942.jar org.testng.TestNG -testjar target/issue_2942.jar -xmlpathinjar master_suite.xml
Sample Project used: issue_2942.zip
If this is still a problem please feel free to share a sample project that can be used to reproduce the problem.
TestNG Version
Actual behavior
TestNG looks on disk instead of in the jar C:\Users\brucer\SuiteTEST>java -cp ./* org.testng.TestNG -testjar TestngEmbeddedSuitesTest-0.0.1-SNAPSHOT-jar-with-dependencies.jar -xmlpathinjar src/TestNG/masterSuite.xml [TestNG] [ERROR] java.io.FileNotFoundException: C:\Users\brucer\SuiteTEST\src\TestNG\suite1.xml (The system cannot find the path specified)
Is the issue reproducible on runner?
Test case sample
src/TestNG/Suite1.xml:
src/TestNG/Suite2.xml:
src/TestNG/masterSuite.xml:
org/testng/test/class1.java
org/testng/test/class2.java
Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.