1

I have multiple Test Cases using a single test method dynamically.

It it possible for TestNG to report the number of passed Test Cases and number of failed Test Cases?

If it is possible, how do I do this?

  • Unclear what you're asking, please modify your question with some examples or screens. – Bharat Mane Mar 22 '17 at 10:40
  • Not sure I understand you correctly, but are you putting multiple tests into a single test? And you expect the reporter to split them into single test results? Every test should have its own test-method. Just split them up. – Niels van Reijmersdal Mar 22 '17 at 10:47
  • Please reformat your question so it is clear what is context and what you want to achieve and then a question. Currently there is not a clear question. – Niels van Reijmersdal Mar 22 '17 at 10:48
  • 1
    Reworded to clarify - if I am wrong, please revert. – Kate Paulk Mar 22 '17 at 11:45
1

Looks like the TestNG reporter shows this info in the results by default. The screenshots in this TestNG reporting howto shows: Total methods, failed and passed.

Alternatively let a CI-server (like the free teamcity or open-source jenkins) report and mail results. You do have a build server which runs the tests on each commit, don't you? :)

We are using TeamCity where the result (as I write this) looks like this:

enter image description here

Hmm need to fix some tests...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.