diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c078d75 Binary files /dev/null and b/.DS_Store differ diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 2644fe1..fefa21a 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -6,9 +6,12 @@ - + + + + diff --git a/.idea/misc.xml b/.idea/misc.xml index f250cbb..3825665 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -8,5 +8,7 @@ - + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0be0cef..d7e2412 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,31 +2,39 @@ - - - - - - - - + + + + + - - + - - + + + + + + - - - + + + + + + + + + + - + + - - + + - - + + + + + - - + + - - + + + + + + + + + + + + + + + + - - + + - - + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + @@ -146,14 +174,22 @@ @@ -164,10 +200,35 @@ - - - - - - - - - - - + + + - - - - - - + + - - + + - - + + + + + + - - - - - + + + + + - - - - - + + + + + @@ -546,24 +504,31 @@ - - + + - - + + - - + + - - + + - - + + + + + + + + - + + @@ -572,19 +537,19 @@ - - - - + + + + - + - + @@ -593,95 +558,108 @@ - - - + - - + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + - + - + - + - + - + - + - + - + + + + + + + + + - + - + + + + + file://$PROJECT_DIR$/Generic/src/main/java/base/CommonAPI.java - 221 + 280 file://$PROJECT_DIR$/Amazon/src/test/java/search/TestSearch.java - 15 + 17 @@ -690,21 +668,80 @@ + + file://$PROJECT_DIR$/W3Schools/src/test/java/dynamictable/TestTableData.java + 7 + + + + file://$PROJECT_DIR$/W3Schools/src/main/java/table/TableData.java + 10 + + + + file://$PROJECT_DIR$/Amazon/src/test/java/search/TestSearch.java + 15 + + + + file://$PROJECT_DIR$/Amazon/src/main/java/menu/FetchDropDown.java + 16 + + + + file://$PROJECT_DIR$/Pnt/src/main/java/authentication/LogInPage.java + 66 + + + + file://$PROJECT_DIR$/Generic/src/main/java/utility/DataReader.java + 60 + + + + file://$PROJECT_DIR$/Pnt/src/test/java/authentication/TestKeyword.java + 14 + + + + file://$PROJECT_DIR$/RestAPIServices/src/test/java/AllEmployeeAPI.java + 13 + + + + file://$PROJECT_DIR$/RestAPIServices/src/test/java/AllEmployeeAPI.java + 23 + + + + file://$PROJECT_DIR$/RestAPIServices/src/test/java/AllEmployeeAPI.java + 29 + + + + file://$PROJECT_DIR$/RestAPIServices/src/test/java/SingleEmployeeAPI.java + 10 + + - - - - - - - - @@ -715,78 +752,256 @@ - + - - + + - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + + + + - + - - + + + + + + + + + + + + + + + + + + + - + - - + + + + + - + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/Amazon/Extent-Report/ExtentReport.html b/Amazon/Extent-Report/ExtentReport.html new file mode 100644 index 0000000..f6044fa --- /dev/null +++ b/Amazon/Extent-Report/ExtentReport.html @@ -0,0 +1,776 @@ + + + + + + + + + + + + + + ExtentReports 2.0 + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ Total Tests + +
+
+
+
+ Total Steps + +
+
+
+
+ Total Time Taken (Current Run) + 0h 0m 45s+401ms +
+
+
+
+ Total Time Taken (Overall) + 0h 0m 45s+401ms +
+
+
+
+ Start + 2020-01-26 13:01:55 +
+
+
+
+ End + 2020-01-26 13:02:40 +
+
+
+
+
+
+
+ Tests View +
+ +
+ +
+
+ test(s) passed +
+
+ test(s) failed, others +
+
+
+
+
+
+ Steps View +
+ +
+ +
+
+ step(s) passed +
+
+ step(s) failed, others +
+
+
+
+
+ Pass Percentage + +
+
+
+
+
+
+
+
+
+ Environment + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParamValue
User NameMatiur Rahman
OSMac OS X
Java Version11.0.5
Host NamePNT
EnvironmentQA
+
+
+
+
+
+
+ Categories + + + + + + + + + + + + + + +
Name
+ TestDropDownMenuItems +
+ TestSearch +
+
+
+
+
+ + + +
+
+
+
+
Tests
+
+
+
+ + + + +
+ +
+ + + +
+
+ + + +
+
+ + + +
+ +
+
+
+
    +
  • +
    + dropDownMenu + pass + +
    +
    +
    + 2020-01-26 13:02:02 + 2020-01-26 13:02:04 + 0h 0m 1s+818ms +
    +
    +
    +
    + TestDropDownMenuItems +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    StatusTimestampDetails
    13:02:03TestDropDownMenuItems: drop Down Menu
    13:02:03TestDropDownMenuItems: drop Down
    13:02:04Test Passed
    +
      +
    +
    +
    +
  • +
  • +
    + searchItems + pass + +
    +
    +
    + 2020-01-26 13:02:13 + 2020-01-26 13:02:40 + 0h 0m 27s+41ms +
    +
    +
    +
    + TestSearch +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    StatusTimestampDetails
    13:02:13TestSearch: search Items
    13:02:13SearchPage: clear Type N Click On Search
    13:02:13SearchPage: get Items
    13:02:13SearchPage: type Item Name : books
    13:02:13SearchPage: get Search Input Web Element
    13:02:13SearchPage: click On Search
    13:02:13SearchPage: get Submit Web Element
    13:02:20SearchPage: clear Input Box
    13:02:20SearchPage: get Search Input Web Element
    13:02:20SearchPage: type Item Name : i Phone
    13:02:20SearchPage: get Search Input Web Element
    13:02:20SearchPage: click On Search
    13:02:20SearchPage: get Submit Web Element
    13:02:23SearchPage: clear Input Box
    13:02:23SearchPage: get Search Input Web Element
    13:02:23SearchPage: type Item Name : Honey
    13:02:23SearchPage: get Search Input Web Element
    13:02:23SearchPage: click On Search
    13:02:23SearchPage: get Submit Web Element
    13:02:25SearchPage: clear Input Box
    13:02:25SearchPage: get Search Input Web Element
    13:02:25SearchPage: type Item Name : car
    13:02:25SearchPage: get Search Input Web Element
    13:02:25SearchPage: click On Search
    13:02:25SearchPage: get Submit Web Element
    13:02:33SearchPage: clear Input Box
    13:02:33SearchPage: get Search Input Web Element
    13:02:33SearchPage: type Item Name : remote
    13:02:33SearchPage: get Search Input Web Element
    13:02:33SearchPage: click On Search
    13:02:33SearchPage: get Submit Web Element
    13:02:36SearchPage: clear Input Box
    13:02:36SearchPage: get Search Input Web Element
    13:02:36SearchPage: type Item Name : bag
    13:02:36SearchPage: get Search Input Web Element
    13:02:36SearchPage: click On Search
    13:02:36SearchPage: get Submit Web Element
    13:02:40SearchPage: clear Input Box
    13:02:40SearchPage: get Search Input Web Element
    13:02:40Test Passed
    +
      +
    +
    +
    +
  • +
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
+
+
+
+
+
+
+ + + +
+
+
+
+
Categories
+
+
+ +
+
+
+
    +
  • +
    + TestDropDownMenuItems +
    +
    + Pass: 1 +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + + +
    RunDateTest NameStatus
    2020-01-26 13:02:02dropDownMenu
    pass
    +
    +
    +
  • +
  • +
    + TestSearch +
    +
    + Pass: 1 +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + + +
    RunDateTest NameStatus
    2020-01-26 13:02:13searchItems
    pass
    +
    +
    +
  • +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + diff --git a/Amazon/src/main/java/home/SearchPage.java b/Amazon/src/main/java/home/SearchPage.java index 9b08105..038988a 100644 --- a/Amazon/src/main/java/home/SearchPage.java +++ b/Amazon/src/main/java/home/SearchPage.java @@ -4,12 +4,15 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.How; +import reporting.TestLogger; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; +import static base.CommonAPI.convertToString; + public class SearchPage { @FindBy(how = How.CSS, using = "#twotabsearchtextbox") @@ -18,36 +21,43 @@ public class SearchPage { @FindBy(how = How.CSS, using = ".nav-input") public static WebElement submitWebElement; - public static WebElement getSearchInputWebElement(){ + public WebElement getSearchInputWebElement(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); return searchInputWebElement; } - public static WebElement getSubmitWebElement(){ + public WebElement getSubmitWebElement(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); return submitWebElement; } public void clearInputBox(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); getSearchInputWebElement().clear(); } public void typeItemName(String value){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName()+ ": "+ value)); getSearchInputWebElement().sendKeys(value); } public void clickOnSearch(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); getSubmitWebElement().click(); } public void clearTypeNClickOnSearch(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); List list = getItems(); for(int i=0;i list = DataSource.getItemsListFromDB(); for(int i=0; i getItems(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); List itemsList = new ArrayList(); itemsList.add("books"); itemsList.add("iPhone"); itemsList.add("Honey"); itemsList.add("car"); + itemsList.add("remote"); + itemsList.add("bag"); return itemsList; diff --git a/Amazon/src/main/java/menu/FetchDropDown.java b/Amazon/src/main/java/menu/FetchDropDown.java new file mode 100644 index 0000000..b7319ae --- /dev/null +++ b/Amazon/src/main/java/menu/FetchDropDown.java @@ -0,0 +1,20 @@ +package menu; + +import base.CommonAPI; +import org.openqa.selenium.WebElement; +import org.testng.Assert; +import reporting.TestLogger; + +import java.util.List; + +public class FetchDropDown extends CommonAPI { + + public void dropDown(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); + List element = getListOfWebElementsByCss(".nav-search-dropdown.searchSelect option"); + List listOfText = getListOfString(element); + List expectedMenu = listOfText; + Assert.assertEquals(listOfText,expectedMenu); + + } +} diff --git a/Amazon/src/test/java/dropDownMenu/TestDropDownMenuItems.java b/Amazon/src/test/java/dropDownMenu/TestDropDownMenuItems.java new file mode 100644 index 0000000..256d51e --- /dev/null +++ b/Amazon/src/test/java/dropDownMenu/TestDropDownMenuItems.java @@ -0,0 +1,14 @@ +package dropDownMenu; + +import menu.FetchDropDown; +import org.testng.annotations.Test; +import reporting.TestLogger; + +public class TestDropDownMenuItems extends FetchDropDown { + + @Test + public void dropDownMenu(){ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); + dropDown(); + } +} diff --git a/Amazon/src/test/java/search/TestSearch.java b/Amazon/src/test/java/search/TestSearch.java index 318054c..77d5753 100644 --- a/Amazon/src/test/java/search/TestSearch.java +++ b/Amazon/src/test/java/search/TestSearch.java @@ -7,12 +7,14 @@ import java.io.IOException; import java.sql.SQLException; +import reporting.TestLogger; public class TestSearch extends CommonAPI { @Test public void searchItems()throws Exception, IOException, SQLException, ClassNotFoundException{ + TestLogger.log(getClass().getSimpleName() + ": " + convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); SearchPage searchPage = PageFactory.initElements(driver, SearchPage.class); - searchPage.searchItemsAndSubmitButton(); + searchPage.clearTypeNClickOnSearch(); } } diff --git a/Amazon/src/test/resources/AmazonTestRunner.xml b/Amazon/src/test/resources/AmazonTestRunner.xml index 1775c89..2883f24 100644 --- a/Amazon/src/test/resources/AmazonTestRunner.xml +++ b/Amazon/src/test/resources/AmazonTestRunner.xml @@ -13,7 +13,7 @@ - + diff --git a/Amazon/target/Amazon-1.0-SNAPSHOT.jar b/Amazon/target/Amazon-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..e618733 Binary files /dev/null and b/Amazon/target/Amazon-1.0-SNAPSHOT.jar differ diff --git a/Amazon/target/classes/datasuply/DataSource.class b/Amazon/target/classes/datasuply/DataSource.class new file mode 100644 index 0000000..64747ae Binary files /dev/null and b/Amazon/target/classes/datasuply/DataSource.class differ diff --git a/Amazon/target/classes/home/SearchPage$1.class b/Amazon/target/classes/home/SearchPage$1.class new file mode 100644 index 0000000..0606bc0 Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$1.class differ diff --git a/Amazon/target/classes/home/SearchPage$2.class b/Amazon/target/classes/home/SearchPage$2.class new file mode 100644 index 0000000..5c9f20f Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$2.class differ diff --git a/Amazon/target/classes/home/SearchPage$3.class b/Amazon/target/classes/home/SearchPage$3.class new file mode 100644 index 0000000..890c64b Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$3.class differ diff --git a/Amazon/target/classes/home/SearchPage$4.class b/Amazon/target/classes/home/SearchPage$4.class new file mode 100644 index 0000000..174f860 Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$4.class differ diff --git a/Amazon/target/classes/home/SearchPage$5.class b/Amazon/target/classes/home/SearchPage$5.class new file mode 100644 index 0000000..6c6d127 Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$5.class differ diff --git a/Amazon/target/classes/home/SearchPage$6.class b/Amazon/target/classes/home/SearchPage$6.class new file mode 100644 index 0000000..ade7b79 Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$6.class differ diff --git a/Amazon/target/classes/home/SearchPage$7.class b/Amazon/target/classes/home/SearchPage$7.class new file mode 100644 index 0000000..77ef8d9 Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$7.class differ diff --git a/Amazon/target/classes/home/SearchPage$8.class b/Amazon/target/classes/home/SearchPage$8.class new file mode 100644 index 0000000..ad76667 Binary files /dev/null and b/Amazon/target/classes/home/SearchPage$8.class differ diff --git a/Amazon/target/classes/home/SearchPage.class b/Amazon/target/classes/home/SearchPage.class index 13e8616..318698d 100644 Binary files a/Amazon/target/classes/home/SearchPage.class and b/Amazon/target/classes/home/SearchPage.class differ diff --git a/Amazon/target/classes/menu/FetchDropDown$1.class b/Amazon/target/classes/menu/FetchDropDown$1.class new file mode 100644 index 0000000..6b0221a Binary files /dev/null and b/Amazon/target/classes/menu/FetchDropDown$1.class differ diff --git a/Amazon/target/classes/menu/FetchDropDown.class b/Amazon/target/classes/menu/FetchDropDown.class new file mode 100644 index 0000000..910c6e3 Binary files /dev/null and b/Amazon/target/classes/menu/FetchDropDown.class differ diff --git a/Amazon/target/maven-archiver/pom.properties b/Amazon/target/maven-archiver/pom.properties new file mode 100644 index 0000000..edd7965 --- /dev/null +++ b/Amazon/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Sun Jan 26 12:30:07 EST 2020 +groupId=WebAutomationDec2019 +artifactId=Amazon +version=1.0-SNAPSHOT diff --git a/Amazon/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Amazon/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 2b7ecd6..8637a52 100644 --- a/Amazon/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/Amazon/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1 +1,4 @@ -/Users/peoplentechny/IdeaProjects/WebAutomationDec2019/Amazon/src/main/java/home/AmazonHome.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Amazon/src/main/java/datasuply/DataSource.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Amazon/src/main/java/home/AmazonHome.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Amazon/src/main/java/menu/FetchDropDown.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Amazon/src/main/java/home/SearchPage.java diff --git a/Amazon/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/Amazon/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/Amazon/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/Amazon/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index e69de29..bb005c2 100644 --- a/Amazon/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/Amazon/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,2 @@ +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Amazon/src/test/java/dropDownMenu/TestDropDownMenuItems.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Amazon/src/test/java/search/TestSearch.java diff --git a/Amazon/target/test-classes/AmazonTestRunner.xml b/Amazon/target/test-classes/AmazonTestRunner.xml index 1775c89..2883f24 100644 --- a/Amazon/target/test-classes/AmazonTestRunner.xml +++ b/Amazon/target/test-classes/AmazonTestRunner.xml @@ -13,7 +13,7 @@ - + diff --git a/Amazon/target/test-classes/dropDownMenu/TestDropDownMenuItems$1.class b/Amazon/target/test-classes/dropDownMenu/TestDropDownMenuItems$1.class new file mode 100644 index 0000000..7ef7e92 Binary files /dev/null and b/Amazon/target/test-classes/dropDownMenu/TestDropDownMenuItems$1.class differ diff --git a/Amazon/target/test-classes/dropDownMenu/TestDropDownMenuItems.class b/Amazon/target/test-classes/dropDownMenu/TestDropDownMenuItems.class new file mode 100644 index 0000000..64c0dbe Binary files /dev/null and b/Amazon/target/test-classes/dropDownMenu/TestDropDownMenuItems.class differ diff --git a/Amazon/target/test-classes/search/TestSearch$1.class b/Amazon/target/test-classes/search/TestSearch$1.class new file mode 100644 index 0000000..1e4ffd5 Binary files /dev/null and b/Amazon/target/test-classes/search/TestSearch$1.class differ diff --git a/Amazon/target/test-classes/search/TestSearch.class b/Amazon/target/test-classes/search/TestSearch.class index 5272649..bf3a501 100644 Binary files a/Amazon/target/test-classes/search/TestSearch.class and b/Amazon/target/test-classes/search/TestSearch.class differ diff --git a/Cnn/target/Cnn-1.0-SNAPSHOT.jar b/Cnn/target/Cnn-1.0-SNAPSHOT.jar index 87f3c96..25c9a55 100644 Binary files a/Cnn/target/Cnn-1.0-SNAPSHOT.jar and b/Cnn/target/Cnn-1.0-SNAPSHOT.jar differ diff --git a/Cnn/target/classes/home/HomePage.class b/Cnn/target/classes/home/HomePage.class new file mode 100644 index 0000000..9ff8fb7 Binary files /dev/null and b/Cnn/target/classes/home/HomePage.class differ diff --git a/Cnn/target/classes/news/CnnTest.class b/Cnn/target/classes/news/CnnTest.class index 31bfb61..f8171ce 100644 Binary files a/Cnn/target/classes/news/CnnTest.class and b/Cnn/target/classes/news/CnnTest.class differ diff --git a/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index a2ee5a6..e4989ab 100644 --- a/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -1 +1,2 @@ +home/HomePage.class news/CnnTest.class diff --git a/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 01732b4..eafc134 100644 --- a/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/Cnn/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1 +1,2 @@ -/Users/peoplentechny/IdeaProjects/WebAutomationDec2019/Cnn/src/main/java/news/CnnTest.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Cnn/src/main/java/news/CnnTest.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Cnn/src/main/java/home/HomePage.java diff --git a/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..db294cf --- /dev/null +++ b/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +tabs/TestCnnTabs.class diff --git a/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index e69de29..41e2102 100644 --- a/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/Cnn/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Cnn/src/test/java/tabs/TestCnnTabs.java diff --git a/Cnn/target/test-classes/tabs/TestCnnTabs.class b/Cnn/target/test-classes/tabs/TestCnnTabs.class new file mode 100644 index 0000000..b56c763 Binary files /dev/null and b/Cnn/target/test-classes/tabs/TestCnnTabs.class differ diff --git a/Extent-Report/ExtentReport.html b/Extent-Report/ExtentReport.html new file mode 100644 index 0000000..a483fe1 --- /dev/null +++ b/Extent-Report/ExtentReport.html @@ -0,0 +1,551 @@ + + + + + + + + + + + + + + ExtentReports 2.0 + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ Total Tests + +
