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
NPE when root node name in testng.xml is invalid #809
Comments
@gitpavi Could you share |
@juherr |
Strange, I succeed to run tests without the TestBase declaration. How do you run it? With eclipse? Command line? Which version of eclipse, maven, java? |
I was got the error while running it on my eclipse and command line as well |
Below is the content of my Testng.xml which caused this exception
I got this error while running it on eclipse as well as command prompt. Latest version of java and maven but not sure of eclipse cause i dont have my system with me right now. |
Do you mean without |
The suite details are not getting displayed in this text field so i have removed the tags now. What exactly caused this NPE @juherr ?
|
I suppose NPE is from this line As I can't reproduce, it is difficult to be sure. |
Oh okay. Thanks for that info. |
I got it! |
@juherr 👍 |
I won't fix it (which doesn't mean it shouldn't) because it is not as easy as expected and I think the xml parer should be reworked. |
@juherr Sure Thank you for the support 👍 |
I close the issue: #898 won't fix it but should avoid bad formated file. |
Activate XML valiation that should avoid issues like #809
From @gitpavi
The text was updated successfully, but these errors were encountered: