Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

CreateTest when called with same TestName does not create another test with same name. #1108

Description

@yogitthakral

I have implemented extent report 3.1.5 via ITestListener interface and using retryAnalyzer in my testsuite.

  1. So , in onStart() method , I have called extent.createTest(String testname) method with testname as argument.
  2. I am printing logs via a common generic file having common methods like click, sendkeys etc. used across @beforemethod @test and @AfterMethod annotations.
  3. Now whenever test case is failed , it goes to retry analyzer and its started again based on retry count.
  4. Again code flow comes to onStart() method of ITestListener Interface which is having extent.create(String testname) method.
  5. Now while retrying the test case since test case name is same , new test case is not created , which is causing logs of the retried test case to be merged with the previous test run logs.

I hope ,I am able to explain the situation , please help me to get over it , Am I missing something here or doing it the wrong way ?

Thanks,
Yogit Thakral

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions