Android apps to use in appium android test examples

Breaking

Monday, June 18, 2018

Usage of Java inward Selenium

Java is a full general utilisation programming linguistic communication too every bit Software platform Usage of Java inward Selenium
Usage of Java Programming inward Selenium

Java is a full general utilisation programming linguistic communication too every bit Software platform.

Java every bit Programming Language - To educate Software Applications (JDK include JRE, JVM)

Java every bit Software Platform - To supply Run-time Environment (JRE include JVM))
-------------------------------------------
Java has iii Important Parts / iii Important Editions

1) Java Standard Edition / Core Java (Old Name J2SE)

2) Java Enterprise Edition / Advanced Java (Old Name J2EE)

3) Java Micro Edition (Old cite J2ME)
--------------------------------------------------
1) Java Standard Edition / Core Java

For Test Automation amongst Selenium, Core Java/Java Standard edition is sufficient, Advanced Java is non required.

Java Standard Edition / Core Java for Selenium

First, Java Environment Setup (To Create as well as Execute Java Programs/Test Scripts)

Manual Testing - Test Case

UFT/QTP - Test / Test Script

Selenium - Test Case / Test Script
--------------------------------------------
1) Comments 

We write comments inward Selenium Test Cases,

Use of Comments inward Selenium:
i) To write Test Case headers
ii) To write Method headers
iii) To explicate complex logic

2) Data Types

Data Types are used inward Test Automation for storing as well as comparison specific type of data.

3) Modifiers

Access Modifiers are used inward Selenium Test Cases to define access levels for Variables, methods etc... But nigh of the Time nosotros utilisation world access modifier only.
Non-Access Modifiers static, finally etc... are used inward our selenium Test Cases.

4) Variables 

We utilisation Variables inward our Selenium Test Cases for storing as well as treatment data.

5) Operators 

We utilisation Operators inward Selenium Test Cases for performing Arithmetic, Comparison, as well as Logical Operations.

6) Control Flow Statements
i) Conditional Statements
ii) Looping Statements
iii) Branching Statements

We utilisation Conditional Statements inward our Test Cases for inserting Verification Points, as well as for Error handling.

We utilisation Looping Statements inward our Selenium Test Cases for repetitive execution(Ex: Data Driven Testing).

7) Arrays

We utilisation Arrays inward our Test cases for treatment Excel file similar Table format Data.

8) Strings

Strings are to a greater extent than of import for our Test Automation, whenever nosotros read information from files as well as from Application objects as well as then Computer programme considers the information every bit String type data.

9) Input as well as Output Operations 

We utilisation Input for providing information for captcha (verification code) fields inward our Test Cases.
We utilisation Output statements to display output on the Console.

10) File Handling

We utilisation Text Files or Excel files every bit resources for Data driven Testing.

11) Methods
i) Predefined Methods
ii) User defined Methods

We utilisation Predefined methods to perform operations on Strings, Numbers, Arrays, Characters, Date as well as Time etc...

12) Exception Handling

Exception Handling is an of import business inward our Selenium Test Cases to grip Run-time errors.
-----------------
Java OOPS (Object Oriented programming System)

1) Inheritance

Inheritance characteristic is express utilisation inward selenium, We inherit (reuse) Methods/Components inward our Test cases (From 1 Java Class to another)

2) Polymorphism

Some times nosotros utilisation Method OverLoading as well as Method Overriding features inward our exam Cases, but express use.

Ex: We exercise 2 or to a greater extent than methods amongst same cite for slowly maintenance.

3) Abstraction

Abstraction characteristic is non used inward our selenium, usually developers utilisation this feature.

4) Encapsulation

Encapsulation feature is non used inward Selenium, Usually developers utilisation this feature for accessing person fields via world methods.
-------------------------------------------------------------------
Also Read:

Java Step past times Step Videos

Selenium Step past times Step Videos

Sumber http://www.gcreddy.com/

No comments:

Post a Comment