Closed NVSateesh closed 9 years ago
You are calling endTest in both afterMethod and afterSuite.
Please open one ticket for one issue/question only.
Yeah thanks, i found it and removed after struggling of 1hr searching for that mistake.
thanks, sateesh n.v
On Tue, Nov 3, 2015 at 4:04 AM, Anshoo Arora notifications@github.com wrote:
You are calling endTest in both afterMethod and afterSuite.
— Reply to this email directly or view it on GitHub https://github.com/anshooarora/extentreports/issues/140#issuecomment-153179303 .
Thanks, Sateesh N Venkata. Ph No:8341990417
Thanks for the update. Closing issue as issue resolved.
I'm seeing the test case execution twice though i ran only once.Using 2.10 Extent jar. i ran the case only once but report showing twice. --Attached two screenshots in 1st screen shot test-1(Verify pull to refresh test case) it is started 2015-10-31 01:22:18 and ended at 2015-10-31 01:22:18 -- in 2nd screenshot the test-2 (Verify pull to refresh test case) it is started 2015-10-31 01:22:18 and ended at 2015-10-31 01:22:18 [unable to add .java file so pasting the code at the end.]
--> How to use the EXTENT MERGE and what is the difference between EXTENT and EXTENT MERGE. --> How to use the DB of Extent to show the No.Of Runs in EXTENT MERGE Menu(Sample Screens provided for the same in the site.) --> Can we get the same reports if i configured in Jenkins.[using maven project]
package JenkinsPackage;
import java.io.IOException;
import org.testng.ITestResult; import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterSuite; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test;
import com.relevantcodes.extentreports.ExtentReports; import com.relevantcodes.extentreports.LogStatus;
public class Case extends Driver { //
// @Test(priority=3) // public void cleanlaunch() throws Exception{ //
// ExtentReports reporter = Driver.getInstance(); // logger = reporter.startTest("Verify clean launch test case"); //
// SmokeTest_c334143_CleanLaunch p =new SmokeTest_c334143_CleanLaunch(); // p.verify_adcals_onclean_launch(); // }
// @Test(priority=1) // public void FirstRun() throws Exception{ //
// ExtentReports reporter = Driver.getInstance(); // logger = reporter.startTest("Handling the alerts on app if any"); //
// firstRun p1 =new firstRun(); // p1.first_Run(); //
// } @BeforeTest public void beforeTest() throws Exception { Capabilities cap = new Capabilities(); cap.dcap();
}