Extent Reports show failed test's status as UnknownSelenium concern with Coding PracticesParameters is passing default value in TestNGExtent Report no generating htmlHow not to show the unknown/skipped results in extent reporthow to rename log status from unknown to skip in extent reportNoSuchElement Exception (selenium)Extent Reports vs TestNG html report which is the better one to use?Retry analyzer and extent reportHow to capture all test cases in extent report?Can i get any other report other than Extent report

Is it possible to kill all life on Earth?

How to properly maintain eye contact with people that have distinctive facial features?

In what episode of TOS did a character on the bridge make a comment about raising the number 1 to some power?

Looking after a wayward brother in mother's will

Self-Preservation: How to DM NPCs that Love Living?

Why were the Night's Watch required to be celibate?

Can non-English-speaking characters use wordplay specific to English?

Differences between “pas vrai ?”, “c’est ça ?”, “hein ?”, and “n’est-ce pas ?”

How can I offer a test ride while selling a bike?

Strange math syntax in old basic listing

How was Apollo supposed to rendezvous in the case of a lunar abort?

If a problem only occurs randomly once in every N times on average, how many tests do I have to perform to be certain that it's now fixed?

Team member doesn't give me the minimum time to complete a talk

Rotated Position of Integers

Adding strings in lists together

What are the benefits of cryosleep?

Geometry affects line breaking

Creating Fictional Slavic Place Names

Possible nonclassical ion from a bicyclic system

Using PCA vs Linear Regression

Why would Lupin kill Pettigrew?

What does the behaviour of water on the skin of an aircraft in flight tell us?

What caused the tendency for conservatives to not support climate change regulations?

Why use water tanks from a retired Space Shuttle?



Extent Reports show failed test's status as Unknown


Selenium concern with Coding PracticesParameters is passing default value in TestNGExtent Report no generating htmlHow not to show the unknown/skipped results in extent reporthow to rename log status from unknown to skip in extent reportNoSuchElement Exception (selenium)Extent Reports vs TestNG html report which is the better one to use?Retry analyzer and extent reportHow to capture all test cases in extent report?Can i get any other report other than Extent report






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Extent Reports do not show Test's in Fail status in HTMLReport. I have used both test.log(LogStatus.PASS) and test.log(LogStatus.FAIL) still somehow fail status is not being logged. Passed tests are mapped correctly in report, however the failed ones are captured with result ones.



Below is the Test Class code :



@Test(priority=1)
public void TestCaseMethod() throws Exception
try
test=extent.startTest("CustomerPortal:EditAccountDetails");
ClassOne TS1 = new ClassOne(driver,wait);
TS1.Method1();
ClassTwo TS2 = new ClassTwo(driver,wait);
TS2.logintoportal();
ClassThree TS3 = new ClassThree(driver,wait);
TS3.EditAccountDetails();
test.log(LogStatus.PASS, "CustomerPortal:EditAccountDetails Test Case
Passed.");

catch(Exception e)
Assert.fail(e.getMessage());
test.log(LogStatus.FAIL, "CustomerPortal:EditAccountDetails Test Case
Failed.");

finally
TakeScreenshotMethod();
extent.endTest(test);




Below is the code in BeforeSuite and AfterSuite respectively :



@BeforeSuite
public void initializetest() throws InterruptedException
System.setProperty("webdriver.chrome.driver", "C:\Users\kovid.anil.mehta\Downloads\chromedriver_win32\chromedriver.exe");
extent = new ExtentReports("C:\Users\kovid.anil.mehta\RegressionSuite\test-output\reportextent.html", true);
extent.loadConfig(new File("C:\Users\kovid.anil.mehta\RegressionSuite\ExtentReportConfig.xml"));
extent.startTest(this.getClass().getName());
ChromeOptions option = new ChromeOptions();
option.addArguments("start-maximized");
option.setHeadless(true);
driver =new ChromeDriver(option);
wait = new WebDriverWait(driver,30);
driver.get("SomeWebsite.com");
driver.findElement(username).sendKeys("user@name.com");
driver.findElement(password).sendKeys("Fancy@password");
driver.findElement(LoginButton).click();
Thread.sleep(10000);




@AfterSuite(alwaysRun=true)
public void endTest() throws IOException, Exception
extent.flush();
extent.endTest(test);
Thread.sleep(5000);
driver.quit();
driver=null;



Extent Report Dependency :
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>


I would like to have the results mapped correctly for failed test cases in the report.










share|improve this question






















  • 1) You might go for version 3+, version 4 has many enhanced features. 2) Debug your test and check before it get log for extent report, whether Test got fail from itself. You will be find something.

    – Ishita Shah
    Mar 25 at 4:46

















