├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── pom.xml ├── src ├── main │ ├── java │ │ └── com │ │ │ ├── listeners │ │ │ └── TestJiraListener.java │ │ │ ├── mypages │ │ │ ├── BasePage.java │ │ │ ├── HomePage.java │ │ │ ├── LoginPage.java │ │ │ └── Page.java │ │ │ └── util │ │ │ ├── JiraPolicy.java │ │ │ └── JiraServiceProvider.java │ └── resources │ │ └── testng.xml └── test │ └── java │ └── com │ └── MyTests │ ├── BaseTest.java │ └── LoginTest.java ├── target ├── OOPConceptInPOM-0.0.1-SNAPSHOT-sources.jar ├── OOPConceptInPOM-0.0.1-SNAPSHOT.jar ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── OOPConceptInPOM │ │ │ └── OOPConceptInPOM │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ ├── listeners │ │ │ └── TestJiraListener.class │ │ ├── mypages │ │ │ ├── BasePage.class │ │ │ ├── HomePage.class │ │ │ ├── LoginPage.class │ │ │ └── Page.class │ │ └── util │ │ │ ├── JiraPolicy.class │ │ │ └── JiraServiceProvider.class │ └── testng.xml ├── maven-archiver │ └── pom.properties ├── maven-status │ └── maven-compiler-plugin │ │ ├── compile │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ │ └── testCompile │ │ └── default-testCompile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst ├── surefire-reports │ ├── Suite │ │ ├── my hub spot test chrome.html │ │ ├── my hub spot test chrome.xml │ │ ├── my hub spot test firefox.html │ │ └── my hub spot test firefox.xml │ ├── TEST-TestSuite.xml │ ├── TestSuite.txt │ ├── bullet_point.png │ ├── collapseall.gif │ ├── emailable-report.html │ ├── failed.png │ ├── index.html │ ├── jquery-1.7.1.min.js │ ├── junitreports │ │ └── TEST-com.MyTests.LoginTest.xml │ ├── navigator-bullet.png │ ├── old │ │ ├── Suite │ │ │ ├── classes.html │ │ │ ├── groups.html │ │ │ ├── index.html │ │ │ ├── main.html │ │ │ ├── methods-alphabetical.html │ │ │ ├── methods-not-run.html │ │ │ ├── methods.html │ │ │ ├── my hub spot test chrome.properties │ │ │ ├── my hub spot test firefox.properties │ │ │ ├── reporter-output.html │ │ │ ├── testng.xml.html │ │ │ └── toc.html │ │ └── index.html │ ├── passed.png │ ├── skipped.png │ ├── testng-reports.css │ ├── testng-reports.js │ ├── testng-results.xml │ └── testng.css └── test-classes │ └── com │ └── MyTests │ ├── BaseTest.class │ └── LoginTest.class └── test-output ├── Suite ├── my hub spot test chrome.html ├── my hub spot test chrome.xml ├── my hub spot test firefox.html ├── my hub spot test firefox.xml └── testng-failed.xml ├── bullet_point.png ├── collapseall.gif ├── emailable-report.html ├── failed.png ├── index.html ├── jquery-1.7.1.min.js ├── junitreports └── TEST-com.MyTests.LoginTest.xml ├── navigator-bullet.png ├── old ├── Suite │ ├── classes.html │ ├── groups.html │ ├── index.html │ ├── main.html │ ├── methods-alphabetical.html │ ├── methods-not-run.html │ ├── methods.html │ ├── my hub spot test chrome.properties │ ├── my hub spot test firefox.properties │ ├── reporter-output.html │ ├── testng.xml.html │ └── toc.html └── index.html ├── passed.png ├── skipped.png ├── testng-failed.xml ├── testng-reports.css ├── testng-reports.js ├── testng-results.xml └── testng.css /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | OOPConceptInPOM 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | OOPConceptInPOM 6 | OOPConceptInPOM 7 | 0.0.1-SNAPSHOT 8 | jar 9 | 10 | OOPConceptInPOM 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | 20 | org.apache.maven.plugins 21 | maven-compiler-plugin 22 | 23 | 1.6 24 | 1.6 25 | 26 | 27 | 28 | 29 | org.apache.maven.plugins 30 | maven-surefire-plugin 31 | 2.19.1 32 | 33 | 34 | src/main/resources/testng.xml 35 | 36 | 37 | 38 | 39 | 40 | 41 | org.apache.maven.plugins 42 | maven-source-plugin 43 | 44 | 45 | attach-sources 46 | 47 | jar 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | maven-compiler-plugin 60 | 3.7.0 61 | 62 | 1.8 63 | 1.8 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | src/main/resources 77 | true 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | org.seleniumhq.selenium 90 | selenium-java 91 | 3.14.0 92 | 93 | 94 | 95 | 96 | 97 | org.testng 98 | testng 99 | 6.14.3 100 | 101 | 102 | 103 | org.apache.poi 104 | poi 105 | 3.9 106 | 107 | 108 | org.apache.poi 109 | poi-ooxml 110 | 3.9 111 | 112 | 113 | org.apache.poi 114 | poi-ooxml-schemas 115 | 3.9 116 | 117 | 118 | org.apache.poi 119 | poi-scratchpad 120 | 3.9 121 | 122 | 123 | org.apache.poi 124 | ooxml-schemas 125 | 1.1 126 | 127 | 128 | 129 | org.apache.poi 130 | openxml4j 131 | 1.0-beta 132 | 133 | 134 | 135 | com.relevantcodes 136 | extentreports 137 | 2.41.2 138 | 139 | 140 | 141 | io.github.bonigarcia 142 | webdrivermanager 143 | 3.6.1 144 | 145 | 146 | 147 | 148 | 149 | net.rcarz 150 | jira-client 151 | 0.5 152 | 153 | 154 | 155 | 156 | -------------------------------------------------------------------------------- /src/main/java/com/listeners/TestJiraListener.java: -------------------------------------------------------------------------------- 1 | package com.listeners; 2 | 3 | import org.apache.commons.lang.exception.ExceptionUtils; 4 | import org.testng.ITestContext; 5 | import org.testng.ITestListener; 6 | import org.testng.ITestResult; 7 | 8 | import com.util.JiraPolicy; 9 | import com.util.JiraServiceProvider; 10 | 11 | public class TestJiraListener implements ITestListener { 12 | 13 | @Override 14 | public void onTestStart(ITestResult result) { 15 | // TODO Auto-generated method stub 16 | 17 | } 18 | 19 | @Override 20 | public void onTestSuccess(ITestResult result) { 21 | // TODO Auto-generated method stub 22 | 23 | } 24 | 25 | @Override 26 | public void onTestFailure(ITestResult result) { 27 | 28 | JiraPolicy jiraPolicy = result.getMethod().getConstructorOrMethod().getMethod().getAnnotation(JiraPolicy.class); 29 | boolean isTicketReady = jiraPolicy.logTicketReady(); 30 | if (isTicketReady) { 31 | // raise jira ticket: 32 | System.out.println("is ticket ready for JIRA: " + isTicketReady); 33 | JiraServiceProvider jiraSp = new JiraServiceProvider("https://naveenautomationlabs.atlassian.net", 34 | "naveenanimation20@gmail.com", "jaizMlfaUkTfffNOVPq29B29", "TA"); 35 | String issueSummary = result.getMethod().getConstructorOrMethod().getMethod().getName() 36 | + "got failed due to some assertion or exception"; 37 | String issueDescription = result.getThrowable().getMessage() + "\n"; 38 | issueDescription.concat(ExceptionUtils.getFullStackTrace(result.getThrowable())); 39 | 40 | jiraSp.createJiraTicket("Bug", issueSummary, issueDescription, "Naveen"); 41 | } 42 | 43 | } 44 | 45 | @Override 46 | public void onTestSkipped(ITestResult result) { 47 | // TODO Auto-generated method stub 48 | 49 | } 50 | 51 | @Override 52 | public void onTestFailedButWithinSuccessPercentage(ITestResult result) { 53 | // TODO Auto-generated method stub 54 | 55 | } 56 | 57 | @Override 58 | public void onStart(ITestContext context) { 59 | // TODO Auto-generated method stub 60 | 61 | } 62 | 63 | @Override 64 | public void onFinish(ITestContext context) { 65 | // TODO Auto-generated method stub 66 | 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /src/main/java/com/mypages/BasePage.java: -------------------------------------------------------------------------------- 1 | package com.mypages; 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 | 8 | public class BasePage extends Page { 9 | 10 | public BasePage(WebDriver driver) { 11 | super(driver); 12 | } 13 | 14 | @Override 15 | public String getPageTitle() { 16 | return driver.getTitle(); 17 | } 18 | 19 | @Override 20 | public String getPageHeader(By locator) { 21 | return getElement(locator).getText(); 22 | } 23 | 24 | @Override 25 | public WebElement getElement(By locator) { 26 | WebElement element = null; 27 | try { 28 | waitForElementPresent(locator); 29 | element = driver.findElement(locator); 30 | return element; 31 | } catch (Exception e) { 32 | System.out.println("some error occurred while creating element " + locator.toString()); 33 | e.printStackTrace(); 34 | } 35 | 36 | return element; 37 | } 38 | 39 | @Override 40 | public void waitForElementPresent(By locator) { 41 | try { 42 | wait.until(ExpectedConditions.presenceOfElementLocated(locator)); 43 | } catch (Exception e) { 44 | System.out.println("some exception/error occurred while waiting for the element " + locator.toString()); 45 | } 46 | } 47 | 48 | @Override 49 | public void waitForPageTitle(String title) { 50 | try { 51 | wait.until(ExpectedConditions.titleContains(title)); 52 | } catch (Exception e) { 53 | System.out.println("some exception/error occurred while waiting for the element " + title); 54 | } 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/mypages/HomePage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package com.mypages; 5 | 6 | import org.openqa.selenium.By; 7 | import org.openqa.selenium.WebDriver; 8 | import org.openqa.selenium.WebElement; 9 | 10 | /** 11 | * @author NaveenKhunteta 12 | * 13 | */ 14 | public class HomePage extends BasePage { 15 | 16 | private By header = By.className("private-page__title"); 17 | 18 | public HomePage(WebDriver driver) { 19 | super(driver); 20 | } 21 | 22 | public WebElement getHeader() { 23 | return getElement(header); 24 | } 25 | 26 | // page actions: 27 | public String getHomePageTitle() { 28 | return getPageTitle(); 29 | } 30 | 31 | public String getHomePageHeader() { 32 | return getPageHeader(header); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/mypages/LoginPage.java: -------------------------------------------------------------------------------- 1 | 2 | package com.mypages; 3 | 4 | import org.openqa.selenium.By; 5 | import org.openqa.selenium.WebDriver; 6 | import org.openqa.selenium.WebElement; 7 | 8 | /** 9 | * @author NaveenKhunteta 10 | * 11 | */ 12 | public class LoginPage extends BasePage { 13 | 14 | // page locators: 15 | private By emailId = By.id("username"); 16 | private By password = By.id("password"); 17 | private By loginButton = By.id("loginBtn"); 18 | private By header = By.xpath("//i18n-string[@data-key='login.signupLink.text']"); 19 | 20 | public LoginPage(WebDriver driver) { 21 | super(driver); 22 | } 23 | 24 | // public getters: 25 | /** 26 | * @return the emailId 27 | */ 28 | public WebElement getEmailId() { 29 | return getElement(emailId); 30 | } 31 | 32 | /** 33 | * @return the password 34 | */ 35 | public WebElement getPassword() { 36 | return getElement(password); 37 | } 38 | 39 | /** 40 | * @return the loginButton 41 | */ 42 | public WebElement getLoginButton() { 43 | return getElement(loginButton); 44 | } 45 | 46 | /** 47 | * @return the header 48 | */ 49 | public WebElement getHeader() { 50 | return getElement(header); 51 | } 52 | 53 | public String getLoginPageTitle() { 54 | return getPageTitle(); 55 | } 56 | 57 | public String getLoginPageHeader() { 58 | return getPageHeader(header); 59 | } 60 | 61 | /** 62 | * 63 | * @param username 64 | * @param pwd 65 | * @return 66 | */ 67 | public HomePage doLogin(String username, String pwd) { 68 | getEmailId().sendKeys(username); 69 | getPassword().sendKeys(pwd); 70 | getLoginButton().click(); 71 | 72 | return getInstance(HomePage.class); 73 | } 74 | 75 | /** 76 | * 77 | * @return 78 | */ 79 | public void doLogin() { 80 | getEmailId().sendKeys(""); 81 | getPassword().sendKeys(""); 82 | getLoginButton().click(); 83 | } 84 | 85 | // username: naven@gmail.com 86 | public void doLogin(String userCred) { 87 | 88 | if (userCred.contains("username")) { 89 | getEmailId().sendKeys(userCred.split(":")[1].trim()); 90 | } else if (userCred.contains("password")) { 91 | getEmailId().sendKeys(userCred.split(":")[1].trim()); 92 | } 93 | getLoginButton().click(); 94 | 95 | } 96 | 97 | } 98 | -------------------------------------------------------------------------------- /src/main/java/com/mypages/Page.java: -------------------------------------------------------------------------------- 1 | package com.mypages; 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.WebDriverWait; 7 | 8 | public abstract class Page { 9 | 10 | WebDriver driver; 11 | WebDriverWait wait; 12 | 13 | public Page(WebDriver driver) { 14 | this.driver = driver; 15 | this.wait = new WebDriverWait(this.driver, 15); 16 | } 17 | 18 | // abstract methods: 19 | public abstract String getPageTitle(); 20 | 21 | public abstract String getPageHeader(By locator); 22 | 23 | public abstract WebElement getElement(By locator); 24 | 25 | public abstract void waitForElementPresent(By locator); 26 | 27 | public abstract void waitForPageTitle(String title); 28 | 29 | public TPage getInstance(Class pageClass) { 30 | 31 | try { 32 | return pageClass.getDeclaredConstructor(WebDriver.class).newInstance(this.driver); 33 | } catch (Exception e) { 34 | e.printStackTrace(); 35 | return null; 36 | } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/com/util/JiraPolicy.java: -------------------------------------------------------------------------------- 1 | package com.util; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | @Retention(RetentionPolicy.RUNTIME) 7 | public @interface JiraPolicy { 8 | boolean logTicketReady(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/util/JiraServiceProvider.java: -------------------------------------------------------------------------------- 1 | package com.util; 2 | 3 | import net.rcarz.jiraclient.BasicCredentials; 4 | import net.rcarz.jiraclient.Field; 5 | import net.rcarz.jiraclient.Issue; 6 | import net.rcarz.jiraclient.Issue.FluentCreate; 7 | import net.rcarz.jiraclient.JiraClient; 8 | import net.rcarz.jiraclient.JiraException; 9 | 10 | public class JiraServiceProvider { 11 | 12 | public JiraClient jira; 13 | public String project; 14 | 15 | public JiraServiceProvider(String jiraUrl, String username, String password, String project) { 16 | BasicCredentials creds = new BasicCredentials(username, password); 17 | jira = new JiraClient(jiraUrl, creds); 18 | this.project = project; 19 | } 20 | 21 | public void createJiraTicket(String issueType, String summary, String description, String reporterName) { 22 | 23 | try { 24 | FluentCreate fleuntCreate = jira.createIssue(project, issueType); 25 | fleuntCreate.field(Field.SUMMARY, summary); 26 | fleuntCreate.field(Field.DESCRIPTION, description); 27 | Issue newIssue = fleuntCreate.execute(); 28 | System.out.println("new issue created in jira with ID: " + newIssue); 29 | 30 | } catch (JiraException e) { 31 | e.printStackTrace(); 32 | } 33 | 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/resources/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | -------------------------------------------------------------------------------- /src/test/java/com/MyTests/BaseTest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package com.MyTests; 5 | 6 | import org.openqa.selenium.WebDriver; 7 | import org.openqa.selenium.chrome.ChromeDriver; 8 | import org.openqa.selenium.firefox.FirefoxDriver; 9 | import org.testng.annotations.AfterMethod; 10 | import org.testng.annotations.BeforeMethod; 11 | import org.testng.annotations.Parameters; 12 | 13 | import com.mypages.BasePage; 14 | import com.mypages.Page; 15 | 16 | import io.github.bonigarcia.wdm.WebDriverManager; 17 | 18 | /** 19 | * @author NaveenKhunteta 20 | * 21 | */ 22 | public class BaseTest { 23 | 24 | WebDriver driver; 25 | public Page page; 26 | 27 | @BeforeMethod 28 | @Parameters(value = { "browser" }) 29 | public void setUpTest(String browser) { 30 | if (browser.equals("chrome")) { 31 | WebDriverManager.chromedriver().setup(); 32 | driver = new ChromeDriver(); 33 | } else if (browser.equals("ff")) { 34 | WebDriverManager.firefoxdriver().setup(); 35 | driver = new FirefoxDriver(); 36 | } else { 37 | System.out.println("no browser is defined in xml file..."); 38 | } 39 | driver.get("https://app.hubspot.com/login"); 40 | try { 41 | Thread.sleep(6000); 42 | } catch (InterruptedException e) { 43 | e.printStackTrace(); 44 | } 45 | page = new BasePage(driver); 46 | 47 | } 48 | 49 | @AfterMethod 50 | public void tearDown() { 51 | driver.quit(); 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/test/java/com/MyTests/LoginTest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package com.MyTests; 5 | 6 | import org.testng.Assert; 7 | import org.testng.annotations.Test; 8 | 9 | import com.mypages.HomePage; 10 | import com.mypages.LoginPage; 11 | import com.util.JiraPolicy; 12 | 13 | /** 14 | * @author NaveenKhunteta 15 | * 16 | */ 17 | public class LoginTest extends BaseTest{ 18 | 19 | @JiraPolicy(logTicketReady=false) 20 | @Test(priority=1, enabled=true) 21 | public void verifyLoginPageTitleTest(){ 22 | String title = page.getInstance(LoginPage.class).getLoginPageTitle(); 23 | System.out.println(title); 24 | Assert.assertEquals(title, "HubSpot LoginXX"); 25 | } 26 | 27 | // @JiraPolicy(logTicketReady=true) 28 | // @Test(priority=2, enabled=true) 29 | // public void verifyLoginPageHeaderTest(){ 30 | // String header = page.getInstance(LoginPage.class).getLoginPageHeader(); 31 | // System.out.println(header); 32 | // Assert.assertEquals(header, "Don't have an account?XXX"); 33 | // } 34 | // 35 | // @JiraPolicy(logTicketReady=true) 36 | // @Test(priority=3) 37 | // public void doLoginTest(){ 38 | // HomePage homePage = page.getInstance(LoginPage.class).doLogin("naveenanimation20@gmail.com", "Test@12345"); 39 | // String headerHome = homePage.getHomePageHeader(); 40 | // System.out.println(headerHome); 41 | // Assert.assertEquals(headerHome, "Getting started with HubSpotXXXXX"); 42 | // } 43 | 44 | 45 | 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /target/OOPConceptInPOM-0.0.1-SNAPSHOT-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/OOPConceptInPOM-0.0.1-SNAPSHOT-sources.jar -------------------------------------------------------------------------------- /target/OOPConceptInPOM-0.0.1-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/OOPConceptInPOM-0.0.1-SNAPSHOT.jar -------------------------------------------------------------------------------- /target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: NaveenKhunteta 3 | Build-Jdk: 1.8.0_144 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /target/classes/META-INF/maven/OOPConceptInPOM/OOPConceptInPOM/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Sun Aug 11 23:44:52 IST 2019 3 | version=0.0.1-SNAPSHOT 4 | groupId=OOPConceptInPOM 5 | m2e.projectName=OOPConceptInPOM 6 | m2e.projectLocation=/Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM 7 | artifactId=OOPConceptInPOM 8 | -------------------------------------------------------------------------------- /target/classes/META-INF/maven/OOPConceptInPOM/OOPConceptInPOM/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | OOPConceptInPOM 6 | OOPConceptInPOM 7 | 0.0.1-SNAPSHOT 8 | jar 9 | 10 | OOPConceptInPOM 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | 20 | org.apache.maven.plugins 21 | maven-compiler-plugin 22 | 23 | 1.6 24 | 1.6 25 | 26 | 27 | 28 | 29 | org.apache.maven.plugins 30 | maven-surefire-plugin 31 | 2.19.1 32 | 33 | 34 | src/main/resources/testng.xml 35 | 36 | 37 | 38 | 39 | 40 | 41 | org.apache.maven.plugins 42 | maven-source-plugin 43 | 44 | 45 | attach-sources 46 | 47 | jar 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | maven-compiler-plugin 60 | 3.7.0 61 | 62 | 1.8 63 | 1.8 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | src/main/resources 77 | true 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | org.seleniumhq.selenium 90 | selenium-java 91 | 3.14.0 92 | 93 | 94 | 95 | 96 | 97 | org.testng 98 | testng 99 | 6.14.3 100 | 101 | 102 | 103 | org.apache.poi 104 | poi 105 | 3.9 106 | 107 | 108 | org.apache.poi 109 | poi-ooxml 110 | 3.9 111 | 112 | 113 | org.apache.poi 114 | poi-ooxml-schemas 115 | 3.9 116 | 117 | 118 | org.apache.poi 119 | poi-scratchpad 120 | 3.9 121 | 122 | 123 | org.apache.poi 124 | ooxml-schemas 125 | 1.1 126 | 127 | 128 | 129 | org.apache.poi 130 | openxml4j 131 | 1.0-beta 132 | 133 | 134 | 135 | com.relevantcodes 136 | extentreports 137 | 2.41.2 138 | 139 | 140 | 141 | io.github.bonigarcia 142 | webdrivermanager 143 | 3.6.1 144 | 145 | 146 | 147 | 148 | 149 | net.rcarz 150 | jira-client 151 | 0.5 152 | 153 | 154 | 155 | 156 | -------------------------------------------------------------------------------- /target/classes/com/listeners/TestJiraListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/listeners/TestJiraListener.class -------------------------------------------------------------------------------- /target/classes/com/mypages/BasePage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/mypages/BasePage.class -------------------------------------------------------------------------------- /target/classes/com/mypages/HomePage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/mypages/HomePage.class -------------------------------------------------------------------------------- /target/classes/com/mypages/LoginPage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/mypages/LoginPage.class -------------------------------------------------------------------------------- /target/classes/com/mypages/Page.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/mypages/Page.class -------------------------------------------------------------------------------- /target/classes/com/util/JiraPolicy.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/util/JiraPolicy.class -------------------------------------------------------------------------------- /target/classes/com/util/JiraServiceProvider.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/classes/com/util/JiraServiceProvider.class -------------------------------------------------------------------------------- /target/classes/testng.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | -------------------------------------------------------------------------------- /target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sat Jul 27 19:38:31 IST 2019 3 | version=0.0.1-SNAPSHOT 4 | groupId=OOPConceptInPOM 5 | artifactId=OOPConceptInPOM 6 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/mypages/LoginPage.class 2 | com/mypages/HomePage.class 3 | com/mypages/BasePage.class 4 | com/mypages/Page.class 5 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/main/java/com/mypages/Page.java 2 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/main/java/com/mypages/BasePage.java 3 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/main/java/com/mypages/HomePage.java 4 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/main/java/com/mypages/LoginPage.java 5 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/MyTests/BaseTest.class 2 | com/MyTests/LoginTest.class 3 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/test/java/com/MyTests/LoginTest.java 2 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/test/java/com/MyTests/BaseTest.java 3 | -------------------------------------------------------------------------------- /target/surefire-reports/Suite/my hub spot test chrome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestNG: my hub spot test chrome 4 | 5 | 6 | 7 | 11 | 53 | 54 | 55 | 56 |

my hub spot test chrome

57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Tests passed/Failed/Skipped:3/0/0
Started on:Sat Jul 27 19:37:43 IST 2019
Total time:33 seconds (33043 ms)
Included groups:
Excluded groups:

69 | (Hover the method name to see the test class name)

70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 |
PASSED TESTS
Test methodExceptionTime (seconds)Instance
doLoginTest
Test class: com.MyTests.LoginTest
5com.MyTests.LoginTest@4909b8da
verifyLoginPageHeaderTest
Test class: com.MyTests.LoginTest
0com.MyTests.LoginTest@4909b8da
verifyLoginPageTitleTest
Test class: com.MyTests.LoginTest
2com.MyTests.LoginTest@4909b8da

93 | 94 | -------------------------------------------------------------------------------- /target/surefire-reports/Suite/my hub spot test chrome.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /target/surefire-reports/Suite/my hub spot test firefox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestNG: my hub spot test firefox 4 | 5 | 6 | 7 | 11 | 53 | 54 | 55 | 56 |

my hub spot test firefox

57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Tests passed/Failed/Skipped:3/0/0
Started on:Sat Jul 27 19:37:43 IST 2019
Total time:34 seconds (34857 ms)
Included groups:
Excluded groups:

69 | (Hover the method name to see the test class name)

70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 |
PASSED TESTS
Test methodExceptionTime (seconds)Instance
doLoginTest
Test class: com.MyTests.LoginTest
4com.MyTests.LoginTest@337d0578
verifyLoginPageHeaderTest
Test class: com.MyTests.LoginTest
0com.MyTests.LoginTest@337d0578
verifyLoginPageTitleTest
Test class: com.MyTests.LoginTest
0com.MyTests.LoginTest@337d0578

93 | 94 | -------------------------------------------------------------------------------- /target/surefire-reports/Suite/my hub spot test firefox.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /target/surefire-reports/TEST-TestSuite.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /target/surefire-reports/TestSuite.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------- 2 | Test set: TestSuite 3 | ------------------------------------------------------------------------------- 4 | Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 48.405 sec - in TestSuite 5 | -------------------------------------------------------------------------------- /target/surefire-reports/bullet_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/surefire-reports/bullet_point.png -------------------------------------------------------------------------------- /target/surefire-reports/collapseall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/surefire-reports/collapseall.gif -------------------------------------------------------------------------------- /target/surefire-reports/emailable-report.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | TestNG Report 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
Test# Passed# Skipped# FailedTime (ms)Included GroupsExcluded Groups
Suite
my hub spot test chrome30033,043
my hub spot test firefox30034,857
Total60067,900
16 | 17 | 18 |
ClassMethodStartTime (ms)
Suite
my hub spot test chrome — passed
com.MyTests.LoginTestdoLoginTest15642364902835857
verifyLoginPageHeaderTest1564236481596489
verifyLoginPageTitleTest15642364716202005
my hub spot test firefox — passed
com.MyTests.LoginTestdoLoginTest15642364934264014
verifyLoginPageHeaderTest156423648333649
verifyLoginPageTitleTest15642364730175
19 |

my hub spot test chrome

com.MyTests.LoginTest#doLoginTest

back to summary

20 |

com.MyTests.LoginTest#verifyLoginPageHeaderTest

back to summary

21 |

com.MyTests.LoginTest#verifyLoginPageTitleTest

back to summary

22 |

my hub spot test firefox

com.MyTests.LoginTest#doLoginTest

back to summary

23 |

com.MyTests.LoginTest#verifyLoginPageHeaderTest

back to summary

24 |

com.MyTests.LoginTest#verifyLoginPageTitleTest

back to summary

25 | 26 | 27 | -------------------------------------------------------------------------------- /target/surefire-reports/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/surefire-reports/failed.png -------------------------------------------------------------------------------- /target/surefire-reports/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | TestNG reports 7 | 8 | 9 | 10 | 11 | 12 | 18 | 21 | 22 | 23 | 24 |
25 | Test results 26 |
27 | 1 suite 28 |
29 | 142 |
143 |
144 |
145 |
146 |
147 | 148 | com.MyTests.LoginTest 149 |
150 |
151 |
152 |
153 | 154 | 155 | doLoginTest 156 |
157 |
158 |
159 |
160 | 161 | 162 | doLoginTest 163 |
164 |
165 |
166 |
167 | 168 | 169 | verifyLoginPageHeaderTest 170 |
171 |
172 |
173 |
174 | 175 | 176 | verifyLoginPageHeaderTest 177 |
178 |
179 |
180 |
181 | 182 | 183 | verifyLoginPageTitleTest 184 |
185 |
186 |
187 |
188 | 189 | 190 | verifyLoginPageTitleTest 191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/main/resources/testng.xml 199 |
200 |
201 |
202 | <?xml version="1.0" encoding="UTF-8"?>
203 | <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
204 | <suite thread-count="2" guice-stage="DEVELOPMENT" verbose="0" name="Suite" parallel="tests">
205 |   <test thread-count="5" verbose="0" name="my hub spot test chrome" parallel="methods">
206 |     <parameter name="browser" value="chrome"/>
207 |     <classes>
208 |       <class name="com.MyTests.LoginTest"/>
209 |     </classes>
210 |   </test> <!-- my hub spot test chrome -->
211 |   <test thread-count="5" verbose="0" name="my hub spot test firefox" parallel="methods">
212 |     <parameter name="browser" value="ff"/>
213 |     <classes>
214 |       <class name="com.MyTests.LoginTest"/>
215 |     </classes>
216 |   </test> <!-- my hub spot test firefox -->
217 | </suite> <!-- Suite -->
218 |             
219 |
220 |
221 |
222 |
223 | Tests for Suite 224 |
225 |
226 |
    227 |
  • 228 | my hub spot test chrome (1 class) 229 |
  • 230 |
  • 231 | my hub spot test firefox (1 class) 232 |
  • 233 |
234 |
235 |
236 |
237 |
238 | Groups for Suite 239 |
240 |
241 |
242 |
243 |
244 |
245 | Times for Suite 246 |
247 |
248 |
249 | 286 | Total running time: 12 seconds 287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 | Reporter output for Suite 295 |
296 |
297 |
298 |
299 |
300 |
301 | 0 ignored methods 302 |
303 |
304 |
305 |
306 |
307 |
308 | Methods in chronological order 309 |
310 |
311 |
312 |
com.MyTests.LoginTest
313 |
314 | setUpTest(chrome) 315 | 0 ms 316 |
317 |
318 | setUpTest(ff) 319 | 0 ms 320 |
321 |
322 | verifyLoginPageTitleTest 323 | 8405 ms 324 |
325 |
326 | verifyLoginPageTitleTest 327 | 9802 ms 328 |
329 |
330 | tearDown 331 | 9808 ms 332 |
333 |
334 | tearDown 335 | 10411 ms 336 |
337 |
338 | setUpTest(ff) 339 | 10475 ms 340 |
341 |
342 | setUpTest(chrome) 343 | 10551 ms 344 |
345 |
346 | verifyLoginPageHeaderTest 347 | 18381 ms 348 |
349 |
350 | tearDown 351 | 18871 ms 352 |
353 |
354 | setUpTest(chrome) 355 | 18962 ms 356 |
357 |
358 | verifyLoginPageHeaderTest 359 | 20121 ms 360 |
361 |
362 | tearDown 363 | 20170 ms 364 |
365 |
366 | setUpTest(ff) 367 | 21112 ms 368 |
369 |
370 | doLoginTest 371 | 27068 ms 372 |
373 |
374 | doLoginTest 375 | 30211 ms 376 |
377 |
378 | tearDown 379 | 32926 ms 380 |
381 |
382 | tearDown 383 | 34225 ms 384 |
385 |
386 |
387 |
388 |
389 | 390 | 391 | -------------------------------------------------------------------------------- /target/surefire-reports/junitreports/TEST-com.MyTests.LoginTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /target/surefire-reports/navigator-bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/surefire-reports/navigator-bullet.png -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 |
Class nameMethod nameGroups
com.MyTests.LoginTest  
@Test
 doLoginTest 
 verifyLoginPageTitleTest 
 verifyLoginPageHeaderTest 
@BeforeClass
@BeforeMethod
 setUpTest 
@AfterMethod
 tearDown 
@AfterClass
45 | -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/groups.html: -------------------------------------------------------------------------------- 1 |

Groups used for this test run

-------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/index.html: -------------------------------------------------------------------------------- 1 | Results for Suite 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/main.html: -------------------------------------------------------------------------------- 1 | Results for Suite 2 | Select a result on the left-hand pane. 3 | -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/methods-alphabetical.html: -------------------------------------------------------------------------------- 1 |

Methods run, sorted chronologically

>> means before, << means after


Suite

(Hover the method name to see the test class name)

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
19/07/27 19:38:10 0      doLoginTestTestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:13 3143      doLoginTestTestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:43 -27066     >>setUpTest  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:37:43 -27066     >>setUpTest  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:53 -16592     >>setUpTest  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:53 -16516     >>setUpTest  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:02 -8106     >>setUpTest  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:04 -5956     >>setUpTest  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:53 -17260     <<tearDown  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:53 -16657     <<tearDown  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:02 -8197     <<tearDown  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:03 -6898     <<tearDown  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:38:16 5858     <<tearDown  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:17 7158     <<tearDown  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:38:01 -8687      verifyLoginPageHeaderTestTestNG-test=my hub spot test chrome-2@775649496
19/07/27 19:38:03 -6947      verifyLoginPageHeaderTestTestNG-test=my hub spot test firefox-2@1394754188
19/07/27 19:37:51 -18663      verifyLoginPageTitleTestTestNG-test=my hub spot test chrome-1@1439905302
19/07/27 19:37:53 -17266      verifyLoginPageTitleTestTestNG-test=my hub spot test firefox-1@1593171783
41 | -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/methods-not-run.html: -------------------------------------------------------------------------------- 1 |

Methods that were not run

2 |
-------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/methods.html: -------------------------------------------------------------------------------- 1 |

Methods run, sorted chronologically

>> means before, << means after


Suite

(Hover the method name to see the test class name)

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 |
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
19/07/27 19:37:43 0     >>setUpTest  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:37:43 0     >>setUpTest  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:51 8403      verifyLoginPageTitleTestTestNG-test=my hub spot test chrome-1@1439905302
19/07/27 19:37:53 9800      verifyLoginPageTitleTestTestNG-test=my hub spot test firefox-1@1593171783
19/07/27 19:37:53 9806     <<tearDown  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:53 10409     <<tearDown  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:37:53 10474     >>setUpTest  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:37:53 10550     >>setUpTest  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:01 18379      verifyLoginPageHeaderTestTestNG-test=my hub spot test chrome-2@775649496
19/07/27 19:38:02 18869     <<tearDown  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:02 18960     >>setUpTest  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:03 20119      verifyLoginPageHeaderTestTestNG-test=my hub spot test firefox-2@1394754188
19/07/27 19:38:03 20168     <<tearDown  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:38:04 21110     >>setUpTest  TestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:38:10 27066      doLoginTestTestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:13 30209      doLoginTestTestNG-test=my hub spot test firefox-3@1356657401
19/07/27 19:38:16 32924     <<tearDown  TestNG-test=my hub spot test chrome-3@1218820837
19/07/27 19:38:17 34224     <<tearDown  TestNG-test=my hub spot test firefox-3@1356657401
41 | -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/my hub spot test chrome.properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=my hub spot test chrome][SuiteResult context=my hub spot test firefox] -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/my hub spot test firefox.properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=my hub spot test chrome][SuiteResult context=my hub spot test firefox] -------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/reporter-output.html: -------------------------------------------------------------------------------- 1 |

