Hello Folks,
We have written so many automated scripts in previous posts. We wrote those scripts inside a main method. To run that particular script, we ran main method of that particular class.
Let’s assume that we have 100 test scenarios to automate and we developed 100 test scripts using typical style of writing java codes i.e. A class with main method.
Above are some scenarios which need extra coding effort. Will it not be good, if you get something which can perform above scenarios and you just need to plug and use? Your problem will be solved. That something is called TestNG.
Just think what is Selenium. Selenium is also a plug and use library or API, which perform what you want like launching a browser or load a URL. You do not need to require to write the codes by your own. TestNG is also similar to Selenium. It is also a jar file, which provides you so many ready made functionalities to use.
As per TestNG official website, “TestNG is a testing framework designed to simplify a broad range of testing needs, from unit testing (testing a class in isolation of the others) to integration testing (testing entire systems made of several classes, several packages and even several external frameworks, such as application servers).”.
TestNG is a framework because it bundles a lot of functionalities in it and provides to end users. Selenium is also a framework.
More about TestNG in upcoming posts. Stay tuned.
If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe.
#ThanksForReading
#HappySelenium
My name is Amod Mahajan and I am an IT employee with 4+ years of experience in Software testing and staying in Bengaluru. My area of interest is Automation testing. I started from basics and went throw so many selenium tutorials. Thanks to Mukesh Otwani as his tutorials are easy and cover basics to advance. I have habit of exploring concepts by deep diving. I used to make notes. I thought of sharing my knowledge through posts and now I am here. #KeepLearning #ShareLearning
Hello Folks, Previously, I had published on Handling StaleElementReferenceException using PageFactory. But many people asked how to handle it if they…
Hello Guys, As I say always, your automation script is ineffective if you do not include logic to validate to…
"How much Java I need to learn for selenium with Java binding?" is mostly asked question by a Professional who…
Hello Guys, You should not be able to type alphabets or special characters in a field which supposed to accept…
Hello Folks, Recently a guy asked me this question which he was asked in an interview in IBM. What the…
Hello Folks, As part of our API Testing series, we will see “Sending GET request with params in Postman”. In last…