├── .DS_Store ├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── FAILED ├── checkemaiIdField20220819035738.png ├── clicSign20220819035741.png ├── clicSign20220819035804.png ├── clicSign20220819043707.png └── clicSign20220819043756.png ├── pom.xml ├── reports └── AutomationReport.html ├── src ├── main │ └── java │ │ └── com │ │ └── qa │ │ ├── TestData │ │ └── LoginData.json │ │ ├── base │ │ └── TestBase.java │ │ ├── pageObjects │ │ ├── LandingPageElements.java │ │ └── LoginPageElements.java │ │ └── pageUtils │ │ ├── Constants.java │ │ ├── DataReader.java │ │ ├── ElementFetch.java │ │ ├── ScreenShotUtilitis.java │ │ └── SuiteListener.java └── test │ └── java │ └── com │ └── qa │ └── TestCases │ ├── LandingPageTest.java │ └── LoginPageTest.java ├── target ├── classes │ └── com │ │ └── qa │ │ ├── TestData │ │ └── LoginData.json │ │ ├── base │ │ └── TestBase.class │ │ ├── pageObjects │ │ ├── LandingPageElements.class │ │ └── LoginPageElements.class │ │ └── pageUtils │ │ ├── Constants.class │ │ ├── DataReader$1.class │ │ ├── DataReader.class │ │ ├── ElementFetch.class │ │ ├── ScreenShotUtilitis.class │ │ └── SuiteListener.class └── test-classes │ └── com │ └── qa │ └── TestCases │ ├── LandingPageTest.class │ └── LoginPageTest.class ├── test-output ├── Suite │ ├── Running in Chrome Browser .html │ ├── Running in Chrome Browser .xml │ ├── Running in Firefox Browser .html │ ├── Running in Firefox Browser .xml │ └── testng-failed.xml ├── bullet_point.png ├── collapseall.gif ├── emailable-report.html ├── failed.png ├── index.html ├── jquery-3.4.1.min.js ├── junitreports │ ├── TEST-com.qa.TestCases.LandingPageTest.xml │ └── TEST-com.qa.TestCases.LoginPageTest.xml ├── navigator-bullet.png ├── old │ ├── Suite │ │ ├── Running in Chrome Browser .properties │ │ ├── Running in Firefox Browser .properties │ │ ├── classes.html │ │ ├── groups.html │ │ ├── index.html │ │ ├── main.html │ │ ├── methods-alphabetical.html │ │ ├── methods-not-run.html │ │ ├── methods.html │ │ ├── reporter-output.html │ │ ├── testng.xml.html │ │ └── toc.html │ └── index.html ├── passed.png ├── skipped.png ├── testng-failed.xml ├── testng-reports.css ├── testng-reports.js ├── testng-reports1.css ├── testng-reports2.js ├── testng-results.xml └── testng.css ├── testng.xml └── testng2.xml /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/.DS_Store -------------------------------------------------------------------------------- /.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 | 30 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ParallelExecution 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.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 9 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 10 | org.eclipse.jdt.core.compiler.release=enabled 11 | org.eclipse.jdt.core.compiler.source=1.8 12 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /FAILED/checkemaiIdField20220819035738.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/FAILED/checkemaiIdField20220819035738.png -------------------------------------------------------------------------------- /FAILED/clicSign20220819035741.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/FAILED/clicSign20220819035741.png -------------------------------------------------------------------------------- /FAILED/clicSign20220819035804.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/FAILED/clicSign20220819035804.png -------------------------------------------------------------------------------- /FAILED/clicSign20220819043707.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/FAILED/clicSign20220819043707.png -------------------------------------------------------------------------------- /FAILED/clicSign20220819043756.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/FAILED/clicSign20220819043756.png -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | ParallelExecution 7 | ParallelExecution 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | ParallelExecution 12 | http://maven.apache.org 13 | 14 | 15 | UTF-8 16 | 1.6 17 | 1.6 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | org.apache.maven.plugins 27 | maven-surefire-plugin 28 | 3.0.0-M7 29 | 30 | 31 | testng_sanity.xml 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | org.seleniumhq.selenium 49 | selenium-java 50 | 3.141.59 51 | 52 | 53 | io.github.bonigarcia 54 | webdrivermanager 55 | 5.2.1 56 | 57 | 58 | org.testng 59 | testng 60 | 7.6.1 61 | test 62 | 63 | 64 | com.aventstack 65 | extentreports 66 | 4.0.9 67 | 68 | 69 | org.apache.poi 70 | poi-ooxml 71 | 5.2.3 72 | 73 | 74 | org.apache.poi 75 | poi 76 | 5.2.3 77 | 78 | 79 | com.fasterxml.jackson.core 80 | jackson-databind 81 | 2.13.4 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /reports/AutomationReport.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Automation Report 17 | 18 | 22 | 23 | 27 | 28 | 29 |
30 | desktop_windows 31 |
32 | 52 |
53 |
54 |
55 |
56 | 57 | 68 | 69 | 70 | 71 | 72 | 77 | 78 | 79 | 84 | 85 | 86 |
87 | 88 | search Search 89 | 90 |
91 | 92 |
93 |
94 | 95 |
96 |
97 |
98 |
99 |
100 |
101 |
Tests
102 |
103 | 104 |
105 |
106 | 2 test(s) passed 107 |
108 |
109 | 1 test(s) failed, 0 others 110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
Timeline (seconds)
118 |
119 | 120 |
121 |
122 |
123 |
124 |
125 |
126 |
    127 |
  • 128 |
    129 | clickonContinueBtn 130 | Aug 19, 2022 04:37:09 PM 131 | pass 132 |
    133 |
    134 |
    135 | Aug 19, 2022 04:37:09 PM 136 | Aug 19, 2022 04:37:09 PM 137 | 0h 0m 0s+2ms 138 |
    139 |
    140 |
  • 141 |
  • 142 |
    143 | checkemaiIdField 144 | Aug 19, 2022 04:37:09 PM 145 | pass 146 |
    147 |
    148 |
    149 | Aug 19, 2022 04:37:09 PM 150 | Aug 19, 2022 04:37:35 PM 151 | 0h 0m 26s+667ms 152 |
    153 |
    154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 170 | 171 | 172 | 173 | 174 | 178 | 179 | 180 | 181 | 182 | 186 | 187 | 188 | 189 | 190 | 194 | 195 | 196 |
    StatusTimestampDetails
    info_outline4:37:34 PM 167 | entering email in email field 168 | 169 |
    check_circle4:37:34 PM 175 | Test CasecheckemaiIdFieldpassed 176 | 177 |
    info_outline4:37:35 PM 183 | Clicking on continue button 184 | 185 |
    check_circle4:37:35 PM 191 | Test CaseclickonContinueBtnpassed 192 | 193 |
    197 |
    198 |
    199 |
  • 200 |
  • 201 |
    202 | clicSign 203 | Aug 19, 2022 04:37:37 PM 204 | fail 205 |
    206 |
    207 |
    208 | Aug 19, 2022 04:37:37 PM 209 | Aug 19, 2022 04:37:56 PM 210 | 0h 0m 19s+462ms 211 |
    212 |
    213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 229 | 230 | 231 |
    StatusTimestampDetails
    cancel4:37:56 PM 226 | Test CaseclicSignFailed 227 | 228 |
    232 |
    233 |
      234 |
    • 235 |
    236 |
    237 |
  • 238 |
239 |
240 |
241 | 242 |
243 |
244 |
245 | check_circle 246 | cancel 247 | cancel 248 | error 249 | warning 250 | redo 251 | clear 252 |
253 |
254 |
255 |
256 | 257 |
258 |
259 |
260 |
Dashboard
261 | 262 |
263 |
264 |
265 | Tests 266 |
3
267 |
268 |
269 |
270 |
271 | Steps 272 |
0
273 |
274 |
275 |
276 |
277 | Start 278 |
Aug 19, 2022 04:37:09 PM
279 |
280 |
281 |
282 |
283 | End 284 |
Aug 19, 2022 04:37:58 PM
285 |
286 |
287 |
288 |
289 | Time Taken 290 |
0h 0m 48s+966ms
291 |
292 |
293 |
294 |
295 | Environment

 

