Posts

Java OOPS Concept - Object Oriented Programming System

Image
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:

ObjectClassInheritancePolymorphismAbstractionEncapsulation
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 line,  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'
Class: B…

Guest Posts are invited on my blog!

Image
Hi Folks, You all are invited to share a guest post on my blog. If you are a techie and have quest to share your knowledge with other professionals, then this is the best opportunity. I will feature your post on my blog with your credentials. 

My blog has close to 4 lakh views. So, your post would be facing large audience. You are free to write blog on technical or non-technical thing,  like  technology, business, hr, science, finance, money, testing, development, travel, trips, technical events, nature, beauty, wildlife, life etc.

If interested you can let me know or share your content/post with me at vaneesh.behl@gmail.com.



Best Selenium Automation Online Training - Selenium Webdriver with Java or Python

Welcome to Techlistic Space. :)

If you want to enroll in any of the following online course: Selenium with PythonSelenium with Java
Send me an email at vaneesh.behl@gmail.com with course title.

Course Features: 30+ hrs Course duration (Saturday & Sunday only)Industry Expert FacultyReal World Use Cases and scenariosPractical AssignmentsDoubts Clarifications (after each session)End product of this course would be Automation Hybrid framework using Selenium and Python
About Trainer: Trainer has 8+ years of professional experience, specialized in Automation Framework Development, Product, Whitebox & Blackbox Testing. His current assignment is with US based MNC as Automation Lead. He has rich professional history and strong knowledge of Big Data Analytics & e-commerce sector. He has also worked for world leading clients in CMS, Health & Safety and SAP domain.Have already trained 500+ professionals in the industry.  Trained professionals are basically based in USA, India, Canada, Au…
Image
You can enroll for Online Automation training on following tools: 1. Python + Selenium 2. JAVA + Selenium Course duration would be 6-8 weeks. Any candidate with basic or without knowledge of coding, fresher or professional or Manual Testing professional are welcomed to join this course. This course will target: 1. Upgrading coding skills 2. Learning Selenium Commands and their practical usage 3. Implementation of automation concepts on Demo e-commerce project 4. Building Hybrid Page Object Framework using Java+Selenium or Python+Selenium 5. Automation Interview questions and answers session One live Demo Session will be given before starting the batch. Course content details and pricing will be shared over email. You can ping me, comment with your email id or email me at vaneesh.behl@gmail.com.




Setup TestNG in eclipse for automating test using Selenium Webdriver and Java

Image
TestNG is a testing framework developed in the lines of JUnit and NUnit, however it introduces some new functionalities that make it more powerful and easier to use. TestNG is designed to cover all categories of tests − unit, functional, end-to-end, integration, etc., and it requires JDK 5 or higher. Some of its features are listed down: Annotations.Flexible test configuration.Support for data-driven testing (with @DataProvider).Support for parameters.Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).Default JDK functions for runtime and logging (no dependencies).Dependent methods for application server testing.Annotation in TestNG actually is code snippet which lies just ahead of the method declaration and controls the execution of the method. Annotation starts with @ sign. Below is the example of it:


Install TestNG in Eclipse:
You need to install TestNG plugin in your Eclipse to work with it. Below are the steps: Open Eclipse.Click on the 'Help' menu op…

How To Handle Dynamic Web Table In Selenium WebDriver

Image
In this selenium webdriver post, we will learn how to handle dynamic web table. There might occur some scenarios where every time a page loads with different number of rows and columns or different columns for each row.





For that, we have to put two for loops,
1. first loop will iterate all the rows and
2. second loop inside it will iterate the columns of each row



import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class DynamicTable { WebDriver driver = new FirefoxDriver(); @BeforeTest public void setup() throws Exception { driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); driver.get("http://only-testing-blog.blogspot.in/2014/05/form.html"); } …

How To Extract Table Data/Read Table Data Using Selenium WebDriver

Image
Following Script will extract table data:

import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class table { WebDriver driver = new FirefoxDriver(); @BeforeTest public void setup() throws Exception { driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); driver.get("http://only-testing-blog.blogspot.in/2013/09/test.html"); } @AfterTest public void tearDown() throws Exception { driver.quit(); } @Test public void print_data(){ //Get number of rows In table. int Row_count = driver.findElements(By.xpath("//*[@id='post-body-6522850981930750493']/div[1]/table/tbody/tr")).size(); System.out.println("Number Of Rows = &q…