Test tools Selenium and TestNG

Source: Internet
Author: User
Tags testng selenium grid

Selenium is also a tool for Web application testing. The selenium test runs directly in the browser, just as the real user is doing. Supported browsers include IE, Mozilla Firefox, Mozilla Suite, and more. The main features of this tool include: test and browser compatibility--test your application to see if it works well on different browsers and operating systems. Test system functionality-Create a regression test to verify software functionality and user requirements. Supports automatic recording actions and automatic generation. Net, Java, Perl, and other language test scripts. Selenium is an acceptance testing tool ThoughtWorks specifically written for Web applications.


Strictly speaking, Selenium is a complete Web application testing system that contains test recording (Selenium IDE), writing and running (Selenium Remote Control), and parallel processing of tests (Selenium Grid). The core of selenium, selenium, is based on Jsunit, written entirely by JavaScript, so it can run on any JavaScript-enabled browser. As with Watin, selenium is also an open source framework that is also published using the Apache License 2.0 protocol.


Testing is the process of checking the functionality of an application to work as required to ensure that the unit is tested as a picture at the development level. A unit test is a test of a single entity (class or method). Unit testing is essential for every software company to provide high-quality products to their customers.

JUnit drives developers to understand the usefulness of testing, especially when unit testing is more than any other test framework. With a fairly simple, pragmatic and rigorous architecture, JUnit has been able to "infect" a large number of developers. JUnit features can be seen in the JUnit feature.

One of the JUnit drawbacks:

The initial design, which is used for unit testing, is now used only for a variety of tests

Cannot rely on testing

Poor configuration control (Installation/Disassembly)

Intrusive (enforcing extension classes and naming methods in some way)

Static programming model (unnecessary recompilation)

Different kinds of tests that are suitable for managing complex projects can be very tricky. What is testng?

TESTNG is defined by its documentation as:

TESTNG is a test framework that is inspired by JUnit and NUnit, but introduces some new features that make it more powerful and easier to use.

TestNG is an open source automation testing framework; TestNG represents the next generation. TestNG is similar to JUnit (especially JUnit 4), but it is not a junit extension. It was inspired by JUnit. It is designed to outperform JUnit, especially when testing an integrated class. The creator of TestNG is Cedric Beust (Cedric Boystedt)

TestNG eliminates most of the limitations of the old framework, enabling developers to write more flexible and powerful tests. Because it draws heavily on the tests defined by the Java annotations (introduced by JDK5.0), it can also show you how to use this new functionality in a real Java language production environment. Features of TestNG

Annotations

TestNG using Java and object-oriented features

Support for comprehensive class testing (for example, by default, it is not necessary to create a new instance of the class that tests each test method)

Independent compile time test Code runtime configuration/data information

Flexible Run-time configuration

The main introduction is "test Group". When compiling the test, just ask TestNG to run all the "front-end" tests, or "fast", "slow", "database", etc.

Support for dependent test methods, parallel testing, load testing, local failure

Flexible Plug-in API

Supports multithreaded testing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.