+
+
+
+ Total Steps + +
+
+
+
+ Total Time Taken (Current Run) + 0h 5m 26s+24ms +
+
+
+
+ Total Time Taken (Overall) + 0h 5m 26s+24ms +
+
+
+
+ Start + 2020-02-02 10:33:22 +
+
+
+
+ End + 2020-02-02 10:38:48 +
+
+
+
+
+
+
+ Tests View +
+ +
+ +
+
+ test(s) passed +
+
+ test(s) failed, others +
+
+
+
+
+
+ Steps View +
+ +
+ +
+
+ step(s) passed +
+
+ step(s) failed, others +
+
+
+
+
+ Pass Percentage + +
+
+
+
+
+
+
+
+
+ Environment + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParamValue
User NameMatiur Rahman
OSMac OS X
Java Version1.8.0_45
Host NamePNT
EnvironmentQA
+
+
+
+
+
+
+ Categories + + + + + + + + + + + +
Name
+ TestKeyword +
+
+
+
+
+ + + +
+
+
+
+
Tests
+
+
+
+ + + + +
+ +
+ + + +
+
+ + + +
+
+ + + +
+ +
+
+
+
    +
  • +
    + testKeyWord + fail + +
    +
    +
    + 2020-02-02 10:33:39 + 2020-02-02 10:38:46 + 0h 5m 6s+377ms +
    +
    +
    +
    + TestKeyword +
    +
    +
    + + + + + + + + + + + + + + + + + + + + +
    StatusTimestampDetails
    10:36:48HandlePopUp: handle Pop Up Window Before Log In
    10:38:46org.openqa.selenium.NoSuchElementException: Unable to locate element: #\.button_submit +For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html +Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' +System info: host: 'matiurs-MacBook-Pro.local', ip: 'fe80:0:0:0:cbb:28f4:caf1:7e2c%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15', java.version: '1.8.0_45' +Driver info: org.openqa.selenium.firefox.FirefoxDriver +Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 68.0.2, capabilities: {desiredCapabilities: {acceptInsecureCerts: true, browserName: firefox}}, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20190813150448, moz:headless: false, moz:processID: 13737, moz:profile: /var/folders/f0/pp1t4wh50hz..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: MAC, platformName: MAC, platformVersion: 19.0.0, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} +Session ID: effb1f5a-51b3-9948-b53c-ce75d4df63cb +*** Element info: {Using=id, value=.button_submit} + at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) + at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) + at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) + at java.lang.reflect.Constructor.newInstance(Constructor.java:422) + at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) + at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) + at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) + at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) + at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) + at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) + at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) + at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:372) + at org.openqa.selenium.By$ById.findElement(By.java:188) + at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) + at base.CommonAPI.clickOnElement(CommonAPI.java:275) + at authentication.LogInPage.clickOnAuthenticate(LogInPage.java:79) + at authentication.LogInPage.logInToPntForumWithoutPopup(LogInPage.java:97) + at keyword.Features.signIn(Features.java:23) + at keyword.Features.select(Features.java:37) + at keyword.Features.selectFeatures(Features.java:57) + at authentication.TestKeyword.testKeyWord(TestKeyword.java:15) + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.lang.reflect.Method.invoke(Method.java:497) + at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133) + at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:584) + at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:172) + at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) + at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:804) + at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:145) + at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) + at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) + at org.testng.TestRunner$$Lambda$48/556281560.accept(Unknown Source) + at java.util.ArrayList.forEach(ArrayList.java:1249) + at org.testng.TestRunner.privateRun(TestRunner.java:770) + at org.testng.TestRunner.run(TestRunner.java:591) + at org.testng.SuiteRunner.runTest(SuiteRunner.java:402) + at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:396) + at org.testng.SuiteRunner.privateRun(SuiteRunner.java:355) + at org.testng.SuiteRunner.run(SuiteRunner.java:304) + at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) + at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) + at org.testng.TestNG.runSuitesSequentially(TestNG.java:1180) + at org.testng.TestNG.runSuitesLocally(TestNG.java:1102) + at org.testng.TestNG.runSuites(TestNG.java:1032) + at org.testng.TestNG.run(TestNG.java:1000) + at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72) + at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)
    +
      +
    +
    +
    +
  • +
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
+
+
+
+
+
+
+ + + +
+
+
+
+
Categories
+
+
+ +
+
+
+
    +
  • +
    + TestKeyword +
    +
    + Fail: 1 +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + + +
    RunDateTest NameStatus
    2020-02-02 10:33:39testKeyWord
    fail
    +
    +
    +
  • +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + diff --git a/Generic/.DS_Store b/Generic/.DS_Store new file mode 100644 index 0000000..9a874b5 Binary files /dev/null and b/Generic/.DS_Store differ diff --git a/Generic/pom.xml b/Generic/pom.xml index 85f81f0..bc89d61 100644 --- a/Generic/pom.xml +++ b/Generic/pom.xml @@ -36,6 +36,22 @@ org.apache.poi poi + + com.relevantcodes + extentreports + + + org.apache.commons + commons-lang3 + + + commons-io + commons-io + + + io.rest-assured + rest-assured + diff --git a/Generic/src/.DS_Store b/Generic/src/.DS_Store new file mode 100644 index 0000000..7b0d367 Binary files /dev/null and b/Generic/src/.DS_Store differ diff --git a/Generic/src/main/.DS_Store b/Generic/src/main/.DS_Store new file mode 100644 index 0000000..55c1fcb Binary files /dev/null and b/Generic/src/main/.DS_Store differ diff --git a/Generic/src/main/java/base/CommonAPI.java b/Generic/src/main/java/base/CommonAPI.java index 53c7bdd..1a85638 100644 --- a/Generic/src/main/java/base/CommonAPI.java +++ b/Generic/src/main/java/base/CommonAPI.java @@ -1,6 +1,8 @@ package base; -import org.apache.commons.exec.util.StringUtils; +import com.relevantcodes.extentreports.ExtentReports; +import com.relevantcodes.extentreports.LogStatus; +import org.apache.commons.lang3.StringUtils; import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; @@ -12,23 +14,80 @@ import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.support.ui.WebDriverWait; -import org.testng.annotations.AfterMethod; -import org.testng.annotations.BeforeMethod; -import org.testng.annotations.Optional; -import org.testng.annotations.Parameters; +import org.testng.ITestContext; +import org.testng.ITestResult; +import org.testng.annotations.*; +import reporting.ExtentManager; +import reporting.ExtentTestManager; import java.io.File; import java.io.IOException; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.lang.reflect.Method; import java.net.URL; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; +import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.concurrent.TimeUnit; public class CommonAPI { + //ExtentReport + public static ExtentReports extent; + @BeforeSuite + public void extentSetup(ITestContext context) { + ExtentManager.setOutputDirectory(context); + extent = ExtentManager.getInstance(); + } + @BeforeMethod + public void startExtent(Method method) { + String className = method.getDeclaringClass().getSimpleName(); + String methodName = method.getName().toLowerCase(); + ExtentTestManager.startTest(method.getName()); + ExtentTestManager.getTest().assignCategory(className); + } + protected String getStackTrace(Throwable t) { + StringWriter sw = new StringWriter(); + PrintWriter pw = new PrintWriter(sw); + t.printStackTrace(pw); + return sw.toString(); + } + @AfterMethod + public void afterEachTestMethod(ITestResult result) { + ExtentTestManager.getTest().getTest().setStartedTime(getTime(result.getStartMillis())); + ExtentTestManager.getTest().getTest().setEndedTime(getTime(result.getEndMillis())); + + for (String group : result.getMethod().getGroups()) { + ExtentTestManager.getTest().assignCategory(group); + } + + if (result.getStatus() == 1) { + ExtentTestManager.getTest().log(LogStatus.PASS, "Test Passed"); + } else if (result.getStatus() == 2) { + ExtentTestManager.getTest().log(LogStatus.FAIL, getStackTrace(result.getThrowable())); + } else if (result.getStatus() == 3) { + ExtentTestManager.getTest().log(LogStatus.SKIP, "Test Skipped"); + } + ExtentTestManager.endTest(); + extent.flush(); + if (result.getStatus() == ITestResult.FAILURE) { + captureScreenshot(driver, result.getName()); + } + driver.quit(); + } + @AfterSuite + public void generateReport() { + extent.close(); + } + private Date getTime(long millis) { + Calendar calendar = Calendar.getInstance(); + calendar.setTimeInMillis(millis); + return calendar.getTime(); + } //Browser SetUp public static WebDriver driver = null; public String browserstack_username= ""; @@ -59,7 +118,7 @@ public void setUp(@Optional("false") boolean useCloudEnv, @Optional("false")Stri public WebDriver getLocalDriver(@Optional("mac") String OS, String browserName){ if(browserName.equalsIgnoreCase("chrome")){ if(OS.equalsIgnoreCase("OS X")){ - System.setProperty("webdriver.chrome.driver", "/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/browser-driver/chromedriver"); + System.setProperty("webdriver.chrome.driver", "../Generic/browser-driver/chromedriver"); }else if(OS.equalsIgnoreCase("Windows")){ System.setProperty("webdriver.chrome.driver", "../Generic/browser-driver/chromedriver.exe"); } @@ -77,7 +136,7 @@ public WebDriver getLocalDriver(@Optional("mac") String OS, String browserName){ else if(browserName.equalsIgnoreCase("firefox")){ if(OS.equalsIgnoreCase("OS X")){ - System.setProperty("webdriver.gecko.driver", "../Generic/browser-driver/geckodriver"); + System.setProperty("webdriver.gecko.driver", "/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/browser-driver/geckodriver"); }else if(OS.equalsIgnoreCase("Windows")) { System.setProperty("webdriver.gecko.driver", "../Generic/browser-driver/geckodriver.exe"); } @@ -113,7 +172,7 @@ public WebDriver getCloudDriver(String envName,String envUsername, String envAcc @AfterMethod public void cleanUp(){ - driver.close(); + //driver.close(); } //helper methods @@ -200,11 +259,11 @@ public static void captureScreenshot(WebDriver driver, String screenshotName) { } -// public static String convertToString(String st) { -// String splitString = ""; -// splitString = StringUtils.join(StringUtils.splitByCharacterTypeCamelCase(st), ' '); -// return splitString; -// } + public static String convertToString(String st) { + String splitString = ""; + splitString = StringUtils.join(StringUtils.splitByCharacterTypeCamelCase(st), ' '); + return splitString; + } public static void clickOnElement(String locator, WebDriver driver1) { try { diff --git a/Generic/src/main/java/reporting/ApplicationLog.java b/Generic/src/main/java/reporting/ApplicationLog.java new file mode 100644 index 0000000..61ebee6 --- /dev/null +++ b/Generic/src/main/java/reporting/ApplicationLog.java @@ -0,0 +1,8 @@ +package reporting; + +public class ApplicationLog { + public static void epicLogger(){ + //TestLogger.log(epic); + TestLogger.log("Browser is launching"); + } +} \ No newline at end of file diff --git a/Generic/src/main/java/reporting/ExtentManager.java b/Generic/src/main/java/reporting/ExtentManager.java new file mode 100644 index 0000000..fc6632b --- /dev/null +++ b/Generic/src/main/java/reporting/ExtentManager.java @@ -0,0 +1,30 @@ +package reporting; + +import com.relevantcodes.extentreports.ExtentReports; +import org.testng.ITestContext; +import org.testng.Reporter; + +import java.io.File; + +public class ExtentManager { + private static ExtentReports extent; + private static ITestContext context; + + public synchronized static ExtentReports getInstance(){ + if(extent == null){ + File outputDirectory = new File(context.getOutputDirectory()); + File resultDirectory = new File(outputDirectory.getParentFile(),"html"); + extent = new ExtentReports(System.getProperty("user.dir")+"/Extent-Report/ExtentReport.html", true); + Reporter.log("Extent Report Directory"+ resultDirectory, true); + extent.addSystemInfo("Host Name", "PNT").addSystemInfo("Environment","QA") + .addSystemInfo("User Name", "Matiur Rahman"); + extent.loadConfig(new File(System.getProperty("user.dir")+ "/report-config.xml")); + } + return extent; + } + + public static void setOutputDirectory(ITestContext context){ + ExtentManager.context = context; + + } +} diff --git a/Generic/src/main/java/reporting/ExtentTestManager.java b/Generic/src/main/java/reporting/ExtentTestManager.java new file mode 100644 index 0000000..52c4007 --- /dev/null +++ b/Generic/src/main/java/reporting/ExtentTestManager.java @@ -0,0 +1,35 @@ +package reporting; + +import com.relevantcodes.extentreports.ExtentReports; +import com.relevantcodes.extentreports.ExtentTest; + +import java.util.HashMap; +import java.util.Map; + +public class ExtentTestManager { + static Map extentTestMap = new HashMap(); + private static ExtentReports extent = ExtentManager.getInstance(); + private static ExtentReports extentUpdate = ExtentManager.getInstance(); + public static synchronized ExtentTest getTest() { + return extentTestMap.get((int) (long) (Thread.currentThread().getId())); + } + public static synchronized void endTest() { + extent.endTest(extentTestMap.get((int) (long) (Thread.currentThread().getId()))); + } + public static synchronized ExtentTest startTest(String testName) { + return startTest(testName, ""); + } + public static synchronized ExtentTest startTestClass(String className,String testName) { + return startTest(className,testName, ""); + } + public static synchronized ExtentTest startTest(String testName, String desc) { + ExtentTest test = extent.startTest(testName, desc); + extentTestMap.put((int) (long) (Thread.currentThread().getId()), test); + return test; + } + public static synchronized ExtentTest startTest(String className,String testName, String desc) { + ExtentTest test = extentUpdate.startTest(testName, desc); + extentTestMap.put((int) (long) (Thread.currentThread().getId()), test); + return test; + } +} diff --git a/Generic/src/main/java/reporting/TestLogger.java b/Generic/src/main/java/reporting/TestLogger.java new file mode 100644 index 0000000..30de751 --- /dev/null +++ b/Generic/src/main/java/reporting/TestLogger.java @@ -0,0 +1,22 @@ +package reporting; + +//import com.google.api.client.repackaged.org.apache.commons.codec.binary.StringUtils; +import com.relevantcodes.extentreports.LogStatus; +import org.apache.commons.lang3.StringUtils; +import org.openqa.selenium.WebDriver; +import org.testng.Reporter; + +public class TestLogger { + public static void log(final String message){ + Reporter.log(message,true); + ExtentTestManager.getTest().log(LogStatus.INFO, message + "
"); + } + public static void log(final StringUtils message){ + Reporter.log(message + "
",true); + ExtentTestManager.getTest().log(LogStatus.INFO, message + "
"); + } + public static void log(final String message, WebDriver driver){ + Reporter.log(message,true); + ExtentTestManager.getTest().log(LogStatus.INFO, message + "
"); + } +} diff --git a/Generic/target/Generic-1.0-SNAPSHOT.jar b/Generic/target/Generic-1.0-SNAPSHOT.jar index 957664a..4054b47 100644 Binary files a/Generic/target/Generic-1.0-SNAPSHOT.jar and b/Generic/target/Generic-1.0-SNAPSHOT.jar differ diff --git a/Generic/target/classes/base/CommonAPI.class b/Generic/target/classes/base/CommonAPI.class index cc2f4e7..923e749 100644 Binary files a/Generic/target/classes/base/CommonAPI.class and b/Generic/target/classes/base/CommonAPI.class differ diff --git a/Generic/target/classes/databases/ConnectToMongoDB.class b/Generic/target/classes/databases/ConnectToMongoDB.class new file mode 100644 index 0000000..ba88912 Binary files /dev/null and b/Generic/target/classes/databases/ConnectToMongoDB.class differ diff --git a/Generic/target/classes/databases/ConnectToSqlDB.class b/Generic/target/classes/databases/ConnectToSqlDB.class new file mode 100644 index 0000000..65755b2 Binary files /dev/null and b/Generic/target/classes/databases/ConnectToSqlDB.class differ diff --git a/Generic/target/classes/databases/Student.class b/Generic/target/classes/databases/Student.class new file mode 100644 index 0000000..b6a6a9c Binary files /dev/null and b/Generic/target/classes/databases/Student.class differ diff --git a/Generic/target/classes/databases/User.class b/Generic/target/classes/databases/User.class new file mode 100644 index 0000000..dac0b4a Binary files /dev/null and b/Generic/target/classes/databases/User.class differ diff --git a/Generic/target/classes/reporting/ApplicationLog.class b/Generic/target/classes/reporting/ApplicationLog.class new file mode 100644 index 0000000..c2823ba Binary files /dev/null and b/Generic/target/classes/reporting/ApplicationLog.class differ diff --git a/Generic/target/classes/reporting/ExtentManager.class b/Generic/target/classes/reporting/ExtentManager.class new file mode 100644 index 0000000..dc462d6 Binary files /dev/null and b/Generic/target/classes/reporting/ExtentManager.class differ diff --git a/Generic/target/classes/reporting/ExtentTestManager.class b/Generic/target/classes/reporting/ExtentTestManager.class new file mode 100644 index 0000000..fb8f981 Binary files /dev/null and b/Generic/target/classes/reporting/ExtentTestManager.class differ diff --git a/Generic/target/classes/reporting/TestLogger.class b/Generic/target/classes/reporting/TestLogger.class new file mode 100644 index 0000000..6c0f957 Binary files /dev/null and b/Generic/target/classes/reporting/TestLogger.class differ diff --git a/Generic/target/classes/utility/DataReader.class b/Generic/target/classes/utility/DataReader.class new file mode 100644 index 0000000..1f2d389 Binary files /dev/null and b/Generic/target/classes/utility/DataReader.class differ diff --git a/Generic/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Generic/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 572a2ba..13610df 100644 --- a/Generic/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/Generic/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1 +1,10 @@ -/Users/peoplentechny/IdeaProjects/WebAutomationDec2019/Generic/src/main/java/base/CommonAPI.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/databases/ConnectToSqlDB.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/reporting/TestLogger.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/databases/Student.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/reporting/ExtentManager.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/utility/DataReader.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/reporting/ExtentTestManager.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/databases/ConnectToMongoDB.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/databases/User.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/reporting/ApplicationLog.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Generic/src/main/java/base/CommonAPI.java diff --git a/Pnt/.DS_Store b/Pnt/.DS_Store new file mode 100644 index 0000000..fe72553 Binary files /dev/null and b/Pnt/.DS_Store differ diff --git a/Pnt/data/file2.xls b/Pnt/data/file2.xls new file mode 100644 index 0000000..43edccb Binary files /dev/null and b/Pnt/data/file2.xls differ diff --git a/Pnt/pom.xml b/Pnt/pom.xml new file mode 100644 index 0000000..f38b5d2 --- /dev/null +++ b/Pnt/pom.xml @@ -0,0 +1,22 @@ + + + + WebAutomationDec2019 + WebAutomationDec2019 + 1.0-SNAPSHOT + + 4.0.0 + + Pnt + + + + WebAutomationDec2019 + Generic + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/Pnt/src/main/java/authentication/LogInPage.java b/Pnt/src/main/java/authentication/LogInPage.java new file mode 100644 index 0000000..c35d29a --- /dev/null +++ b/Pnt/src/main/java/authentication/LogInPage.java @@ -0,0 +1,99 @@ +package authentication; + +import authentication.popup.HandlePopUp; +import base.CommonAPI; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import org.openqa.selenium.support.PageFactory; + +public class LogInPage { + + @FindBy(css = "#globl-cont a") + public WebElement loginButtonElement; + + @FindBy(css = ".input_text") + public WebElement userNameInputField; + + @FindBy(css = ".input_password") + public WebElement passwordInputField; + + @FindBy(css = ".button_submit") + public WebElement clickButtonElement; + + public WebElement getClickButtonElement() { + return clickButtonElement; + } + + public void setClickButtonElement(WebElement clickButtonElement) { + this.clickButtonElement = clickButtonElement; + } + + public WebElement getUserNameInputField() { + return userNameInputField; + } + + public void setUserNameInputField(WebElement userNameInputField) { + this.userNameInputField = userNameInputField; + } + + public WebElement getPasswordInputField() { + return passwordInputField; + } + + public void setPasswordInputField(WebElement passwordInputField) { + this.passwordInputField = passwordInputField; + } + + public WebElement getLoginButtonElement() { + return loginButtonElement; + } + + public void setLoginButtonElement(WebElement loginButtonElement) { + this.loginButtonElement = loginButtonElement; + } + + public void clickOnLogInButton(){ + + getLoginButtonElement().click(); + } + public void clickOnLogInButton(WebDriver driver1){ + CommonAPI.clickOnElement("#globl-cont a",driver1); + } + public void typeUserName(){ + getUserNameInputField().sendKeys("testuser1"); + } + public void typeUserName(WebDriver driver1){ + CommonAPI.typeOnElementNEnter(".input_text","testuser1",driver1); + } + public void typePassword(){ + getPasswordInputField().sendKeys("abcd1234"); + } + public void typePassword(WebDriver driver1){ + CommonAPI.typeOnElementNEnter(".input_password","abcd1234",driver1); + } + public void clickOnAuthenticate(){ + getClickButtonElement().click(); + } + public void clickOnAuthenticate(WebDriver driver1){ + CommonAPI.clickOnElement(".button_submit",driver1); + } + + public void logInToPntForum(WebDriver driver)throws InterruptedException{ + HandlePopUp handlePopUp = PageFactory.initElements(driver, HandlePopUp.class); + handlePopUp.handlePopUpWindowBeforeLogIn(driver); + CommonAPI.sleepFor(2); + clickOnLogInButton(); + CommonAPI.handleNewTab(driver); + typeUserName(); + typePassword(); + clickOnAuthenticate(); + } + public void logInToPntForumWithoutPopup(WebDriver driver1)throws InterruptedException{ + clickOnLogInButton(driver1); + CommonAPI.handleNewTab(driver1); + typeUserName(driver1); + typePassword(driver1); + clickOnAuthenticate(driver1); + } +} diff --git a/Pnt/src/main/java/authentication/popup/HandlePopUp.java b/Pnt/src/main/java/authentication/popup/HandlePopUp.java new file mode 100644 index 0000000..c545ec8 --- /dev/null +++ b/Pnt/src/main/java/authentication/popup/HandlePopUp.java @@ -0,0 +1,62 @@ +package authentication.popup; + +import base.CommonAPI; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.support.FindBy; +import reporting.TestLogger; + +public class HandlePopUp { + + @FindBy(css = ".modal-body") + public WebElement scholarshipPopUpWindowWebElement; + @FindBy(css = ".fa.fa-times-circle-o") + public WebElement scholarshipPopUpWindowCloseWebElement; + + + public WebElement getScholarshipPopUpWindowWebElement() { + return scholarshipPopUpWindowWebElement; + } + + public void setScholarshipPopUpWindowWebElement(WebElement scholarshipPopUpWindowWebElement) { + this.scholarshipPopUpWindowWebElement = scholarshipPopUpWindowWebElement; + } + + public WebElement getScholarshipPopUpWindowCloseWebElement() { + return scholarshipPopUpWindowCloseWebElement; + } + + public void setScholarshipPopUpWindowCloseWebElement(WebElement scholarshipPopUpWindowCloseWebElement) { + TestLogger.log(getClass().getSimpleName() + ": " + CommonAPI.convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); + this.scholarshipPopUpWindowCloseWebElement = scholarshipPopUpWindowCloseWebElement; + } + + public boolean isScholarshipPopUpWindowDisplayed(WebDriver driver1, String locator){ + boolean value = CommonAPI.isPopUpWindowDisplayed(driver1, locator); + return value; + } + public void closePopUpWindow(){ + TestLogger.log(getClass().getSimpleName() + ": " + CommonAPI.convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); + setScholarshipPopUpWindowCloseWebElement(scholarshipPopUpWindowCloseWebElement); + getScholarshipPopUpWindowCloseWebElement().click(); + } + + public static void closePopUpWindow(WebDriver driver1){ + //TestLogger.log(getClass().getSimpleName() + ": " + CommonAPI.convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); + CommonAPI.clickOnElement(".fa.fa-times-circle-o",driver1); + } + public void handlePopUpWindowBeforeLogIn(WebDriver driver1)throws InterruptedException{ + TestLogger.log(getClass().getSimpleName() + ": " + CommonAPI.convertToString(new Object(){}.getClass().getEnclosingMethod().getName())); + CommonAPI.sleepFor(2); + if(isScholarshipPopUpWindowDisplayed(driver1, ".modal-body")) { + + try{ + closePopUpWindow(); + }catch (Exception ex){ + closePopUpWindow(driver1); + } + CommonAPI.sleepFor(2); + } + } + +} diff --git a/Pnt/src/main/java/keyword/Features.java b/Pnt/src/main/java/keyword/Features.java new file mode 100644 index 0000000..e49d7f7 --- /dev/null +++ b/Pnt/src/main/java/keyword/Features.java @@ -0,0 +1,60 @@ +package keyword; + +import authentication.LogInPage; +import authentication.popup.HandlePopUp; +import base.CommonAPI; +import org.openqa.selenium.InvalidArgumentException; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.support.PageFactory; +import searchpage.SearchPage; + +import java.io.IOException; + +public class Features extends CommonAPI { + LogInPage logInPage = PageFactory.initElements(driver, LogInPage.class); + SearchPage searchPage = new SearchPage(); + HandlePopUp handlePopUp = PageFactory.initElements(driver, HandlePopUp.class); + public void signIn(){ + logInPage.typeUserName(); + logInPage.typePassword(); + logInPage.clickOnAuthenticate(); + } + public void signIn(WebDriver driver1)throws InterruptedException{ + logInPage.logInToPntForumWithoutPopup(driver1); + } + public void registration(){ + typeByCss("testuser1", "email"); + typeByCss("abcd1234", "password"); + } + + public void search(WebDriver driver1) throws InterruptedException,IOException{ + searchPage.searchTopics(driver1); + } + + public void select(String featureName, WebDriver driver1)throws IOException, InterruptedException{ + switch(featureName){ + case "signIn": + signIn(driver1); + break; + case "registration": + registration(); + break; + case "search": + search(driver1); + break; + case "popup": + handlePopUp.handlePopUpWindowBeforeLogIn(driver1); + break; + default: + throw new InvalidArgumentException("Invalid features choice"); + } + } + + public void selectFeatures(WebDriver driver1)throws IOException, InterruptedException{ + ItemsToBeSearched itemsToBeSearched = new ItemsToBeSearched(); + String [] testSteps = itemsToBeSearched.getDataFromExcelFileForFeaturesChoice(); + for(int i=1; i + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Pnt/target/Pnt-1.0-SNAPSHOT.jar b/Pnt/target/Pnt-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..b385d21 Binary files /dev/null and b/Pnt/target/Pnt-1.0-SNAPSHOT.jar differ diff --git a/Pnt/target/classes/authentication/LogInPage.class b/Pnt/target/classes/authentication/LogInPage.class new file mode 100644 index 0000000..4959338 Binary files /dev/null and b/Pnt/target/classes/authentication/LogInPage.class differ diff --git a/Pnt/target/classes/authentication/popup/HandlePopUp$1.class b/Pnt/target/classes/authentication/popup/HandlePopUp$1.class new file mode 100644 index 0000000..f807b87 Binary files /dev/null and b/Pnt/target/classes/authentication/popup/HandlePopUp$1.class differ diff --git a/Pnt/target/classes/authentication/popup/HandlePopUp$2.class b/Pnt/target/classes/authentication/popup/HandlePopUp$2.class new file mode 100644 index 0000000..d2c4b75 Binary files /dev/null and b/Pnt/target/classes/authentication/popup/HandlePopUp$2.class differ diff --git a/Pnt/target/classes/authentication/popup/HandlePopUp$3.class b/Pnt/target/classes/authentication/popup/HandlePopUp$3.class new file mode 100644 index 0000000..3f07eed Binary files /dev/null and b/Pnt/target/classes/authentication/popup/HandlePopUp$3.class differ diff --git a/Pnt/target/classes/authentication/popup/HandlePopUp.class b/Pnt/target/classes/authentication/popup/HandlePopUp.class new file mode 100644 index 0000000..05a8357 Binary files /dev/null and b/Pnt/target/classes/authentication/popup/HandlePopUp.class differ diff --git a/Pnt/target/classes/keyword/Features.class b/Pnt/target/classes/keyword/Features.class new file mode 100644 index 0000000..1061472 Binary files /dev/null and b/Pnt/target/classes/keyword/Features.class differ diff --git a/Pnt/target/classes/keyword/ItemsToBeSearched.class b/Pnt/target/classes/keyword/ItemsToBeSearched.class new file mode 100644 index 0000000..69a0c16 Binary files /dev/null and b/Pnt/target/classes/keyword/ItemsToBeSearched.class differ diff --git a/Pnt/target/classes/searchpage/SearchPage.class b/Pnt/target/classes/searchpage/SearchPage.class new file mode 100644 index 0000000..2b26df7 Binary files /dev/null and b/Pnt/target/classes/searchpage/SearchPage.class differ diff --git a/Pnt/target/maven-archiver/pom.properties b/Pnt/target/maven-archiver/pom.properties new file mode 100644 index 0000000..f978d6b --- /dev/null +++ b/Pnt/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Sun Feb 02 11:57:09 EST 2020 +version=1.0-SNAPSHOT +groupId=WebAutomationDec2019 +artifactId=Pnt diff --git a/Pnt/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/Pnt/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/Pnt/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Pnt/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..126bc85 --- /dev/null +++ b/Pnt/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,5 @@ +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/main/java/keyword/Features.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/main/java/keyword/ItemsToBeSearched.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/main/java/searchpage/SearchPage.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/main/java/authentication/popup/HandlePopUp.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/main/java/authentication/LogInPage.java diff --git a/Pnt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/Pnt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/Pnt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/Pnt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..adca858 --- /dev/null +++ b/Pnt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1,3 @@ +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/test/java/authentication/TestAuthentication.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/test/java/authentication/TestPopUpWindow.java +/Users/mrahman/develop/pnt/WebAutomationDecember2019/Pnt/src/test/java/authentication/TestKeyword.java diff --git a/Pnt/target/test-classes/PntTestRunner.xml b/Pnt/target/test-classes/PntTestRunner.xml new file mode 100644 index 0000000..21a5b06 --- /dev/null +++ b/Pnt/target/test-classes/PntTestRunner.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Pnt/target/test-classes/authentication/TestAuthentication.class b/Pnt/target/test-classes/authentication/TestAuthentication.class new file mode 100644 index 0000000..1c558cf Binary files /dev/null and b/Pnt/target/test-classes/authentication/TestAuthentication.class differ diff --git a/Pnt/target/test-classes/authentication/TestKeyword.class b/Pnt/target/test-classes/authentication/TestKeyword.class new file mode 100644 index 0000000..364d604 Binary files /dev/null and b/Pnt/target/test-classes/authentication/TestKeyword.class differ diff --git a/Pnt/target/test-classes/authentication/TestPopUpWindow$1.class b/Pnt/target/test-classes/authentication/TestPopUpWindow$1.class new file mode 100644 index 0000000..51bb254 Binary files /dev/null and b/Pnt/target/test-classes/authentication/TestPopUpWindow$1.class differ diff --git a/Pnt/target/test-classes/authentication/TestPopUpWindow.class b/Pnt/target/test-classes/authentication/TestPopUpWindow.class new file mode 100644 index 0000000..392e920 Binary files /dev/null and b/Pnt/target/test-classes/authentication/TestPopUpWindow.class differ diff --git a/RestAPIServices/pom.xml b/RestAPIServices/pom.xml new file mode 100644 index 0000000..0aa59c0 --- /dev/null +++ b/RestAPIServices/pom.xml @@ -0,0 +1,22 @@ + + + + WebAutomationDec2019 + WebAutomationDec2019 + 1.0-SNAPSHOT + + 4.0.0 + + RestAPIServices + + + + + WebAutomationDec2019 + Generic + 1.0-SNAPSHOT + + + \ No newline at end of file diff --git a/RestAPIServices/src/test/java/AllEmployeeAPI.java b/RestAPIServices/src/test/java/AllEmployeeAPI.java new file mode 100644 index 0000000..7f96c3d --- /dev/null +++ b/RestAPIServices/src/test/java/AllEmployeeAPI.java @@ -0,0 +1,44 @@ +import io.restassured.response.Response; +import org.testng.Assert; +import org.testng.annotations.Test; + +import static io.restassured.RestAssured.given; + +public class AllEmployeeAPI { + + public String baseUrl = "http://info.venturepulse.org:8080/service-webapp"; + + @Test + public void callAllEmployeeResources() { + Response response = given().when().get(baseUrl+"/api/AllEmployeeResources").then().statusCode(200).extract().response(); + String statusLine = response.getStatusLine(); + int statusCode = response.getStatusCode(); + String body = response.getBody().prettyPrint(); + Assert.assertEquals(statusLine, "HTTP/1.1 200 OK"); + Assert.assertEquals(statusCode, 200); + } + + @Test + public void badCallAllEmployeeResources() { + Response response = null; + int statusCode = 0; + try { + response = given().when().get(baseUrl+"/api/AllEmployeeResources809879"); + statusCode = response.getStatusCode(); + } catch (Exception ex) { + } + Assert.assertEquals(statusCode, 404); + } + + //@Test + public void serverErrorCallAllEmployeeResources() { + Response response = null; + int statusCode = 0; + try { + response = given().when().get(baseUrl+"/api/AllEmployeeResources").then().statusCode(200).extract().response(); + statusCode = response.getStatusCode(); + } catch (Exception ex) { + } + Assert.assertEquals(statusCode, 200); + } +} \ No newline at end of file diff --git a/RestAPIServices/src/test/java/SingleEmployeeAPI.java b/RestAPIServices/src/test/java/SingleEmployeeAPI.java new file mode 100644 index 0000000..1cc116c --- /dev/null +++ b/RestAPIServices/src/test/java/SingleEmployeeAPI.java @@ -0,0 +1,18 @@ +import io.restassured.response.Response; +import org.testng.Assert; +import org.testng.annotations.Test; + +import static io.restassured.RestAssured.given; + +public class SingleEmployeeAPI { + + @Test + public void callSingleEmployeeResources() { + Response response = given().when().get("http://info.venturepulse.org:8080/service-webapp/api/SingleEmployeeResources/590a4acd35522970c7956cdf").then().statusCode(200).extract().response(); + String statusLine = response.getStatusLine(); + int statusCode = response.getStatusCode(); + String body = response.getBody().prettyPrint(); + Assert.assertEquals(statusLine, "HTTP/1.1 200 OK"); + Assert.assertEquals(statusCode, 200); + } +} \ No newline at end of file diff --git a/RestAPIServices/src/test/resources/RestAPITestRunner.xml b/RestAPIServices/src/test/resources/RestAPITestRunner.xml new file mode 100644 index 0000000..67e2b38 --- /dev/null +++ b/RestAPIServices/src/test/resources/RestAPITestRunner.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RestAPIServices/target/test-classes/AllEmployeeAPI.class b/RestAPIServices/target/test-classes/AllEmployeeAPI.class new file mode 100644 index 0000000..f4cbffb Binary files /dev/null and b/RestAPIServices/target/test-classes/AllEmployeeAPI.class differ diff --git a/RestAPIServices/target/test-classes/RestAPITestRunner.xml b/RestAPIServices/target/test-classes/RestAPITestRunner.xml new file mode 100644 index 0000000..67e2b38 --- /dev/null +++ b/RestAPIServices/target/test-classes/RestAPITestRunner.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RestAPIServices/target/test-classes/SingleEmployeeAPI.class b/RestAPIServices/target/test-classes/SingleEmployeeAPI.class new file mode 100644 index 0000000..09282b4 Binary files /dev/null and b/RestAPIServices/target/test-classes/SingleEmployeeAPI.class differ diff --git a/W3Schools/pom.xml b/W3Schools/pom.xml new file mode 100644 index 0000000..c2f01de --- /dev/null +++ b/W3Schools/pom.xml @@ -0,0 +1,22 @@ + + + + WebAutomationDec2019 + WebAutomationDec2019 + 1.0-SNAPSHOT + + 4.0.0 + + W3Schools + + + + WebAutomationDec2019 + Generic + 1.0-SNAPSHOT + + + + \ No newline at end of file diff --git a/W3Schools/src/main/java/table/TableData.java b/W3Schools/src/main/java/table/TableData.java new file mode 100644 index 0000000..f77edfe --- /dev/null +++ b/W3Schools/src/main/java/table/TableData.java @@ -0,0 +1,22 @@ +package table; + +import base.CommonAPI; +import org.openqa.selenium.WebElement; + +import java.util.List; + +public class TableData extends CommonAPI { + + public void readTable(){ + String name = getTextByCss(".w3-table-all.notranslate tr:nth-child(5) td:nth-child(2)"); + System.out.println(name); + } + + public void readTableRows(){ + List tableWebElement = getListOfWebElementsByCss(".w3-table-all.notranslate"); + List getTableData = getListOfString(tableWebElement); + for(String st: getTableData) { + System.out.println(st); + } + } +} diff --git a/W3Schools/src/test/java/dynamictable/TestTableData.java b/W3Schools/src/test/java/dynamictable/TestTableData.java new file mode 100644 index 0000000..962e3c5 --- /dev/null +++ b/W3Schools/src/test/java/dynamictable/TestTableData.java @@ -0,0 +1,12 @@ +package dynamictable; + +import org.testng.annotations.Test; +import table.TableData; + +public class TestTableData extends TableData { + + @Test + public void table(){ + readTableRows(); + } +} diff --git a/W3Schools/src/test/resources/W3SchoolsTestRunner.xml b/W3Schools/src/test/resources/W3SchoolsTestRunner.xml new file mode 100644 index 0000000..0f9d517 --- /dev/null +++ b/W3Schools/src/test/resources/W3SchoolsTestRunner.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/W3Schools/target/W3Schools-1.0-SNAPSHOT.jar b/W3Schools/target/W3Schools-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..5e77740 Binary files /dev/null and b/W3Schools/target/W3Schools-1.0-SNAPSHOT.jar differ diff --git a/W3Schools/target/classes/table/TableData.class b/W3Schools/target/classes/table/TableData.class new file mode 100644 index 0000000..40d2e9d Binary files /dev/null and b/W3Schools/target/classes/table/TableData.class differ diff --git a/W3Schools/target/maven-archiver/pom.properties b/W3Schools/target/maven-archiver/pom.properties new file mode 100644 index 0000000..071b4bd --- /dev/null +++ b/W3Schools/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Sun Jan 26 12:30:07 EST 2020 +groupId=WebAutomationDec2019 +artifactId=W3Schools +version=1.0-SNAPSHOT diff --git a/W3Schools/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/W3Schools/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/W3Schools/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/W3Schools/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..416cf63 --- /dev/null +++ b/W3Schools/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/Users/mrahman/develop/pnt/WebAutomationDecember2019/W3Schools/src/main/java/table/TableData.java diff --git a/W3Schools/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/W3Schools/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/W3Schools/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/W3Schools/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..71cbc63 --- /dev/null +++ b/W3Schools/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +/Users/mrahman/develop/pnt/WebAutomationDecember2019/W3Schools/src/test/java/dynamictable/TestTableData.java diff --git a/W3Schools/target/test-classes/META-INF/W3Schools.kotlin_module b/W3Schools/target/test-classes/META-INF/W3Schools.kotlin_module new file mode 100644 index 0000000..a49347a Binary files /dev/null and b/W3Schools/target/test-classes/META-INF/W3Schools.kotlin_module differ diff --git a/W3Schools/target/test-classes/W3SchoolsTestRunner.xml b/W3Schools/target/test-classes/W3SchoolsTestRunner.xml new file mode 100644 index 0000000..0f9d517 --- /dev/null +++ b/W3Schools/target/test-classes/W3SchoolsTestRunner.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/W3Schools/target/test-classes/dynamictable/TestTableData.class b/W3Schools/target/test-classes/dynamictable/TestTableData.class new file mode 100644 index 0000000..5b67765 Binary files /dev/null and b/W3Schools/target/test-classes/dynamictable/TestTableData.class differ diff --git a/pom.xml b/pom.xml index 03b3a0d..b4b5021 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,9 @@ Generic Amazon Cnn + W3Schools + Pnt + RestAPIServices @@ -46,6 +49,27 @@ poi 3.17 + + com.relevantcodes + extentreports + 2.41.1 + + + org.apache.commons + commons-lang3 + 3.0 + + + commons-io + commons-io + 2.5 + + + io.rest-assured + rest-assured + 4.1.2 + +