All checks were successful
jenkins/ZenProject/pipeline/head This commit looks good
39 lines
793 B
Java
39 lines
793 B
Java
package zacksolutions;
|
|
|
|
import org.testng.annotations.AfterTest;
|
|
import org.testng.annotations.BeforeTest;
|
|
import org.testng.annotations.Optional;
|
|
import org.testng.annotations.Parameters;
|
|
import org.testng.annotations.Test;
|
|
import zacksolutions.base.Initialization;
|
|
import zacksolutions.pages.HomePage;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class HomePageTest extends Initialization {
|
|
|
|
HomePage homePage;
|
|
|
|
public HomePageTest() {
|
|
super();
|
|
}
|
|
|
|
@Parameters("browser")
|
|
@BeforeTest
|
|
public void setUp(String browser) {
|
|
BrowserInit(browser);
|
|
homePage = new HomePage();
|
|
}
|
|
|
|
@Test
|
|
public void TextTest() throws InterruptedException, IOException {
|
|
HomePage hp = new HomePage();
|
|
hp.insertText();
|
|
}
|
|
|
|
@AfterTest
|
|
public void tearDown() {
|
|
driver.close();
|
|
}
|
|
}
|