Is there a way to define the runorder of two diffe

2019-07-14 05:01发布

问题:

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.

回答1:

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