tag:blogger.com,1999:blog-1042251585556197079.post3235932625146228217..comments2023-08-09T13:16:53.008+05:30Comments on A Space for Software and Automation Enthusiasts: Generate ReportNG report using MavenVarun Menonhttp://www.blogger.com/profile/13264248996322627285noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-1042251585556197079.post-45288306546309381942015-04-21T20:42:25.201+05:302015-04-21T20:42:25.201+05:30Hi, how do we consume this reportng and prepare a ...Hi, how do we consume this reportng and prepare a aggregated/consolidated unit test report at the root directory? <br />Anonymoushttps://www.blogger.com/profile/01942993876847627444noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-74799515763587422872014-12-19T14:30:36.061+05:302014-12-19T14:30:36.061+05:30Selenium being a functional test tool do both kind...Selenium being a functional test tool do both kind of testing together since it works on the browsers you automatically executing the client side code as well as server side code which is utilized by the client. The only issue will be to identify exactly where the issue is client side or server side.<br /><br />It is always advisable to have separate unit tests for both client and server side and validate the individual functionality but in case they dont get caught in such scenario, you may need to look for rest option to validate the server side testing. I wont suggest to use Selenium to do a in-depth test of both client or server side.Varun Menonhttps://www.blogger.com/profile/13264248996322627285noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-22135731326552364582014-12-18T21:34:18.361+05:302014-12-18T21:34:18.361+05:30Hi Varun,
You made an awesome blog. It's real...Hi Varun,<br /><br />You made an awesome blog. It's really very useful. Thanks for it. <br /><br />Could you please explain a simple example on, how to handle Client side application and Server side application at the same time using Selenium WebDriver?<br /><br />Many thanks in Advance.Anonymoushttps://www.blogger.com/profile/11202391116559637078noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-14764119029962660442014-11-06T18:24:16.436+05:302014-11-06T18:24:16.436+05:30Now I can able to generate the reports and can abl...Now I can able to generate the reports and can able to store only on local machine. But when I try to store the same reports on to Network drive there it is displaying exception on console as I haven't provided username and password. How can I provide those details through java code.<br />Below is CustomReporter class..<br /><br />public class CustomReporter implements IReporter<br />{ <br /> File fd = new File("");<br /> String date;<br /> DateFormat df = new SimpleDateFormat("yyyy-MM-dd_hh-mm-ss");<br /> String folderNameWithTimeStamp = df.format(new Date());<br /> String currentDir = System.getProperty("user.dir") + "//Reports//";<br /> String finalPath = currentDir + folderNameWithTimeStamp;<br /> @SuppressWarnings("deprecation")<br /> @Override<br /> public void generateReport(List xmlSuites, List suites, String outputDirectory) <br /> {<br /> TestNG.getDefault().setOutputDirectory(finalPath);<br /> TestNG.getDefault().setXmlSuites(xmlSuites);<br /> XmlSuite suite = new XmlSuite();<br /> List suites1 = new ArrayList();<br /> suites1.add(suite);<br /> TestNG tng = new TestNG();<br /> tng.setXmlSuites(suites1);<br /><br /> }<br />}Anonymoushttps://www.blogger.com/profile/00101204070432541039noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-28835475746494870492014-11-06T13:13:46.687+05:302014-11-06T13:13:46.687+05:30Thank you Varun.. I will try and let u know..Thank you Varun.. I will try and let u know..Anonymoushttps://www.blogger.com/profile/00101204070432541039noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-88636886106801203082014-11-06T13:05:46.129+05:302014-11-06T13:05:46.129+05:30Try setting the property "maven.testng.output...Try setting the property "maven.testng.output.dir" as a system property in maven with your network directory path.Varun Menonhttps://www.blogger.com/profile/13264248996322627285noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-42069085701484830032014-11-06T12:30:43.487+05:302014-11-06T12:30:43.487+05:30Hi Varun,
Thanks a lotttt for your great post. Re...Hi Varun,<br /> Thanks a lotttt for your great post. Really awesome.<br />I have a requirement that the generated reports should get stored on a "Network drive". Currently we are running the scripts for every one hour thru pom.xml batch file. So the reports should get generate accordingly and should be stored on Network drive. We are not using Ant's build.xml. So how can we achieve this thru pom.xml.. How can I mention the path in that file. Could you please help me on this..<br />Thank you.Anonymoushttps://www.blogger.com/profile/00101204070432541039noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-16350505794259853722014-10-13T17:47:05.462+05:302014-10-13T17:47:05.462+05:30Most probably your reportng was not included in th...Most probably your reportng was not included in the class path of the class/ package name for the JUnitXmlReporter in ReportNg has been changed.Varun Menonhttps://www.blogger.com/profile/13264248996322627285noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-1184116968630154622014-10-13T16:29:35.360+05:302014-10-13T16:29:35.360+05:30Hi Varun,
Thanks for the post but i am getting t...Hi Varun, <br /><br />Thanks for the post but i am getting this error still : <br /><br />[ERROR] org.apache.maven.surefire.testset.TestSetFailedException: Cannot find li<br />stener class<br />[ERROR] org.uncommons.reportng.JUnitXMLReporter; nested exception is java.lang.C<br />lassNotFoundException:<br /><br />Can you help quickly ?<br /><br />Thanks,<br />JatinMr. Routerhttps://www.blogger.com/profile/04164410969736775697noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-78324664738893963752014-08-11T12:21:36.846+05:302014-08-11T12:21:36.846+05:30Use pdfngreport plugin to generate the pdf report,...Use pdfngreport plugin to generate the pdf report, which support both maven/ant<br /><br />https://github.com/uttesh/pdfngreportutteshhttps://www.blogger.com/profile/03890216292485985349noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-20145568945186609082014-07-01T16:11:07.658+05:302014-07-01T16:11:07.658+05:30This comment has been removed by a blog administrator.Mukesh Otwanihttps://www.blogger.com/profile/09647533981597714055noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-69675174256769202422014-07-01T16:10:07.188+05:302014-07-01T16:10:07.188+05:30This comment has been removed by a blog administrator.Mukesh Otwanihttps://www.blogger.com/profile/09647533981597714055noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-49745711038030069662014-06-18T17:08:23.808+05:302014-06-18T17:08:23.808+05:30Thanks!Thanks!Anonymoushttps://www.blogger.com/profile/04198109411936397481noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-56345403230122719562014-06-18T16:53:56.191+05:302014-06-18T16:53:56.191+05:30I can but I dont want to :D
Because its really sim...I can but I dont want to :D<br />Because its really simple stuff that you can achieve just by spending some time. If not then search on google you will find it, or put it on forums like stackoverflow, google etc.Paul Levesquehttps://www.blogger.com/profile/06774371209720067953noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-81923476114080235242014-06-18T16:51:13.503+05:302014-06-18T16:51:13.503+05:30Hi Paul,
Thanks for your reply. I am completely n...Hi Paul,<br /><br />Thanks for your reply. I am completely new to maven and ant. Could you help me if i provide my pom.xml? As my application is using maven only as the build toolAnonymoushttps://www.blogger.com/profile/04198109411936397481noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-38596035206081858252014-06-18T16:37:01.361+05:302014-06-18T16:37:01.361+05:30@Mannat, there is only one way to use "ant ru...@Mannat, there is only one way to use "ant run" plugin in pom.xml and call your build.xml. Else there is no way to do it.Paul Levesquehttps://www.blogger.com/profile/06774371209720067953noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-76091379930965124752014-06-18T16:09:58.483+05:302014-06-18T16:09:58.483+05:30Hi Varun,
I have a requirement where i need to ge...Hi Varun,<br /><br />I have a requirement where i need to generate testng xslt report from junit code using maven. Can you please let me know the plugins to use and the code to execute the same?Anonymoushttps://www.blogger.com/profile/04198109411936397481noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-50453064773095441952014-03-03T13:31:36.961+05:302014-03-03T13:31:36.961+05:30Hi Varun can you check for this please "Artif...Hi Varun can you check for this please "ArtifactTransferException: Failure to transfer velocity:velocity-dep:jar:1.4 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact velocity:velocity-dep:jar:1.4 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-33441075784939158742014-02-01T17:22:27.911+05:302014-02-01T17:22:27.911+05:30great work Varun. It helped me a lot.great work Varun. It helped me a lot.PIYUSHhttps://www.blogger.com/profile/05971501978385357678noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-74265008094147077322013-10-07T19:51:36.422+05:302013-10-07T19:51:36.422+05:30Gist is a simple way to share your code snippets w...Gist is a simple way to share your code snippets with others. You add a code and give it a description and name. Gist will give you a url which you share with others ans they can refer to it. In this case your pom.xml.<br /><br />Gist url is:<br />https://gist.github.com/<br /><br />Anyways I had written a combined pom xml for both reportng and testng xslt which i had shared in my earlier comment in this post.Varun Menonhttps://www.blogger.com/profile/13264248996322627285noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-44181187982461948532013-10-07T17:14:30.244+05:302013-10-07T17:14:30.244+05:30I dont know what it is and how to use it with this...I dont know what it is and how to use it with this page... :)Jeevanhttps://www.blogger.com/profile/09329639914951426353noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-6477400197835379722013-10-07T15:13:50.245+05:302013-10-07T15:13:50.245+05:30The combined pom.xml file is available at followin...The combined pom.xml file is available at following location:<br /><br />https://gist.github.com/menonvarun/6865213Varun Menonhttps://www.blogger.com/profile/13264248996322627285noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-45536636033414026042013-10-07T13:12:18.443+05:302013-10-07T13:12:18.443+05:30You can use gist to provide link your code snippet...You can use gist to provide link your code snippets.Varun Menonhttps://www.blogger.com/profile/13264248996322627285noreply@blogger.comtag:blogger.com,1999:blog-1042251585556197079.post-17737190610244316032013-10-04T15:43:38.323+05:302013-10-04T15:43:38.323+05:30Thanks Varun for the post, but I am not able to ge...Thanks Varun for the post, but I am not able to generate XSLT reports . Below pom only gives reportng reports: Please let me know whats wrong in it:<br />I have tried :<br />mvn clean test<br />mvn test <br />mvn clean and then mvn test but it didnt give xslt report in the HTML folder.<br /><br /> 4.0.0<br /><br /> com.delete_xslt<br /> creams<br /> 0.0.1-SNAPSHOT<br /> jar<br /><br /> creams<br /> http://maven.apache.org<br /> <br /> <br /> <br /> src/test/resource<br /> <br /> **/*.java<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br /> <br /> org.apache.maven.plugins<br /> maven-surefire-plugin<br /> 2.14.1<br /> <br /> <br /> <br /> <br /> <br /> listener<br /> <br /> org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter<br /> <br /> <br /> <br /> target/<br /> <br /> <br /> <br /> maven-compiler-plugin<br /> 2.3.2<br /> <br /> 1.7<br /> 1.7<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /><br /> <br /><br /> <br /> com.google.inject<br /> guice<br /> 3.0<br /> test<br /> <br /> <br /> org.uncommons<br /> reportng<br /> 1.1.4<br /> <br /> <br /> org.seleniumhq.selenium<br /> selenium-java<br /> 2.34.0<br /> <br /> <br /> org.seleniumhq.selenium<br /> selenium-support<br /> 2.34.0<br /> <br /><br /> <br /> org.seleniumhq.selenium<br /> selenium-api<br /> 2.34.0<br /> <br /> <br /> org.testng<br /> testng<br /> 6.8.5<br /> <br /> <br /> <br /><br /><b>How you are able to write nice posts ob this page but our reply looks very bad?</b>Jeevanhttps://www.blogger.com/profile/09329639914951426353noreply@blogger.com