Category «Java»

Introduction to Java Virtual Machine (JVM)

Consider any system, it should be hiding complexity from the user, be it a programming language or any computer solution. This makes the user happy which is the goal of any application. Virtualization is a concept in computer science engineering which means creating virtual resources such as hardware, operating system, etc on top of the …

Selenium – Creating XML Reports

XML is the abbreviation for Extensible Markup Language.  XML is used in many aspects of software development, data storage, to communicate between different applications, data sharing, etc.  In Test Automation if the reports are generated in XML format that can be utilized to generate customized HTML reports and also can be imported into Spreadsheet like …

Java – Conditional Statements

Java being a programming language provides conditional statements to handle execution of a set of statements based on the conditions. if if-else switch See example code below: package com.selftechy.learnjava; public class TestCase { public static int tcCount; public int stepcount; public String status; public int getStepCount(){ return stepcount; } public String getStatus(){ return status; } …

Java – Static and Instance Variables

Object Oriented Programming has a concept of instance variables.  This type of variable is declared in a class and whenever an object is created of that class, a copy of the variable is created.  Instance variable is accessed as “object.variable” Static variable is also declared in a class but is created only once and used …

Java – Inheritance

Knowledge of inheritance really helps if you are using Java / JUnit / TestNG frameworks for Test Automation.  Inheritance is an Object Oriented Programming concept. If a class which already created contains some variables and methods, if we want to add some more features to the existing class by adding some more functionalities then we …

Java – Classes, Objects, and Methods

Classes – To simplify the definition we can say class means it is a category.  For example, mobile handset can be a class (i.e. MobileHandSet) and from which we can create many objects having the same functionalities.   Some more examples of class might be Test Case, Bugs, Log, Exception, Test Book, etc. Objects – Object …

Selenium – Learn Java to Enhance Test Automation Skills

Selenium is a Test Automation tool for Web Applications.  Selenium IDE is an Add-on for Mozilla Firefox.  Using Selenium IDE we can record and playback tests.   Recorded tests will be in a table format.  This can be exported into various programming language formats such as C#, Java / JUnit, Groovy, PHP, Perl, Python, Ruby, etc. …