Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
261 views
by Contributing Tester (99 points)

4 Answers

1 like 0 dislike
by The go-to Tester (173 points)

Selenium is used to write the automation script in order to make regression testing easier. But the problem is Selenium does not have reporting mechanism or how to show how many test cases passed / fail / Skip ??. 

In order to do so, We need to add Addons / 3rd Party tool, from Eclipse from Eclipse Market Place Which will help to write customized script along with reporting post execution of Regression Testing. Report will be generated in the forms of Graphs, summarized report. With total count of test cases, pass / fail or skip !!

Hope this will help you out.

1 like 0 dislike
by

TestNG is a testing framework created by Cédric Beust and helps to cater a lot of our testing needs. It is widely used in Selenium. Wondering on what NG stands for? Well, it refers to ‘Next Generation’. TestNG is similar to Junit but is more powerful to it when it comes to controlling the execution flow of your program. As the nature of framework, we tend to make our tests more structured and provides better validation points through the use of TestNG.

Some of the noteworthy features of TestNG in Selenium are:

  • Powerful and wide variety of annotations to support your test cases.
  • Helps to perform parallel testing, dependent method testing.
  • Flexibility of running your tests through multiple sets of data through TestNG.xml file or via data-provider concept.
  • Test cases can be grouped and prioritized as per need basis.
  • Provides access to HTML reports and can be customized through various plugins.
  • Test logs can be generated across tests.
  • Can be easily integrated with eclipse, Maven, Jenkins etc.

Original Source: Speed Up Automated Parallel Testing In Selenium With TestNG

0 like 0 dislike
by The go-to Tester (161 points)
Selenium is used in Test Automation, however its just testing the Web UI and Functionalities. Selenium doesn't have any inbuilt reporting mechanism also, Selenium does not have any control on the execution order OR execution customization.

TestNG is used to empower Selenium for these basic essence of Reporting and Execution Customization. TestNG is used to control the execution flow, data provided in Function , execution priorities, execution control (incase we want to execute a limited set of functionalities.)

TestNG creates an XML file which control the exection and test can be executed with the testng.xml file directly.

All you need to install TestNG into your IDE and import this Library in your project.
0 like 1 dislike
by
You can group your tests or setup preconditions, execute tests in parallel, generate reports

If you use java alone, you have to do the above by your self in java


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...