Tutorial Testing Software

Android apps to use in appium android test examples

Breaking

Thursday, January 17, 2019

January 17, 2019

Selenium Tutorial

Selenium Tutorial for beginners

1) What is Selenium?

Selenium is an Open origin Software as well as it was launched inward 2004.

Selenium is a suite of Tools to automate spider web browsers across many platforms, Means it is only for automating spider web based applications, non for Desktop applications as well as its supports diverse operating environments similar Windows, Linux etc… as well as diverse Browsers similar Mozilla Firefox, IE, Chrome, Opera etc…

Selenium Supports diverse programming as well as scripting Languages for applying programming logic to our Tests.
It Supports:

Java, C#, Perl, Python, Ruby as well as PHP Languages, most of the companies usage Java Language, So yous also endeavour to usage Java Language.

Why Java only? Why can’t nosotros usage other languages, most of the supporting as well as assistance documentation as well as implementations available on Internet inward Java only, if nosotros usage only about other languages as well as therefore back upwards is real less.

Selenium supports:

Functional as well as Regression Testing of Web Applications
Performance Testing

Note: Using Selenium for Performance Test Automation is non recommendable.

2) Selenium’s Suite of Tools:

Selenium is a laid upwards of software tools each amongst a dissimilar approach to back upwards Test Automation.

a) Selenium IDE
b) Selenium RC (Remote Control)
c) Selenium WebDriver
d) Selenium Grid


3) Selenium IDE

Selenium IDE (Integrated Development Environment) is a tool for generating seek out scripts. It is a Firefox plugin.

Features of Selenium:

•    Record as well as Play dorsum Test Cases
•    Exporting Test Cases to dissimilar Languages

Disadvantages of Selenium IDE:

•    It supports Mozilla Firefox Browser only.
•    Data Driven Testing (executing tests using mulpiple sets of seek out data) is non possible.
•    Test Results are non generated using Selenium IDE (It generats summary only).
•    Random Test Cases execution is non possible
•    Selenium IDE doesn’t back upwards Flow command Statements.


4) Selenium RC (Remote Control)

 Selenium RC solves the limitations of Selenium IDE. It supports diverse programming languages similar Java, C#, PHP, Perl, Python as well as Ruby languages to accomplish logic required inward seek out cases similar conditional statements, iterations, exception handling, seek out reporting, database testing, capturing hide shots of failed tests, seek out example grouping etc...

Important advantages of Selenium RC:

•    It supports Random Test cases execution
•    Supports Flow command statements as well as other programming features to heighten Tests.
•    Supports diverse Browsers for Tests execution.

Disadvantage of Selenium RC:

•    Test Case execution fourth dimension is to a greater extent than because every customer asking get-go post to Selenium Server afterwards that post to Browser.
•    Executing Tests inward parallel is non possible.


5) Selenium-Grid:

Selenium-Grid allows the Selenium RC solution to scale for large seek out suites as well as for seek out suites that must hold out run inward multiple environments. 


Selenium Grid allows yous to run your tests inward parallel, that is, dissimilar tests tin hold out run at the same fourth dimension on dissimilar remote machines.

6) WebDriver:

The biggest alter inward Selenium late has been the inclusion of the WebDriver API. Selenium WebDriver fits inward the same role equally RC did.

WebDriver is designed inward a simpler as well as to a greater extent than concise programming interface along amongst addressing only about limitations inward the Selenium-RC API.

WebDriver overcomes the limitation of Selenium RC (Remote Control)

Selenium-WebDriver supports the next browsers along amongst the operating systems these browsers are compatible with.

•    Google Chrome
•    Internet Explorer 6, 7, 8, 9, 10 - 32 as well as 64-bit where applicable
•    Firefox: latest ESR, previous ESR, electrical current release, i previous release
•    Safari
•    Opera
•    HtmlUnit
•    phantomjs
•    Android (with Selendroid or appium)
•    iOS (with ios-driver or appium)

7) Advantages of Selenium

