{"action":"closed","issue":{"url":"https://api.github.com/repos/anshooarora/extentreports/issues/481","repository_url":"https://api.github.com/repos/anshooarora/extentreports","labels_url":"https://api.github.com/repos/anshooarora/extentreports/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/anshooarora/extentreports/issues/481/comments","events_url":"https://api.github.com/repos/anshooarora/extentreports/issues/481/events","html_url":"https://github.com/anshooarora/extentreports/issues/481","id":156468686,"number":481,"title":"Problem with append child","user":{"login":"hajarbabour","id":16936641,"avatar_url":"https://avatars.githubusercontent.com/u/16936641?v=3","gravatar_id":"","url":"https://api.github.com/users/hajarbabour","html_url":"https://github.com/hajarbabour","followers_url":"https://api.github.com/users/hajarbabour/followers","following_url":"https://api.github.com/users/hajarbabour/following{/other_user}","gists_url":"https://api.github.com/users/hajarbabour/gists{/gist_id}","starred_url":"https://api.github.com/users/hajarbabour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hajarbabour/subscriptions","organizations_url":"https://api.github.com/users/hajarbabour/orgs","repos_url":"https://api.github.com/users/hajarbabour/repos","events_url":"https://api.github.com/users/hajarbabour/events{/privacy}","received_events_url":"https://api.github.com/users/hajarbabour/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-24T10:05:21Z","updated_at":"2016-05-25T10:53:35Z","closed_at":"2016-05-25T10:53:34Z","body":"\"produit et service \"   is displayed twice in the report \r\n\r\n\r\n`// Incrementer la quantité de l'article ref2\r\n\r\n@Test\r\n\r\npublic void IncrementerLaQuantiteDuLot() throws InterruptedException{\r\n\r\n\r\n\r\n  parent= reporter.startTest(\"produit et service\");\r\n\r\n  testReporter = reporter.startTest(\"Test01: Incrementer le nombre d'un article \",\" \");\r\n\r\n\r\n          Thread.sleep(5000);\r\n\r\n  dr.findElement(By.xpath(path_produitEtService)).click();\r\n\r\n  dr.findElement(By.xpath(path_Lot)).click();\r\n\r\n  IncDec(path_groupe1,path_IncrementerLaQte);\r\n\r\n\r\n\r\n\r\n\r\n}\r\n\r\n//Decrementer la quantité de l'article ref2\r\n\r\n@Test(priority=1)\r\n\r\npublic void DecrementerLaQuantiteDuLot() throws InterruptedException{\r\n\r\n\r\ntestReporter = reporter.startTest(\"Test02: Decrementer le nombre d'un article \",\" \");\r\n\r\n\r\nThread.sleep(2000);\r\n\r\nIncDec(path_groupe1,path_DecrementerLaQte);\r\n\r\n\r\n\r\n\r\n}`\r\n\r\n\r\n\r\n\r\nthe base class\r\n`package base;\r\n\r\n\r\n\r\n\r\n\r\nimport java.net.MalformedURLException;\r\n\r\nimport java.net.URL;\r\n\r\n\r\n\r\nimport org.openqa.selenium.By;\r\n\r\nimport org.openqa.selenium.remote.DesiredCapabilities;\r\n\r\nimport org.testng.ITestResult;\r\n\r\nimport org.testng.annotations.AfterMethod;\r\n\r\nimport org.testng.annotations.AfterSuite;\r\n\r\nimport org.testng.annotations.BeforeTest;\r\n\r\nimport org.testng.annotations.Listeners;\r\n\r\nimport org.testng.annotations.Test;\r\n\r\n\r\n\r\nimport com.relevantcodes.extentreports.ExtentReports;\r\n\r\nimport com.relevantcodes.extentreports.ExtentTest;\r\n\r\nimport com.relevantcodes.extentreports.LogStatus;\r\n\r\n\r\n\r\nimport Rapport.SimpleReportFactory;\r\n\r\nimport io.appium.java_client.AppiumDriver;\r\n\r\nimport io.appium.java_client.ios.IOSDriver;\r\n\r\nimport test1.TimeReport;\r\n\r\n\r\n\r\n\r\n\r\n@Listeners(TimeReport.class)\r\n\r\npublic class testBase {\r\n\r\n\r\n\r\n\t\r\n\r\npublic  static AppiumDriver dr;\r\n\r\n\t\r\n\r\n\tpublic ExtentTest testReporter;\r\n\r\n\tpublic  static ExtentTest parent;\r\n\r\n\tpublic ExtentReports reporter =  SimpleReportFactory.getReporter();\r\n\r\n\r\n\r\n\t\r\n\r\n\t@BeforeTest\r\n\r\n\t   public void avantest() throws MalformedURLException, InterruptedException{\r\n\r\n\t\t DesiredCapabilities capabilities = new DesiredCapabilities();\r\n\r\n\t    // Platform de l'emulateur\r\n\r\n\t    capabilities.setCapability(\"platformName\",\"iOS\");\r\n\r\n    //La version de l'emulateur \r\n\r\n    capabilities.setCapability(\"platformVersion\", \"9.2\");\r\n\r\n   // le nom de l'emulateur\r\n\r\n    capabilities.setCapability(\"deviceName\",\"iPad 2\");\r\n\r\n    capabilities.setCapability(\"bundleId\",\"com.InovaSquad.Artinove\");\r\n\r\n    dr=new IOSDriver(new URL(\"http://127.0.0.1:4723/wd/hub\"),capabilities);\r\n\r\n    //Redirection vers la page  groupe d'article\r\n\r\n\t  }\r\n\r\n\t\r\n\r\n\t\t\r\n\r\n\t\t@AfterMethod\r\n\r\n\t\tpublic void tearDown(ITestResult result) {\r\n\r\n\t\t    if (result.getStatus() == ITestResult.FAILURE) {\r\n\r\n\t\t    \tString screenshot_path=SimpleReportFactory.captureScreenshot(dr,result.getName());\r\n\r\n\t\t    \tString image=testReporter.addScreenCapture(screenshot_path);\r\n\r\n\t\t    \tSystem.out.println(screenshot_path);\r\n\r\n\t\t    \ttestReporter.log(LogStatus.FAIL, \"<pre>\" + result.getThrowable().getMessage() + \"</pre>\",image);\r\n\r\n\t\t    }        \r\n\r\n\t\t    \r\n\r\n\t\t    parent.appendChild(testReporter);\r\n\r\n\t\t    reporter.endTest(parent);\r\n\r\n\t\t    \r\n\r\n\t\t    reporter.flush();\r\n\r\n\t\t}\r\n\r\n\t\t\r\n\r\n\t\t@AfterSuite\r\n\r\n\t\tpublic void afterSuite()\r\n\r\n\t\t{\r\n\r\n\t\t\treporter.close();\r\n\r\n\t\t}\r\n\r\n}\r\n\r\n`\r\n\r\n![capture d ecran 2016-05-24 a 11 00 53 am](https://cloud.githubusercontent.com/assets/16936641/15500109/365b1efc-219f-11e6-88f1-0fee04232d2d.png)"}}
{"actor":{"display_login":"hajarbabour"}}