Reporter output

-------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/testng.xml.html: -------------------------------------------------------------------------------- 1 | testng.xml for Suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="2" guice-stage="DEVELOPMENT" verbose="0" name="Suite" parallel="tests">
  <test thread-count="5" verbose="0" name="my hub spot test chrome" parallel="methods">
    <parameter name="browser" value="chrome"/>
    <classes>
      <class name="com.MyTests.LoginTest"/>
    </classes>
  </test> <!-- my hub spot test chrome -->
  <test thread-count="5" verbose="0" name="my hub spot test firefox" parallel="methods">
    <parameter name="browser" value="ff"/>
    <classes>
      <class name="com.MyTests.LoginTest"/>
    </classes>
  </test> <!-- my hub spot test firefox -->
</suite> <!-- Suite -->
-------------------------------------------------------------------------------- /target/surefire-reports/old/Suite/toc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Results for Suite 4 | 5 | 6 | 7 | 8 |

Results for
Suite

9 | 10 | 11 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | 22 |
2 tests1 class6 methods:
14 |   chronological
15 |   alphabetical
16 |   not run (0)
0 groupreporter outputtestng.xml
23 | 24 |

29 |

25 |
my hub spot test chrome (3/0/0) 26 | Results 27 |
28 |
30 | 31 | 32 |