•    Since this is an Open origin Software (free tool), anybody tin downwards charge as well as usage amongst gratis of cost, it frequently is i of the few options for companies that practise non convey a lot of budget for Automation tools.
•    Selenium was get-go written inward Java but it also supports C#, Ruby, Perl, PHP as well as Python. This is a large addition when nosotros desire to construct our framework inward a linguistic communication that has the highest adoption inward the organisation it is existence built within. Tools similar QTP strength yous to usage VBScript – which is almost never the preferred scripting linguistic communication for developers.
•    It has back upwards for all of the pop browsers similar IE, Firefox, Chrome, Safari etc. It also supports several Operating Systems as well as that makes it a tool of pick for cross browser/ cross platform certification.
•    Once yous croak Selenium to move for you, it industrial plant reliably when used for running the tests over as well as over again. It’s definitely a lot to a greater extent than reliable than tools similar QEngine or JExplorer but close the same equally tools similar QTP.
•    You tin instantiate several concurrent tests amongst Selenium Grid. Good luck trying that amongst tools similar QTP!

8) Disadvantages of Selenium

•    Supports Web based (Browser based) Application only, doesn't back upwards Desktop or standalone Application seek out automation.
•    Since it is Open origin software, no reliable technical back upwards from anybody.
•    Some novel features may move or may non move properly.
•    Deploying Selenium Tool is hard than UFT (Formerly QTP) Tool.

9) Selenium Certification:

No Authorized Certification for Selenium Tool, only about organizations are conducting Selenium certification examination but
no value guaranty for them inward the information technology Industry.

Sumber http://www.gcreddy.com/
January 17, 2019

Web Application Testing

Automation Framework for Web Applications

Application: Online Shopping Portal
Application Type: Internet Application (Public)

Domain: ECommerce

Sub-Domain: B2C (Business to Customer)

Application Environment: LAMP (Linux, Apache, MySQL, PHP)

HTML as well as Activex controls for UI Design

Add ins
---------
Activex
Web
---------------------
It has ii interfaces:

a) Client side interface

URL:

www.gcrit.com/build3

b) Admin Interface:

www.gcrit.com/build3/admin

User id: admin

Password: admin@123
---------------------------------
Features inward Admin Interface:

1) Create / Edit / Delete Categories as well as Products

2) Create / Edit / Delete Vendors

3) Edit / Delete Reviews

4) Edit / delete Customers

5) Create / Edit / Delete Currencies as well as ready default currency

6) Edit / Delete Orders

7) Reports
    Products viewed
    Products purchased etc...
---------------------------------------------
Features inward Client / User interface

1) Customer Registration

2) Login

3) Shopping as well as Check out

etc...
--------------------------------------
Stake holders
---------------
i) Vendors
(They house products, as well as hold stock as well as ship products alongside the help of distributors)

ii) Portal Owners

iii) Customers
(View products, Purchase products, Enquiries etc...)

iv) Payment Gateways
(Collecting payments from customers as well as sending to vendors, refunds etc...)

v) Courier service Providers
(Shipping products from vendor to customers, replacements etc...)
--------------------------------
User Defined Functions for Gcr Shop spider web Application:
'**************************************
'    Launch Application
'**************************************
Function Launch_App()
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "http://www.gcrit.com/build3/"
Wait 5
Browser_Name = Browser("GCR Shop").GetROProperty("title")

If Browser_Name = "GCR Shop" Then
    Launch_App = "Application Launched - Passed"
    Else
    Launch_App = "Application Not Launched - Failed"
