Welcome to C# Interview Questions. Here you will get so many questions related to c# interview and c# programs. It will definitely enhance your c# programming knowledge.
TestNG Introduction
TestNG, where NG stands for “Next Generation” is a testing framework inspired by JUnit (in Java) and NUnit (in C#). It can be used for unit, functional, integration, and end-to-end testing. It mainly uses Java annotations to configure and write test methods. TestNG was developed by Cedric Beust. He developed it to overcome a deficiency […]
Selenium WebDriver Exceptions
Selenium Webdriver exceptions will discuss about what kind of exception we will get in selenium webdriver while executing the automation scripts. An exception is an infallible statement; it will always tell you why something has gone wrong in the code. It may not always be easy to understand the exception, but it does always tell […]
Selenium NoSuchElementException
Selenium NoSuchElementException is the most and frequent facing exception. You will definitely find this kind of exception while automating the application. In this blog we will see what are the reasons to face this exception and how we can overcome this exception in detail. Below are the reasons to get this exception: The locator which […]
Selenium NoSuchFrameException
Selenium NoSuchFrameException will discuss about one of the frequent exceptions which we will face in selenium webdriver. You might face this kind of exception while automating the application if you have iFrames in your application. In modern applications people are using iFrames very frequently as if you want to show the information from other sources […]
Selenium NoSuchWindowException
Selenium NoSuchWindowException is similar to NoSuchFrameException, this is also one of the frequent exceptions which we will face in selenium webdriver. Sometimes applications will have child windows(i.e. Separate windows) which will open when you click on any link or button. Normally if you want to automate the child windows then you need to switch to […]
Understanding testng.xml file
Understanding testng.xml file will discuss in detail about the xml configuration file. testng.xml file is a configuration file in TestNG. It is used to define test suites and tests. It is also used to pass Parameters to the test methods. It provides different options to include packages, classes and independent test methods in our test suite. […]
Running testng.xml using Command Prompt
Running testng.xml using command prompt will discuss about how to execute xml file from the command prompt. In our previous blogs we just created testng.xml file but did not verified it by running testng.xml file. In this blog will discuss how to run testng.xml configuration file. There are multiple ways of running the testng.xml file. […]
Running testng.xml using Eclipse
In our previous blog we have learnt how to run testng.xml using command prompt. Now, in this blog will learn running testng.xml using eclipse IDE. This is one of the ways to execute the automation scripts using testng.xml configuration file. Below are the steps to running testng.xml using Eclipse: 1. Open Eclipse. 2. Go to […]
Creating testng.xml file with multiple tests
In our previous blog, we have created a testng.xml file with only one test in a suite. But, TestNG allows to define multiple tests in a single suite. This way we can segregate our tests and can create different tests based on our requirement (i.e. smoke tests, sanity tests and integration tests etc…). Now we’ll […]
Adding Packages to testng.xml file
Adding Packages to testng.xml file, will explain you about creating and configuring TestNG test suite with packages which are developed/created in the java project. A Package may contain one or more classes in it. With this testng.xml configuration file we can include all the classes belongs to a particular package or its subpackages to the […]