37 |

33 |
my hub spot test firefox (3/0/0) 34 | Results 35 |
36 |
38 | -------------------------------------------------------------------------------- /target/surefire-reports/old/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Test results

6 | 7 | 8 | 9 |
SuitePassedFailedSkippedtestng.xml
Total600 
Suite600Link
10 | -------------------------------------------------------------------------------- /target/surefire-reports/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/surefire-reports/passed.png -------------------------------------------------------------------------------- /target/surefire-reports/skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/surefire-reports/skipped.png -------------------------------------------------------------------------------- /target/surefire-reports/testng-reports.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0px 0px 5px 5px; 3 | } 4 | 5 | ul { 6 | margin: 0px; 7 | } 8 | 9 | li { 10 | list-style-type: none; 11 | } 12 | 13 | a { 14 | text-decoration: none; 15 | } 16 | 17 | a:hover { 18 | text-decoration: underline; 19 | } 20 | 21 | .navigator-selected { 22 | background: #ffa500; 23 | } 24 | 25 | .wrapper { 26 | position: absolute; 27 | top: 60px; 28 | bottom: 0; 29 | left: 400px; 30 | right: 0; 31 | overflow: auto; 32 | } 33 | 34 | .navigator-root { 35 | position: absolute; 36 | top: 60px; 37 | bottom: 0; 38 | left: 0; 39 | width: 400px; 40 | overflow-y: auto; 41 | } 42 | 43 | .suite { 44 | margin: 0px 10px 10px 0px; 45 | background-color: #fff8dc; 46 | } 47 | 48 | .suite-name { 49 | padding-left: 10px; 50 | font-size: 25px; 51 | font-family: Times; 52 | } 53 | 54 | .main-panel-header { 55 | padding: 5px; 56 | background-color: #9FB4D9; //afeeee; 57 | font-family: monospace; 58 | font-size: 18px; 59 | } 60 | 61 | .main-panel-content { 62 | padding: 5px; 63 | margin-bottom: 10px; 64 | background-color: #DEE8FC; //d0ffff; 65 | } 66 | 67 | .rounded-window { 68 | border-radius: 10px; 69 | border-style: solid; 70 | border-width: 1px; 71 | } 72 | 73 | .rounded-window-top { 74 | border-top-right-radius: 10px 10px; 75 | border-top-left-radius: 10px 10px; 76 | border-style: solid; 77 | border-width: 1px; 78 | overflow: auto; 79 | } 80 | 81 | .light-rounded-window-top { 82 | border-top-right-radius: 10px 10px; 83 | border-top-left-radius: 10px 10px; 84 | } 85 | 86 | .rounded-window-bottom { 87 | border-style: solid; 88 | border-width: 0px 1px 1px 1px; 89 | border-bottom-right-radius: 10px 10px; 90 | border-bottom-left-radius: 10px 10px; 91 | overflow: auto; 92 | } 93 | 94 | .method-name { 95 | font-size: 12px; 96 | font-family: monospace; 97 | } 98 | 99 | .method-content { 100 | border-style: solid; 101 | border-width: 0px 0px 1px 0px; 102 | margin-bottom: 10; 103 | padding-bottom: 5px; 104 | width: 80%; 105 | } 106 | 107 | .parameters { 108 | font-size: 14px; 109 | font-family: monospace; 110 | } 111 | 112 | .stack-trace { 113 | white-space: pre; 114 | font-family: monospace; 115 | font-size: 12px; 116 | font-weight: bold; 117 | margin-top: 0px; 118 | margin-left: 20px; 119 | } 120 | 121 | .testng-xml { 122 | font-family: monospace; 123 | } 124 | 125 | .method-list-content { 126 | margin-left: 10px; 127 | } 128 | 129 | .navigator-suite-content { 130 | margin-left: 10px; 131 | font: 12px 'Lucida Grande'; 132 | } 133 | 134 | .suite-section-title { 135 | margin-top: 10px; 136 | width: 80%; 137 | border-style: solid; 138 | border-width: 1px 0px 0px 0px; 139 | font-family: Times; 140 | font-size: 18px; 141 | font-weight: bold; 142 | } 143 | 144 | .suite-section-content { 145 | list-style-image: url(bullet_point.png); 146 | } 147 | 148 | .top-banner-root { 149 | position: absolute; 150 | top: 0; 151 | height: 45px; 152 | left: 0; 153 | right: 0; 154 | padding: 5px; 155 | margin: 0px 0px 5px 0px; 156 | background-color: #0066ff; 157 | font-family: Times; 158 | color: #fff; 159 | text-align: center; 160 | } 161 | 162 | .top-banner-title-font { 163 | font-size: 25px; 164 | } 165 | 166 | .test-name { 167 | font-family: 'Lucida Grande'; 168 | font-size: 16px; 169 | } 170 | 171 | .suite-icon { 172 | padding: 5px; 173 | float: right; 174 | height: 20; 175 | } 176 | 177 | .test-group { 178 | font: 20px 'Lucida Grande'; 179 | margin: 5px 5px 10px 5px; 180 | border-width: 0px 0px 1px 0px; 181 | border-style: solid; 182 | padding: 5px; 183 | } 184 | 185 | .test-group-name { 186 | font-weight: bold; 187 | } 188 | 189 | .method-in-group { 190 | font-size: 16px; 191 | margin-left: 80px; 192 | } 193 | 194 | table.google-visualization-table-table { 195 | width: 100%; 196 | } 197 | 198 | .reporter-method-name { 199 | font-size: 14px; 200 | font-family: monospace; 201 | } 202 | 203 | .reporter-method-output-div { 204 | padding: 5px; 205 | margin: 0px 0px 5px 20px; 206 | font-size: 12px; 207 | font-family: monospace; 208 | border-width: 0px 0px 0px 1px; 209 | border-style: solid; 210 | } 211 | 212 | .ignored-class-div { 213 | font-size: 14px; 214 | font-family: monospace; 215 | } 216 | 217 | .ignored-methods-div { 218 | padding: 5px; 219 | margin: 0px 0px 5px 20px; 220 | font-size: 12px; 221 | font-family: monospace; 222 | border-width: 0px 0px 0px 1px; 223 | border-style: solid; 224 | } 225 | 226 | .border-failed { 227 | border-top-left-radius: 10px 10px; 228 | border-bottom-left-radius: 10px 10px; 229 | border-style: solid; 230 | border-width: 0px 0px 0px 10px; 231 | border-color: #f00; 232 | } 233 | 234 | .border-skipped { 235 | border-top-left-radius: 10px 10px; 236 | border-bottom-left-radius: 10px 10px; 237 | border-style: solid; 238 | border-width: 0px 0px 0px 10px; 239 | border-color: #edc600; 240 | } 241 | 242 | .border-passed { 243 | border-top-left-radius: 10px 10px; 244 | border-bottom-left-radius: 10px 10px; 245 | border-style: solid; 246 | border-width: 0px 0px 0px 10px; 247 | border-color: #19f52d; 248 | } 249 | 250 | .times-div { 251 | text-align: center; 252 | padding: 5px; 253 | } 254 | 255 | .suite-total-time { 256 | font: 16px 'Lucida Grande'; 257 | } 258 | 259 | .configuration-suite { 260 | margin-left: 20px; 261 | } 262 | 263 | .configuration-test { 264 | margin-left: 40px; 265 | } 266 | 267 | .configuration-class { 268 | margin-left: 60px; 269 | } 270 | 271 | .configuration-method { 272 | margin-left: 80px; 273 | } 274 | 275 | .test-method { 276 | margin-left: 100px; 277 | } 278 | 279 | .chronological-class { 280 | background-color: #0ccff; 281 | border-style: solid; 282 | border-width: 0px 0px 1px 1px; 283 | } 284 | 285 | .method-start { 286 | float: right; 287 | } 288 | 289 | .chronological-class-name { 290 | padding: 0px 0px 0px 5px; 291 | color: #008; 292 | } 293 | 294 | .after, .before, .test-method { 295 | font-family: monospace; 296 | font-size: 14px; 297 | } 298 | 299 | .navigator-suite-header { 300 | font-size: 22px; 301 | margin: 0px 10px 5px 0px; 302 | background-color: #deb887; 303 | text-align: center; 304 | } 305 | 306 | .collapse-all-icon { 307 | padding: 5px; 308 | float: right; 309 | } 310 | -------------------------------------------------------------------------------- /target/surefire-reports/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 | -------------------------------------------------------------------------------- /target/surefire-reports/testng-results.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /target/surefire-reports/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 | -------------------------------------------------------------------------------- /target/test-classes/com/MyTests/BaseTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/test-classes/com/MyTests/BaseTest.class -------------------------------------------------------------------------------- /target/test-classes/com/MyTests/LoginTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/target/test-classes/com/MyTests/LoginTest.class -------------------------------------------------------------------------------- /test-output/Suite/my hub spot test chrome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestNG: my hub spot test chrome 4 | 5 | 6 | 7 | 11 | 53 | 54 | 55 | 56 |

my hub spot test chrome

57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Tests passed/Failed/Skipped:0/1/0
Started on:Mon Aug 12 00:23:16 IST 2019
Total time:10 seconds (10460 ms)
Included groups:
Excluded groups:

69 | (Hover the method name to see the test class name)

70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 147 | 148 | 149 |
FAILED TESTS
Test methodExceptionTime (seconds)Instance
verifyLoginPageTitleTest
Test class: com.MyTests.LoginTest
java.lang.AssertionError: expected [HubSpot LoginXX] but found [HubSpot Login]
 80 | 	at org.testng.Assert.fail(Assert.java:96)
 81 | 	at org.testng.Assert.failNotEquals(Assert.java:776)
 82 | 	at org.testng.Assert.assertEqualsImpl(Assert.java:137)
 83 | 	at org.testng.Assert.assertEquals(Assert.java:118)
 84 | 	at org.testng.Assert.assertEquals(Assert.java:453)
 85 | 	at org.testng.Assert.assertEquals(Assert.java:463)
 86 | 	at com.MyTests.LoginTest.verifyLoginPageTitleTest(LoginTest.java:24)
 87 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 88 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 89 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 90 | 	at java.lang.reflect.Method.invoke(Method.java:498)
 91 | 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
 92 | 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
 93 | 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
 94 | 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
 95 | 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
 96 | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
 97 | 	at org.testng.TestRunner.privateRun(TestRunner.java:648)
 98 | 	at org.testng.TestRunner.run(TestRunner.java:505)
 99 | 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
100 | 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
101 | 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
102 | 	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
103 | 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
104 | 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
105 | 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
106 | 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
107 | 	at org.testng.TestNG.runSuites(TestNG.java:1049)
108 | 	at org.testng.TestNG.run(TestNG.java:1017)
109 | 	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
110 | 	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
111 | 	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
112 | 
Click to show all stack frames 113 |
java.lang.AssertionError: expected [HubSpot LoginXX] but found [HubSpot Login]
114 | 	at org.testng.Assert.fail(Assert.java:96)
115 | 	at org.testng.Assert.failNotEquals(Assert.java:776)
116 | 	at org.testng.Assert.assertEqualsImpl(Assert.java:137)
117 | 	at org.testng.Assert.assertEquals(Assert.java:118)
118 | 	at org.testng.Assert.assertEquals(Assert.java:453)
119 | 	at org.testng.Assert.assertEquals(Assert.java:463)
120 | 	at com.MyTests.LoginTest.verifyLoginPageTitleTest(LoginTest.java:24)
121 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
122 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
123 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
124 | 	at java.lang.reflect.Method.invoke(Method.java:498)
125 | 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
126 | 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
127 | 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
128 | 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
129 | 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
130 | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
131 | 	at org.testng.TestRunner.privateRun(TestRunner.java:648)
132 | 	at org.testng.TestRunner.run(TestRunner.java:505)
133 | 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
134 | 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
135 | 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
136 | 	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
137 | 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
138 | 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
139 | 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
140 | 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
141 | 	at org.testng.TestNG.runSuites(TestNG.java:1049)
142 | 	at org.testng.TestNG.run(TestNG.java:1017)
143 | 	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
144 | 	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
145 | 	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
146 | 
1com.MyTests.LoginTest@3159c4b8

150 | 151 | -------------------------------------------------------------------------------- /test-output/Suite/my hub spot test chrome.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /test-output/Suite/my hub spot test firefox.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestNG: my hub spot test firefox 4 | 5 | 6 | 7 | 11 | 53 | 54 | 55 | 56 |

my hub spot test firefox

57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Tests passed/Failed/Skipped:1/0/0
Started on:Sat Jul 27 19:35:57 IST 2019
Total time:14 seconds (14891 ms)
Included groups:
Excluded groups:

69 | (Hover the method name to see the test class name)

70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 |
PASSED TESTS
Test methodExceptionTime (seconds)Instance
doLoginTest
Test class: com.MyTests.LoginTest
4com.MyTests.LoginTest@6e1ec318

83 | 84 | -------------------------------------------------------------------------------- /test-output/Suite/my hub spot test firefox.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /test-output/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/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/test-output/bullet_point.png -------------------------------------------------------------------------------- /test-output/collapseall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/test-output/collapseall.gif -------------------------------------------------------------------------------- /test-output/emailable-report.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | TestNG Report 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
Test# Passed# Skipped# FailedTime (ms)Included GroupsExcluded Groups
Suite
my hub spot test chrome00110,460
14 | 15 |
ClassMethodStartTime (ms)
Suite
my hub spot test chrome — failed
com.MyTests.LoginTestverifyLoginPageTitleTest15655496060281057
16 |

my hub spot test chrome

com.MyTests.LoginTest#verifyLoginPageTitleTest

Exception
java.lang.AssertionError: expected [HubSpot LoginXX] 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.MyTests.LoginTest.verifyLoginPageTitleTest(LoginTest.java:24) 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 | 51 | 52 | -------------------------------------------------------------------------------- /test-output/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/test-output/failed.png -------------------------------------------------------------------------------- /test-output/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | TestNG reports 7 | 8 | 9 | 10 | 11 | 12 | 18 | 21 | 22 | 23 | 24 |
25 | Test results 26 |
27 | 1 suite, 1 failed test 28 |
29 | 117 |
118 |
119 |
120 |
121 |
122 | 123 | com.MyTests.LoginTest 124 |
125 |
126 |
127 |
128 | 129 | 130 | verifyLoginPageTitleTest 131 |
java.lang.AssertionError: expected [HubSpot LoginXX] but found [HubSpot Login] 132 | at org.testng.Assert.fail(Assert.java:96) 133 | at org.testng.Assert.failNotEquals(Assert.java:776) 134 | at org.testng.Assert.assertEqualsImpl(Assert.java:137) 135 | at org.testng.Assert.assertEquals(Assert.java:118) 136 | at org.testng.Assert.assertEquals(Assert.java:453) 137 | at org.testng.Assert.assertEquals(Assert.java:463) 138 | at com.MyTests.LoginTest.verifyLoginPageTitleTest(LoginTest.java:24) 139 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 140 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 141 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 142 | at java.lang.reflect.Method.invoke(Method.java:498) 143 | at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) 144 | at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) 145 | at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) 146 | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) 147 | at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) 148 | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) 149 | at org.testng.TestRunner.privateRun(TestRunner.java:648) 150 | at org.testng.TestRunner.run(TestRunner.java:505) 151 | at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) 152 | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) 153 | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) 154 | at org.testng.SuiteRunner.run(SuiteRunner.java:364) 155 | at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) 156 | at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) 157 | at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) 158 | at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) 159 | at org.testng.TestNG.runSuites(TestNG.java:1049) 160 | at org.testng.TestNG.run(TestNG.java:1017) 161 | at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114) 162 | at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) 163 | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) 164 | 165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 | /Users/NaveenKhunteta/Documents/workspace/OOPConceptInPOM/src/main/resources/testng.xml 174 |
175 |
176 |
177 | <?xml version="1.0" encoding="UTF-8"?>
178 | <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
179 | <suite thread-count="2" guice-stage="DEVELOPMENT" verbose="3" name="Suite">
180 |   <listeners>
181 |     <listener class-name="com.listeners.TestJiraListener"/>
182 |   </listeners>
183 |   <test thread-count="5" verbose="3" name="my hub spot test chrome">
184 |     <parameter name="browser" value="chrome"/>
185 |     <classes>
186 |       <class name="com.MyTests.LoginTest"/>
187 |     </classes>
188 |   </test> <!-- my hub spot test chrome -->
189 | </suite> <!-- Suite -->
190 |             
191 |
192 |
193 |
194 |
195 | Tests for Suite 196 |
197 |
198 |
    199 |
  • 200 | my hub spot test chrome (1 class) 201 |
  • 202 |
203 |
204 |
205 |
206 |
207 | Groups for Suite 208 |
209 |
210 |
211 |
212 |
213 |
214 | Times for Suite 215 |
216 |
217 |
218 | 235 | Total running time: 1 seconds 236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 | Reporter output for Suite 244 |
245 |
246 |
247 |
248 |
249 |
250 | 0 ignored methods 251 |
252 |
253 |
254 |
255 |
256 |
257 | Methods in chronological order 258 |
259 |
260 |
261 |
com.MyTests.LoginTest
262 |
263 | setUpTest(chrome) 264 | 0 ms 265 |
266 |
267 | 268 | 269 | verifyLoginPageTitleTest 270 | 9261 ms 271 |
272 |
273 | tearDown 274 | 10320 ms 275 |
276 |
277 |
278 |
279 |
280 | 281 | 282 | -------------------------------------------------------------------------------- /test-output/junitreports/TEST-com.MyTests.LoginTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /test-output/navigator-bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/test-output/navigator-bullet.png -------------------------------------------------------------------------------- /test-output/old/Suite/classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
Class nameMethod nameGroups
com.MyTests.LoginTest  
@Test
 verifyLoginPageTitleTest 
@BeforeClass
@BeforeMethod
 setUpTest 
@AfterMethod
 tearDown 
@AfterClass
37 | -------------------------------------------------------------------------------- /test-output/old/Suite/groups.html: -------------------------------------------------------------------------------- 1 |

Groups used for this test run

-------------------------------------------------------------------------------- /test-output/old/Suite/index.html: -------------------------------------------------------------------------------- 1 | Results for Suite 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test-output/old/Suite/main.html: -------------------------------------------------------------------------------- 1 | Results for Suite 2 | Select a result on the left-hand pane. 3 | -------------------------------------------------------------------------------- /test-output/old/Suite/methods-alphabetical.html: -------------------------------------------------------------------------------- 1 |

Methods run, sorted chronologically

>> means before, << means after


Suite

(Hover the method name to see the test class name)

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
19/08/12 00:23:16 0     >>setUpTest  main@1627821297
19/08/12 00:23:27 10318     <<tearDown  main@1627821297
19/08/12 00:23:26 9259      verifyLoginPageTitleTestmain@1627821297
11 | -------------------------------------------------------------------------------- /test-output/old/Suite/methods-not-run.html: -------------------------------------------------------------------------------- 1 |

Methods that were not run

2 |
-------------------------------------------------------------------------------- /test-output/old/Suite/methods.html: -------------------------------------------------------------------------------- 1 |

Methods run, sorted chronologically

