Integration of Jenkins with Selenium WebDriver, TestNG and Maven: Step-by-Step Tutorial
Автор: 5S Test
Загружено: 2023-12-05
Просмотров: 165
Описание:
Some videos you may need before starting integration of Jenkins with Selenium WebDriver, TestNG and Maven:
1. Install and configure environment variables on Windows: • Install and configure environment variable...
2. Setup and run Maven project with Selenium and TestNG in Eclipse for Windows: • Setup and run Maven project with Selenium ...
3. Steps to Install Jenkins on Windows host: • Install Jenkin and setup first simple job ...
TestNG.xml file: https://drive.google.com/file/d/1MibF...
Visit 5S Test's page for more tips about automation test: / 5stest
GoogleTest class:
package vss.welcome.WelcomeSelenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class GoogleTest {
@Test
public void test_google_search() {
System.setProperty("webdriver.chrome.driver","C:\\Selenium\\drivers\\chromedriver_win32\\chromedriver.exe");
WebDriver browser = new ChromeDriver();
browser.get("https://www.google.com");
WebElement keywordInput = browser.findElement(By.xpath("//textarea[@name='q']"));
keywordInput.sendKeys("selenium");
keywordInput.sendKeys(System.lineSeparator());
WebElement firstResult = browser.findElement(By.xpath("//a[contains(@href, 'www.selenium.dev')]"));
firstResult.click();
Assert.assertEquals(browser.getCurrentUrl(), "https://www.selenium.dev/");
}
}
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: