akash mahato
akash mahato

Reputation: 57

Unable to set preserve order as true in TestNG xml file

I am trying to execute testcases using testng.xml. But for some reason the classes present inside testng.xml are not executing sequentially.It is executing alphabetically. I have given preserve-order as true. But it is showing below mentioned issue while setting it as true.

redundant default attribute value assignment

I am using intellij as ide.

enter image description here

Upvotes: 0

Views: 740

Answers (2)

habin prasad
habin prasad

Reputation: 84

By default, the value is set to True only. So that's why that warning is shown when you are again setting it to true.

Upvotes: 1

Cinublabla
Cinublabla

Reputation: 13

Maybe try to add parameter 'priority' to @Test in your code. Lower priority is executed before higher one.

Upvotes: 1

Related Questions