>> means before, << means after


Suite

(Hover the method name to see the test class name)

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
19/08/12 00:23:16 0     >>setUpTest  main@1627821297
19/08/12 00:23:26 9259      verifyLoginPageTitleTestmain@1627821297
19/08/12 00:23:27 10318     <<tearDown  main@1627821297
11 | -------------------------------------------------------------------------------- /test-output/old/Suite/my hub spot test chrome.properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=my hub spot test chrome] -------------------------------------------------------------------------------- /test-output/old/Suite/my hub spot test firefox.properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=my hub spot test firefox][SuiteResult context=my hub spot test chrome] -------------------------------------------------------------------------------- /test-output/old/Suite/reporter-output.html: -------------------------------------------------------------------------------- 1 |

Reporter output

-------------------------------------------------------------------------------- /test-output/old/Suite/testng.xml.html: -------------------------------------------------------------------------------- 1 | testng.xml for Suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="2" guice-stage="DEVELOPMENT" verbose="3" name="Suite">
  <listeners>
    <listener class-name="com.listeners.TestJiraListener"/>
  </listeners>
  <test thread-count="5" verbose="3" name="my hub spot test chrome">
    <parameter name="browser" value="chrome"/>
    <classes>
      <class name="com.MyTests.LoginTest"/>
    </classes>
  </test> <!-- my hub spot test chrome -->
