theBell
theBell

Reputation: 423

Is there a way to define the runorder of two different Testng Listeners?

I have two testng Listeners. One to create report html files with results of the testrun, and one to write the results in a database. The html files must be available, to write them in the database, so i must control the runorder.

Is there any configuration possibility or a way to let the listeners communicate with each other? I'm using maven with the listener property in the pom.xml.

Upvotes: 2

Views: 1957

Answers (1)

Cedric Beust
Cedric Beust

Reputation: 15608

No. Maybe you could create your own reporter that calls these two in the order you want?

Upvotes: 3

Related Questions