diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..2b63946
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index f8b37ce..495db50 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,6 +15,27 @@
UTF-8
+
+
+ Regression
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.5.0
+
+
+ testng.xml
+
+
+
+
+
+
+
+
@@ -34,6 +55,15 @@
maven-surefire-plugin
3.5.0
-
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.0.0-M5
+
+
+
diff --git a/src/test/java/zacksolutions/AutomateGiteaLogin.java b/src/test/java/zacksolutions/AutomateGiteaLoginTest.java
similarity index 61%
rename from src/test/java/zacksolutions/AutomateGiteaLogin.java
rename to src/test/java/zacksolutions/AutomateGiteaLoginTest.java
index 5cd49eb..78fd112 100644
--- a/src/test/java/zacksolutions/AutomateGiteaLogin.java
+++ b/src/test/java/zacksolutions/AutomateGiteaLoginTest.java
@@ -3,17 +3,27 @@ package zacksolutions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
+import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
+import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
-public class AutomateGiteaLogin {
+public class AutomateGiteaLoginTest {
WebDriver driver;
@BeforeTest
- public void setUp(){
- System.getProperty("web-driver.gecko","user.dir" + "/SeleniumPractice/InterviewCodingQuestionQA/Drivers/geckodriver");
- driver = new FirefoxDriver();
+ @Parameters("Browser")
+ public void setUp(String browser){
+ if(browser.equalsIgnoreCase("FireFox")){
+ System.out.println("Initiating Fire Fox ");
+ System.getProperty("web-driver.gecko","user.dir" + "/SeleniumPractice/InterviewCodingQuestionQA/Drivers/geckodriver");
+ driver = new FirefoxDriver();
+ } else if( browser.equalsIgnoreCase("Chrome")){
+ System.out.println("Initiating Chrome");
+ System.getProperty("web-driver.chrome","user.dir" + "/SeleniumPractice/InterviewCodingQuestionQA/Drivers/chromedriver");
+ driver = new ChromeDriver();
+ }
driver.get("https://gitea.zacksolutions.dev/");
driver.manage().window().maximize();
System.out.println(driver.getTitle());
diff --git a/testng.xml b/testng.xml
new file mode 100644
index 0000000..480c605
--- /dev/null
+++ b/testng.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file