Programming Knowledge for Software Testers
Nowadays programming noesis is essential for every Software professional,
For Software developers Programming noesis is mainstream thence it is mandatory,
For Software Testers who wants to usage automation tools (Ex: UFT/QTP or Selenium etc...) it is important,
For Database Developers also it is of import (ex: In Oracle RDBMS they usage Procedure Language),
For System Administrators/Network Administrators also programming noesis is of import (ex: In Shell scripting they usage programming features/logic).
So Programming noesis is of import for every Software professional.
:
tin post away move done inwards ii ways,
1) Manual Testing
(Testing Computer Software, Mobile Software manually without using whatever tool or program)
2) Test Automation / Automated Testing
(Testing Computer Software, Mobile Software using whatever automation tool or program)
If nosotros follow Manual Testing thence Programming noesis is optional or non required, only agreement requirements, writing essay cases, executing essay cases, finding defects in addition to reporting.
Understanding, Reasoning, Documentation, Executing in addition to Reporting these are the of import skills for Manual Testing.
If it is Test Automation or Automated Testing apart from Manual Testing noesis Programming noesis also required.
You receive got whatever automation tool UFT or RFT or Selenium etc.. They usage whatever ane the programming languages to heighten Test cases.
UFT uses VBScript,
Selenium Supports diverse Programming languages (Java, C#, Python, Perl, PHP, Ruby) yous tin post away usage whatever ane supported programming language.
You receive got whatever programming linguistic communication or Scripting Language 80% skeleton is same. Syntax may vary from ane linguistic communication to roughly other in addition to roughly features may vary from ane linguistic communication to another.
For example,
1) In VBScript every If disceptation should unopen with End IF Statement, but inwards Java if status enclosed with {}.
2) In C Language no Object concept but Function is in that place for code reusability, inwards Java nosotros usage Object for code reusability. Functions in addition to Methods both are same inwards piece of employment (*some divergence is there).
If yous larn whatever ane programming linguistic communication thence learning other programming linguistic communication is real easy, why because virtually of the Programming concepts are mutual inwards purpose, Syntax may vary in addition to roughly features may vary from ane linguistic communication to another.
Important Languages:
C Language - It is Structure Programming Language
Java - Object Oriented programming Language
VBScript - Object based Scripting Language
----------------------
Programming Fundamentals in addition to Features for Testers
1) Comments
> To brand the Code Readable
> To brand the Code disable from Execution.
Note: Writing comments is non mandatory but best exercise (Coding standard).
----------------------------------------------------
2) Data Types
A Data Type is a classification of the type of information that a variable or object tin post away agree inwards estimator programming.
Example:
Character,
Integer,
String
Float
Boolean etc...
----------------------------------------------------
3) Modifiers
Modifiers are used to fix access levels.
----------------------------------------------------
4) Variables
Variable is a named retention place to shop temporary information inside a program.
----------------------------------------------------
5) Operators
Operators are used to perform Mathematical, Comparison in addition to Logical Operations.
Categories of Operators:
i) Arithmetic Operators
ii) Relational Operators
iii) Assignment Operators
iv) Logical Operators etc...
----------------------------------------------------
Flow Control Conditional Statements
Loop Statements
----------------------------------------------------
6) Conditional Statements
Ex: if statement
-----------------------
Types of Conditions
i) Single Condition (Positive/Negative)
ii) Compound Condition (Positive/Negative)
iii) Nested Condition (Positive/Negative)
---------------------------------------
Usage of Conditional Statements
i) Execute a block of statements when a status is true.
ii) Execute a block of statements when a status is true, otherwise execute roughly other block of statements.
iiii) Execute a block of statements when a Compound status is true, otherwise execute roughly other block of statements.
iv) Decide with several alternates (Else if)
v) Execute a block of statements when to a greater extent than than ane status is truthful (Nested if).
Etc...
----------------------------------------------------
7) Loop Statements
Used for Repetitive execution.
Ex: for loop, spell loop etc...
----------------------------------------------------
8) Arrays
> Generally, Array is a collection of like type of elements.
> In Java, Array is an Object that contains elements of like information type.
> In C linguistic communication Array is variable alone in addition to VBScript also Array is only variable (two type of variables inwards VBScript 1) Scalar variables 2) array Variables)
> Array is index based, index starts from zero.
--------------------------------------
9) IO (Input in addition to Output) Operations
> Read information using Input devices.
> Display output on the Console.
> Read information from files / write information
-------------------------------------------------
10) Functions, Methods
Methods are also known every bit Functions.
> In Structured Programming (Ex: C Language) nosotros usage Functions (Built-in in addition to User defined)
> In Object Oriented Programming (Ex: Java Language) nosotros usage Methods (Built-in in addition to User defined)
----------------------------------------------------
11) Regular Expressions
It is a formula for matching patterns, Influenza A virus subtype H5N1 Regular facial expression defines search blueprint for Strings.
Constant matching
india.doc - india.doc
Pattern matching
i*.
ia.....
ib....
.
.
india.doc
----------------------------------------------------
12) Exception Handling
In Computer Programming, Exception is an abnormal condition.
> An exception is an consequence that occurs during the execution of a programme that disturbs the normal catamenia of instructions.
> The Exception treatment is ane of the powerful mechanisms to handgrip Run-time errors.
----------------------------------------------------
13) File Handling
Handling Drives, Folders, Flat files, Excel files, Database files etc...
----------------------------------
14) Coding Standards etc...
Above are the mutual programming concepts in addition to yous tin post away honor roughly other concepts inwards Computer programming.
For representative OOPS concepts inwards Java,
Java Object Oriented Programming System (OOPS) concepts.
Four fundamentals of OOPS
1) Inheritance
2) Polymorphism
3) Abstraction
4) Encapsulation
-------------------------------------------------------------------------
Java for Selenium Videos
Java Tutorial 1
(Overview of Java Programming Language)
Java Tutorial 2
(Introduction to Java in addition to Java Environment Setup)
Java Tutorial 3
(Java Program Structure, Comments inwards Java, Java Data Types)
Java Tutorial 4
(Java Modifiers, Variables in addition to Operators Part-1)
Java Tutorial 5
(Java Operators Part-2 in addition to Conditional Statements)
Java Tutorial 6
(Java Loop Statements, String Handling)
Java Tutorial 7
(Java Arrays, Java Input in addition to Output)
Java Tutorial 8
(Java Exception Handling, File Handling)
Java Tutorial 9
(User Defined Methods inwards Java)
Java Tutorial 10
(Java Built inwards Methods)
Java Tutorial 11
(Java Inheritance in addition to Polymorphism)
Java Tutorial 12
(Java Abstraction in addition to Encapsulation)
Sumber http://www.gcreddy.com/
Nowadays programming noesis is essential for every Software professional,
For Software developers Programming noesis is mainstream thence it is mandatory,
For Software Testers who wants to usage automation tools (Ex: UFT/QTP or Selenium etc...) it is important,
For Database Developers also it is of import (ex: In Oracle RDBMS they usage Procedure Language),
For System Administrators/Network Administrators also programming noesis is of import (ex: In Shell scripting they usage programming features/logic).
So Programming noesis is of import for every Software professional.
:
tin post away move done inwards ii ways,
1) Manual Testing
(Testing Computer Software, Mobile Software manually without using whatever tool or program)
2) Test Automation / Automated Testing
(Testing Computer Software, Mobile Software using whatever automation tool or program)
If nosotros follow Manual Testing thence Programming noesis is optional or non required, only agreement requirements, writing essay cases, executing essay cases, finding defects in addition to reporting.
Understanding, Reasoning, Documentation, Executing in addition to Reporting these are the of import skills for Manual Testing.
If it is Test Automation or Automated Testing apart from Manual Testing noesis Programming noesis also required.
You receive got whatever automation tool UFT or RFT or Selenium etc.. They usage whatever ane the programming languages to heighten Test cases.
UFT uses VBScript,
Selenium Supports diverse Programming languages (Java, C#, Python, Perl, PHP, Ruby) yous tin post away usage whatever ane supported programming language.
You receive got whatever programming linguistic communication or Scripting Language 80% skeleton is same. Syntax may vary from ane linguistic communication to roughly other in addition to roughly features may vary from ane linguistic communication to another.
For example,
1) In VBScript every If disceptation should unopen with End IF Statement, but inwards Java if status enclosed with {}.
2) In C Language no Object concept but Function is in that place for code reusability, inwards Java nosotros usage Object for code reusability. Functions in addition to Methods both are same inwards piece of employment (*some divergence is there).
If yous larn whatever ane programming linguistic communication thence learning other programming linguistic communication is real easy, why because virtually of the Programming concepts are mutual inwards purpose, Syntax may vary in addition to roughly features may vary from ane linguistic communication to another.
Important Languages:
C Language - It is Structure Programming Language
Java - Object Oriented programming Language
VBScript - Object based Scripting Language
----------------------
Programming Fundamentals in addition to Features for Testers
1) Comments
> To brand the Code Readable
> To brand the Code disable from Execution.
Note: Writing comments is non mandatory but best exercise (Coding standard).
----------------------------------------------------
2) Data Types
A Data Type is a classification of the type of information that a variable or object tin post away agree inwards estimator programming.
Example:
Character,
Integer,
String
Float
Boolean etc...
----------------------------------------------------
3) Modifiers
Modifiers are used to fix access levels.
----------------------------------------------------
4) Variables
Variable is a named retention place to shop temporary information inside a program.
----------------------------------------------------
5) Operators
Operators are used to perform Mathematical, Comparison in addition to Logical Operations.
Categories of Operators:
i) Arithmetic Operators
ii) Relational Operators
iii) Assignment Operators
iv) Logical Operators etc...
----------------------------------------------------
Flow Control Conditional Statements
Loop Statements
----------------------------------------------------
6) Conditional Statements
Ex: if statement
-----------------------
Types of Conditions
i) Single Condition (Positive/Negative)
ii) Compound Condition (Positive/Negative)
iii) Nested Condition (Positive/Negative)
---------------------------------------
Usage of Conditional Statements
i) Execute a block of statements when a status is true.
ii) Execute a block of statements when a status is true, otherwise execute roughly other block of statements.
iiii) Execute a block of statements when a Compound status is true, otherwise execute roughly other block of statements.
iv) Decide with several alternates (Else if)
v) Execute a block of statements when to a greater extent than than ane status is truthful (Nested if).
Etc...
----------------------------------------------------
7) Loop Statements
Used for Repetitive execution.
Ex: for loop, spell loop etc...
----------------------------------------------------
8) Arrays
> Generally, Array is a collection of like type of elements.
> In Java, Array is an Object that contains elements of like information type.
> In C linguistic communication Array is variable alone in addition to VBScript also Array is only variable (two type of variables inwards VBScript 1) Scalar variables 2) array Variables)
> Array is index based, index starts from zero.
--------------------------------------
9) IO (Input in addition to Output) Operations
> Read information using Input devices.
> Display output on the Console.
> Read information from files / write information
-------------------------------------------------
10) Functions, Methods
Methods are also known every bit Functions.
> In Structured Programming (Ex: C Language) nosotros usage Functions (Built-in in addition to User defined)
> In Object Oriented Programming (Ex: Java Language) nosotros usage Methods (Built-in in addition to User defined)
----------------------------------------------------
11) Regular Expressions
It is a formula for matching patterns, Influenza A virus subtype H5N1 Regular facial expression defines search blueprint for Strings.
Constant matching
india.doc - india.doc
Pattern matching
i*.
ia.....
ib....
.
.
india.doc
----------------------------------------------------
12) Exception Handling
In Computer Programming, Exception is an abnormal condition.
> An exception is an consequence that occurs during the execution of a programme that disturbs the normal catamenia of instructions.
> The Exception treatment is ane of the powerful mechanisms to handgrip Run-time errors.
----------------------------------------------------
13) File Handling
Handling Drives, Folders, Flat files, Excel files, Database files etc...
----------------------------------
14) Coding Standards etc...
Above are the mutual programming concepts in addition to yous tin post away honor roughly other concepts inwards Computer programming.
For representative OOPS concepts inwards Java,
Java Object Oriented Programming System (OOPS) concepts.
Four fundamentals of OOPS
1) Inheritance
2) Polymorphism
3) Abstraction
4) Encapsulation
-------------------------------------------------------------------------
Java for Selenium Videos
Java Tutorial 1
(Overview of Java Programming Language)
Java Tutorial 2
(Introduction to Java in addition to Java Environment Setup)
Java Tutorial 3
(Java Program Structure, Comments inwards Java, Java Data Types)
Java Tutorial 4
(Java Modifiers, Variables in addition to Operators Part-1)
Java Tutorial 5
(Java Operators Part-2 in addition to Conditional Statements)
Java Tutorial 6
(Java Loop Statements, String Handling)
Java Tutorial 7
(Java Arrays, Java Input in addition to Output)
Java Tutorial 8
(Java Exception Handling, File Handling)
Java Tutorial 9
(User Defined Methods inwards Java)
Java Tutorial 10
(Java Built inwards Methods)
Java Tutorial 11
(Java Inheritance in addition to Polymorphism)
Java Tutorial 12
(Java Abstraction in addition to Encapsulation)