End If
Msgbox Launch_App
End Function
'**************************************
'    Customer Registration
'**************************************
Function Register(Email, Password)
Browser("GCR Shop").Page("GCR Shop").Link("create an account").Click @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop").Link("create an account")_;_script infofile_;_ZIP::ssf1.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebRadioGroup("gender").Select "m" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebRadioGroup("gender")_;_script infofile_;_ZIP::ssf2.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("firstname").Set "abcd xyz" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("firstname")_;_script infofile_;_ZIP::ssf3.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("lastname").Set "rtettyyy" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("lastname")_;_script infofile_;_ZIP::ssf4.xml_;_
Browser("GCR Shop").Page("GCR Shop_4").WebEdit("dob").Set "09/11/1977"
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("email_address").Set Email @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("email address")_;_script infofile_;_ZIP::ssf9.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("company").Set "asdf" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("company")_;_script infofile_;_ZIP::ssf10.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("street_address").Set "hghgh jjjj" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("street address")_;_script infofile_;_ZIP::ssf11.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("postcode").Set "12345" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("postcode")_;_script infofile_;_ZIP::ssf12.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("city").Set "Hyderabad" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("city")_;_script infofile_;_ZIP::ssf13.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("state").Set "Telangana" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("state")_;_script infofile_;_ZIP::ssf14.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebList("country").Select "India" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebList("country")_;_script infofile_;_ZIP::ssf15.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("telephone").Set "9233454545" @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("telephone")_;_script infofile_;_ZIP::ssf16.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("password").Set Password @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("password")_;_script infofile_;_ZIP::ssf17.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("confirmation").Set Password
Browser("GCR Shop").Page("GCR Shop_2").WebButton("Continue").Click @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebButton("Continue")_;_script infofile_;_ZIP::ssf19.xml_;_
Conformation_Message = Browser("GCR Shop").Page("GCR Shop_3").WebElement("Your Account Has Been").GetROProperty("innertext") @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 3").WebElement("Your Account Has Been")_;_script infofile_;_ZIP::ssf20.xml_;_

If Conformation_Message = "Your Account Has Been Created!" Then
Register = "Customer Registration Successful - Passed"
Else
Register = "Customer Registration Unsuccessful - Failed"
End If
Msgbox Register
End Function
'**************************************
'    Login
'**************************************
Function Login(Email, Password)
Browser("GCR Shop").Page("GCR Shop").Link("login").Click @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop").Link("login")_;_script infofile_;_ZIP::ssf1.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("email_address").Set Email @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebEdit("email address")_;_script infofile_;_ZIP::ssf2.xml_;_
Browser("GCR Shop").Page("GCR Shop_2").WebEdit("password").Set Password
Browser("GCR Shop").Page("GCR Shop_2").WebButton("Sign In").Click @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 2").WebButton("Sign In")_;_script infofile_;_ZIP::ssf4.xml_;_
 @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop_3")_;_script infofile_;_ZIP::ssf5.xml_;_
If Browser("GCR Shop").Page("GCR Shop_3").Link("Log Off").Exist(10) Then @@ hightlight id_;_Browser("GCR Shop").Page("GCR Shop 3").Link("Log Off")_;_script infofile_;_ZIP::ssf8.xml_;_
Login = "Login Successful - Passed"
Else
Login = "Login Unsuccessful -Failed"
End If
Msgbox Login
End Function
'**************************************
'    Verify object Count
'**************************************
Function VerifyObjects_Count()
    Dim oObject, Objects
    Set oObject = Description.Create
   
    Set Objects = Browser("GCR Shop").Page("GCR Shop").ChildObjects(oObject)
   
If Objects.Count = 47 Then
    VerifyObjects_Count = "Objects Count is Correct- Passed"
    Else
    VerifyObjects_Count = "Objects Count is Incorrect- Failed"
End If   
Msgbox VerifyObjects_Count
End Function
'***************************************
'    Close Application
'***************************************
Function Close_App()
    If Browser("GCR Shop").Exist(4) Then
        Browser("GCR Shop").Close
    End If
    Wait 9
    If Not Browser("GCR Shop").Exist(3) Then
        Close_App = "Application Closed - Passed"
        Else
        Close_App = "Application Not Closed - Failed"
    End If
    Msgbox Close_App
End Function
'***************************************

Sumber http://www.gcreddy.com/

Wednesday, January 16, 2019

January 16, 2019

HP ALM Introduction

HP ALM (Application Life Cycle Management)

It is a Test Management Tool from HP.

ALM Supports:

•    Requirements Management
•    Test Design
•    Test execution
•    Defect management
•    Traceability
•    Integration amongst other Tools similar UFT together with LoadRunner.

ALM Tool Version History:

i) TestDirector (1.0 to 8.0) Versions

C++
MS Access
---------
SQL Server
Oracle
Sybase
---------------
ii) Quality Center (8.0 to 11.00)

J2EE
MS SQL Server
JBoss
----------
Oracle
-------------
iii) ALM 11.5

ALM 12.01 (Latest Version)
---------------------------
UFT together with ALM Integration
---------------------------
a) Stand-alone Environment
--------------
UFT Installation