296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 |
NameValue
Automation TesterTohidur Rahman
307 |
308 |
309 |
310 |
311 |
312 | 313 |
314 | 315 | 347 | 352 | 353 | 355 | 356 | -------------------------------------------------------------------------------- /src/main/java/com/qa/TestData/LoginData.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"userName":"hellow@gmail.com", 3 | "passWord":"hi@123" 4 | }, 5 | 6 | {"userName":"hellow@gmail.com", 7 | "passWord":"hi@123"}, 8 | 9 | {"userName":"hellow@gmail.com", 10 | "passWord":"hi@123"} 11 | 12 | 13 | 14 | ] -------------------------------------------------------------------------------- /src/main/java/com/qa/base/TestBase.java: -------------------------------------------------------------------------------- 1 | package com.qa.base; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.lang.reflect.Method; 6 | import java.util.concurrent.TimeUnit; 7 | 8 | import org.openqa.selenium.WebDriver; 9 | import org.openqa.selenium.chrome.ChromeDriver; 10 | import org.openqa.selenium.firefox.FirefoxDriver; 11 | import org.testng.ITestResult; 12 | import org.testng.annotations.AfterMethod; 13 | import org.testng.annotations.AfterTest; 14 | import org.testng.annotations.BeforeMethod; 15 | import org.testng.annotations.BeforeTest; 16 | import org.testng.annotations.Parameters; 17 | 18 | import com.aventstack.extentreports.ExtentReports; 19 | import com.aventstack.extentreports.ExtentTest; 20 | import com.aventstack.extentreports.Status; 21 | import com.aventstack.extentreports.markuputils.ExtentColor; 22 | import com.aventstack.extentreports.markuputils.Markup; 23 | import com.aventstack.extentreports.markuputils.MarkupHelper; 24 | import com.aventstack.extentreports.reporter.ExtentHtmlReporter; 25 | import com.aventstack.extentreports.reporter.ExtentSparkReporter; 26 | import com.aventstack.extentreports.reporter.configuration.Theme; 27 | import com.qa.pageUtils.Constants; 28 | import com.qa.pageUtils.ScreenShotUtilitis; 29 | 30 | import io.github.bonigarcia.wdm.WebDriverManager; 31 | 32 | public class TestBase { 33 | 34 | 35 | 36 | 37 | public ThreadLocal driver = new ThreadLocal<>(); 38 | public static ExtentReports extent; 39 | public static ExtentTest logger; 40 | public ExtentHtmlReporter htmlReporter; 41 | //public ExtentSparkReporter ex; 42 | 43 | public void setDriver(WebDriver driver) { 44 | this.driver.set(driver); 45 | } 46 | public WebDriver getDriver() { 47 | return this.driver.get(); 48 | } 49 | 50 | @BeforeTest 51 | public void beforeTestMethod() { 52 | htmlReporter = new ExtentHtmlReporter(System.getProperty("user.dir")+ File.separator + "reports" +File.separator + "AutomationReport.html"); 53 | htmlReporter.config().setEncoding("utf-8"); 54 | htmlReporter.config().setDocumentTitle("Automation Report"); 55 | htmlReporter.config().setReportName("Automation test result"); 56 | htmlReporter.config().setTheme(Theme.DARK); 57 | extent = new ExtentReports(); 58 | extent.attachReporter(htmlReporter); 59 | extent.setSystemInfo("Automation Tester","Tohidur Rahman"); 60 | 61 | } 62 | 63 | @BeforeMethod 64 | @Parameters(value= {"browserName"}) 65 | public void beforeMethodMethod(String browserName,Method testMethod) { 66 | logger = extent.createTest(testMethod.getName()); 67 | // extent_local.set(logger); 68 | setUpDriver(browserName); 69 | getDriver().manage().window().maximize(); 70 | getDriver().manage().deleteAllCookies(); 71 | getDriver().get(Constants.url); 72 | getDriver().manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS); 73 | 74 | } 75 | 76 | @AfterMethod 77 | public void afterMethodMethod(ITestResult result ) throws IOException { 78 | if (result.getStatus()==ITestResult.SUCCESS) { 79 | String methodName = result.getMethod().getMethodName(); 80 | String logTest = "Test Case" + methodName + "passed"; 81 | Markup m =MarkupHelper.createLabel(logTest, ExtentColor.GREEN); 82 | logger.log(Status.PASS,m); 83 | 84 | }else if (result.getStatus()==ITestResult.FAILURE) { 85 | String methodName = result.getMethod().getMethodName(); 86 | String logTest = "Test Case" + methodName + "Failed"; 87 | Markup m =MarkupHelper.createLabel(logTest, ExtentColor.RED); 88 | logger.log(Status.FAIL,m); 89 | String paht = ScreenShotUtilitis.getScreenShot(getDriver(), result.getName()); 90 | //logger.addScreenCaptureFromPath(methodName +" "+paht); 91 | logger.addScreenCaptureFromPath(paht); 92 | 93 | }else if (result.getStatus()==ITestResult.SKIP) { 94 | String methodName = result.getMethod().getMethodName(); 95 | String logTest = "Test Case" + methodName + "Skiped"; 96 | Markup m =MarkupHelper.createLabel(logTest, ExtentColor.LIME); 97 | logger.log(Status.FAIL,m); 98 | 99 | } 100 | 101 | getDriver().quit(); 102 | } 103 | 104 | 105 | 106 | 107 | @AfterTest 108 | public void afterTestMethod() { 109 | extent.flush(); 110 | 111 | } 112 | 113 | public void setUpDriver(String browserName) { 114 | 115 | if (browserName.contentEquals("chrome")){ 116 | WebDriverManager.chromedriver().setup(); 117 | setDriver( new ChromeDriver()); 118 | 119 | }else if(browserName.contentEquals("firefox") ){ 120 | WebDriverManager.firefoxdriver().setup(); 121 | setDriver( new FirefoxDriver()); 122 | } 123 | } 124 | 125 | } 126 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageObjects/LandingPageElements.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageObjects; 2 | 3 | import org.openqa.selenium.WebDriver; 4 | 5 | import com.qa.pageUtils.ElementFetch; 6 | 7 | public class LandingPageElements { 8 | 9 | WebDriver driver ; 10 | 11 | String signInButton = "//span[text()='Hello, Sign in']"; 12 | 13 | 14 | public LandingPageElements(WebDriver driver) { 15 | this.driver = driver; 16 | } 17 | 18 | 19 | 20 | public LoginPageElements clickonSignInButton() { 21 | ElementFetch ef = new ElementFetch(); 22 | ef.getWebElement(driver,"XPATH", signInButton).click(); 23 | return new LoginPageElements(driver); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageObjects/LoginPageElements.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageObjects; 2 | 3 | import org.openqa.selenium.WebDriver; 4 | 5 | import com.qa.pageUtils.ElementFetch; 6 | 7 | public class LoginPageElements { 8 | 9 | 10 | WebDriver driver ; 11 | 12 | String loginText = "//h1[contains(text(),'Login')]"; 13 | String emailAddress = "ap_email"; 14 | String comtinueBtn = "continue"; 15 | String errorMsg = "#auth-error-message-box"; 16 | 17 | 18 | public LoginPageElements(WebDriver driver) { 19 | this.driver = driver; 20 | } 21 | 22 | public boolean virifyLoginPageOpenOrNot() { 23 | ElementFetch ef = new ElementFetch(); 24 | return ef.getWebElement(driver,"XPATH",loginText).isDisplayed(); 25 | } 26 | 27 | public void enterEmailid() { 28 | ElementFetch ef = new ElementFetch(); 29 | ef.getWebElement(driver,"ID",emailAddress ).sendKeys("user@phptravels.com"); 30 | } 31 | 32 | public boolean clickContinueButton () { 33 | ElementFetch ef = new ElementFetch(); 34 | ef.getWebElement(driver,"ID", comtinueBtn).click(); 35 | return ef.getWebElement(driver,"CSS", errorMsg).isDisplayed(); 36 | 37 | 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageUtils/Constants.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageUtils; 2 | 3 | public interface Constants { 4 | 5 | String url="https://www.amazon.co.uk/"; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageUtils/DataReader.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageUtils; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.nio.charset.StandardCharsets; 6 | import java.util.HashMap; 7 | import java.util.List; 8 | 9 | import org.apache.commons.io.FileUtils; 10 | 11 | import com.fasterxml.jackson.core.type.TypeReference; 12 | import com.fasterxml.jackson.databind.ObjectMapper; 13 | /** 14 | * This is an utilities class for data driven approach. 15 | * Licence under Author. 16 | * It is an illegal to copy this code. 17 | * Any help Please contact to Author. 18 | * @author Tohidur Rahman 19 | * 20 | * 21 | */ 22 | 23 | public class DataReader { 24 | 25 | /** 26 | * Method for JSON File reader. 27 | * @param filePath 28 | * @return 29 | * @throws IOException 30 | */ 31 | public List> getDataToMapFromJsonFile(String filePath) throws IOException { 32 | String jsonContent = FileUtils.readFileToString(new File(filePath), 33 | StandardCharsets.UTF_8); 34 | ObjectMapper mapper = new ObjectMapper(); 35 | List>data = mapper.readValue(jsonContent, new TypeReference>>(){}); 36 | 37 | 38 | return data; 39 | 40 | 41 | 42 | } 43 | public static void main(String[] args) { 44 | // TODO Auto-generated method stub 45 | 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageUtils/ElementFetch.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageUtils; 2 | 3 | import java.util.List; 4 | 5 | import org.openqa.selenium.By; 6 | import org.openqa.selenium.WebDriver; 7 | import org.openqa.selenium.WebElement; 8 | 9 | import com.qa.base.TestBase; 10 | 11 | public class ElementFetch { 12 | 13 | 14 | 15 | 16 | 17 | 18 | public WebElement getWebElement(WebDriver driver, String identifierType, String identifierValue) { 19 | 20 | switch (identifierType) { 21 | case "ID": 22 | return driver.findElement(By.id(identifierValue)); 23 | case "CSS": 24 | return driver.findElement(By.cssSelector(identifierValue)); 25 | 26 | case "TAGNAME": 27 | return driver.findElement(By.tagName(identifierValue)); 28 | case "XPATH": 29 | return driver.findElement(By.xpath(identifierValue)); 30 | case "NAME": 31 | return driver.findElement(By.name(identifierValue)); 32 | case "CLASSNAME": 33 | return driver.findElement(By.className(identifierValue)); 34 | default: 35 | return null; 36 | } 37 | 38 | 39 | } 40 | 41 | 42 | 43 | public List getWebElements(WebDriver driver,String identifierType, String identifierValue) { 44 | 45 | switch (identifierType) { 46 | case "ID": 47 | return driver.findElements(By.id(identifierValue)); 48 | case "CSS": 49 | return driver.findElements(By.cssSelector(identifierValue)); 50 | 51 | case "TAGNAME": 52 | return driver.findElements(By.tagName(identifierValue)); 53 | case "XPATH": 54 | return driver.findElements(By.xpath(identifierValue)); 55 | case "NAME": 56 | return driver.findElements(By.name(identifierValue)); 57 | case "CLASSNAME": 58 | return driver.findElements(By.className(identifierValue)); 59 | default: 60 | return null; 61 | } 62 | 63 | 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageUtils/ScreenShotUtilitis.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageUtils; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | 8 | import org.apache.commons.io.FileUtils; 9 | import org.openqa.selenium.OutputType; 10 | import org.openqa.selenium.TakesScreenshot; 11 | import org.openqa.selenium.WebDriver; 12 | 13 | import com.qa.base.TestBase; 14 | 15 | public class ScreenShotUtilitis { 16 | 17 | 18 | 19 | 20 | public static String getScreenShot(WebDriver driver,String screenshotName) throws IOException { 21 | 22 | 23 | String dateName = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()); 24 | TakesScreenshot ts = (TakesScreenshot)driver; 25 | File source =ts.getScreenshotAs(OutputType.FILE); 26 | String destination = System.getProperty("user.dir")+ "/FAILED/"+screenshotName+dateName+".png"; 27 | File finalDestination = new File(destination); 28 | FileUtils.copyFile(source, finalDestination); 29 | return destination; 30 | 31 | 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/qa/pageUtils/SuiteListener.java: -------------------------------------------------------------------------------- 1 | package com.qa.pageUtils; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | 6 | import org.apache.commons.io.FileUtils; 7 | import org.openqa.selenium.OutputType; 8 | import org.openqa.selenium.TakesScreenshot; 9 | import org.testng.ITestContext; 10 | import org.testng.ITestListener; 11 | import org.testng.ITestResult; 12 | 13 | import com.qa.base.TestBase; 14 | 15 | public class SuiteListener implements ITestListener{ 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | public void onTestStart(ITestResult result) { 24 | 25 | } 26 | 27 | public void onTestSuccess(ITestResult result) { 28 | 29 | } 30 | 31 | public void onTestFailure(ITestResult result) { 32 | 33 | } 34 | 35 | public void onTestSkipped(ITestResult result) { 36 | 37 | } 38 | 39 | public void onTestFailedButWithinSuccessPercentage(ITestResult result) { 40 | // String fileName=System.getProperty("user.dir")+ File.separator +"screenshots"+File.separator + result.getMethod().getMethodName(); 41 | // Object currentInstance = result.getInstance(); 42 | // File file = ((TakesScreenshot)((TestBase)currentInstance).getDriver()).getScreenshotAs(OutputType.FILE); 43 | // try { 44 | // FileUtils.copyFile(file, new File(fileName + ".png")); 45 | // } catch (IOException e) { 46 | // e.printStackTrace(); 47 | // } 48 | // 49 | // 50 | 51 | 52 | 53 | 54 | } 55 | 56 | public void onTestFailedWithTimeout(ITestResult result) { 57 | 58 | } 59 | 60 | public void onStart(ITestContext context) { 61 | 62 | } 63 | 64 | public void onFinish(ITestContext context) { 65 | 66 | } 67 | 68 | 69 | 70 | 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/test/java/com/qa/TestCases/LandingPageTest.java: -------------------------------------------------------------------------------- 1 | package com.qa.TestCases; 2 | 3 | import org.testng.annotations.DataProvider; 4 | import org.testng.annotations.Test; 5 | import org.testng.AssertJUnit; 6 | 7 | import java.io.IOException; 8 | import java.util.HashMap; 9 | import java.util.List; 10 | 11 | import org.testng.Assert; 12 | import org.testng.annotations.Test; 13 | 14 | import com.qa.base.TestBase; 15 | import com.qa.pageObjects.LandingPageElements; 16 | import com.qa.pageObjects.LoginPageElements; 17 | import com.qa.pageUtils.DataReader; 18 | 19 | public class LandingPageTest extends TestBase{ 20 | 21 | 22 | 23 | 24 | @Test 25 | public void clicSign() { 26 | LandingPageElements Hp = new LandingPageElements(getDriver()); 27 | Hp.clickonSignInButton(); 28 | LoginPageElements lp = new LoginPageElements(getDriver()); 29 | boolean b = lp.virifyLoginPageOpenOrNot(); 30 | Assert.assertTrue(b); 31 | 32 | } 33 | 34 | //This data provider is an frameWork of data driven approach from Json file. 35 | //We can drive data using excel file as well. 36 | @Test(dataProvider = "getData") 37 | public void invalidLoginTest(HashMapinput) { 38 | // userName.sendKeys(input.get("email")); 39 | // passWord.sendKeys(input.get("password")); 40 | // loginBtn.click(); 41 | 42 | 43 | } 44 | @DataProvider 45 | public Object[][] getData() throws IOException { 46 | 47 | DataReader reader = new DataReader(); 48 | List> data = reader.getDataToMapFromJsonFile(System.getProperty("user.dir")+"/src/main/java/com/qa/TestData/LoginData.json"); 49 | return new Object[][] {{data.get(0)},{data.get(1)}}; 50 | } 51 | 52 | 53 | 54 | 55 | } 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/test/java/com/qa/TestCases/LoginPageTest.java: -------------------------------------------------------------------------------- 1 | package com.qa.TestCases; 2 | 3 | import org.testng.Assert; 4 | import org.testng.annotations.Test; 5 | import org.testng.internal.BaseTestMethod; 6 | 7 | import com.qa.base.TestBase; 8 | import com.qa.pageObjects.LandingPageElements; 9 | import com.qa.pageObjects.LoginPageElements; 10 | 11 | public class LoginPageTest extends TestBase{ 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | @Test 20 | public void checkemaiIdField () { 21 | LandingPageElements Hp = new LandingPageElements(getDriver()); 22 | Hp.clickonSignInButton(); 23 | LoginPageElements lp = new LoginPageElements(getDriver()); 24 | TestBase.logger.info("entering email in email field"); 25 | lp.enterEmailid(); 26 | 27 | } 28 | @Test 29 | public void clickonContinueBtn() { 30 | LandingPageElements Hp = new LandingPageElements(getDriver()); 31 | Hp.clickonSignInButton(); 32 | LoginPageElements lp = new LoginPageElements(getDriver()); 33 | lp.enterEmailid(); 34 | boolean b = lp.clickContinueButton(); 35 | TestBase.logger.info("Clicking on continue button"); 36 | Assert.assertTrue(b); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /target/classes/com/qa/TestData/LoginData.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"userName":"hellow@gmail.com", 3 | "passWord":"hi@123" 4 | }, 5 | 6 | {"userName":"hellow@gmail.com", 7 | "passWord":"hi@123"}, 8 | 9 | {"userName":"hellow@gmail.com", 10 | "passWord":"hi@123"} 11 | 12 | 13 | 14 | ] -------------------------------------------------------------------------------- /target/classes/com/qa/base/TestBase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/base/TestBase.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageObjects/LandingPageElements.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageObjects/LandingPageElements.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageObjects/LoginPageElements.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageObjects/LoginPageElements.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageUtils/Constants.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageUtils/Constants.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageUtils/DataReader$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageUtils/DataReader$1.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageUtils/DataReader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageUtils/DataReader.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageUtils/ElementFetch.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageUtils/ElementFetch.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageUtils/ScreenShotUtilitis.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageUtils/ScreenShotUtilitis.class -------------------------------------------------------------------------------- /target/classes/com/qa/pageUtils/SuiteListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/classes/com/qa/pageUtils/SuiteListener.class -------------------------------------------------------------------------------- /target/test-classes/com/qa/TestCases/LandingPageTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/test-classes/com/qa/TestCases/LandingPageTest.class -------------------------------------------------------------------------------- /target/test-classes/com/qa/TestCases/LoginPageTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/target/test-classes/com/qa/TestCases/LoginPageTest.class -------------------------------------------------------------------------------- /test-output/Suite/Running in Chrome Browser .html: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestNG: Running in Chrome Browser 4 | 5 | 6 | 7 | 11 | 53 | 54 | 55 | 56 |

Running in Chrome Browser

57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Tests passed/Failed/Skipped:2/1/0
Started on:Fri Aug 19 16:36:29 BST 2022
Total time:39 seconds (39705 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
clicSign
Test class: com.qa.TestCases.LandingPageTest
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//h1[contains(text(),'Login')]"}
 80 |   (Session info: chrome=104.0.5112.101)
 81 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
 82 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
 83 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1'
 84 | Driver info: org.openqa.selenium.chrome.ChromeDriver
 85 | Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 104.0.5112.101, chrome: {chromedriverVersion: 104.0.5112.79 (3cf3e8c8a07d..., userDataDir: /var/folders/hw/9qtphsf54yb...}, goog:chromeOptions: {debuggerAddress: localhost:50587}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
 86 | Session ID: 228f3ac0cee7e7336751559d24b87a3f
 87 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]}
 88 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
 89 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
 90 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
 91 | 	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
 92 | 	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
 93 | 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
 94 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)
 95 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
 96 | 	at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
 97 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)
 98 | 	at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29)
 99 | 	at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24)
