Posts

Showing posts from May, 2014

Using ReportNg with Selenium WebDriver

Image
ReportNG is a simple HTML reporting plug-in for the  TestNG .  Why ReportNG? The ReportNG implementation maps each test class to a single <testsuite> element, resulting in one XML file per test class. This is different from the approach taken by the core TestNG implementation. What we need? To Start working with ReportNG , we need to download reportng-1.1.4 and velocity-dep-1.1.4 jar files which are latest versions till date. What Next? Add the above mentioned libraries to your Selenium +TestNg Project's build path. We need create testng.xml file which looks like <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="Suite" parallel="none">  <listeners>      <listener class-name="org.uncommons.reportng.HTMLReporter"/>  </listeners>   <test name="SmokeTest">       <clas

Python in Eclipse

Image
Let us see how to set up Python in Eclipse IDE. Prerequisites :  Eclipse IDE  Python installed in your machine if not check this   link .  PyDev is a Python Development Environment (Python IDE plugin for Eclipse). Install PyDev via the Eclipse update manager . Refer :  http://pydev.org/updates or http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml Launch Eclipse.Go to Help->Install New Software Click on Add. Enter any repository name and  the location as the link which mentioned above. Once you Add this. You will the repository added in the list of available software . Select the First check box “Py Dev” . Once this is done. Configure  Eclipse the location of your Python installation. Go to  Window → Preference →Pydev → Interpreters ->Python Interpreter menu. Click New.Enter Interpreter name and the Executable which is the location of the python. You are good to start coding in Python us