ALM Installation

UFT Add inwards for ALM
----------------------
b) Intranet Environment

Server side:

ALM Installation
--------------------------
Client side:

UFT Installation

ALM Client version Installation

UFT Add inwards for ALM
--------------------------
ALM Supports:

Stand lonely environment

Intranet environment

Internet environment

for sharing resources besides every bit services.
------------------------------------------
In illustration of UFT
UFT tin dismiss portion Resources only.

UFT Tool Resources                   
------------------------------
Shared object Repository file
Function Library file
Environment Variables file
Etc...
-------------------
UFT Tool Services
--------------------
Recording
Data Table
Step generator etc...
--------------------------------
ALM doesn't convey whatever programming interface

ALM has Database engine to back upwards SQL Commands

It has Command Line interface, nosotros tin dismiss execute SQL Commands

ALM supports all types software Applications past times default.

ALM is simply for Documentation together with generating Reports, it doesn't interact amongst software Applications

ALM Add ins
-------------
a) MS Word

b) MS Excel

To import information from File organization to ALM Project

Three things tin dismiss survive imported:

a) Requirements

b) Tests

c) Defects
----------------
Usage of ALM
--------------
i) Functional Testing (Manual) + Test Management (ALM)

ii) Some Functional Testing (Manual) + Some Functional Testing (UFT) + Test Management (ALM)

iii) Some Functional Testing (Manual) + Some Functional Testing (UFT) + Performance Testing (LoadRunner) + Test Management (ALM)

iv) Functional Testing (Manual) + Performance Testing (LoadRunner) + Test Management (ALM)

etc...
--------------------
UFT Tool tin dismiss survive accessed past times Testers together with Customers

ALM tin dismiss survive accessed past times Development Team, Testing Team, BA together with Customers etc...
-----------------------------------
Users of ALM (Testing Team)

i) Site Admin for treatment all ALM projects

ii) Project Admin (Test Lead) to grip i or to a greater extent than projects

iii) General User (Tester) to run amongst i or to a greater extent than projects
-------------------------------------------
ALM has two interfaces

I) Site Admin / Server side

II) ALM / Client side interface
---------------------------------
Import features inwards Site Admin:

a) Create / delete Domains

b) Create / Edit / Delete Projects

c) Create / Edit / Delete Users

d) Assign users to projects

e) Track projection status
------------------------
ALM Interface
---------------
a) Requirements
    Create/Edit/Delete Requirements together with Child requirements
    Import Requirements from file System using either MS Word or Excel format.

b) Test Plan (It is an expanse where nosotros exercise Manual together with Automated Tests)
    Create/Edit/Delete Manual Tests
    Create/Edit/Delete Automation Tests(* Using Automation Tool)
    Import Tests from file System using either MS Word or Excel format.
    Map Tests amongst Requirements

c) Test Lab (It is an expanse where nosotros execute Manual together with Automated Tests)
    Create Test Batches
    Execute Manual Test batches or Tests
    Execute Automated Tests
   
d) Defects
    Post Defects
    Track Defects
    Import defects straight from UFT Result window
    Import Defects from file System using either MS Word or Excel format.

Sumber http://www.gcreddy.com/
January 16, 2019

UFT Training

UFT Training Videos

UFT Tutorial Part ane Video
Overview on Test Automation
(Overview on Test Automation Video Tutorial explains Disadvantages of Manual Testing, Advantages of Test Automation, Disadvantages of Test Automation, Types of Test Tools as well as Functional testing.)
------------------------------------------------------------------------ UFT Tutorial Part ii Video 
Overview on UFT Tool
(Overview on UFT Tool explains UFT Product Information, Version History, UFT License information, UFT supporting Environments, UFT Add ins as well as UFT IDE (Integrated evolution Environment).
------------------------------------------------------------------------
UFT Tutorial Part iii Video 
a) UFT Tool Architecture
(UFT Tool Window Architecture Video explains Key elements of UFT similar UFT Tool Editor, Data Table, Active screen, as well as all menus of UFT from File card to Help menu. It likewise explains UFT IDE (Integrated Development environment).) 
b) Software Test Process
(Software Test Process Video explains all phases of Software Test Process similar Test Planning, Test Design, Test Execution as well as Test Closure. It likewise explains UFT Test Planning phase.)
------------------------------------------------------------------------
UFT Tutorial Part iv Video
(UFT Test Process Tutorial explains UFT Test planning, Test Design as well as Enhancing Tests phases inwards UFT Test Process. It explains all exam blueprint methods similar Recording, Descriptive programming as well as Test enhancing methods similar Checkpoints, Output values, VBScript menstruum command statements etc...)
------------------------------------------------------------------------
UFT Tutorial Part five Video
(UFT Test Process phases Running as well as Debugging Tests, Analyzing Test Results as well as Reporting Defects.
Types of Objects inwards UFT Test Automation, Run fourth dimension objects, Test objects, Utility Objects as well as Automation Objects.
Types of statements inwards UFT Test, Test object statements, Utility statements Flow command statements, as well as Function calls etc...)

