jeudi 29 juin 2017

why class dependos on other class not works testng

** my problem i have 3 classes with xml file and i run the code from xml file **
** i wanna run setting after login it related to each other login class runs correctly but when it arrive to setting class it crashes **

public class suiteclass{
 @before test 
@after test
}


public login extends suiteclass
{
@test 
loginpage()
}

public setting extnds suiteclass
{
@test
settingpage()
}

<suite name="myapp">
    <test name="first">
    <classes>
            <class name="cybertalents.loginclass"></class>
            <class name="cybertalents.Settingclass"></class>
        </classes>
    </test>
</suite>

Aucun commentaire:

Enregistrer un commentaire