0















Extent Reports do not show Test's in Fail status in HTMLReport. I have used both test.log(LogStatus.PASS) and test.log(LogStatus.FAIL) still somehow fail status is not being logged. Passed tests are mapped correctly in report, however the failed ones are captured with result ones.



Below is the Test Class code :



@Test(priority=1)
public void TestCaseMethod() throws Exception
try
test=extent.startTest("CustomerPortal:EditAccountDetails");
ClassOne TS1 = new ClassOne(driver,wait);
TS1.Method1();
ClassTwo TS2 = new ClassTwo(driver,wait);
TS2.logintoportal();
ClassThree TS3 = new ClassThree(driver,wait);
TS3.EditAccountDetails();
test.log(LogStatus.PASS, "CustomerPortal:EditAccountDetails Test Case
Passed.");

catch(Exception e)
Assert.fail(e.getMessage());
test.log(LogStatus.FAIL, "CustomerPortal:EditAccountDetails Test Case
Failed.");

finally
TakeScreenshotMethod();
extent.endTest(test);




Below is the code in BeforeSuite and AfterSuite respectively :



@BeforeSuite
public void initializetest() throws InterruptedException
System.setProperty("webdriver.chrome.driver", "C:\Users\kovid.anil.mehta\Downloads\chromedriver_win32\chromedriver.exe");
extent = new ExtentReports("C:\Users\kovid.anil.mehta\RegressionSuite\test-output\reportextent.html", true);
extent.loadConfig(new File("C:\Users\kovid.anil.mehta\RegressionSuite\ExtentReportConfig.xml"));
extent.startTest(this.getClass().getName());
ChromeOptions option = new ChromeOptions();
option.addArguments("start-maximized");
option.setHeadless(true);
driver =new ChromeDriver(option);
wait = new WebDriverWait(driver,30);
driver.get("SomeWebsite.com");
driver.findElement(username).sendKeys("user@name.com");
driver.findElement(password).sendKeys("Fancy@password");
driver.findElement(LoginButton).click();
Thread.sleep(10000);




@AfterSuite(alwaysRun=true)
public void endTest() throws IOException, Exception
extent.flush();
extent.endTest(test);
Thread.sleep(5000);
driver.quit();
driver=null;



Extent Report Dependency :
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>


I would like to have the results mapped correctly for failed test cases in the report.










share|improve this question






















  • 1) You might go for version 3+, version 4 has many enhanced features. 2) Debug your test and check before it get log for extent report, whether Test got fail from itself. You will be find something.

    – Ishita Shah
    Mar 25 at 4:46













0












0








0








Extent Reports do not show Test's in Fail status in HTMLReport. I have used both test.log(LogStatus.PASS) and test.log(LogStatus.FAIL) still somehow fail status is not being logged. Passed tests are mapped correctly in report, however the failed ones are captured with result ones.



Below is the Test Class code :