------------------------------------------------------------------------
 
UFT Tutorial Part six Video
(Prerequisites for generating Tests, Record as well as Run Tests)
------------------------------------------------------------------------

Sumber http://www.gcreddy.com/

Tuesday, January 15, 2019

January 15, 2019

UFT Tutorial Part 1


UFT Tutorial Part i (Overview on Test Automation)

I) Disadvantages of Manual Testing

    a) It takes to a greater extent than fourth dimension or to a greater extent than resources, sometimes both

    b) Less Accuracy

    c) Some types of Testing is impractical (Ex: Performance Testing)

    d) Human user interaction is mandatory for every Test illustration execution

    e) Comparing large total of information is difficult

    f) Data Driven Testing is Difficult

    g) Manual Test Case compass is limited

    h) It is non recommended for fourth dimension bounded projects

    i) Maintenance Takes to a greater extent than time

    j) Checking GUI objects is difficult
-------------------------------------------------
II) Advantages of Test Automation

a) Fast:

b) Accuracy:

c) Reusable: Sanity Tests, Regression Tests

d) Repeatable: Data Driven Testing

e) Programmable:
   
f) Comprehensive: Batch Testing
------------------------------------------------
III) Disadvantages of Test Automation
-------------------------------
a) 100% Test Automation is non possible

b) All Types of Testing is non possible (Usability Testing)

c) Lack of Knowledge

d) Tools may get got their ain defects; sometimes nosotros may non become desired benefits

e) Not suitable for curt term projects

f) Not recommended for dynamically changing UI designs

g) Technology / Environment Limitations

IV) Types of Test Tools
-------------------------
a) Business Classification

1) Vendor Tools

HP
    WinRunner(Scrapped)
    QTP (Retired)
    UFT (New Launch)
    LoadRunner
    TestDirector(Retired)
    Quality Center / ALM

IBM

    RFT
    RPT

Micro Focus
    SilkTest
    Silk Performer etc....
-------------------------------------
2) Open Source Tools

Selenium,
JMeter,
Bugzilla
Etc...

3) In-house Tools

---------------------------
b) Technical Classification

1) Functional & Regression Test Tools

UFT, RFT, SilkTest, Selenium etc...

2) Performance Test Tools

LoadRunner, RPT, SilKPerformer, JMter etc...
----------------------------------------
3) Test Management Tools

QC/ALM, Jira etc...

4) Defect Management Tools

Bugzilla
--------------------------------------
V) Overview on Functional Testing

Functional Testing -Test Type

System Testing -Test Level

    System Testing

Functional & Non-Functional Testing

    Functional in addition to Unit Testing
    Functional in addition to Integration
    Functional in addition to System Testing
    Functional in addition to Acceptance Testing
   
Coverage of Functional Testing

    a) Input Domain Coverage
Data factors
------------
Type

Size

Range
    b) Output Domain Coverage

    c) Database Testing
        Data Integrity
        Data Manipulations (Add, Edit, Delete)
        Data comparisons
        Data Retrievals
        Data Back-up in addition to Recovery Operations etc...

    d) Error Handling
    e) Order functionalities
-------------------------------------------

Sumber http://www.gcreddy.com/
January 15, 2019

Overview on UFT

UFT Tutorial Part ii (Overview on UFT)
------------------
i) UFT Version History

Astra QuickTest (1.0 to 5.0)