100 | 	at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22)
101 | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
102 | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
103 | 	at java.base/java.lang.Thread.run(Thread.java:834)
104 | ... Removed 16 stack frames
Click to show all stack frames 105 |
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//h1[contains(text(),'Login')]"}
106 |   (Session info: chrome=104.0.5112.101)
107 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
108 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
109 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1'
110 | Driver info: org.openqa.selenium.chrome.ChromeDriver
111 | Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 104.0.5112.101, chrome: {chromedriverVersion: 104.0.5112.79 (3cf3e8c8a07d..., userDataDir: /var/folders/hw/9qtphsf54yb...}, goog:chromeOptions: {debuggerAddress: localhost:50587}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
112 | Session ID: 228f3ac0cee7e7336751559d24b87a3f
113 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]}
114 | 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
115 | 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
116 | 	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
117 | 	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
118 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
119 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
120 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
121 | 	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
122 | 	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
123 | 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
124 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)
125 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
126 | 	at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
127 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)
128 | 	at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29)
129 | 	at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24)
130 | 	at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22)
131 | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
132 | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
133 | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
134 | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
135 | 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)
136 | 	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
137 | 	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
138 | 	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
139 | 	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:821)
140 | 	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
141 | 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
142 | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
143 | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
144 | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
145 | 	at java.base/java.lang.Thread.run(Thread.java:834)
146 | 
11com.qa.TestCases.LandingPageTest@7690781

