WebDriver driver = new FirefoxDriver();
(vs)
FirefoxDriver driver = new FirefoxDriver();
WebDriver -> is an Interface
FirefoxDriver, ChromeDriver, IEDriver -> are classes
All the abstract methods of Webdriver interface are implemented in RemortWebDriver class which is extended by browser...
Monday, July 29, 2019
Question: How
do you check whether a table data(values) is sorted or not? Sorting happens
when clicking on Table Header(Ex: Name, which is a link).
Name
Venu
Avinash
Dharma
Answer:
We can take an array of String type as expected values and consider the column values which need to be verify are as actual values. Which can be resolved by below example.
import java.util.ArrayList;
import
java.util.Collections;
import...
Sunday, July 7, 2019
What is java?
Java is a programming language and a computing platform
for application development.
It was first released by Sun Microsystem in 1995 and later acquired by Oracle Corporation in 2010.
In 2006 Sun started to make Java available under the GNU General Public License (GPL).
Lets see the phases of execution of a Java program:
Writing of the program is of course done by java programmer
Compilation of program is done by javac compiler,...
What is Selenium:
Selenium is an Automation Testing Framework which automates web applications for testing purposes.
It is an open source and mainly used for automating functional tests and regression tests.
Note: It can be integrated with automation test tools such as Maven, Jenkins, & Docker to achieve continuous testing. It can also be integrated with tools such as TestNG, & JUnit for running test cases and generating reports.
Features...
Manual testing is a testing process that is carried out manually(executing test cases) in order to find defects without the usage of tools or automation scripting.
It is the most primitive of all testing types and helps find bugs in the software system.
Manual Testing does not require knowledge of any testing tool.
Advantages of Manual Testing:
Faster execution
and rapid feedback to developers
Supports
regression testing.
Frequent execution
and...
What is Software Testing:
Software Testing is a process of verifying or validating an application with the intention of finding bugs or defects.
This can be done through either manually or using automation tool.
Definition of a Defect:
It is a deviation from
the requirement specification. (difference between expected result and actual
result)
Importance of Software Testing:
It is an essential since it makes sure...
Wednesday, June 19, 2019

Encapsulation is to make sure that "sensitive" data is hidden from users. To achieve this, you must:
declare class variables/attributes as private (only accessible within the same class)
provide public setter and getter methods to access and update the value of a private variable
In encapsulation, you never expose your data to an external party. Which makes your application...
Thursday, February 28, 2019

What is mean by immutable object/class?
Assume we have a below class A as mutable:
Class A{
int i = 10;
int j = 20;
A a = new A();
}
a.i = 30;
a.j = 40;
Changing state of objects, so A is mutable.
Immutable: once object is created, we cannot change the content of the object.
String str = "Venu" -> We ca not change the state of str because string is immutable
str.concate("gopal)...
Sunday, February 10, 2019
Software Testing Life Cycle:
Below is the summary of STLC along with Entry and Exit Criteria: Following phases are involved in STLC:
Requirement Analysis
Test Planning
Test case development
Test Environment setup
Test Execution
Test Cycle closure
1. Requirement Analysis:
Entry Criteria:
Requirements Document available (both functional and non functional)
Application architectural document available
Activity:
Analyze business functionality...
Sunday, February 3, 2019
Difference between BufferedReader and Scanner:
It can parse the user input and read an int, short, byte, float, long and double apart from String. On the other hand, BufferedReader can only read String in Java.
BuffredReader has a significantly large buffer (8KB) than Scanner (1KB), which means if you are reading long String from a file, you should use BufferedReader but for short input and input other than String, you can use Scanner class.
BufferedReader...
Tuesday, January 29, 2019
Write a Java program to find whether given number is Armstrong or not
Armstrong numbers are: 153, 370, 371, 407
Definition: We call a given number as Armstrong if it is equal to the sum of the powers of its own digits.
Ex: abcd...n => pow(a,n) + pow(b,n) + pow(c,n) + pow(d,n) + .... =abcd...n
Answer:
package seleniumrepo;
import java.util.Scanner;
class ArmstrongNumber{
public static void main(String args[]){
...

Based on the type of data stored, data types are classifying as 3 types in Java.
Primitive Datatype (Fundamental Datatype):
Derived Datatype
User Defined Datatype
Primitive Datatype (Fundamental Datatype):
The datatype which stores only single value is Primitive datatype. Primitive datatypes are also known as fundamental datatypes. In java programming language,...

Difference between White Box Testing and Black Box Testing:
WBT: This is defined as method of testing in which one can perform testing on an application having internal structural knowledge of it. This is also known as Glass Box Testing.
This testing focuses on the structural part of an application and hence the Developers are involved in this type of testing.
BBT: This...
Monday, January 28, 2019
Sunday, January 27, 2019

we cannot iterate a Map directly using iterators, because Map are not Collection.
There are different methods to iterate through MAP elements:
Method 1: Using Iterator and keySet().
package seleniumrepo;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class TestIterator {
public static void main(String[] args) {
...
Subscribe to:
Posts (Atom)