QTP - 5.6 - 2002

6.5 - 2003

8.0 - 2004

8.2 - 2005

9.0 - 2006

9.2 - 2007 --------Mercury Interactive

9.5 - 2008 ------------HP-----------
   
10.00 -2009

11.00 - 2010

UFT 11.5 - 2012

UFT 12.01 Latest version
----------------------------------------------

ii) UFT Product Information

UFT is a Functional too Regression Test Tool

UFT developed inward .NET technology

UFT is I-tier Application / Desktop Application

    UFT Resources
        Shared object Repositories
        Function Library files
        Environment Variables files
        Recovery scenario files
        Test Data files etc...
UFT stores its resources using File format on HDD

UFT is an Object based Test Tool

    Software Objects inward Windows based Environment:

Window, Dialog box, Button, Radio Button, Edit box, Check box, Drop-down box, List bix, Combo box etc...

    Software Objects inward Web based Environment:

Browser, Page, Link, Image, Button, Radio Button, Edit box, Check box, Drop-down box, List bix, Combo box etc...

For Database Testing no forepart halt object reference is required

UFT has MS Access Engine for Database operations too VBScript engine for Scripting

UFT has ii editors

    UFT Tool Editor view
    Function Library
-----------------------------------
iii) UFT Supporting environments

a) Application Environment

CUI based

Windows based

Web based
----------------------------------
b) Operating Environment

MS Windows

UNIX / Linux/Solaris etc... (Doesn’t)

Client side

MS Windows - 86%

UNIX / Linux/Solaris etc... 10%
-------------------
Server side

MS Windows - 46%

UNIX -46%
---------------------------------------
iv) UFT Add ins
-----------------
Add inward

Environment compatible files

a) Internal Add ins
--------------------
    1) Standard Windows (Built-in)
    2) Activex
    3) Visual Basic
    4) Web

-----------------------
b) External Add ins

5) Java

6) .NET for windows forms

7) .NET for Web forms

8) WPF

9) SAP for GUI

10) SAP for Web

11) Siebel

12) Peoplesoft

13) Power Builder

14) Delphi

15) Stingray

16) Smalltalk

17) TE

18) Oracle

19) Web services

20) Silver light
------------------------------------------
How to conduct Appropriate Add ins?
---------------------------------

3 spider web based Applications developed using Java technology

1App    2App    3App
-----------------------
Web    Activex    Activex   
    Web    Web
        Java
----------------------------------------
v) UFT License

a) Seat / Node locked

b) Concurrent / Float

------------------------------------------
vi) UFT IDE

has iii types of features support

a) Direct features

Recording, Object Spy, Checkpoints, Data Table, Step generator, Object Repository etc...

b) Integrate Tools from HP

Password Encoder, Test Batch Runner, Test Results deletion tool etc...

c) Integrate Tools from Others

MS Access Database engine for Database operations

VBScript engine for Scripting

MS Script debugger for debugging Tests
---------------------------------------------

Sumber http://www.gcreddy.com/

Monday, January 14, 2019

January 14, 2019

UFT Test Process


UFT Tutorial Part iv (UFT Test Process) 
I) Test Planning
 a) Get Environment (UI Design Technology too Database)Details from Development Team too choose appropriate Add ins

b) Analyze the AUT inward damage of Object Identification

c) Select areas / Test cases for Automation
        1) Tests that nosotros bring to execute on every construct (Sanity Tests)
        2) Tests that nosotros bring to execute on every modified construct (Regression Tests)
        3) Tests that nosotros bring to execute using multiple sets of Test Data (Data Driven Tests)

d) Tool settings Configuration too Globalize
 
e) Automation Framework Implementation (Optional)
 

II) Generate Basic Tests
--------------------------
a) Object Repository based Test Design
    1) Recording
    2) Keyword Driven Methodology

b) Descriptive Programming / Programmatic Descriptions
    1) Static Programming
    2) Dynamic Programming

Hybrid Approach
    High Level (Test Level)
    Low Level (Statement/ Step Level)

Statement

OR                DP
ParentTestObject("ObjectName").ChildTestObject("ObjectName").Method / Operation -Correct Syntax

DP                OR
ParentTestObject("ObjectName").ChildTestObject("ObjectName").Method / Operation -Invalid Correct Syntax