150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 |
PASSED TESTS
Test methodExceptionTime (seconds)Instance
checkemaiIdField
Test class: com.qa.TestCases.LoginPageTest
5com.qa.TestCases.LoginPageTest@26275bef
clickonContinueBtn
Test class: com.qa.TestCases.LoginPageTest
5com.qa.TestCases.LoginPageTest@26275bef

168 | 169 | -------------------------------------------------------------------------------- /test-output/Suite/Running in Chrome Browser .xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 16 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /test-output/Suite/Running in Firefox Browser .html: -------------------------------------------------------------------------------- 1 | 2 | 3 | TestNG: Running in Firefox Browser 4 | 5 | 6 | 7 | 11 | 53 | 54 | 55 | 56 |

Running in Firefox Browser

57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
Tests passed/Failed/Skipped:2/1/0
Started on:Fri Aug 19 16:37:09 BST 2022
Total time:49 seconds (49107 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 | 145 | 146 | 147 |
FAILED TESTS
Test methodExceptionTime (seconds)Instance
clicSign
Test class: com.qa.TestCases.LandingPageTest
org.openqa.selenium.NoSuchElementException: Unable to locate element: //h1[contains(text(),'Login')]
 80 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
 81 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
 82 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1'
 83 | Driver info: org.openqa.selenium.firefox.FirefoxDriver
 84 | Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 103.0.2, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220808125904, moz:geckodriverVersion: 0.31.0, moz:headless: false, moz:platformVersion: 19.6.0, moz:processID: 8957, moz:profile: /var/folders/hw/9qtphsf54yb..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
 85 | Session ID: 6e897150-e191-4965-927d-d18536e43f90
 86 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]}
 87 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
 88 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
 89 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
 90 | 	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
 91 | 	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
 92 | 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
 93 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)
 94 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
 95 | 	at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
 96 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)
 97 | 	at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29)
 98 | 	at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24)
 99 | 	at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22)
100 | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
101 | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
102 | 	at java.base/java.lang.Thread.run(Thread.java:834)
103 | ... Removed 16 stack frames
Click to show all stack frames 104 |
org.openqa.selenium.NoSuchElementException: Unable to locate element: //h1[contains(text(),'Login')]
105 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
106 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
107 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1'
108 | Driver info: org.openqa.selenium.firefox.FirefoxDriver
109 | Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 103.0.2, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220808125904, moz:geckodriverVersion: 0.31.0, moz:headless: false, moz:platformVersion: 19.6.0, moz:processID: 8957, moz:profile: /var/folders/hw/9qtphsf54yb..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
110 | Session ID: 6e897150-e191-4965-927d-d18536e43f90
111 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]}
112 | 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
113 | 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
114 | 	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
115 | 	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
116 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
117 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
118 | 	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
119 | 	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
120 | 	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
121 | 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
122 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)
123 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428)
124 | 	at org.openqa.selenium.By$ByXPath.findElement(By.java:353)
125 | 	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)
126 | 	at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29)
127 | 	at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24)
128 | 	at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22)
129 | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
130 | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
131 | 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
132 | 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
133 | 	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135)
134 | 	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
135 | 	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
136 | 	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
137 | 	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:821)
138 | 	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
139 | 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
140 | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
141 | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
142 | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
143 | 	at java.base/java.lang.Thread.run(Thread.java:834)
144 | 
11com.qa.TestCases.LandingPageTest@51dcb805

148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 |
PASSED TESTS
Test methodExceptionTime (seconds)Instance
checkemaiIdField
Test class: com.qa.TestCases.LoginPageTest
1com.qa.TestCases.LoginPageTest@625732
clickonContinueBtn
Test class: com.qa.TestCases.LoginPageTest
3com.qa.TestCases.LoginPageTest@625732

166 | 167 | -------------------------------------------------------------------------------- /test-output/Suite/Running in Firefox Browser .xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 15 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /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 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /test-output/bullet_point.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/test-output/bullet_point.png -------------------------------------------------------------------------------- /test-output/collapseall.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/test-output/collapseall.gif -------------------------------------------------------------------------------- /test-output/emailable-report.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | TestNG Report 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
Test# Passed# Skipped# Retried# FailedTime (ms)Included GroupsExcluded Groups
Suite
Running in Chrome Browser 200139,705
Running in Firefox Browser 200149,107
Total400288,812
16 | 17 | 18 |
ClassMethodStartTime (ms)
Suite
Running in Chrome Browser — failed
com.qa.TestCases.LandingPageTestclicSign166092341599011086
Running in Chrome Browser — passed
com.qa.TestCases.LoginPageTestcheckemaiIdField16609234042325211
clickonContinueBtn16609234060905568
Running in Firefox Browser — failed
com.qa.TestCases.LandingPageTestclicSign166092346527911630
Running in Firefox Browser — passed
com.qa.TestCases.LoginPageTestcheckemaiIdField16609234533511533
clickonContinueBtn16609234527923070
19 |

Running in Chrome Browser

com.qa.TestCases.LandingPageTest#clicSign

Exception
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//h1[contains(text(),'Login')]"} 20 | (Session info: chrome=104.0.5112.101) 21 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html 22 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' 23 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1' 24 | Driver info: org.openqa.selenium.chrome.ChromeDriver 25 | Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 104.0.5112.101, chrome: {chromedriverVersion: 104.0.5112.79 (3cf3e8c8a07d..., userDataDir: /var/folders/hw/9qtphsf54yb...}, goog:chromeOptions: {debuggerAddress: localhost:50587}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true} 26 | Session ID: 228f3ac0cee7e7336751559d24b87a3f 27 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]} 28 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) 29 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) 30 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) 31 | at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) 32 | at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) 33 | at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) 34 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) 35 | at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) 36 | at org.openqa.selenium.By$ByXPath.findElement(By.java:353) 37 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) 38 | at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29) 39 | at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24) 40 | at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22) 41 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 42 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 43 | at java.base/java.lang.Thread.run(Thread.java:834) 44 | ... Removed 16 stack frames

