I've never used TestNG before so I'm trying to understand it. I've installed TestNG and Built the path. I made a TestNG class with tests. But upon running as TestNG I get the error: Cannot find class in classpath
I am aware there are multiple questions out there with this issue but I've tried the answers given and none have worked.
I have tried this using JUnit and it ran successfully. Now I'm just trying to redo it using TestNG.
Here is a screenshot of my project in Eclipse
public class TestSignInAndNotebook {
private WebDriver driver;
private Login login;
private Home home;
private CloudApp cloudApp;
private Notebook notebook;
@BeforeTest
public void beforeTest() {
driver = new FirefoxDriver();
}
@Parameters({""})
@Test
public void f() {
/* My test code */
}
@AfterTest
public void afterTest() {
driver.quit();
}
}
If you need anymore information let me know.