-----------------------------------------------------
III) Enhance Tests

Try to growth the usage of VBScript features
---------------------------------------------
a) VBScript features won’t corrupt

b) VBScript features are faster inward execution

c) VBScript logic doesn't bring whatsoever limitations

d) All VBScript features tin last used internally besides equally externally
-------------------------------------
1) Inserting Checkpoints (9+3) (UFT)

2) Inserting Output Values (7) (UFT)

3) Parameterization (UFT, VBS)
    What is Parameterization?
    Purpose of Parameterization
    Relation betwixt Parameterization too Data Driven Testing
    Difference betwixt Parameterization too Data Driven Testing
    How to Parameterize?

4) Adding Comments (Optional)

5) Inserting Transaction Points (Start/End) (UFT) / Timer Function

6) Generating Steps using Step Generator

7) Synchronization (UFT, VBS)
    What is Synchronization?
    Why Synchronization?
    When Synchronization is required
    How to Synchronize?

8) Define Test Result
    Define Test Result using Reporter Utility Object

9) Calling Actions, Functions (UFT, VBS)

10) Environment Variables

11) Regular Expressions

It is formula for matching patterns

Constant matching

india.doc - india.doc
---------------------
Pattern Matching

i*.

ia...
ib....
.
.
india.doc

Usage of Regular Expressions inward UFT
    To cause got Dynamic objects
    For Search operation
------------------------------
12) Inserting Flow Control Statements (VBS)

a) Conditional Statements
    1) If statement
    2) Select Case statement

Purpose of Conditional Statements inward UFT

    To insert Verification points
    For Error Handling

Types of Conditions

1) Single Condition

If a > b Then

2) Compound Condition

If a > b And a > c Then

3) Nested Condition

If a > b Then
 If a > c Then
  If a > d Then
------------------------------
Positive Condition

If a > b Then

Negative Condition

If Not a > b Then
------------------------------------
b) Loop Statements
    1) For...Next
    2) While...Wend
    3) Do While / Until...Loop
    4) For Each...Next

13) Using Automation Objects

a) File System Operations
    What is Computer File System?
    Examples for File System Operations
    How goal user performs File System Operations
    How to perform automatic File System Operations using VBScript
-----------------------------------
Creating Automation Objects

Set Variable = CreateObject("ClassValue")
------------------------------

Class value for creating File System Object

("Scripting.FileSystemObject")
----------------------------------------------------

b) Excel Application Operations

Excel Application Object

It is used to perform automatic Excel Application Operations

Class value for creating Excel Application Object

("Excel.Application")

c) Word Application Operations

d) Database Operations

i) Database Connection Object

ii) Database Recordset object

e) Dictionary Object
----------------------------------------

Sumber http://www.gcreddy.com/
January 14, 2019

UFT Tool Architecture



UFT Tool Architecture
2) Add inward Manager

b) UFT Editor

2 views

Editor thought - Test inward VBScript format

Keyword thought - Test inward GUI format
---------------

It is an expanse where nosotros create, View together with Edit Tests


Test- One or to a greater extent than Actions to perform tasks

Action - Set of statements to perform tasks

Statement / Step - Influenza A virus subtype H5N1 minimal executable unit


Msgbox "UFT" : Msgbox "VBScript" - One line, Two statements

--------------------------------------
3) Data Table

View Menu -> Data

It is an integrated spread canvass for Data related operations

It has ii types sheets

i) Global Sheet - For entire Test

ii) Action sheets / Local Sheets

-----------------------
UFT attaches i information tabular array for every Test

Data Table located inward ii areas

i) Design Time Data Table (In UFT Tool principal window)

ii) Run-time Data Table (Result Window)

Usage of Data Table:
---------------------
i) Enter information straight into Data Table together with connect to Test

ii) Import information from external files (text/Excel) together with connect to Test

iii) Import information from a database together with connect to Test
Active Screen

It captures together with holds hide shots for every user functioning on AUT during Test Recording

Advantage:

    Understanding together with Editing Test Scripts

Disadvantage:

    Performance volition last reduced during Test execution

Navigation:

    View menu-> Active screen

--------------------------------
4) Errors