back to summary

45 |

com.qa.TestCases.LoginPageTest#checkemaiIdField

back to summary

46 |

com.qa.TestCases.LoginPageTest#clickonContinueBtn

back to summary

47 |

Running in Firefox Browser

com.qa.TestCases.LandingPageTest#clicSign

Exception
org.openqa.selenium.NoSuchElementException: Unable to locate element: //h1[contains(text(),'Login')] 48 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html 49 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' 50 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1' 51 | Driver info: org.openqa.selenium.firefox.FirefoxDriver 52 | Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 103.0.2, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220808125904, moz:geckodriverVersion: 0.31.0, moz:headless: false, moz:platformVersion: 19.6.0, moz:processID: 8957, moz:profile: /var/folders/hw/9qtphsf54yb..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} 53 | Session ID: 6e897150-e191-4965-927d-d18536e43f90 54 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]} 55 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) 56 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) 57 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) 58 | at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) 59 | at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) 60 | at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) 61 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) 62 | at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) 63 | at org.openqa.selenium.By$ByXPath.findElement(By.java:353) 64 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) 65 | at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29) 66 | at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24) 67 | at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22) 68 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 69 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 70 | at java.base/java.lang.Thread.run(Thread.java:834) 71 | ... Removed 16 stack frames

back to summary

72 |

com.qa.TestCases.LoginPageTest#checkemaiIdField

back to summary

73 |

com.qa.TestCases.LoginPageTest#clickonContinueBtn

back to summary

74 | 75 | 76 | -------------------------------------------------------------------------------- /test-output/failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/test-output/failed.png -------------------------------------------------------------------------------- /test-output/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | TestNG reports 7 | 8 | 9 | 10 | 11 | 12 | 13 | 19 | 22 | 23 | 24 | 25 |
26 | Test results 27 | 28 |
29 | 1 suite, 2 failed tests 30 |
31 | 153 |
154 |
155 |
156 |
157 |
158 | 159 | com.qa.TestCases.LandingPageTest 160 |
161 |
162 |
163 |
164 | 165 | 166 | clicSign 167 |
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//h1[contains(text(),'Login')]"} 168 | (Session info: chrome=104.0.5112.101) 169 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html 170 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' 171 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1' 172 | Driver info: org.openqa.selenium.chrome.ChromeDriver 173 | Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 104.0.5112.101, chrome: {chromedriverVersion: 104.0.5112.79 (3cf3e8c8a07d..., userDataDir: /var/folders/hw/9qtphsf54yb...}, goog:chromeOptions: {debuggerAddress: localhost:50587}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true} 174 | Session ID: 228f3ac0cee7e7336751559d24b87a3f 175 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]} 176 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) 177 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) 178 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) 179 | at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) 180 | at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) 181 | at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) 182 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) 183 | at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) 184 | at org.openqa.selenium.By$ByXPath.findElement(By.java:353) 185 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) 186 | at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29) 187 | at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24) 188 | at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22) 189 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 190 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 191 | at java.base/java.lang.Thread.run(Thread.java:834) 192 | ... Removed 16 stack frames 193 |
194 |
195 |
196 |
197 |
198 | 199 | 200 | clicSign 201 |
org.openqa.selenium.NoSuchElementException: Unable to locate element: //h1[contains(text(),'Login')] 202 | For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html 203 | Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' 204 | System info: host: 'Tohidurs-Air', ip: '2a02:c7e:10b3:1200:f50a:cb51:dbe1:1a41%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '11.0.15.1' 205 | Driver info: org.openqa.selenium.firefox.FirefoxDriver 206 | Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 103.0.2, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220808125904, moz:geckodriverVersion: 0.31.0, moz:headless: false, moz:platformVersion: 19.6.0, moz:processID: 8957, moz:profile: /var/folders/hw/9qtphsf54yb..., moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platform: MAC, platformName: MAC, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} 207 | Session ID: 6e897150-e191-4965-927d-d18536e43f90 208 | *** Element info: {Using=xpath, value=//h1[contains(text(),'Login')]} 209 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) 210 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) 211 | at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) 212 | at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) 213 | at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) 214 | at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) 215 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323) 216 | at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:428) 217 | at org.openqa.selenium.By$ByXPath.findElement(By.java:353) 218 | at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315) 219 | at com.qa.pageUtils.ElementFetch.getWebElement(ElementFetch.java:29) 220 | at com.qa.pageObjects.LoginPageElements.virifyLoginPageOpenOrNot(LoginPageElements.java:24) 221 | at com.qa.TestCases.LandingPageTest.clicSign(LandingPageTest.java:22) 222 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 223 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 224 | at java.base/java.lang.Thread.run(Thread.java:834) 225 | ... Removed 16 stack frames 226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 | 234 | com.qa.TestCases.LoginPageTest 235 |
236 |
237 |
238 |
239 | 240 | 241 | checkemaiIdField 242 |
243 |
244 |
245 |
246 | 247 | 248 | checkemaiIdField 249 |
250 |
251 |
252 |
253 | 254 | 255 | clickonContinueBtn 256 |
257 |
258 |
259 |
260 | 261 | 262 | clickonContinueBtn 263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 | /Users/tohidur/eclipse-workspace/ParallelExecution/testng.xml 271 |
272 |
273 |
274 | <?xml version="1.0" encoding="UTF-8"?>
275 | <!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
276 | <suite thread-count="2" parallel="methods" name="Suite" guice-stage="DEVELOPMENT">
277 |   <listeners>
278 |     <listener class-name="com.qa.pageUtils.SuiteListener"/>
279 |   </listeners>
280 |   <test thread-count="2" parallel="methods" name="Running in Chrome Browser ">
281 |     <parameter name="browserName" value="chrome"/>
282 |     <classes>
283 |       <class name="com.qa.TestCases.LoginPageTest"/>
284 |       <class name="com.qa.TestCases.LandingPageTest"/>
285 |     </classes>
286 |   </test> <!-- Running in Chrome Browser  -->
287 |   <test thread-count="2" parallel="methods" name="Running in Firefox Browser ">
288 |     <parameter name="browserName" value="firefox"/>
289 |     <classes>
290 |       <class name="com.qa.TestCases.LoginPageTest"/>
291 |       <class name="com.qa.TestCases.LandingPageTest"/>
292 |     </classes>
293 |   </test> <!-- Running in Firefox Browser  -->
294 | </suite> <!-- Suite -->
295 |             
296 |
297 |
298 |
299 |
300 | Tests for Suite 301 |
302 |
303 |
    304 |
  • 305 | Running in Chrome Browser (2 classes) 306 |
  • 307 |
  • 308 | Running in Firefox Browser (2 classes) 309 |
  • 310 |
