fix: adding Jenkinsfile
Zenful/ZenProject/pipeline/head There was a failure building this commit

This commit is contained in:
2024-09-28 17:13:43 -04:00
parent 72f873c8d8
commit df67108c10
5 changed files with 63 additions and 40 deletions
+24 -21
View File
@@ -7,27 +7,30 @@ import org.testng.annotations.Test;
import zacksolutions.base.Initialization;
import zacksolutions.pages.HomePage;
public class HomePageTest extends Initialization {
HomePage homePage;
public HomePageTest(){
super();
}
@BeforeTest
public void setUp(){
BrowserInit();
homePage = new HomePage();
}
@Test
public void TextTest() throws InterruptedException {
HomePage hp = new HomePage();
hp.insertText();
hp.textConfirmation();
Assert.assertEquals(hp.textConfirmation(), "4 8 15 16 23 42");
}
@AfterTest
public void tearDown(){
driver.close();
}
HomePage homePage;
public HomePageTest() {
super();
}
@BeforeTest
public void setUp() {
BrowserInit();
homePage = new HomePage();
}
@Test
public void TextTest() throws InterruptedException {
HomePage hp = new HomePage();
hp.insertText();
hp.textConfirmation();
Assert.assertEquals(hp.textConfirmation(), "4 8 15 16 23 42");
}
@AfterTest
public void tearDown() {
driver.close();
}
}