Posts

Selenium Webdriver - How to Verify All Links on Web Page

As an automation tester, you get to play with links present on the website. Links are one of the most important part of the webpage. Some times we need to check which links are present on the page and some times to verify all the links are working.

Luckily, Selenium Webdriver has the flexibility to do both the things. Otherwise it could be a tedious task to check manually that all the links present on a webpage are working or not. Code to Get All Links from a Web pagepublicclassFindAllLinks { publicstaticvoidmain(String[] args) { // Initialize Webdriver Object System.setProperty("webdriver.chrome.driver", "D:\\mydir\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("http://techlistic.com/"); // Store all link elements (anchor tag elements in html) in a list java.util.List links = driver.findElements(By.tagName("a")); // Print no. of links stored in list System.out.println(links.size()); for (int i = 1; i<…

Selenium Essentials - How to become expert in Automation Testing?

Image
You can learn Selenium Webdriver yourself in just 1 month, yes you read it right!

If you want my above statement to work for you, then you would have to come up with a proper study plan and follow it with discipline. Discipline is the key here. Good news is, I am going to help you to make that study plan and also will share very useful blog posts links for the same, later in this post.




First important question is: What all you need to learn to become expert in Selenium Webdriver?
Answer is simple, by learning everything mentioned below:

1. First and foremost thing is Software Testing concepts: You can find Software Testing tutorial series here - Software Testing Tutorials Series


2. Coding concepts - You have to learn coding concepts/skills in any one of the language which Selenium support i.e., Java, Pyhton, Ruby, C#, PHP. Currently java is ahead in the race. Refer this link to learn Java for Selenium - Java Tutorials Series

3. Fundamentals of HTML & CSS - You should have very basic kn…

Mobile Testing with Emulator: A step-wise guide

Image
What is an Emulator? An Emulator is an application that emulates real mobile device software, hardware, and operating systems, allowing us to test and debug our application. It is generally provided by the device manufacturer. Mobile emulators are free and provided as a part of SDK with each new OS release. As a developer or a tester, you can configure the emulator to closely resemble the devices on which you plan to deploy your application. The emulator window consists of a device screen on the left and phone controls/keyboard on the right. The device screen initially displays ‘ANDROID‘, and then displays the graphical logo, while the Android platform associated with the AVD is initializing. What is AVD Manager?
AVD Manager is a tool to create and manage Android Virtual Devices(AVDs), which define device configuration for the Android Emulator. Before you can actually run an emulator, you need to install the Android SDK on your machine and define an AVD, which defines the hardware ch…

REST API Tutorial - Manual Testing of APIs using Postman

Image
Manual API Testing using Postman Reliable API calls are critical to any decoupled application. Whether it a simple configuration change to an entity or updating the Drupal core, both of them can alter the API response and lead to application-breaking changes on the front-end. An API test suite can watch out for these API breaking changes by running a slew of tests against your endpoint. And when you need to create an API test suite, Postman delivers. Why Postman tool? Postman is a simple GUI for sending HTTP requests and viewing responses. It is built upon an extensive set of power tools, which are incredibly easy to use. Postman helps you perform a variety of functions ranging from organizing requests into collection and folders,sharing common values across requests with environment variables,scripting tests with the built-in node.js based runtime,and at last, automating it all using Postman’s very own CLI — Newman.





Install native Postman Application Postman for Mac/Windows/Linux: Go to 

Java - What are OOPS Concepts?

We used to hear OOPS very often whenever we come across JAVA language. In this post we are going to have a look at the OOPS concepts of the Java. Some of the object oriented languages are: C#, C++, PHP, Java, Python etc.

Main concepts of OOPS are:
ObjectClassInheritancePolymorphismAbstractionEncapsulation1. Object: 
A Java object is a combination of data and procedures working on the available data. An object has a state and behavior. The state of an object is stored in fields (variables), while methods (functions) display the object's behavior. Objects are created from templates known as classes. In Java, an object is created using the keyword "new".
Syntax of creating an object:
MyClass obj = new MyClass();
In above example,  MyClass is class name, 'obj' is the object name (object name can be anything) 'new' is keyword of java which instantiates the object (or in simple language it creates the object'MyClass()'is the constructor of 'MyClass'
2. …