0

Prerequisite: Firefox 68.0.1 gecko driver version 0.21.0 (32 & 64 bits) selenium-server-standalone-3.5.3 testng-6.11

I have a total of 300 test cases. When I execute the test suite using '.xml' the execution count is mismatching.

It is considering/counting all the annotation methods as well (i.e @BeforeMethod & @AfterMethod) and add the sum to the total test cases execution.

I tried different versions of the gecko driver (0.21.0 to 0.24.0)

Expected result: total test case count (i.e 300) Actual result: More than test cases count (506)enter image description here

  • 1
    Do you have any data driven tests? From what I remember, each item in the data set being fed into a single script is counted as another script. For example, if you have one data driven test that has 10 rows of data... it would be counted as 10 and not 1. – JeffC Jul 24 '19 at 14:51
  • From the screenshots, it looks like you have `@DataProvider` dependent `@Test` methods. They would get counted as tests as well (as clarified by @JeffC) – Krishnan Mahadevan Jul 26 '19 at 04:04

0 Answers0