It shows syntax errors automatically piece saving the Test
------------------------------------------
UFT Commands available inward iii ways

i) As bill of fare items

ii) As Tool bar items

iii) Shortcut keys
---------------------
5) Menus of UFT (Total 12 Menus)

1) File Menu
------------
Create New Test

Open Existing Test

Add Test

Save Test

Close Test

Settings
    Associate Function Library files
    Associate Environment Variables file
    Associate Recovery scenario files

Export Test to Zip format

Import Test from ZIP

Exit
---------------------------------
2) Edit menu
---------------
Redo

Undo

Cut

Copy

Paste

Delete

Format

Code snippet
--------------------------
3) View Menu

Data Table

Active Screen

Errors

Debug

Test Flow

Switch from Editor View to Keyword thought together with vice versa

Launch Result window
Etc...
---------------------------
4) Search menu

Find

Find Next

Replace

Incremental search

GoTo etc...
------------------------------
5) Design Menu

Create New Action

Call existing Action

Copy Action

Insert Checkpoints

Output values

Transaction points

Function Definition generator

Step Generator

Synchronization Point

Etc...
-------------------------------
6) Record

Record

Stop

Analog Recording

Low Level Recording

Insight Recording

Record & Run Settings etc...
------------------------------
7) Run Menu

Run

Stop

Run Modes

Step into

Step over

Step Out

Insert / Remove Break indicate etc...

-------------------------
8) Resources

Launch Object Repository

Edit Local Objects

Create Shared object Repository

Edit Shared Repositories

Associate Shared Repositories

Create Recovery Scenario

Edit Recovery Scenario
Etc...
------------------------
9) ALM menu

ALM Connection

Check in

Check out

Version History

Baseline history etc...
-------------------------
10) Tools

Object Spy

Object Identification configuration

Regular facial expression evaluator

Data driver

Virtual objects

Tool options

View options

etc...
-----------------------
11) Window menu

Next window

Previous window

Close all documents
--------------------------
12) Help menu
----------------------
UFT Tool documentation

VBScript documentation

New features information

Test Forums

Technical support

Knowledge

Check for update

UFT production info

UFT License info
-----------------------------------------

Software Test Process
-----------------------------
I) Test Planning

Input / References
-------------------
Requirements

Project Plan

Test Strategy
------------------
Corporate Standards document

Process guidelines doc

Design docs

Prototypes etc...
-------------------
Tasks:
    Understanding together with analyzing the Requirements
    Risk Analysis
    Test Strategy implementation
    Test Estimations (Scope of the Project, Time, Available resources, Budget etc...)
    Team formation
    Test Plan documentation
    Configuration Management Planning
    Traceability Matrics
    Define Test Environment Set-up
Output:
Test Plan Document
-------------------------------------
II) Test Design

Input / references

Requirements

Test Plan
------------------
Corporate Standards document

Process guidelines doc

Design docs

Prototypes etc...
-------------------
Test Case Template

Test information template

Tasks:
--------
    Understanding Requirements
    Generate Test Scenarios
    Test Case Documentation
    Test Data Collection

Output:
Test Case documents
Test Data
-------------------------
III) Test Execution
Input / references

Requirements
Test Plan
Test illustration docs
Test Data
-----------
Defect Report template
-----------
Readiness of AUT
Readiness of Test Environment
-----------------------------------
Tasks:
    Verify Test Environment set-up
    Create Test batches
    Test Execution
        Sanity Testing / smoke / BVT/BAT
        Comprehensive testing
        Defect Reporting
        Defect Tracking
        Sanity Testing
        Regression testing Cycle 1
        Defect Reporting
        Defect Tracking
        Sanity Testing
        Regression testing Cycle 2
        Defect Reporting
        Defect Tracking
        .
        .
        Final Regression
Output:

Opened / Closed Defect Reports
Tested Software

IV) Test Closure
---------------------------
Input:

Requirements
Test Plan
Test illustration docs
Test data
Opened together with unopen defect Reports
------------
Test summary Report

Tasks
--------
    Evaluating perish criteria
    Collect all artifacts
    Prepare Test summary Report
    Send Test deliverables to customer
    Improvement suggestions for time to come projects
---------------------------------------------------

Sumber http://www.gcreddy.com/