我的代码未运行,在控制台中显示终止的消息

时间:2019-12-18 05:24:02

标签: java selenium-webdriver

它显示TestcasenameC:\ Programfiles(X86)\ java \ jr8 \ bin \ javaw.exe

请帮助纠正该错误并运行我的代码

我正试图通过testng运行以下代码

package TestCases;

import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import CommonMethods.ProjectMethods;
import Pages.LoginPage;

public class NDR extends ProjectMethods {

    @BeforeClass
    public void setData() {
        dataSheetName = "test";
        test = startTestCase("Smoketesttarts", "Brower launched successfully");
        category = "Smoke";
        authors = "Bhuvana";
        browserName = "chrome";
    }

    @Test(dataProvider = "fetchData", groups="smoke")

    public void login(String userName, String passWord,String searchCriteria, String documentNumber, String documentName,
            String attachment)
            throws Throwable {

        testCaseName = "Test"  ;
        testDescription ="test" ;
        test = startTestCase(testCaseName, testDescription);

        new LoginPage(driver,test)
        .moduleLandingPageLogin(userName, passWord)
        .clickonDocumentstab()
        .clickonNewDocumentRequestmenu()
        .uploadNewDocument(searchCriteria,documentNumber,documentName,attachment);

    }
}

显示错误已终止

0 个答案:

没有答案