@Test(priority=1)
public void TestCaseMethod() throws Exception
try
test=extent.startTest("CustomerPortal:EditAccountDetails");
ClassOne TS1 = new ClassOne(driver,wait);
TS1.Method1();
ClassTwo TS2 = new ClassTwo(driver,wait);
TS2.logintoportal();
ClassThree TS3 = new ClassThree(driver,wait);
TS3.EditAccountDetails();
test.log(LogStatus.PASS, "CustomerPortal:EditAccountDetails Test Case
Passed.");

catch(Exception e)
Assert.fail(e.getMessage());
test.log(LogStatus.FAIL, "CustomerPortal:EditAccountDetails Test Case
Failed.");

finally
TakeScreenshotMethod();
extent.endTest(test);




Below is the code in BeforeSuite and AfterSuite respectively :



@BeforeSuite
public void initializetest() throws InterruptedException
System.setProperty("webdriver.chrome.driver", "C:\Users\kovid.anil.mehta\Downloads\chromedriver_win32\chromedriver.exe");
extent = new ExtentReports("C:\Users\kovid.anil.mehta\RegressionSuite\test-output\reportextent.html", true);
extent.loadConfig(new File("C:\Users\kovid.anil.mehta\RegressionSuite\ExtentReportConfig.xml"));
extent.startTest(this.getClass().getName());
ChromeOptions option = new ChromeOptions();
option.addArguments("start-maximized");
option.setHeadless(true);
driver =new ChromeDriver(option);
wait = new WebDriverWait(driver,30);
driver.get("SomeWebsite.com");
driver.findElement(username).sendKeys("user@name.com");
driver.findElement(password).sendKeys("Fancy@password");
driver.findElement(LoginButton).click();
Thread.sleep(10000);




@AfterSuite(alwaysRun=true)
public void endTest() throws IOException, Exception
extent.flush();
extent.endTest(test);
Thread.sleep(5000);
driver.quit();
driver=null;



Extent Report Dependency :
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>


I would like to have the results mapped correctly for failed test cases in the report.










share|improve this question














Extent Reports do not show Test's in Fail status in HTMLReport. I have used both test.log(LogStatus.PASS) and test.log(LogStatus.FAIL) still somehow fail status is not being logged. Passed tests are mapped correctly in report, however the failed ones are captured with result ones.



Below is the Test Class code :



@Test(priority=1)
public void TestCaseMethod() throws Exception
try
test=extent.startTest("CustomerPortal:EditAccountDetails");
ClassOne TS1 = new ClassOne(driver,wait);
TS1.Method1();
ClassTwo TS2 = new ClassTwo(driver,wait);
TS2.logintoportal();
ClassThree TS3 = new ClassThree(driver,wait);
TS3.EditAccountDetails();
test.log(LogStatus.PASS, "CustomerPortal:EditAccountDetails Test Case
Passed.");

catch(Exception e)
Assert.fail(e.getMessage());
test.log(LogStatus.FAIL, "CustomerPortal:EditAccountDetails Test Case
Failed.");

finally
TakeScreenshotMethod();
extent.endTest(test);




Below is the code in BeforeSuite and AfterSuite respectively :



@BeforeSuite
public void initializetest() throws InterruptedException
System.setProperty("webdriver.chrome.driver", "C:\Users\kovid.anil.mehta\Downloads\chromedriver_win32\chromedriver.exe");
extent = new ExtentReports("C:\Users\kovid.anil.mehta\RegressionSuite\test-output\reportextent.html", true);
extent.loadConfig(new File("C:\Users\kovid.anil.mehta\RegressionSuite\ExtentReportConfig.xml"));
extent.startTest(this.getClass().getName());
ChromeOptions option = new ChromeOptions();
option.addArguments("start-maximized");
option.setHeadless(true);
driver =new ChromeDriver(option);
wait = new WebDriverWait(driver,30);
driver.get("SomeWebsite.com");
driver.findElement(username).sendKeys("user@name.com");
driver.findElement(password).sendKeys("Fancy@password");
driver.findElement(LoginButton).click();
Thread.sleep(10000);




@AfterSuite(alwaysRun=true)
public void endTest() throws IOException, Exception
extent.flush();
extent.endTest(test);
Thread.sleep(5000);
driver.quit();
driver=null;



Extent Report Dependency :
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>


I would like to have the results mapped correctly for failed test cases in the report.







selenium testng extentreports






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 24 at 10:15









Kovid MehtaKovid Mehta

648




648












  • 1) You might go for version 3+, version 4 has many enhanced features. 2) Debug your test and check before it get log for extent report, whether Test got fail from itself. You will be find something.

    – Ishita Shah
    Mar 25 at 4:46

















  • 1) You might go for version 3+, version 4 has many enhanced features. 2) Debug your test and check before it get log for extent report, whether Test got fail from itself. You will be find something.

    – Ishita Shah
    Mar 25 at 4:46
















1) You might go for version 3+, version 4 has many enhanced features. 2) Debug your test and check before it get log for extent report, whether Test got fail from itself. You will be find something.

– Ishita Shah
Mar 25 at 4:46





1) You might go for version 3+, version 4 has many enhanced features. 2) Debug your test and check before it get log for extent report, whether Test got fail from itself. You will be find something.

– Ishita Shah
Mar 25 at 4:46












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322719%2fextent-reports-show-failed-tests-status-as-unknown%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322719%2fextent-reports-show-failed-tests-status-as-unknown%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현