</suite> <!-- Suite -->
-------------------------------------------------------------------------------- /test-output/old/Suite/toc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Results for Suite 4 | 5 | 6 | 7 | 8 |

Results for
Suite

9 | 10 | 11 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | 22 |
1 test1 class1 method:
14 |   chronological
15 |   alphabetical
16 |   not run (0)
0 groupreporter outputtestng.xml
23 | 24 |

29 |

25 |
my hub spot test chrome (0/1/0) 26 | Results 27 |
28 |
30 | -------------------------------------------------------------------------------- /test-output/old/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Test results

6 | 7 | 8 | 9 |
SuitePassedFailedSkippedtestng.xml
Total010 
Suite010Link
10 | -------------------------------------------------------------------------------- /test-output/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/test-output/passed.png -------------------------------------------------------------------------------- /test-output/skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/naveenanimation20/JiraIntegrationWithSelenium/31a58f34af6f85b36d77a3f9d4df8cc135e30df2/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 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /test-output/testng-reports.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0px 0px 5px 5px; 3 | } 4 | 5 | ul { 6 | margin: 0px; 7 | } 8 | 9 | li { 10 | list-style-type: none; 11 | } 12 | 13 | a { 14 | text-decoration: none; 15 | } 16 | 17 | a:hover { 18 | text-decoration: underline; 19 | } 20 | 21 | .navigator-selected { 22 | background: #ffa500; 23 | } 24 | 25 | .wrapper { 26 | position: absolute; 27 | top: 60px; 28 | bottom: 0; 29 | left: 400px; 30 | right: 0; 31 | overflow: auto; 32 | } 33 | 34 | .navigator-root { 35 | position: absolute; 36 | top: 60px; 37 | bottom: 0; 38 | left: 0; 39 | width: 400px; 40 | overflow-y: auto; 41 | } 42 | 43 | .suite { 44 | margin: 0px 10px 10px 0px; 45 | background-color: #fff8dc; 46 | } 47 | 48 | .suite-name { 49 | padding-left: 10px; 50 | font-size: 25px; 51 | font-family: Times; 52 | } 53 | 54 | .main-panel-header { 55 | padding: 5px; 56 | background-color: #9FB4D9; //afeeee; 57 | font-family: monospace; 58 | font-size: 18px; 59 | } 60 | 61 | .main-panel-content { 62 | padding: 5px; 63 | margin-bottom: 10px; 64 | background-color: #DEE8FC; //d0ffff; 65 | } 66 | 67 | .rounded-window { 68 | border-radius: 10px; 69 | border-style: solid; 70 | border-width: 1px; 71 | } 72 | 73 | .rounded-window-top { 74 | border-top-right-radius: 10px 10px; 75 | border-top-left-radius: 10px 10px; 76 | border-style: solid; 77 | border-width: 1px; 78 | overflow: auto; 79 | } 80 | 81 | .light-rounded-window-top { 82 | border-top-right-radius: 10px 10px; 83 | border-top-left-radius: 10px 10px; 84 | } 85 | 86 | .rounded-window-bottom { 87 | border-style: solid; 88 | border-width: 0px 1px 1px 1px; 89 | border-bottom-right-radius: 10px 10px; 90 | border-bottom-left-radius: 10px 10px; 91 | overflow: auto; 92 | } 93 | 94 | .method-name { 95 | font-size: 12px; 96 | font-family: monospace; 97 | } 98 | 99 | .method-content { 100 | border-style: solid; 101 | border-width: 0px 0px 1px 0px; 102 | margin-bottom: 10; 103 | padding-bottom: 5px; 104 | width: 80%; 105 | } 106 | 107 | .parameters { 108 | font-size: 14px; 109 | font-family: monospace; 110 | } 111 | 112 | .stack-trace { 113 | white-space: pre; 114 | font-family: monospace; 115 | font-size: 12px; 116 | font-weight: bold; 117 | margin-top: 0px; 118 | margin-left: 20px; 119 | } 120 | 121 | .testng-xml { 122 | font-family: monospace; 123 | } 124 | 125 | .method-list-content { 126 | margin-left: 10px; 127 | } 128 | 129 | .navigator-suite-content { 130 | margin-left: 10px; 131 | font: 12px 'Lucida Grande'; 132 | } 133 | 134 | .suite-section-title { 135 | margin-top: 10px; 136 | width: 80%; 137 | border-style: solid; 138 | border-width: 1px 0px 0px 0px; 139 | font-family: Times; 140 | font-size: 18px; 141 | font-weight: bold; 142 | } 143 | 144 | .suite-section-content { 145 | list-style-image: url(bullet_point.png); 146 | } 147 | 148 | .top-banner-root { 149 | position: absolute; 150 | top: 0; 151 | height: 45px; 152 | left: 0; 153 | right: 0; 154 | padding: 5px; 155 | margin: 0px 0px 5px 0px; 156 | background-color: #0066ff; 157 | font-family: Times; 158 | color: #fff; 159 | text-align: center; 160 | } 161 | 162 | .top-banner-title-font { 163 | font-size: 25px; 164 | } 165 | 166 | .test-name { 167 | font-family: 'Lucida Grande'; 168 | font-size: 16px; 169 | } 170 | 171 | .suite-icon { 172 | padding: 5px; 173 | float: right; 174 | height: 20; 175 | } 176 | 177 | .test-group { 178 | font: 20px 'Lucida Grande'; 179 | margin: 5px 5px 10px 5px; 180 | border-width: 0px 0px 1px 0px; 181 | border-style: solid; 182 | padding: 5px; 183 | } 184 | 185 | .test-group-name { 186 | font-weight: bold; 187 | } 188 | 189 | .method-in-group { 190 | font-size: 16px; 191 | margin-left: 80px; 192 | } 193 | 194 | table.google-visualization-table-table { 195 | width: 100%; 196 | } 197 | 198 | .reporter-method-name { 199 | font-size: 14px; 200 | font-family: monospace; 201 | } 202 | 203 | .reporter-method-output-div { 204 | padding: 5px; 205 | margin: 0px 0px 5px 20px; 206 | font-size: 12px; 207 | font-family: monospace; 208 | border-width: 0px 0px 0px 1px; 209 | border-style: solid; 210 | } 211 | 212 | .ignored-class-div { 213 | font-size: 14px; 214 | font-family: monospace; 215 | } 216 | 217 | .ignored-methods-div { 218 | padding: 5px; 219 | margin: 0px 0px 5px 20px; 220 | font-size: 12px; 221 | font-family: monospace; 222 | border-width: 0px 0px 0px 1px; 223 | border-style: solid; 224 | } 225 | 226 | .border-failed { 227 | border-top-left-radius: 10px 10px; 228 | border-bottom-left-radius: 10px 10px; 229 | border-style: solid; 230 | border-width: 0px 0px 0px 10px; 231 | border-color: #f00; 232 | } 233 | 234 | .border-skipped { 235 | border-top-left-radius: 10px 10px; 236 | border-bottom-left-radius: 10px 10px; 237 | border-style: solid; 238 | border-width: 0px 0px 0px 10px; 239 | border-color: #edc600; 240 | } 241 | 242 | .border-passed { 243 | border-top-left-radius: 10px 10px; 244 | border-bottom-left-radius: 10px 10px; 245 | border-style: solid; 246 | border-width: 0px 0px 0px 10px; 247 | border-color: #19f52d; 248 | } 249 | 250 | .times-div { 251 | text-align: center; 252 | padding: 5px; 253 | } 254 | 255 | .suite-total-time { 256 | font: 16px 'Lucida Grande'; 257 | } 258 | 259 | .configuration-suite { 260 | margin-left: 20px; 261 | } 262 | 263 | .configuration-test { 264 | margin-left: 40px; 265 | } 266 | 267 | .configuration-class { 268 | margin-left: 60px; 269 | } 270 | 271 | .configuration-method { 272 | margin-left: 80px; 273 | } 274 | 275 | .test-method { 276 | margin-left: 100px; 277 | } 278 | 279 | .chronological-class { 280 | background-color: #0ccff; 281 | border-style: solid; 282 | border-width: 0px 0px 1px 1px; 283 | } 284 | 285 | .method-start { 286 | float: right; 287 | } 288 | 289 | .chronological-class-name { 290 | padding: 0px 0px 0px 5px; 291 | color: #008; 292 | } 293 | 294 | .after, .before, .test-method { 295 | font-family: monospace; 296 | font-size: 14px; 297 | } 298 | 299 | .navigator-suite-header { 300 | font-size: 22px; 301 | margin: 0px 10px 5px 0px; 302 | background-color: #deb887; 303 | text-align: center; 304 | } 305 | 306 | .collapse-all-icon { 307 | padding: 5px; 308 | float: right; 309 | } 310 | -------------------------------------------------------------------------------- /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-results.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------