();
30 |
31 | private static ExtentReports init() {
32 |
33 | Path path = Paths.get(OUTPUT_FOLDER);
34 | // if directory exists?
35 | if (!Files.exists(path)) {
36 | try {
37 | Files.createDirectories(path);
38 | } catch (IOException e) {
39 | // fail to create directory
40 | e.printStackTrace();
41 | }
42 | }
43 | ExtentHtmlReporter htmlReporter = new ExtentHtmlReporter(OUTPUT_FOLDER + FILE_NAME);
44 | htmlReporter.config().setDocumentTitle("Automation Test Results");
45 | htmlReporter.config().setReportName("Automation Test Results");
46 | htmlReporter.config().setTestViewChartLocation(ChartLocation.TOP);
47 | htmlReporter.config().setTheme(Theme.STANDARD);
48 |
49 | extent = new ExtentReports();
50 | extent.attachReporter(htmlReporter);
51 | extent.setReportUsesManualConfiguration(true);
52 |
53 | return extent;
54 | }
55 |
56 | public synchronized void onStart(ITestContext context) {
57 | System.out.println("Test Suite started!");
58 | }
59 |
60 | public synchronized void onFinish(ITestContext context) {
61 | System.out.println(("Test Suite is ending!"));
62 | extent.flush();
63 | test.remove();
64 | }
65 |
66 | public synchronized void onTestStart(ITestResult result) {
67 | String methodName = result.getMethod().getMethodName();
68 | String qualifiedName = result.getMethod().getQualifiedName();
69 | int last = qualifiedName.lastIndexOf(".");
70 | int mid = qualifiedName.substring(0, last).lastIndexOf(".");
71 | String className = qualifiedName.substring(mid + 1, last);
72 |
73 | System.out.println(methodName + " started!");
74 | ExtentTest extentTest = extent.createTest(result.getMethod().getMethodName(),
75 | result.getMethod().getDescription());
76 |
77 | extentTest.assignCategory(result.getTestContext().getSuite().getName());
78 | /*
79 | * methodName = StringUtils.capitalize(StringUtils.join(StringUtils.
80 | * splitByCharacterTypeCamelCase(methodName), StringUtils.SPACE));
81 | */
82 | extentTest.assignCategory(className);
83 | test.set(extentTest);
84 | test.get().getModel().setStartTime(getTime(result.getStartMillis()));
85 | }
86 |
87 | public synchronized void onTestSuccess(ITestResult result) {
88 | System.out.println((result.getMethod().getMethodName() + " passed!"));
89 | test.get().pass("Test passed");
90 | test.get().getModel().setEndTime(getTime(result.getEndMillis()));
91 | }
92 |
93 | public synchronized void onTestFailure(ITestResult result) {
94 | System.out.println((result.getMethod().getMethodName() + " failed!"));
95 | try {
96 | test.get().fail(result.getThrowable(),
97 | MediaEntityBuilder.createScreenCaptureFromPath(getScreenshot()).build());
98 | } catch (IOException e) {
99 | System.err
100 | .println("Exception thrown while updating test fail status " + Arrays.toString(e.getStackTrace()));
101 | }
102 | test.get().getModel().setEndTime(getTime(result.getEndMillis()));
103 | }
104 |
105 | @Override
106 | public synchronized void onTestSkipped(ITestResult result) {
107 | System.out.println((result.getMethod().getMethodName() + " skipped!"));
108 | try {
109 | test.get().skip(result.getThrowable(),
110 | MediaEntityBuilder.createScreenCaptureFromPath(getScreenshot()).build());
111 | } catch (IOException e) {
112 | System.err
113 | .println("Exception thrown while updating test skip status " + Arrays.toString(e.getStackTrace()));
114 | }
115 | test.get().getModel().setEndTime(getTime(result.getEndMillis()));
116 | }
117 |
118 | @Override
119 | public synchronized void onTestFailedButWithinSuccessPercentage(ITestResult result) {
120 | System.out.println(("onTestFailedButWithinSuccessPercentage for " + result.getMethod().getMethodName()));
121 | }
122 |
123 | private Date getTime(long millis) {
124 | Calendar calendar = Calendar.getInstance();
125 | calendar.setTimeInMillis(millis);
126 | return calendar.getTime();
127 | }
128 |
129 |
130 |
131 |
132 | }
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/listeners/TestAllureListener.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.listeners;
2 |
3 |
4 | import com.qa.hubspot.base.BasePage;
5 | import io.qameta.allure.Attachment;
6 | import org.openqa.selenium.OutputType;
7 | import org.openqa.selenium.TakesScreenshot;
8 | import org.openqa.selenium.WebDriver;
9 | import org.testng.ITestContext;
10 | import org.testng.ITestListener;
11 | import org.testng.ITestResult;
12 |
13 | public class TestAllureListener implements ITestListener {
14 |
15 | private static String getTestMethodName(ITestResult iTestResult) {
16 | return iTestResult.getMethod().getConstructorOrMethod().getName();
17 | }
18 |
19 | // Text attachments for Allure
20 | @Attachment(value = "Page screenshot", type = "image/png")
21 | public byte[] saveScreenshotPNG(WebDriver driver) {
22 | return ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);
23 | }
24 |
25 | // Text attachments for Allure
26 | @Attachment(value = "{0}", type = "text/plain")
27 | public static String saveTextLog(String message) {
28 | return message;
29 | }
30 |
31 | // HTML attachments for Allure
32 | @Attachment(value = "{0}", type = "text/html")
33 | public static String attachHtml(String html) {
34 | return html;
35 | }
36 |
37 | @Override
38 | public void onStart(ITestContext iTestContext) {
39 | System.out.println("I am in onStart method " + iTestContext.getName());
40 | iTestContext.setAttribute("WebDriver", BasePage.getDriver());
41 | }
42 |
43 | @Override
44 | public void onFinish(ITestContext iTestContext) {
45 | System.out.println("I am in onFinish method " + iTestContext.getName());
46 | }
47 |
48 | @Override
49 | public void onTestStart(ITestResult iTestResult) {
50 | System.out.println("I am in onTestStart method " + getTestMethodName(iTestResult) + " start");
51 | }
52 |
53 | @Override
54 | public void onTestSuccess(ITestResult iTestResult) {
55 | System.out.println("I am in onTestSuccess method " + getTestMethodName(iTestResult) + " succeed");
56 | }
57 |
58 | @Override
59 | public void onTestFailure(ITestResult iTestResult) {
60 | System.out.println("I am in onTestFailure method " + getTestMethodName(iTestResult) + " failed");
61 | Object testClass = iTestResult.getInstance();
62 | WebDriver driver = BasePage.getDriver();
63 | // Allure ScreenShotRobot and SaveTestLog
64 | if (driver instanceof WebDriver) {
65 | System.out.println("Screenshot captured for test case:" + getTestMethodName(iTestResult));
66 | saveScreenshotPNG(driver);
67 | }
68 | // Save a log on allure.
69 | saveTextLog(getTestMethodName(iTestResult) + " failed and screenshot taken!");
70 | }
71 |
72 | @Override
73 | public void onTestSkipped(ITestResult iTestResult) {
74 | System.out.println("I am in onTestSkipped method " + getTestMethodName(iTestResult) + " skipped");
75 | }
76 |
77 | @Override
78 | public void onTestFailedButWithinSuccessPercentage(ITestResult iTestResult) {
79 | System.out.println("Test failed but it is in defined success ratio " + getTestMethodName(iTestResult));
80 | }
81 |
82 | }
83 |
84 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/pages/ContactsPage.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.pages;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 | import org.openqa.selenium.support.ui.ExpectedConditions;
8 | import org.openqa.selenium.support.ui.WebDriverWait;
9 |
10 | import com.qa.hubspot.base.BasePage;
11 |
12 | public class ContactsPage extends BasePage {
13 |
14 | @FindBy(xpath = "//span[text()='Create contact']")
15 | WebElement createContactBtn;
16 |
17 | @FindBy(xpath = "//li//span[text()='Create contact']")
18 | WebElement createContactSecondBtn;
19 |
20 | @FindBy(id = "uid-ctrl-1")
21 | WebElement email;
22 |
23 | @FindBy(id = "uid-ctrl-2")
24 | WebElement firstName;
25 |
26 | @FindBy(id = "uid-ctrl-3")
27 | WebElement lastName;
28 |
29 | @FindBy(id = "uid-ctrl-5")
30 | WebElement jobTitle;
31 |
32 | public ContactsPage(WebDriver driver) {
33 | this.driver = driver;
34 | PageFactory.initElements(driver, this);
35 | }
36 |
37 | public void createNewContact(String emailVal, String firstname, String lastname, String jobtitle) {
38 | WebDriverWait wait = new WebDriverWait(driver, 10);
39 |
40 | wait.until(ExpectedConditions.elementToBeClickable(createContactBtn));
41 | createContactBtn.click();
42 |
43 | wait.until(ExpectedConditions.elementToBeClickable(email));
44 | email.sendKeys(emailVal);
45 |
46 | wait.until(ExpectedConditions.elementToBeClickable(firstName));
47 | firstName.sendKeys(firstname);
48 |
49 | wait.until(ExpectedConditions.elementToBeClickable(lastName));
50 | lastName.sendKeys(lastname);
51 |
52 | wait.until(ExpectedConditions.elementToBeClickable(jobTitle));
53 | jobTitle.sendKeys(jobtitle);
54 |
55 | wait.until(ExpectedConditions.elementToBeClickable(createContactSecondBtn));
56 | createContactSecondBtn.click();
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/pages/DealsPage.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.pages;
2 |
3 | import com.qa.hubspot.base.BasePage;
4 |
5 | public class DealsPage extends BasePage{
6 |
7 | public void getDeals(){
8 | driver.getTitle();
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/pages/HomePage.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.pages;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | import com.qa.hubspot.base.BasePage;
9 | import com.qa.hubspot.util.TimeUtil;
10 |
11 | public class HomePage extends BasePage {
12 |
13 | // 1. page factory -- page objects
14 | @FindBy(xpath = "//h1[@class='private-page__title']")
15 | WebElement homePageHeader;
16 |
17 | @FindBy(xpath = "//span[@class='account-name ']")
18 | WebElement accountName;
19 |
20 | @FindBy(id = "nav-primary-contacts-branch")
21 | WebElement parentContactsMenu;
22 |
23 | @FindBy(id = "nav-secondary-contacts")
24 | WebElement childContactsMenu;
25 |
26 | public HomePage(WebDriver driver) {
27 | this.driver = driver;
28 | PageFactory.initElements(driver, this);
29 | }
30 |
31 | // page actions:
32 | public String getHomePageTitle() {
33 | return driver.getTitle();
34 | }
35 |
36 | public String getHomePageHeaderText() {
37 | return homePageHeader.getText();
38 | }
39 |
40 | public boolean verifyHomePageHeader() {
41 | return homePageHeader.isDisplayed();
42 | }
43 |
44 | public String getAccountNameValue() {
45 | return accountName.getText();
46 | }
47 |
48 | public boolean verifyAccountName() {
49 | return accountName.isDisplayed();
50 | }
51 |
52 | public void clickOnContacts() {
53 | parentContactsMenu.click();
54 | TimeUtil.shortWait();
55 | childContactsMenu.click();
56 | }
57 |
58 | public ContactsPage goToContactsPage() {
59 | clickOnContacts();
60 | return new ContactsPage(driver);
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/pages/LoginPage.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.pages;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | import com.qa.hubspot.base.BasePage;
9 | import com.qa.hubspot.util.TimeUtil;
10 |
11 | import io.qameta.allure.Step;
12 |
13 | public class LoginPage extends BasePage {
14 |
15 | // 1. page factory -- page objects
16 | @FindBy(id = "username")
17 | WebElement emailId;
18 |
19 | @FindBy(id = "password")
20 | WebElement password;
21 |
22 | @FindBy(id = "loginBtn")
23 | WebElement loginButton;
24 |
25 | @FindBy(linkText = "Sign up")
26 | WebElement signUpLink;
27 |
28 | // 2. create the constructor of Loginpage class and initialize your page
29 | // objects
30 | public LoginPage(WebDriver driver) {
31 | this.driver = driver;
32 | PageFactory.initElements(driver, this);
33 | }
34 |
35 | // 3. Page Actions/ page lib:
36 | @Step("getting login page title and returning the page title step....")
37 | public String getLoginPageTitle() {
38 | return driver.getTitle();
39 | }
40 |
41 | @Step("verifying sign up link is diplayed step....")
42 | public boolean verifySigupLinkDisplayed() {
43 | return signUpLink.isDisplayed();
44 | }
45 |
46 | @Step("login with : {0} and {1}")
47 | public HomePage doLogin(String username, String pwd) {
48 | System.out.println("credetials: " + username + "/" + pwd);
49 | emailId.sendKeys(username);
50 | password.sendKeys(pwd);
51 | loginButton.click();
52 | TimeUtil.mediumWait();
53 | return new HomePage(driver);
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/pages/LoginPageNPF.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.pages;
2 |
3 | import org.openqa.selenium.By;
4 | import org.openqa.selenium.WebDriver;
5 |
6 | import com.qa.hubspot.base.BasePage;
7 | import com.qa.hubspot.constants.Constants;
8 | import com.qa.hubspot.util.ElementActions;
9 |
10 | public class LoginPageNPF extends BasePage {
11 |
12 | ElementActions elementActions;
13 | // NPF
14 | // 1. define locators: Page Objects but without PAge Factory
15 | By emailId = By.id("username");
16 | By password = By.id("password");
17 | By loginButton = By.id("loginBtn");
18 | By signUpLink = By.linkText("Sign up");
19 |
20 | public LoginPageNPF(WebDriver driver) {
21 | this.driver = driver;
22 | elementActions = new ElementActions(driver);
23 | }
24 |
25 | // page actions:
26 | public String getLoginPageTitle() {
27 | elementActions.waitForTitlePresent(Constants.LOGIN_PAGE_TITLE);
28 | return elementActions.getPageTitle();
29 | }
30 |
31 | public boolean verifySigupLinkDisplayed() {
32 | return elementActions.elementIsDisplayed(signUpLink);
33 | }
34 |
35 | public HomePage doLogin(String username, String pwd) {
36 | System.out.println("credentials: " + username + "/" + pwd);
37 | elementActions.elementSendKeys(emailId, username);
38 | elementActions.elementSendKeys(password, pwd);
39 | elementActions.elementClick(loginButton);
40 |
41 | return new HomePage(driver);
42 |
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/testdata/HubSpotTestData.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/src/main/java/com/qa/hubspot/testdata/HubSpotTestData.xlsx
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/util/ElementActions.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.util;
2 |
3 | import org.openqa.selenium.By;
4 | import org.openqa.selenium.WebDriver;
5 | import org.openqa.selenium.WebElement;
6 | import org.openqa.selenium.support.ui.ExpectedConditions;
7 | import org.openqa.selenium.support.ui.WebDriverWait;
8 |
9 | import com.qa.hubspot.base.BasePage;
10 |
11 | public class ElementActions extends BasePage {
12 |
13 | public ElementActions(WebDriver driver) {
14 | this.driver = driver;
15 | }
16 |
17 | /**
18 | * This method is used to create the webelement on the basis of given By
19 | * locator
20 | *
21 | * @param locator
22 | * @return webelement
23 | */
24 | public WebElement getElement(By locator) {
25 | WebElement element = null;
26 | try {
27 | element = driver.findElement(locator);
28 | } catch (Exception e) {
29 | System.out.println("Some exception occured while creating webelement " + locator);
30 | }
31 | return element;
32 | }
33 |
34 | /**
35 | * this method is used to wait fot the element to be present
36 | * @param locator
37 | */
38 | public void waitForElementPresent(By locator) {
39 | WebDriverWait wait = new WebDriverWait(driver, 20);
40 | wait.until(ExpectedConditions.presenceOfElementLocated(locator));
41 | }
42 |
43 | /**
44 | *
45 | * @param title
46 | */
47 | public void waitForTitlePresent(String title) {
48 | WebDriverWait wait = new WebDriverWait(driver, 20);
49 | wait.until(ExpectedConditions.titleContains(title));
50 | }
51 |
52 | /**
53 | * This method is used to check element is displayed or not
54 | * @param locator
55 | * @return
56 | */
57 | public boolean elementIsDisplayed(By locator) {
58 | waitForElementPresent(locator);
59 | return getElement(locator).isDisplayed();
60 | }
61 |
62 | /**
63 | * this method is used to click on an element
64 | * @param locator
65 | */
66 | public void elementClick(By locator) {
67 | getElement(locator).click();
68 | }
69 |
70 | /**
71 | * this method is used to pass the values
72 | * @param locator
73 | * @param value
74 | */
75 | public void elementSendKeys(By locator, String value) {
76 | getElement(locator).sendKeys(value);
77 | }
78 |
79 | /**
80 | *
81 | * @return
82 | */
83 | public String getPageTitle() {
84 | String title = null;
85 | try {
86 | title = driver.getTitle();
87 | } catch (Exception e) {
88 | System.out.println("some exception occurred while getting the title " + title);
89 | }
90 | return title;
91 | }
92 |
93 | }
94 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/util/ExcelUtil.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.util;
2 |
3 | import java.io.FileInputStream;
4 | import java.io.FileNotFoundException;
5 | import java.io.IOException;
6 |
7 | import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
8 | import org.apache.poi.ss.usermodel.Sheet;
9 | import org.apache.poi.ss.usermodel.Workbook;
10 | import org.apache.poi.ss.usermodel.WorkbookFactory;
11 |
12 | public class ExcelUtil {
13 |
14 | public static Workbook book;
15 | public static Sheet sheet;
16 |
17 | public static String TEST_DATA_SHEET_PATH = "./src"
18 | + "/main/java/com/qa/hubspot/testdata/HubSpotTestData.xlsx";
19 |
20 | public static Object[][] getTestData(String sheetName) {
21 |
22 | FileInputStream file = null;
23 |
24 | try {
25 | file = new FileInputStream(TEST_DATA_SHEET_PATH);
26 | } catch (FileNotFoundException e) {
27 | e.printStackTrace();
28 | }
29 |
30 | try {
31 | book = WorkbookFactory.create(file);
32 | } catch (InvalidFormatException e) {
33 | e.printStackTrace();
34 | } catch (IOException e) {
35 | e.printStackTrace();
36 | }
37 |
38 | sheet = book.getSheet(sheetName);
39 |
40 | Object data[][] = new Object[sheet.getLastRowNum()][sheet.getRow(0).getLastCellNum()];
41 |
42 | for (int i = 0; i < sheet.getLastRowNum(); i++) {
43 | for (int k = 0; k < sheet.getRow(0).getLastCellNum(); k++) {
44 | data[i][k] = sheet.getRow(i + 1).getCell(k).toString();
45 | }
46 | }
47 |
48 | return data;
49 |
50 | }
51 |
52 | }
53 |
--------------------------------------------------------------------------------
/src/main/java/com/qa/hubspot/util/TimeUtil.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.util;
2 |
3 | public class TimeUtil {
4 |
5 | public static void shortWait(){
6 | try {
7 | Thread.sleep(3000);
8 | } catch (InterruptedException e) {
9 | e.printStackTrace();
10 | }
11 | }
12 |
13 | public static void mediumWait(){
14 | try {
15 | Thread.sleep(7000);
16 | } catch (InterruptedException e) {
17 | e.printStackTrace();
18 | }
19 | }
20 |
21 |
22 | public static void longWait(){
23 | try {
24 | Thread.sleep(10000);
25 | } catch (InterruptedException e) {
26 | e.printStackTrace();
27 | }
28 | }
29 |
30 |
31 |
32 |
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/test/java/com/qa/hubspot/tests/ContactsPageTest.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.tests;
2 |
3 | import java.util.Properties;
4 |
5 | import org.openqa.selenium.WebDriver;
6 | import org.testng.annotations.AfterMethod;
7 | import org.testng.annotations.BeforeMethod;
8 | import org.testng.annotations.DataProvider;
9 | import org.testng.annotations.Listeners;
10 | import org.testng.annotations.Test;
11 |
12 | import com.qa.hubspot.base.BasePage;
13 | import com.qa.hubspot.pages.ContactsPage;
14 | import com.qa.hubspot.pages.HomePage;
15 | import com.qa.hubspot.pages.LoginPage;
16 | import com.qa.hubspot.util.ExcelUtil;
17 |
18 | //@Listeners(pdfListener.class)
19 | public class ContactsPageTest {
20 |
21 |
22 | WebDriver driver;
23 | Properties prop;
24 | BasePage basePage;
25 | LoginPage loginPage;
26 | HomePage homePage;
27 | ContactsPage contactsPage;
28 |
29 | @BeforeMethod
30 | public void setUp(){
31 | basePage = new BasePage();
32 | prop = basePage.initialize_Properties();
33 | driver = basePage.initialize_driver(prop);
34 | loginPage = new LoginPage(driver);
35 | homePage = loginPage.doLogin(prop.getProperty("username"), prop.getProperty("password"));
36 | contactsPage = homePage.goToContactsPage();
37 | }
38 |
39 |
40 | @DataProvider(name="getContactsData")
41 | public Object[][] getContactsTestData(){
42 | Object contactsData[][] = ExcelUtil.getTestData("contacts");
43 | return contactsData;
44 | }
45 |
46 |
47 | @Test(dataProvider="getContactsData")
48 | public void createNewContactTest(String email, String firstName, String lastName, String jobTitle){
49 | contactsPage.createNewContact(email,firstName,lastName,jobTitle);
50 | }
51 |
52 |
53 |
54 |
55 | @AfterMethod
56 | public void tearDown(){
57 | driver.quit();
58 | }
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/src/test/java/com/qa/hubspot/tests/HomePageTest.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.tests;
2 |
3 | import java.util.Properties;
4 |
5 | import org.openqa.selenium.WebDriver;
6 | import org.testng.Assert;
7 | import org.testng.annotations.AfterMethod;
8 | import org.testng.annotations.BeforeMethod;
9 | import org.testng.annotations.Listeners;
10 | import org.testng.annotations.Test;
11 |
12 | import com.qa.hubspot.base.BasePage;
13 | import com.qa.hubspot.constants.Constants;
14 | import com.qa.hubspot.pages.HomePage;
15 | import com.qa.hubspot.pages.LoginPage;
16 |
17 | //@Listeners(pdfListener.class)
18 | public class HomePageTest {
19 |
20 | WebDriver driver;
21 | Properties prop;
22 | BasePage basePage;
23 | LoginPage loginPage;
24 | HomePage homePage;
25 |
26 | @BeforeMethod
27 | public void setUp(){
28 | basePage = new BasePage();
29 | prop = basePage.initialize_Properties();
30 | driver = basePage.initialize_driver(prop);
31 | loginPage = new LoginPage(driver);
32 | homePage = loginPage.doLogin(prop.getProperty("username"), prop.getProperty("password"));
33 | }
34 |
35 | @Test(priority=1)
36 | public void verifyHomePageTitleTest(){
37 | String title = homePage.getHomePageTitle();
38 | System.out.println("home page title is : "+ title);
39 | Assert.assertEquals(title, Constants.HOME_PAGE_TITLE);
40 | }
41 |
42 | @Test(priority=2)
43 | public void veifyHomePageHeaderTest(){
44 | Assert.assertTrue(homePage.verifyHomePageHeader());
45 | Assert.assertEquals(homePage.getHomePageHeaderText(), Constants.HOME_PAGE_HEADER);
46 | }
47 |
48 |
49 | @AfterMethod
50 | public void tearDown(){
51 | driver.quit();
52 | }
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/src/test/java/com/qa/hubspot/tests/LoginPageTest.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.tests;
2 |
3 | import java.util.Properties;
4 |
5 | import org.openqa.selenium.WebDriver;
6 | import org.testng.Assert;
7 | import org.testng.annotations.AfterMethod;
8 | import org.testng.annotations.BeforeMethod;
9 | import org.testng.annotations.Listeners;
10 | import org.testng.annotations.Test;
11 |
12 | import com.qa.hubspot.base.BasePage;
13 | import com.qa.hubspot.constants.Constants;
14 | import com.qa.hubspot.listeners.ExtentReportListener;
15 | import com.qa.hubspot.listeners.TestAllureListener;
16 | import com.qa.hubspot.pages.LoginPage;
17 |
18 | import io.qameta.allure.Description;
19 | import io.qameta.allure.Epic;
20 | import io.qameta.allure.Feature;
21 | import io.qameta.allure.Severity;
22 | import io.qameta.allure.SeverityLevel;
23 |
24 | @Epic("Epic - hub spot login page module")
25 | @Feature("US-101: define the login feature for hub spot application")
26 | @Listeners(TestAllureListener.class)
27 | public class LoginPageTest {
28 |
29 | WebDriver driver;
30 | Properties prop;
31 | BasePage basePage;
32 | LoginPage loginPage;
33 |
34 | @BeforeMethod
35 | public void setUp(){
36 | basePage = new BasePage();
37 | prop = basePage.initialize_Properties();
38 | driver = basePage.initialize_driver(prop);
39 | loginPage = new LoginPage(driver);
40 | }
41 |
42 |
43 | @Test(priority=1)
44 | @Description("test cases name: verify login page title - positive test case")
45 | @Severity(SeverityLevel.NORMAL)
46 | public void verifyLoginPageTitleTest(){
47 | String title = loginPage.getLoginPageTitle();
48 | System.out.println("the login page title is: "+ title);
49 | Assert.assertEquals(title, Constants.LOGIN_PAGE_TITLE);
50 | }
51 |
52 | @Test(priority=2)
53 | @Description("test cases name: verifySignUpLinkTest - positive test case")
54 | @Severity(SeverityLevel.CRITICAL)
55 | public void verifySignUpLinkTest(){
56 | Assert.assertTrue(loginPage.verifySigupLinkDisplayed());
57 | }
58 |
59 |
60 | @Test(priority=3, enabled=true)
61 | @Description("test cases name: loginTestWithCorrectCredentialsTest - positive test case")
62 | @Severity(SeverityLevel.BLOCKER)
63 | public void loginTestWithCorrectCredentialsTest(){
64 | loginPage.doLogin(prop.getProperty("username"), prop.getProperty("password"));
65 | }
66 |
67 |
68 | @Test(priority=4, enabled=true)
69 | @Description("test cases name: loginTestWithInCorrectCredentialsTest - negative test case")
70 | @Severity(SeverityLevel.NORMAL)
71 | public void loginTestWithInCorrectCredentialsTest(){
72 | loginPage.doLogin("test@ggg.com", "tete123");
73 | }
74 |
75 |
76 |
77 | @AfterMethod
78 | public void tearDown(){
79 | driver.quit();
80 | }
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/src/test/java/com/qa/hubspot/tests/LoginPageTestNPF.java:
--------------------------------------------------------------------------------
1 | package com.qa.hubspot.tests;
2 |
3 | import java.util.Properties;
4 |
5 | import org.openqa.selenium.WebDriver;
6 | import org.testng.Assert;
7 | import org.testng.annotations.AfterMethod;
8 | import org.testng.annotations.BeforeMethod;
9 | import org.testng.annotations.Test;
10 |
11 | import com.qa.hubspot.base.BasePage;
12 | import com.qa.hubspot.pages.LoginPage;
13 | import com.qa.hubspot.pages.LoginPageNPF;
14 |
15 | public class LoginPageTestNPF {
16 |
17 | WebDriver driver;
18 | Properties prop;
19 | BasePage basePage;
20 | LoginPageNPF loginPageNpf;
21 |
22 | @BeforeMethod
23 | public void setUp() {
24 | basePage = new BasePage();
25 | prop = basePage.initialize_Properties();
26 | driver = basePage.initialize_driver(prop);
27 | loginPageNpf = new LoginPageNPF(driver);
28 | }
29 |
30 | @Test(priority = 1)
31 | public void verifySignUpLinkTest() {
32 | Assert.assertTrue(loginPageNpf.verifySigupLinkDisplayed());
33 | }
34 |
35 | @AfterMethod
36 | public void tearDown() {
37 | driver.quit();
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/test/resources/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | sonarqube:
5 | image: sonarqube:6.7.1
6 | container_name: sonarqube
7 | restart: always
8 | environment:
9 | - SONARQUBE_JDBC_USERNAME=sonar
10 | - SONARQUBE_JDBC_PASSWORD=password1
11 | - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonarqube
12 | ports:
13 | - "9000:9000"
14 | - "9092:9092"
15 | volumes:
16 | - sonarqube_conf:/opt/sonarqube/conf
17 | - sonarqube_data:/opt/sonarqube/data
18 | - sonarqube_extensions:/opt/sonarqube/extensions
19 | - sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
20 |
21 | db:
22 | image: postgres:10.1
23 | container_name: db
24 | restart: always
25 | environment:
26 | - POSTGRES_USER=sonar
27 | - POSTGRES_PASSWORD=password1
28 | - POSTGRES_DB=sonarqube
29 | volumes:
30 | - sonarqube_db:/var/lib/postgresql
31 | - postgresql_data:/var/lib/postgresql/data
32 |
33 | volumes:
34 | postgresql_data:
35 | sonarqube_bundled-plugins:
36 | sonarqube_conf:
37 | sonarqube_data:
38 | sonarqube_db:
39 | sonarqube_extensions:
--------------------------------------------------------------------------------
/src/test/resources/testrunners/testng_regression.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/testrunners/testng_sanity.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/target/classes/META-INF/maven/MayPOMSeries/MayPOMSeries/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Sat Aug 24 10:00:18 IST 2019
3 | version=0.0.1-SNAPSHOT
4 | groupId=MayPOMSeries
5 | m2e.projectName=MayPOMSeries
6 | m2e.projectLocation=/Users/NaveenKhunteta/Documents/workspace/MayPOMSeries
7 | artifactId=MayPOMSeries
8 |
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/base/BasePage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/base/BasePage.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/constants/Constants.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/constants/Constants.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/listeners/ExtentReportListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/listeners/ExtentReportListener.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/listeners/ExtentReportListener1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/listeners/ExtentReportListener1.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/listeners/TestAllureListener.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/listeners/TestAllureListener.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/pages/ContactsPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/pages/ContactsPage.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/pages/DealsPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/pages/DealsPage.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/pages/HomePage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/pages/HomePage.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/pages/LoginPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/pages/LoginPage.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/pages/LoginPageNPF.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/pages/LoginPageNPF.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/tests/ContactsPageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/tests/ContactsPageTest.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/tests/HomePageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/tests/HomePageTest.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/tests/LoginPageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/tests/LoginPageTest.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/tests/LoginPageTestNPF.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/tests/LoginPageTestNPF.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/util/ElementActions.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/util/ElementActions.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/util/ExcelUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/util/ExcelUtil.class
--------------------------------------------------------------------------------
/target/classes/com/qa/hubspot/util/TimeUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/classes/com/qa/hubspot/util/TimeUtil.class
--------------------------------------------------------------------------------
/target/container-test-sources.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/container-test-sources.jar
--------------------------------------------------------------------------------
/target/container-test.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/container-test.jar
--------------------------------------------------------------------------------
/target/libs/allure-java-commons-2.12.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/allure-java-commons-2.12.0.jar
--------------------------------------------------------------------------------
/target/libs/allure-model-2.12.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/allure-model-2.12.0.jar
--------------------------------------------------------------------------------
/target/libs/allure-testng-2.12.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/allure-testng-2.12.0.jar
--------------------------------------------------------------------------------
/target/libs/animal-sniffer-annotations-1.14.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/animal-sniffer-annotations-1.14.jar
--------------------------------------------------------------------------------
/target/libs/bsh-2.0b6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/bsh-2.0b6.jar
--------------------------------------------------------------------------------
/target/libs/bson-3.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/bson-3.3.0.jar
--------------------------------------------------------------------------------
/target/libs/byte-buddy-1.8.15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/byte-buddy-1.8.15.jar
--------------------------------------------------------------------------------
/target/libs/checker-compat-qual-2.0.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/checker-compat-qual-2.0.0.jar
--------------------------------------------------------------------------------
/target/libs/commons-codec-1.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/commons-codec-1.5.jar
--------------------------------------------------------------------------------
/target/libs/commons-compress-1.18.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/commons-compress-1.18.jar
--------------------------------------------------------------------------------
/target/libs/commons-exec-1.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/commons-exec-1.3.jar
--------------------------------------------------------------------------------
/target/libs/commons-io-2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/commons-io-2.6.jar
--------------------------------------------------------------------------------
/target/libs/commons-lang3-3.8.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/commons-lang3-3.8.1.jar
--------------------------------------------------------------------------------
/target/libs/commons-logging-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/commons-logging-1.2.jar
--------------------------------------------------------------------------------
/target/libs/dom4j-1.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/dom4j-1.6.1.jar
--------------------------------------------------------------------------------
/target/libs/error_prone_annotations-2.1.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/error_prone_annotations-2.1.3.jar
--------------------------------------------------------------------------------
/target/libs/extentreports-3.1.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/extentreports-3.1.5.jar
--------------------------------------------------------------------------------
/target/libs/freemarker-2.3.23.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/freemarker-2.3.23.jar
--------------------------------------------------------------------------------
/target/libs/gson-2.8.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/gson-2.8.5.jar
--------------------------------------------------------------------------------
/target/libs/guava-25.0-jre.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/guava-25.0-jre.jar
--------------------------------------------------------------------------------
/target/libs/httpclient-4.5.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/httpclient-4.5.6.jar
--------------------------------------------------------------------------------
/target/libs/httpcore-4.4.10.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/httpcore-4.4.10.jar
--------------------------------------------------------------------------------
/target/libs/httpmime-4.5.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/httpmime-4.5.2.jar
--------------------------------------------------------------------------------
/target/libs/j2objc-annotations-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/j2objc-annotations-1.1.jar
--------------------------------------------------------------------------------
/target/libs/jackson-annotations-2.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jackson-annotations-2.9.0.jar
--------------------------------------------------------------------------------
/target/libs/jackson-core-2.9.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jackson-core-2.9.8.jar
--------------------------------------------------------------------------------
/target/libs/jackson-databind-2.9.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jackson-databind-2.9.8.jar
--------------------------------------------------------------------------------
/target/libs/jarchivelib-1.0.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jarchivelib-1.0.0.jar
--------------------------------------------------------------------------------
/target/libs/jcommander-1.72.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jcommander-1.72.jar
--------------------------------------------------------------------------------
/target/libs/joor-java-8-0.9.10.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/joor-java-8-0.9.10.jar
--------------------------------------------------------------------------------
/target/libs/jsoup-1.11.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jsoup-1.11.3.jar
--------------------------------------------------------------------------------
/target/libs/jsr305-1.3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/jsr305-1.3.9.jar
--------------------------------------------------------------------------------
/target/libs/log4j-1.2.8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/log4j-1.2.8.jar
--------------------------------------------------------------------------------
/target/libs/mongodb-driver-3.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/mongodb-driver-3.3.0.jar
--------------------------------------------------------------------------------
/target/libs/mongodb-driver-core-3.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/mongodb-driver-core-3.3.0.jar
--------------------------------------------------------------------------------
/target/libs/okhttp-3.11.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/okhttp-3.11.0.jar
--------------------------------------------------------------------------------
/target/libs/okio-1.14.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/okio-1.14.0.jar
--------------------------------------------------------------------------------
/target/libs/ooxml-schemas-1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/ooxml-schemas-1.1.jar
--------------------------------------------------------------------------------
/target/libs/openxml4j-1.0-beta.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/openxml4j-1.0-beta.jar
--------------------------------------------------------------------------------
/target/libs/poi-3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/poi-3.9.jar
--------------------------------------------------------------------------------
/target/libs/poi-ooxml-3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/poi-ooxml-3.9.jar
--------------------------------------------------------------------------------
/target/libs/poi-ooxml-schemas-3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/poi-ooxml-schemas-3.9.jar
--------------------------------------------------------------------------------
/target/libs/poi-scratchpad-3.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/poi-scratchpad-3.9.jar
--------------------------------------------------------------------------------
/target/libs/selenium-api-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-api-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-chrome-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-chrome-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-edge-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-edge-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-firefox-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-firefox-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-ie-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-ie-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-java-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-java-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-opera-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-opera-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-remote-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-remote-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-safari-driver-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-safari-driver-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/selenium-support-3.141.59.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/selenium-support-3.141.59.jar
--------------------------------------------------------------------------------
/target/libs/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/target/libs/stax-api-1.0.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/stax-api-1.0.1.jar
--------------------------------------------------------------------------------
/target/libs/testng-6.14.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/testng-6.14.3.jar
--------------------------------------------------------------------------------
/target/libs/tika-core-1.20.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/tika-core-1.20.jar
--------------------------------------------------------------------------------
/target/libs/webdrivermanager-3.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/webdrivermanager-3.6.1.jar
--------------------------------------------------------------------------------
/target/libs/xml-apis-1.0.b2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/xml-apis-1.0.b2.jar
--------------------------------------------------------------------------------
/target/libs/xmlbeans-2.3.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/libs/xmlbeans-2.3.0.jar
--------------------------------------------------------------------------------
/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | version=0.0.1-SNAPSHOT
2 | groupId=MayPOMSeries
3 | artifactId=MayPOMSeries
4 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com/qa/hubspot/util/TimeUtil.class
2 | com/qa/hubspot/pages/LoginPage.class
3 | com/qa/hubspot/pages/HomePage.class
4 | com/qa/hubspot/listeners/ExtentReportListener1.class
5 | com/qa/hubspot/base/BasePage.class
6 | com/qa/hubspot/constants/Constants.class
7 | com/qa/hubspot/listeners/TestAllureListener.class
8 | com/qa/hubspot/pages/ContactsPage.class
9 | com/qa/hubspot/util/ExcelUtil.class
10 | com/qa/hubspot/tests/LoginPageTestNPF.class
11 | com/qa/hubspot/util/ElementActions.class
12 | com/qa/hubspot/tests/ContactsPageTest.class
13 | com/qa/hubspot/pages/DealsPage.class
14 | com/qa/hubspot/tests/LoginPageTest.class
15 | com/qa/hubspot/listeners/ExtentReportListener.class
16 | com/qa/hubspot/pages/LoginPageNPF.class
17 | com/qa/hubspot/tests/HomePageTest.class
18 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/pages/LoginPageNPF.java
2 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/listeners/ExtentReportListener1.java
3 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/util/TimeUtil.java
4 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/pages/ContactsPage.java
5 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/listeners/pdfListener.java
6 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/util/ExcelUtil.java
7 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/listeners/TestAllureListener.java
8 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/pages/LoginPage.java
9 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/listeners/ExtentReportListener.java
10 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/ContactsPageTest.java
11 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/pages/HomePage.java
12 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/util/ElementActions.java
13 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/base/BasePage.java
14 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/LoginPageTestNPF.java
15 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/constants/Constants.java
16 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/LoginPageTest.java
17 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/HomePageTest.java
18 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/main/java/com/qa/hubspot/pages/DealsPage.java
19 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com/qa/hubspot/tests/ContactsPageTest.class
2 | com/qa/hubspot/tests/LoginPageTest.class
3 | com/qa/hubspot/tests/HomePageTest.class
4 | com/qa/hubspot/tests/LoginPageTestNPF.class
5 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/LoginPageTestNPF.java
2 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/LoginPageTest.java
3 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/HomePageTest.java
4 | /Users/NaveenKhunteta/Documents/workspace/MayPOMSeries/src/test/java/com/qa/hubspot/tests/ContactsPageTest.java
5 |
--------------------------------------------------------------------------------
/target/sonar/.sonar_lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/sonar/.sonar_lock
--------------------------------------------------------------------------------
/target/sonar/report-task.txt:
--------------------------------------------------------------------------------
1 | projectKey=MayPOMSeries:MayPOMSeries
2 | serverUrl=http://localhost:9000
3 | serverVersion=6.7.1.35068
4 | dashboardUrl=http://localhost:9000/dashboard/index/MayPOMSeries:MayPOMSeries
5 | ceTaskId=AWy_s8P_hYKXmW7aoVov
6 | ceTaskUrl=http://localhost:9000/api/ce/task?id=AWy_s8P_hYKXmW7aoVov
7 |
--------------------------------------------------------------------------------
/target/test-classes/com/qa/hubspot/tests/ContactsPageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/test-classes/com/qa/hubspot/tests/ContactsPageTest.class
--------------------------------------------------------------------------------
/target/test-classes/com/qa/hubspot/tests/HomePageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/test-classes/com/qa/hubspot/tests/HomePageTest.class
--------------------------------------------------------------------------------
/target/test-classes/com/qa/hubspot/tests/LoginPageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/test-classes/com/qa/hubspot/tests/LoginPageTest.class
--------------------------------------------------------------------------------
/target/test-classes/com/qa/hubspot/tests/LoginPageTestNPF.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/target/test-classes/com/qa/hubspot/tests/LoginPageTestNPF.class
--------------------------------------------------------------------------------
/target/test-classes/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | sonarqube:
5 | image: sonarqube:6.7.1
6 | container_name: sonarqube
7 | restart: always
8 | environment:
9 | - SONARQUBE_JDBC_USERNAME=sonar
10 | - SONARQUBE_JDBC_PASSWORD=password1
11 | - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonarqube
12 | ports:
13 | - "9000:9000"
14 | - "9092:9092"
15 | volumes:
16 | - sonarqube_conf:/opt/sonarqube/conf
17 | - sonarqube_data:/opt/sonarqube/data
18 | - sonarqube_extensions:/opt/sonarqube/extensions
19 | - sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
20 |
21 | db:
22 | image: postgres:10.1
23 | container_name: db
24 | restart: always
25 | environment:
26 | - POSTGRES_USER=sonar
27 | - POSTGRES_PASSWORD=password1
28 | - POSTGRES_DB=sonarqube
29 | volumes:
30 | - sonarqube_db:/var/lib/postgresql
31 | - postgresql_data:/var/lib/postgresql/data
32 |
33 | volumes:
34 | postgresql_data:
35 | sonarqube_bundled-plugins:
36 | sonarqube_conf:
37 | sonarqube_data:
38 | sonarqube_db:
39 | sonarqube_extensions:
--------------------------------------------------------------------------------
/target/test-classes/testrunners/testng_regression.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/target/test-classes/testrunners/testng_sanity.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/test-output/Default suite/Default test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/test-output/Default suite/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Regression Test Automation Suite/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Sanity Test Automation Suite/Hub Spot App Sanity Test Cases.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Sanity Test Automation Suite/Hub Spot App Test Cases.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestNG: Hub Spot App Test Cases
4 |
5 |
6 |
7 |
11 |
53 |
54 |
55 |
56 | Hub Spot App Test Cases
57 |
58 | Tests passed/Failed/Skipped: 4/0/0
59 |
60 | Started on: Wed Jul 17 08:46:39 IST 2019
61 |
62 | Total time: 54 seconds (54561 ms)
63 |
64 | Included groups:
65 |
66 | Excluded groups:
67 |
68 |
69 | (Hover the method name to see the test class name)
70 |
71 | PASSED TESTS
72 | Test method
73 | Exception
74 | Time (seconds)
75 | Instance
76 |
77 |
78 | loginTestWithCorrectCredentialsTest Test class: com.qa.hubspot.tests.LoginPageTest
79 |
80 | 7
81 | com.qa.hubspot.tests.LoginPageTest@6e1567f1
82 |
83 | loginTestWithInCorrectCredentialsTest Test class: com.qa.hubspot.tests.LoginPageTest
84 |
85 | 7
86 | com.qa.hubspot.tests.LoginPageTest@6e1567f1
87 |
88 | verifyLoginPageTitleTest Test class: com.qa.hubspot.tests.LoginPageTest
89 |
90 | 0
91 | com.qa.hubspot.tests.LoginPageTest@6e1567f1
92 |
93 | verifySignUpLinkTest Test class: com.qa.hubspot.tests.LoginPageTest
94 |
95 | 0
96 | com.qa.hubspot.tests.LoginPageTest@6e1567f1
97 |
98 |
99 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Sanity Test Automation Suite/Hub Spot App Test Cases.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Sanity Test Automation Suite/Sub Spot App Test Cases.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestNG: Sub Spot App Test Cases
4 |
5 |
6 |
7 |
11 |
53 |
54 |
55 |
56 | Sub Spot App Test Cases
57 |
58 | Tests passed/Failed/Skipped: 4/0/0
59 |
60 | Started on: Wed Jul 17 08:43:08 IST 2019
61 |
62 | Total time: 54 seconds (54258 ms)
63 |
64 | Included groups:
65 |
66 | Excluded groups:
67 |
68 |
69 | (Hover the method name to see the test class name)
70 |
71 | PASSED TESTS
72 | Test method
73 | Exception
74 | Time (seconds)
75 | Instance
76 |
77 |
78 | loginTestWithCorrectCredentialsTest Test class: com.qa.hubspot.tests.LoginPageTest
79 |
80 | 7
81 | com.qa.hubspot.tests.LoginPageTest@57fffcd7
82 |
83 | loginTestWithInCorrectCredentialsTest Test class: com.qa.hubspot.tests.LoginPageTest
84 |
85 | 7
86 | com.qa.hubspot.tests.LoginPageTest@57fffcd7
87 |
88 | verifyLoginPageTitleTest Test class: com.qa.hubspot.tests.LoginPageTest
89 |
90 | 0
91 | com.qa.hubspot.tests.LoginPageTest@57fffcd7
92 |
93 | verifySignUpLinkTest Test class: com.qa.hubspot.tests.LoginPageTest
94 |
95 | 0
96 | com.qa.hubspot.tests.LoginPageTest@57fffcd7
97 |
98 |
99 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Sanity Test Automation Suite/Sub Spot App Test Cases.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test-output/Hub Spot Sanity Test Automation Suite/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/test-output/bullet_point.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/test-output/bullet_point.png
--------------------------------------------------------------------------------
/test-output/collapseall.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/test-output/collapseall.gif
--------------------------------------------------------------------------------
/test-output/emailable-report.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | TestNG Report
6 |
7 |
8 |
9 |
10 | Test # Passed # Skipped # Failed Time (ms) Included Groups Excluded Groups
11 | Default suite
12 | Default test 3 0 1 81,097
13 |
14 |
16 | Default test com.qa.hubspot.tests.LoginPageTest#verifyLoginPageTitleTest Exception java.lang.AssertionError: expected [HubSpot Login123] but found [HubSpot Login]
17 | at org.testng.Assert.fail(Assert.java:96)
18 | at org.testng.Assert.failNotEquals(Assert.java:776)
19 | at org.testng.Assert.assertEqualsImpl(Assert.java:137)
20 | at org.testng.Assert.assertEquals(Assert.java:118)
21 | at org.testng.Assert.assertEquals(Assert.java:453)
22 | at org.testng.Assert.assertEquals(Assert.java:463)
23 | at com.qa.hubspot.tests.LoginPageTest.verifyLoginPageTitleTest(LoginPageTest.java:49)
24 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
26 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
27 | at java.lang.reflect.Method.invoke(Method.java:498)
28 | at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
29 | at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
30 | at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
31 | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
32 | at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
33 | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
34 | at org.testng.TestRunner.privateRun(TestRunner.java:648)
35 | at org.testng.TestRunner.run(TestRunner.java:505)
36 | at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
37 | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
38 | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
39 | at org.testng.SuiteRunner.run(SuiteRunner.java:364)
40 | at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
41 | at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
42 | at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
43 | at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
44 | at org.testng.TestNG.runSuites(TestNG.java:1049)
45 | at org.testng.TestNG.run(TestNG.java:1017)
46 | at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
47 | at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
48 | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
49 |
back to summary
50 | com.qa.hubspot.tests.LoginPageTest#loginTestWithCorrectCredentialsTest back to summary
51 | com.qa.hubspot.tests.LoginPageTest#loginTestWithInCorrectCredentialsTest back to summary
52 | com.qa.hubspot.tests.LoginPageTest#verifySignUpLinkTest back to summary
53 |
54 |
55 |
--------------------------------------------------------------------------------
/test-output/failed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/test-output/failed.png
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.qa.hubspot.tests.ContactsPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.qa.hubspot.tests.HomePageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.qa.hubspot.tests.LoginPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.qa.hubspot.tests.LoginPageTestNPF.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test-output/navigator-bullet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/test-output/navigator-bullet.png
--------------------------------------------------------------------------------
/test-output/old/Default suite/Default test.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Default test]
--------------------------------------------------------------------------------
/test-output/old/Default suite/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name
4 | Method name
5 | Groups
6 |
7 | com.qa.hubspot.tests.LoginPageTest
8 |
9 |
10 | @Test
11 |
12 |
13 |
14 | loginTestWithCorrectCredentialsTest
15 |
16 |
17 |
18 | verifyLoginPageTitleTest
19 |
20 |
21 |
22 | verifySignUpLinkTest
23 |
24 |
25 |
26 | loginTestWithInCorrectCredentialsTest
27 |
28 |
29 | @BeforeClass
30 |
31 |
32 | @BeforeMethod
33 |
34 |
35 |
36 | setUp
37 |
38 |
39 | @AfterMethod
40 |
41 |
42 |
43 | tearDown
44 |
45 |
46 | @AfterClass
47 |
48 |
49 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/groups.html:
--------------------------------------------------------------------------------
1 | Groups used for this test run
--------------------------------------------------------------------------------
/test-output/old/Default suite/index.html:
--------------------------------------------------------------------------------
1 | Results for Default suite
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/main.html:
--------------------------------------------------------------------------------
1 | Results for Default suite
2 | Select a result on the left-hand pane.
3 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/methods-alphabetical.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Default suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 19/07/19 08:55:17 0 loginTestWithCorrectCredentialsTest
5 | main@1475842502
6 | 19/07/19 08:55:39 22004 loginTestWithInCorrectCredentialsTest
7 | main@1475842502
8 | 19/07/19 08:54:31 -46433 >>setUp
9 | main@1475842502
10 | 19/07/19 08:54:53 -23854 >>setUp
11 | main@1475842502
12 | 19/07/19 08:55:08 -9279 >>setUp
13 | main@1475842502
14 | 19/07/19 08:55:30 12741 >>setUp
15 | main@1475842502
16 | 19/07/19 08:54:53 -23998 <<tearDown
17 | main@1475842502
18 | 19/07/19 08:55:08 -9453 <<tearDown
19 | main@1475842502
20 | 19/07/19 08:55:30 12567 <<tearDown
21 | main@1475842502
22 | 19/07/19 08:55:52 34468 <<tearDown
23 | main@1475842502
24 | 19/07/19 08:54:43 -34765 verifyLoginPageTitleTest
25 | main@1475842502
26 | 19/07/19 08:55:03 -14534 verifySignUpLinkTest
27 | main@1475842502
28 |
29 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/methods-not-run.html:
--------------------------------------------------------------------------------
1 | Methods that were not run
--------------------------------------------------------------------------------
/test-output/old/Default suite/methods.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Default suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 19/07/19 08:54:31 0 >>setUp
5 | main@1475842502
6 | 19/07/19 08:54:43 11668 verifyLoginPageTitleTest
7 | main@1475842502
8 | 19/07/19 08:54:53 22435 <<tearDown
9 | main@1475842502
10 | 19/07/19 08:54:53 22579 >>setUp
11 | main@1475842502
12 | 19/07/19 08:55:03 31899 verifySignUpLinkTest
13 | main@1475842502
14 | 19/07/19 08:55:08 36980 <<tearDown
15 | main@1475842502
16 | 19/07/19 08:55:08 37154 >>setUp
17 | main@1475842502
18 | 19/07/19 08:55:17 46433 loginTestWithCorrectCredentialsTest
19 | main@1475842502
20 | 19/07/19 08:55:30 59000 <<tearDown
21 | main@1475842502
22 | 19/07/19 08:55:30 59174 >>setUp
23 | main@1475842502
24 | 19/07/19 08:55:39 68437 loginTestWithInCorrectCredentialsTest
25 | main@1475842502
26 | 19/07/19 08:55:52 80901 <<tearDown
27 | main@1475842502
28 |
29 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/reporter-output.html:
--------------------------------------------------------------------------------
1 | Reporter output
--------------------------------------------------------------------------------
/test-output/old/Default suite/testng.xml.html:
--------------------------------------------------------------------------------
1 | testng.xml for Default suite <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite guice-stage="DEVELOPMENT" name="Default suite"> <test thread-count="5" verbose="2" name="Default test"> <classes> <class name="com.qa.hubspot.tests.LoginPageTest"/> </classes> </test> <!-- Default test --> </suite> <!-- Default suite -->
--------------------------------------------------------------------------------
/test-output/old/Default suite/toc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Results for Default suite
4 |
5 |
6 |
7 |
8 | Results forDefault suite
9 |
23 |
24 |
25 | Default test (3/1/0)
26 | Results
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/Hub Spot App Regression Test Cases.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Hub Spot App Regression Test Cases]
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name
4 | Method name
5 | Groups
6 |
7 | com.qa.hubspot.tests.LoginPageTest
8 |
9 |
10 | @Test
11 |
12 |
13 |
14 | loginTestWithCorrectCredentialsTest
15 |
16 |
17 |
18 | verifyLoginPageTitleTest
19 |
20 |
21 |
22 | verifySignUpLinkTest
23 |
24 |
25 |
26 | loginTestWithInCorrectCredentialsTest
27 |
28 |
29 | @BeforeClass
30 |
31 |
32 | @BeforeMethod
33 |
34 |
35 |
36 | setUp
37 |
38 |
39 | @AfterMethod
40 |
41 |
42 |
43 | tearDown
44 |
45 |
46 | @AfterClass
47 |
48 |
49 | com.qa.hubspot.tests.ContactsPageTest
50 |
51 |
52 | @Test
53 |
54 |
55 |
56 | createNewContactTest
57 |
58 |
59 | @BeforeClass
60 |
61 |
62 | @BeforeMethod
63 |
64 |
65 |
66 | setUp
67 |
68 |
69 | @AfterMethod
70 |
71 |
72 |
73 | tearDown
74 |
75 |
76 | @AfterClass
77 |
78 |
79 | com.qa.hubspot.tests.HomePageTest
80 |
81 |
82 | @Test
83 |
84 |
85 |
86 | verifyHomePageTitleTest
87 |
88 |
89 |
90 | veifyHomePageHeaderTest
91 |
92 |
93 | @BeforeClass
94 |
95 |
96 | @BeforeMethod
97 |
98 |
99 |
100 | setUp
101 |
102 |
103 | @AfterMethod
104 |
105 |
106 |
107 | tearDown
108 |
109 |
110 | @AfterClass
111 |
112 |
113 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/groups.html:
--------------------------------------------------------------------------------
1 | Groups used for this test run
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/index.html:
--------------------------------------------------------------------------------
1 | Results for Hub Spot Regression Test Automation Suite
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/main.html:
--------------------------------------------------------------------------------
1 | Results for Hub Spot Regression Test Automation Suite
2 | Select a result on the left-hand pane.
3 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/methods-not-run.html:
--------------------------------------------------------------------------------
1 | Methods that were not run
2 | com.qa.hubspot.tests.LoginPageTest.loginTestWithCorrectCredentialsTest
3 | com.qa.hubspot.tests.LoginPageTest.loginTestWithInCorrectCredentialsTest
4 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/reporter-output.html:
--------------------------------------------------------------------------------
1 | Reporter output
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/testng.xml.html:
--------------------------------------------------------------------------------
1 | testng.xml for Hub Spot Regression Test Automation Suite <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite guice-stage="DEVELOPMENT" name="Hub Spot Regression Test Automation Suite"> <test thread-count="5" name="Hub Spot App Regression Test Cases"> <classes> <class name="com.qa.hubspot.tests.LoginPageTest"/> <class name="com.qa.hubspot.tests.HomePageTest"/> <class name="com.qa.hubspot.tests.ContactsPageTest"/> </classes> </test> <!-- Hub Spot App Regression Test Cases --> </suite> <!-- Hub Spot Regression Test Automation Suite -->
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Regression Test Automation Suite/toc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Results for Hub Spot Regression Test Automation Suite
4 |
5 |
6 |
7 |
8 | Results forHub Spot Regression Test Automation Suite
9 |
23 |
24 |
25 | Hub Spot App Regression Test Cases (7/2/0)
26 | Results
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/Hub Spot App Sanity Test Cases.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Hub Spot App Sanity Test Cases]
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/Hub Spot App Test Cases.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Hub Spot App Test Cases]
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/Sub Spot App Test Cases.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Sub Spot App Test Cases]
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name
4 | Method name
5 | Groups
6 |
7 | com.qa.hubspot.tests.LoginPageTest
8 |
9 |
10 | @Test
11 |
12 |
13 |
14 | loginTestWithCorrectCredentialsTest
15 |
16 |
17 |
18 | verifyLoginPageTitleTest
19 |
20 |
21 |
22 | verifySignUpLinkTest
23 |
24 |
25 |
26 | loginTestWithInCorrectCredentialsTest
27 |
28 |
29 | @BeforeClass
30 |
31 |
32 | @BeforeMethod
33 |
34 |
35 |
36 | setUp
37 |
38 |
39 | @AfterMethod
40 |
41 |
42 |
43 | tearDown
44 |
45 |
46 | @AfterClass
47 |
48 |
49 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/groups.html:
--------------------------------------------------------------------------------
1 | Groups used for this test run
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/index.html:
--------------------------------------------------------------------------------
1 | Results for Hub Spot Sanity Test Automation Suite
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/main.html:
--------------------------------------------------------------------------------
1 | Results for Hub Spot Sanity Test Automation Suite
2 | Select a result on the left-hand pane.
3 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/methods-alphabetical.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Hub Spot Sanity Test Automation Suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 19/07/19 08:46:11 0 loginTestWithCorrectCredentialsTest
5 | main@1161382705
6 | 19/07/19 08:46:33 21882 loginTestWithInCorrectCredentialsTest
7 | main@1161382705
8 | 19/07/19 08:45:25 -46183 >>setUp
9 | main@1161382705
10 | 19/07/19 08:45:48 -23598 >>setUp
11 | main@1161382705
12 | 19/07/19 08:46:02 -9346 >>setUp
13 | main@1161382705
14 | 19/07/19 08:46:24 12756 >>setUp
15 | main@1161382705
16 | 19/07/19 08:45:48 -23742 <<tearDown
17 | main@1161382705
18 | 19/07/19 08:46:02 -9505 <<tearDown
19 | main@1161382705
20 | 19/07/19 08:46:24 12590 <<tearDown
21 | main@1161382705
22 | 19/07/19 08:46:46 34328 <<tearDown
23 | main@1161382705
24 | 19/07/19 08:45:36 -35074 verifyLoginPageTitleTest
25 | main@1161382705
26 | 19/07/19 08:45:57 -14571 verifySignUpLinkTest
27 | main@1161382705
28 |
29 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/methods-not-run.html:
--------------------------------------------------------------------------------
1 | Methods that were not run
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/methods.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Hub Spot Sanity Test Automation Suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 19/07/19 08:45:25 0 >>setUp
5 | main@1161382705
6 | 19/07/19 08:45:36 11109 verifyLoginPageTitleTest
7 | main@1161382705
8 | 19/07/19 08:45:48 22441 <<tearDown
9 | main@1161382705
10 | 19/07/19 08:45:48 22585 >>setUp
11 | main@1161382705
12 | 19/07/19 08:45:57 31612 verifySignUpLinkTest
13 | main@1161382705
14 | 19/07/19 08:46:02 36678 <<tearDown
15 | main@1161382705
16 | 19/07/19 08:46:02 36837 >>setUp
17 | main@1161382705
18 | 19/07/19 08:46:11 46183 loginTestWithCorrectCredentialsTest
19 | main@1161382705
20 | 19/07/19 08:46:24 58773 <<tearDown
21 | main@1161382705
22 | 19/07/19 08:46:24 58939 >>setUp
23 | main@1161382705
24 | 19/07/19 08:46:33 68065 loginTestWithInCorrectCredentialsTest
25 | main@1161382705
26 | 19/07/19 08:46:46 80511 <<tearDown
27 | main@1161382705
28 |
29 |
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/reporter-output.html:
--------------------------------------------------------------------------------
1 | Reporter output
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/testng.xml.html:
--------------------------------------------------------------------------------
1 | testng.xml for Hub Spot Sanity Test Automation Suite <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite guice-stage="DEVELOPMENT" name="Hub Spot Sanity Test Automation Suite"> <listeners> <listener class-name="com.qa.hubspot.listeners.ExtentReportListener"/> <listener class-name="com.qa.hubspot.listeners.TestAllureListener"/> </listeners> <test thread-count="5" name="Hub Spot App Sanity Test Cases"> <classes> <class name="com.qa.hubspot.tests.LoginPageTest"/> </classes> </test> <!-- Hub Spot App Sanity Test Cases --> </suite> <!-- Hub Spot Sanity Test Automation Suite -->
--------------------------------------------------------------------------------
/test-output/old/Hub Spot Sanity Test Automation Suite/toc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Results for Hub Spot Sanity Test Automation Suite
4 |
5 |
6 |
7 |
8 | Results forHub Spot Sanity Test Automation Suite
9 |
23 |
24 |
25 | Hub Spot App Sanity Test Cases (3/1/0)
26 | Results
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test-output/old/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test results
6 | Suite Passed Failed Skipped testng.xml
7 | Total 3 1 0
8 | Default suite
9 | 3 1 0 Link
10 |
--------------------------------------------------------------------------------
/test-output/passed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/test-output/passed.png
--------------------------------------------------------------------------------
/test-output/skipped.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/naveenanimation20/MayPOMFramework/d9c4202ab7283e39d081dff5223a9dfb6f0fb1a3/test-output/skipped.png
--------------------------------------------------------------------------------
/test-output/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/test-output/testng-reports.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | $('a.navigator-link').click(function() {
3 | // Extract the panel for this link
4 | var panel = getPanelName($(this));
5 |
6 | // Mark this link as currently selected
7 | $('.navigator-link').parent().removeClass('navigator-selected');
8 | $(this).parent().addClass('navigator-selected');
9 |
10 | showPanel(panel);
11 | });
12 |
13 | installMethodHandlers('failed');
14 | installMethodHandlers('skipped');
15 | installMethodHandlers('passed', true); // hide passed methods by default
16 |
17 | $('a.method').click(function() {
18 | showMethod($(this));
19 | return false;
20 | });
21 |
22 | // Hide all the panels and display the first one (do this last
23 | // to make sure the click() will invoke the listeners)
24 | $('.panel').hide();
25 | $('.navigator-link').first().click();
26 |
27 | // Collapse/expand the suites
28 | $('a.collapse-all-link').click(function() {
29 | var contents = $('.navigator-suite-content');
30 | if (contents.css('display') == 'none') {
31 | contents.show();
32 | } else {
33 | contents.hide();
34 | }
35 | });
36 | });
37 |
38 | // The handlers that take care of showing/hiding the methods
39 | function installMethodHandlers(name, hide) {
40 | function getContent(t) {
41 | return $('.method-list-content.' + name + "." + t.attr('panel-name'));
42 | }
43 |
44 | function getHideLink(t, name) {
45 | var s = 'a.hide-methods.' + name + "." + t.attr('panel-name');
46 | return $(s);
47 | }
48 |
49 | function getShowLink(t, name) {
50 | return $('a.show-methods.' + name + "." + t.attr('panel-name'));
51 | }
52 |
53 | function getMethodPanelClassSel(element, name) {
54 | var panelName = getPanelName(element);
55 | var sel = '.' + panelName + "-class-" + name;
56 | return $(sel);
57 | }
58 |
59 | $('a.hide-methods.' + name).click(function() {
60 | var w = getContent($(this));
61 | w.hide();
62 | getHideLink($(this), name).hide();
63 | getShowLink($(this), name).show();
64 | getMethodPanelClassSel($(this), name).hide();
65 | });
66 |
67 | $('a.show-methods.' + name).click(function() {
68 | var w = getContent($(this));
69 | w.show();
70 | getHideLink($(this), name).show();
71 | getShowLink($(this), name).hide();
72 | showPanel(getPanelName($(this)));
73 | getMethodPanelClassSel($(this), name).show();
74 | });
75 |
76 | if (hide) {
77 | $('a.hide-methods.' + name).click();
78 | } else {
79 | $('a.show-methods.' + name).click();
80 | }
81 | }
82 |
83 | function getHashForMethod(element) {
84 | return element.attr('hash-for-method');
85 | }
86 |
87 | function getPanelName(element) {
88 | return element.attr('panel-name');
89 | }
90 |
91 | function showPanel(panelName) {
92 | $('.panel').hide();
93 | var panel = $('.panel[panel-name="' + panelName + '"]');
94 | panel.show();
95 | }
96 |
97 | function showMethod(element) {
98 | var hashTag = getHashForMethod(element);
99 | var panelName = getPanelName(element);
100 | showPanel(panelName);
101 | var current = document.location.href;
102 | var base = current.substring(0, current.indexOf('#'))
103 | document.location.href = base + '#' + hashTag;
104 | var newPosition = $(document).scrollTop() - 65;
105 | $(document).scrollTop(newPosition);
106 | }
107 |
108 | function drawTable() {
109 | for (var i = 0; i < suiteTableInitFunctions.length; i++) {
110 | window[suiteTableInitFunctions[i]]();
111 | }
112 |
113 | for (var k in window.suiteTableData) {
114 | var v = window.suiteTableData[k];
115 | var div = v.tableDiv;
116 | var data = v.tableData
117 | var table = new google.visualization.Table(document.getElementById(div));
118 | table.draw(data, {
119 | showRowNumber : false
120 | });
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/test-output/testng.css:
--------------------------------------------------------------------------------
1 | .invocation-failed, .test-failed { background-color: #DD0000; }
2 | .invocation-percent, .test-percent { background-color: #006600; }
3 | .invocation-passed, .test-passed { background-color: #00AA00; }
4 | .invocation-skipped, .test-skipped { background-color: #CCCC00; }
5 |
6 | .main-page {
7 | font-size: x-large;
8 | }
9 |
10 |
--------------------------------------------------------------------------------