311 |
312 |
313 |
314 |
315 | Groups for Suite 316 |
317 |
318 |
319 |
320 |
321 |
322 | Times for Suite 323 |
324 |
325 |
326 | 363 | Total running time: 38 seconds 364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 | Reporter output for Suite 372 |
373 |
374 |
375 |
376 |
377 |
378 | 4 ignored methods 379 |
380 |
381 |
382 | com.qa.TestCases.LandingPageTest 383 |
384 | afterTestMethod 385 |
386 | afterTestMethod 387 |
388 | beforeTestMethod 389 |
390 | beforeTestMethod 391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 | Methods in chronological order 399 |
400 |
401 |
402 |
com.qa.TestCases.LoginPageTest
403 |
404 | beforeTestMethod 405 | 0 ms 406 |
407 |
408 | beforeMethodMethod(chrome, public void com.qa.TestCases.LoginPageTest.checkemaiIdField()) 409 | 454 ms 410 |
411 |
412 | beforeMethodMethod(chrome, public void com.qa.TestCases.LoginPageTest.clickonContinueBtn()) 413 | 454 ms 414 |
415 |
416 | checkemaiIdField 417 | 14824 ms 418 |
419 |
420 | clickonContinueBtn 421 | 16682 ms 422 |
423 |
424 | afterMethodMethod([TestResult name=checkemaiIdField status=SUCCESS method=LoginPageTest.checkemaiIdField()[pri:0, inst...) 425 | 20046 ms 426 |
427 |
428 |
429 |
com.qa.TestCases.LandingPageTest
430 |
431 | beforeMethodMethod(chrome, public void com.qa.TestCases.LandingPageTest.clicSign()) 432 | 20301 ms 433 |
434 |
435 |
436 |
com.qa.TestCases.LoginPageTest
437 |
438 | afterMethodMethod([TestResult name=clickonContinueBtn status=SUCCESS method=LoginPageTest.clickonContinueBtn()[pri:0, ...) 439 | 22255 ms 440 |
441 |
442 |
443 |
com.qa.TestCases.LandingPageTest
444 |
445 | 446 | 447 | clicSign 448 | 26582 ms 449 |
450 |
451 | afterMethodMethod([TestResult name=clicSign status=FAILURE method=LandingPageTest.clicSign()[pri:0, instance:com.qa.Te...) 452 | 37674 ms 453 |
454 |
455 |
456 |
com.qa.TestCases.LoginPageTest
457 |
458 | afterTestMethod 459 | 38617 ms 460 |
461 |
462 | beforeTestMethod 463 | 39773 ms 464 |
465 |
466 | beforeMethodMethod(firefox, public void com.qa.TestCases.LoginPageTest.checkemaiIdField()) 467 | 39778 ms 468 |
469 |
470 | beforeMethodMethod(firefox, public void com.qa.TestCases.LoginPageTest.clickonContinueBtn()) 471 | 39784 ms 472 |
473 |
474 | clickonContinueBtn 475 | 63384 ms 476 |
477 |
478 | checkemaiIdField 479 | 63943 ms 480 |
481 |
482 | afterMethodMethod([TestResult name=checkemaiIdField status=SUCCESS method=LoginPageTest.checkemaiIdField()[pri:0, inst...) 483 | 65479 ms 484 |
485 |
486 | afterMethodMethod([TestResult name=clickonContinueBtn status=SUCCESS method=LoginPageTest.clickonContinueBtn()[pri:0, ...) 487 | 66458 ms 488 |
489 |
490 |
491 |
com.qa.TestCases.LandingPageTest
492 |
493 | beforeMethodMethod(firefox, public void com.qa.TestCases.LandingPageTest.clicSign()) 494 | 68043 ms 495 |
496 |
497 | 498 | 499 | clicSign 500 | 75871 ms 501 |
502 |
503 | afterMethodMethod([TestResult name=clicSign status=FAILURE method=LandingPageTest.clicSign()[pri:0, instance:com.qa.Te...) 504 | 87505 ms 505 |
506 |
507 |
508 |
com.qa.TestCases.LoginPageTest
509 |
510 | afterTestMethod 511 | 88740 ms 512 |
513 |
514 |
515 |
516 |
517 | 518 | 519 | 520 | -------------------------------------------------------------------------------- /test-output/junitreports/TEST-com.qa.TestCases.LandingPageTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 13 | 54 | 55 | 56 | 57 | 58 | 67 | 109 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /test-output/junitreports/TEST-com.qa.TestCases.LoginPageTest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /test-output/navigator-bullet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/test-output/navigator-bullet.png -------------------------------------------------------------------------------- /test-output/old/Suite/Running in Chrome Browser .properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=Running in Chrome Browser ][SuiteResult context=Running in Firefox Browser ] -------------------------------------------------------------------------------- /test-output/old/Suite/Running in Firefox Browser .properties: -------------------------------------------------------------------------------- 1 | [SuiteResult context=Running in Chrome Browser ][SuiteResult context=Running in Firefox Browser ] -------------------------------------------------------------------------------- /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 | 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 |
Class nameMethod nameGroups
com.qa.TestCases.LandingPageTest  
@Test
 clicSign 
@BeforeClass
@BeforeMethod
 beforeMethodMethod 
@AfterMethod
 afterMethodMethod 
@AfterClass
com.qa.TestCases.LoginPageTest  
@Test
 clickonContinueBtn 
 checkemaiIdField 
@BeforeClass
@BeforeMethod
 beforeMethodMethod 
@AfterMethod
 afterMethodMethod 
@AfterClass
71 | -------------------------------------------------------------------------------- /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 | 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 |
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
22/08/19 16:36:49 0     <<afterMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:51 2209     <<afterMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:37:07 17629     <<afterMethodMethod  TestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:37:34 45433     <<afterMethodMethod  TestNG-test=Running in Firefox Browser -2@514050597
22/08/19 16:37:35 46413     <<afterMethodMethod  TestNG-test=Running in Firefox Browser -2@514050597
22/08/19 16:37:56 67460     <<afterMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:08 18572  <<afterTestMethod     main@2051120548
22/08/19 16:37:58 68695  <<afterTestMethod     main@2051120548
22/08/19 16:36:29 -19589     >>beforeMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:29 -19589     >>beforeMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:49 255     >>beforeMethodMethod  TestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:37:09 19738     >>beforeMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:09 19746     >>beforeMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:37 47998     >>beforeMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:36:29 -20022  >>beforeTestMethod     main@2051120548
22/08/19 16:37:09 19728  >>beforeTestMethod     main@2051120548
22/08/19 16:36:44 -5222      checkemaiIdFieldTestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:37:33 43897      checkemaiIdFieldTestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:36:55 6536      clicSignTestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:37:45 55825      clicSignTestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:36:46 -3364      clickonContinueBtnTestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:37:32 43338      clickonContinueBtnTestNG-test=Running in Firefox Browser -2@514050597
49 | -------------------------------------------------------------------------------- /test-output/old/Suite/methods-not-run.html: -------------------------------------------------------------------------------- 1 |

Methods that were not run

2 | 3 | 4 | 5 | 6 |
com.qa.base.TestBase.afterTestMethod
com.qa.base.TestBase.beforeTestMethod
com.qa.base.TestBase.afterTestMethod
com.qa.base.TestBase.beforeTestMethod
-------------------------------------------------------------------------------- /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 | 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 |
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
22/08/19 16:36:29 0  >>beforeTestMethod     main@2051120548
22/08/19 16:36:29 433     >>beforeMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:29 433     >>beforeMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:44 14800      checkemaiIdFieldTestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:36:46 16658      clickonContinueBtnTestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:49 20022     <<afterMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:49 20277     >>beforeMethodMethod  TestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:36:51 22231     <<afterMethodMethod  TestNG-test=Running in Chrome Browser -2@909492469
22/08/19 16:36:55 26558      clicSignTestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:37:07 37651     <<afterMethodMethod  TestNG-test=Running in Chrome Browser -1@1406183951
22/08/19 16:37:08 38594  <<afterTestMethod     main@2051120548
22/08/19 16:37:09 39750  >>beforeTestMethod     main@2051120548
22/08/19 16:37:09 39760     >>beforeMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:09 39768     >>beforeMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:32 63360      clickonContinueBtnTestNG-test=Running in Firefox Browser -2@514050597
22/08/19 16:37:33 63919      checkemaiIdFieldTestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:34 65455     <<afterMethodMethod  TestNG-test=Running in Firefox Browser -2@514050597
22/08/19 16:37:35 66435     <<afterMethodMethod  TestNG-test=Running in Firefox Browser -2@514050597
22/08/19 16:37:37 68020     >>beforeMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:45 75847      clicSignTestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:56 87482     <<afterMethodMethod  TestNG-test=Running in Firefox Browser -1@1380989921
22/08/19 16:37:58 88717  <<afterTestMethod     main@2051120548
49 | -------------------------------------------------------------------------------- /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 "https://testng.org/testng-1.0.dtd">
<suite thread-count="2" parallel="methods" name="Suite" guice-stage="DEVELOPMENT">
  <listeners>
    <listener class-name="com.qa.pageUtils.SuiteListener"/>
  </listeners>
  <test thread-count="2" parallel="methods" name="Running in Chrome Browser ">
    <parameter name="browserName" value="chrome"/>
    <classes>
      <class name="com.qa.TestCases.LoginPageTest"/>
      <class name="com.qa.TestCases.LandingPageTest"/>
    </classes>
  </test> <!-- Running in Chrome Browser  -->
  <test thread-count="2" parallel="methods" name="Running in Firefox Browser ">
    <parameter name="browserName" value="firefox"/>
    <classes>
      <class name="com.qa.TestCases.LoginPageTest"/>
      <class name="com.qa.TestCases.LandingPageTest"/>
    </classes>
  </test> <!-- Running in Firefox Browser  -->
</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 |
2 tests2 classes6 methods:
14 |   chronological
15 |   alphabetical
16 |   not run (4)
0 groupreporter outputtestng.xml
23 | 24 |

29 |

25 |
Running in Chrome Browser (2/1/0) 26 | Results 27 |
28 |
30 | 31 | 32 |

37 |

33 |
Running in Firefox Browser (2/1/0) 34 | Results 35 |
36 |
38 | -------------------------------------------------------------------------------- /test-output/old/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Test results

6 | 7 | 8 | 9 |
SuitePassedFailedSkippedtestng.xml
Total420 
Suite420Link
10 | -------------------------------------------------------------------------------- /test-output/passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/test-output/passed.png -------------------------------------------------------------------------------- /test-output/skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourovbm21/SeleniunJavaTestNgExtentPageObjectModelFrameWork/623141e5bbe3cf0c882888e0e7f12eef0fb6cc09/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 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /test-output/testng-reports.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0 0 5px 5px; 3 | } 4 | 5 | ul { 6 | margin: 0; 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: 0 10px 10px 0; 45 | background-color: #fff8dc; 46 | } 47 | 48 | .suite-name { 49 | padding-left: 10px; 50 | font-size: 25px; 51 | font-family: Times, sans-serif; 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: 0 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: 0 0 1px 0; 102 | margin-bottom: 10px; 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: 0; 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 0 0 0; 139 | font-family: Times, sans-serif; 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: 0 0 5px 0; 156 | background-color: #0066ff; 157 | font-family: Times, sans-serif; 158 | color: #fff; 159 | text-align: center; 160 | } 161 | .button{ 162 | position: absolute; 163 | margin-left:500px; 164 | margin-top:8px; 165 | background-color: white; 166 | color:#0066ff; 167 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 168 | font-weight:bold; 169 | border-color:#0066ff ; 170 | border-radius:25px; 171 | cursor: pointer; 172 | height:30px; 173 | width:150px; 174 | outline:none; 175 | 176 | } 177 | 178 | .top-banner-title-font { 179 | font-size: 25px; 180 | } 181 | 182 | .test-name { 183 | font-family: 'Lucida Grande', sans-serif; 184 | font-size: 16px; 185 | } 186 | 187 | .suite-icon { 188 | padding: 5px; 189 | float: right; 190 | height: 20px; 191 | } 192 | 193 | .test-group { 194 | font: 20px 'Lucida Grande'; 195 | margin: 5px 5px 10px 5px; 196 | border-width: 0 0 1px 0; 197 | border-style: solid; 198 | padding: 5px; 199 | } 200 | 201 | .test-group-name { 202 | font-weight: bold; 203 | } 204 | 205 | .method-in-group { 206 | font-size: 16px; 207 | margin-left: 80px; 208 | } 209 | 210 | table.google-visualization-table-table { 211 | width: 100%; 212 | } 213 | 214 | .reporter-method-name { 215 | font-size: 14px; 216 | font-family: monospace; 217 | } 218 | 219 | .reporter-method-output-div { 220 | padding: 5px; 221 | margin: 0 0 5px 20px; 222 | font-size: 12px; 223 | font-family: monospace; 224 | border-width: 0 0 0 1px; 225 | border-style: solid; 226 | } 227 | 228 | .ignored-class-div { 229 | font-size: 14px; 230 | font-family: monospace; 231 | } 232 | 233 | .ignored-methods-div { 234 | padding: 5px; 235 | margin: 0 0 5px 20px; 236 | font-size: 12px; 237 | font-family: monospace; 238 | border-width: 0 0 0 1px; 239 | border-style: solid; 240 | } 241 | 242 | .border-failed { 243 | border-top-left-radius: 10px 10px; 244 | border-bottom-left-radius: 10px 10px; 245 | border-style: solid; 246 | border-width: 0 0 0 10px; 247 | border-color: #f00; 248 | } 249 | 250 | .border-skipped { 251 | border-top-left-radius: 10px 10px; 252 | border-bottom-left-radius: 10px 10px; 253 | border-style: solid; 254 | border-width: 0 0 0 10px; 255 | border-color: #edc600; 256 | } 257 | 258 | .border-passed { 259 | border-top-left-radius: 10px 10px; 260 | border-bottom-left-radius: 10px 10px; 261 | border-style: solid; 262 | border-width: 0 0 0 10px; 263 | border-color: #19f52d; 264 | } 265 | 266 | .times-div { 267 | text-align: center; 268 | padding: 5px; 269 | } 270 | 271 | .suite-total-time { 272 | font: 16px 'Lucida Grande'; 273 | } 274 | 275 | .configuration-suite { 276 | margin-left: 20px; 277 | } 278 | 279 | .configuration-test { 280 | margin-left: 40px; 281 | } 282 | 283 | .configuration-class { 284 | margin-left: 60px; 285 | } 286 | 287 | .configuration-method { 288 | margin-left: 80px; 289 | } 290 | 291 | .test-method { 292 | margin-left: 100px; 293 | } 294 | 295 | .chronological-class { 296 | background-color: skyblue; 297 | border-style: solid; 298 | border-width: 0 0 1px 1px; 299 | } 300 | 301 | .method-start { 302 | float: right; 303 | } 304 | 305 | .chronological-class-name { 306 | padding: 0 0 0 5px; 307 | color: #008; 308 | } 309 | 310 | .after, .before, .test-method { 311 | font-family: monospace; 312 | font-size: 14px; 313 | } 314 | 315 | .navigator-suite-header { 316 | font-size: 22px; 317 | margin: 0 10px 5px 0; 318 | background-color: #deb887; 319 | text-align: center; 320 | } 321 | 322 | .collapse-all-icon { 323 | padding: 5px; 324 | float: right; 325 | } 326 | /*retro Theme*/ 327 | -------------------------------------------------------------------------------- /test-output/testng-reports.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | $('a.navigator-link').on("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').on("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().trigger("click"); 26 | 27 | // Collapse/expand the suites 28 | $('a.collapse-all-link').on("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).on("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).on("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).trigger("click"); 78 | } else { 79 | $('a.show-methods.' + name).trigger("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-reports1.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: whitesmoke; 3 | margin: 0 0 5px 5px; 4 | } 5 | ul { 6 | margin-top: 10px; 7 | margin-left:-10px; 8 | } 9 | li { 10 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 11 | padding:5px 5px; 12 | } 13 | a { 14 | text-decoration: none; 15 | color: black; 16 | font-size: 14px; 17 | } 18 | 19 | a:hover { 20 | color:black ; 21 | text-decoration: underline; 22 | } 23 | 24 | .navigator-selected { 25 | /* #ffa500; Mouse hover color after click Orange.*/ 26 | background:#027368 27 | } 28 | 29 | .wrapper { 30 | position: absolute; 31 | top: 60px; 32 | bottom: 0; 33 | left: 400px; 34 | right: 0; 35 | margin-right:9px; 36 | overflow: auto;/*imortant*/ 37 | } 38 | 39 | .navigator-root { 40 | position: absolute; 41 | top: 60px; 42 | bottom: 0; 43 | left: 0; 44 | width: 400px; 45 | overflow-y: auto;/*important*/ 46 | } 47 | 48 | .suite { 49 | margin: -5px 10px 10px 5px; 50 | background-color: whitesmoke ;/*Colour of the left bside box*/ 51 | } 52 | 53 | .suite-name { 54 | font-size: 24px; 55 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;/*All TEST SUITE*/ 56 | color: white; 57 | } 58 | 59 | .main-panel-header { 60 | padding: 5px; 61 | background-color: #027368; /*afeeee*/; 62 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 63 | color:white; 64 | font-size: 18px; 65 | } 66 | 67 | .main-panel-content { 68 | padding: 5px; 69 | margin-bottom: 10px; 70 | background-color: #CCD0D1; /*d0ffff*/; /*Belongs to backGround of rightSide boxes*/ 71 | } 72 | 73 | .rounded-window { 74 | border-style: dotted; 75 | border-width: 1px;/*Border of left Side box*/ 76 | background-color: whitesmoke; 77 | border-radius: 10px; 78 | } 79 | 80 | .rounded-window-top { 81 | border-top-right-radius: 10px 10px; 82 | border-top-left-radius: 10px 10px; 83 | border-style: solid; 84 | border-width: 1px; 85 | overflow: auto;/*Top of RightSide box*/ 86 | } 87 | 88 | .light-rounded-window-top { 89 | background-color: #027368; 90 | padding-left:120px; 91 | border-radius: 10px; 92 | 93 | } 94 | 95 | .rounded-window-bottom { 96 | border-bottom-right-radius: 10px 10px; 97 | border-bottom-left-radius: 10px 10px; 98 | overflow: auto;/*Bottom of rightSide box*/ 99 | } 100 | 101 | .method-name { 102 | font-size: 14px; 103 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 104 | font-weight: bold; 105 | } 106 | 107 | .method-content { 108 | border-style: solid; 109 | border-width: 0 0 1px 0; 110 | margin-bottom: 10px; 111 | padding-bottom: 5px; 112 | width: 100%; 113 | } 114 | 115 | .parameters { 116 | font-size: 14px; 117 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 118 | } 119 | 120 | .stack-trace { 121 | white-space: pre; 122 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 123 | font-size: 12px; 124 | font-weight: bold; 125 | margin-top: 0; 126 | margin-left: 20px; /*Error Stack Trace Message*/ 127 | } 128 | 129 | .testng-xml { 130 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 131 | } 132 | 133 | .method-list-content { 134 | margin-left: 10px; 135 | } 136 | 137 | .navigator-suite-content { 138 | margin-left: 10px; 139 | font: 12px 'Lucida Grande'; 140 | } 141 | 142 | .suite-section-title { 143 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 144 | font-size: 14px; 145 | font-weight:bold; 146 | background-color: #8C8887; 147 | margin-left: -10px; 148 | margin-top:10px; 149 | padding:6px; 150 | } 151 | 152 | .suite-section-content { 153 | list-style-image: url(bullet_point.png); 154 | background-color: whitesmoke; 155 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 156 | overflow: hidden; 157 | } 158 | 159 | .top-banner-root { 160 | position: absolute; 161 | top: 0; 162 | height: 45px; 163 | left: 0; 164 | right: 0; 165 | padding: 5px; 166 | margin: 0 0 5px 0; 167 | background-color: #027368; 168 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 169 | font-size: 18px; 170 | color: #fff; 171 | text-align: center;/*Belongs to the Top of Report*//*Status: - Completed*/ 172 | } 173 | 174 | .top-banner-title-font { 175 | font-size: 25px; 176 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 177 | padding: 3px; 178 | float: right; 179 | } 180 | 181 | .test-name { 182 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 183 | font-size: 16px; 184 | } 185 | 186 | .suite-icon { 187 | padding: 5px; 188 | float: right; 189 | height: 20px; 190 | } 191 | 192 | .test-group { 193 | font: 20px 'Lucida Grande'; 194 | margin: 5px 5px 10px 5px; 195 | border-width: 0 0 1px 0; 196 | border-style: solid; 197 | padding: 5px; 198 | } 199 | 200 | .test-group-name { 201 | font-weight: bold; 202 | } 203 | 204 | .method-in-group { 205 | font-size: 16px; 206 | margin-left: 80px; 207 | } 208 | 209 | table.google-visualization-table-table { 210 | width: 100%; 211 | } 212 | 213 | .reporter-method-name { 214 | font-size: 14px; 215 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 216 | } 217 | 218 | .reporter-method-output-div { 219 | padding: 5px; 220 | margin: 0 0 5px 20px; 221 | font-size: 12px; 222 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 223 | border-width: 0 0 0 1px; 224 | border-style: solid; 225 | } 226 | 227 | .ignored-class-div { 228 | font-size: 14px; 229 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 230 | } 231 | 232 | .ignored-methods-div { 233 | padding: 5px; 234 | margin: 0 0 5px 20px; 235 | font-size: 12px; 236 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 237 | border-width: 0 0 0 1px; 238 | border-style: solid; 239 | } 240 | 241 | .border-failed { 242 | border-radius:2px; 243 | border-style: solid; 244 | border-width: 0 0 0 10px; 245 | border-color: #F20505; 246 | } 247 | 248 | .border-skipped { 249 | border-radius:2px; 250 | border-style: solid; 251 | border-width: 0 0 0 10px; 252 | border-color: #F2BE22; 253 | } 254 | 255 | .border-passed { 256 | border-radius:2px; 257 | border-style: solid; 258 | border-width: 0 0 0 10px; 259 | border-color: #038C73; 260 | } 261 | 262 | .times-div { 263 | text-align: center; 264 | padding: 5px; 265 | } 266 | 267 | .suite-total-time { 268 | font: 16px 'Lucida Grande'; 269 | } 270 | 271 | .configuration-suite { 272 | margin-left: 20px; 273 | } 274 | 275 | .configuration-test { 276 | margin-left: 40px; 277 | } 278 | 279 | .configuration-class { 280 | margin-left: 60px; 281 | } 282 | 283 | .configuration-method { 284 | margin-left: 80px; 285 | } 286 | 287 | .test-method { 288 | margin-left: 100px; 289 | } 290 | 291 | .chronological-class { 292 | background-color: #CCD0D1; 293 | border-width: 0 0 1px 1px;/*Chronological*/ 294 | } 295 | 296 | .method-start { 297 | float: right; 298 | } 299 | 300 | .chronological-class-name { 301 | padding: 0 0 0 5px; 302 | margin-top:5px; 303 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 304 | color: #008; 305 | } 306 | 307 | .after, .before, .test-method { 308 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 309 | font-size: 14px; 310 | margin-top:5px; 311 | } 312 | 313 | .navigator-suite-header { 314 | font-size: 18px; 315 | margin: 0px 10px 10px 5px; 316 | padding: 5px; 317 | border-radius: 10px; 318 | background-color: #027368; 319 | color: white; 320 | font-weight:bold; 321 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 322 | text-align: center; /*All Suites on top of left box*//*Status: -Completed*/ 323 | } 324 | 325 | .collapse-all-icon { 326 | padding: 3px; 327 | float: right; 328 | } 329 | .button{ 330 | position: absolute; 331 | margin-left:500px; 332 | margin-top:8px; 333 | background-color: white; 334 | color:#027368; 335 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 336 | font-weight:bold; 337 | border-color:#027368; 338 | border-radius:25px; 339 | cursor: pointer; 340 | height:30px; 341 | width:150px; 342 | outline: none; 343 | } 344 | /*Author: - Akhil Gullapalli*/ -------------------------------------------------------------------------------- /test-output/testng-reports2.js: -------------------------------------------------------------------------------- 1 | window.onload=function (){ 2 | let cookies = document.cookie; 3 | let cookieValue=cookies.split('='); 4 | if(cookieValue[1]==='null' || localStorage.getItem('Theme')==='null'){ 5 | document.getElementById('retro').setAttribute('disabled','false'); 6 | } 7 | else if(cookieValue[1]==='Switch Ultra Theme'|| localStorage.getItem('Theme')==='Switch Ultra Theme'){ 8 | document.getElementById('button').innerText="Switch Retro Theme"; 9 | document.getElementById('retro').setAttribute('disabled','false'); 10 | 11 | } 12 | else if(cookieValue[1]==='Switch Retro Theme'|| localStorage.getItem('Theme')==='Switch Retro Theme'){ 13 | else if(cookieValue[1]==='Switch Ultra Theme'|| localStorage.getItem('Theme')==='Switch Ultra Theme'){ 14 | document.getElementById('button').innerText="Switch Retro Theme"; 15 | document.getElementById('retro').setAttribute('disabled','false'); 16 | 17 | document.getElementById('button').innerText="Switch Ultra Theme"; 18 | document.getElementById('retro').removeAttribute('disabled'); 19 | document.getElementById('ultra').setAttribute('disabled','false'); 20 | localStorage.setItem('Theme',select); 21 | 22 | } 23 | else if(select ==='Switch Ultra Theme'){ 24 | document.getElementById('button').innerText="Switch Retro Theme"; 25 | document.getElementById('ultra').removeAttribute('disabled'); 26 | document.getElementById('retro').setAttribute('disabled','false'); 27 | localStorage.setItem('Theme',select); 28 | } 29 | } 30 | else if(cookieValue[1]==='Switch Retro Theme'|| localStorage.getItem('Theme')==='Switch Retro Theme'){ 31 | document.getElementById('button').innerText="Switch Ultra Theme"; 32 | document.getElementById('ultra').setAttribute('disabled','false'); 33 | } 34 | } 35 | document.getElementById('button').onclick= function(){ 36 | let select = document.getElementById('button').innerText; 37 | if(select === 'Switch Retro Theme'){ 38 | let d = new Date(); 39 | days = 365; 40 | d.setTime(+ d + (days * 86400000)); //24 * 60 * 60 * 1000 41 | document.cookie="Theme ="+select+ "; expires=" + d.toGMTString() + ";"; 42 | document.getElementById('button').innerText="Switch Ultra Theme"; 43 | document.getElementById('retro').removeAttribute('disabled'); 44 | document.getElementById('ultra').setAttribute('disabled','false'); 45 | localStorage.setItem('Theme',select); 46 | 47 | } 48 | else if(select ==='Switch Ultra Theme'){ 49 | let d = new Date(); 50 | days = 365; 51 | d.setTime(+ d + (days * 86400000)); //24 * 60 * 60 * 1000 52 | document.cookie="Theme ="+select+ "; expires=" + d.toGMTString() + ";"; 53 | document.getElementById('button').innerText="Switch Retro Theme"; 54 | document.getElementById('ultra').removeAttribute('disabled'); 55 | document.getElementById('retro').setAttribute('disabled','false'); 56 | localStorage.setItem('Theme',select); 57 | } 58 | } 59 | //Function to mouse hovering affect. 60 | document.getElementById('button').onmouseover = function(){ 61 | document.getElementById('button').style.borderRadius="25px"; 62 | document.getElementById('button').style.width="180px"; 63 | document.getElementById('button').style.height="45px"; 64 | document.getElementById('button').style.marginTop="1px"; 65 | 66 | } 67 | //Function to mouse out affect 68 | document.getElementById('button').onmouseout = function(){ 69 | document.getElementById('button').style.borderRadius="25px"; 70 | document.getElementById('button').style.width="150px"; 71 | document.getElementById('button').style.height="30px"; 72 | document.getElementById('button').style.marginTop="8px"; 73 | 74 | } 75 | 76 | //This is the file where we handle the switching of the Themes. 77 | /*Author:- Akhil Gullapalli*/ 78 | -------------------------------------------------------------------------------- /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 | 28 | 29 | 38 | 39 | 40 | 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 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 201 | 202 | 203 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /testng.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 | -------------------------------------------------------------------------------- /testng2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | --------------------------------------------------------------------------------