jeudi 18 février 2016

How to change the order of execution of test steps in Allure

I'm using java,testng,maven,allure framework. While test is running i have unsorted order of steps execution: 1. method1 2. createReport 3. performLogin 4. verifyProject

But i want to change order to method 1 -> performLogin -> verifyProject -> createReport

public void method1 () throws InterruptedException, SQLException {
    //some code
}

@Step ("Perform login to ...")
public void performLogin () throws InterruptedException {
    //action
}

@Step ("Verify that current project is correct")
public void verifyProject () throws InterruptedException {
   //action
}

@Step("Go to creation of new Report")
public void createReport () throws InterruptedException {
    //action
}

Aucun commentaire:

Enregistrer un commentaire