Download

burnwholeInternet και Εφαρμογές Web

5 Φεβ 2013 (πριν από 4 χρόνια και 8 μήνες)

110 εμφανίσεις

©

Copyright Inc., 2010

1


© Copyright

Inc., 2012

© Copyright

Inc., 2012

Testing of a Net Banking Application
using Selenium Framework

MBT in BFSI

Document No :

​IBSIPL
-
016/2012

©

Copyright Inc., 2010

2


© Copyright

Inc., 2012


Agenda

Evolution in Software Testing

Challenges in Test Automation

Challenges Back at Home

Model Based Testing

MBT with Selenium Architecture

Case study on Banking Application

Summary



©

Copyright Inc., 2010

3


© Copyright

Inc., 2012

Evolution of Software Testing




Manual





Scripts
-
Based

Capture/Replay



Frameworks

Keyword Driven



MBT


More

advanced

approach

in

testing

where

we

create

a

test
-
framework

to

automatically

execute

the

automated

test

cases/scripts,

without

manual

intervention,

&

get

test

results
.

Lower

test



reusability

and

maintainability

Latest

Test

Design

approach,

where

we

feed

in

functional

requirements/business
-
logic

to

get

automatically

generated

test

design

models,

test

cases,

automation

scripts

and

test

documentation
.

100
%

test

reusability

and

Req
.

coverage

with

50
%

less

time/effort,

higher

defect

tracking,

higher

maintainability

Advanced

approach

of

recording

and

replaying

test

automation

scripts

(e
.
g
.

Visual

Studio

etc
.
)

using

Record/Play

feature
.

The

challenges

include

maintaining

test

data,

data
-
source

connectivity

and

identifying

functional

defect,

.

lower

test



reusability

and

maintainability

Traditional

approach

of

writing

test

manually,

with

higher

efforts

&

resource

allocation
.

Significant

efforts

on

test

collaboration

documentation,,

higher

Fault
-
Slip
-
Throughs

(FST),

higher

efforts

in

regression

testing,

absence

of

test

reusability

©

Copyright Inc., 2010

4


© Copyright

Inc., 2012

Challenges in Test Automation

©

Copyright Inc., 2010

5


© Copyright

Inc., 2012

Challenges in Test Automation

Initial investment of creating the test scripts

Automation is long term strategy : Investment is
justified when product is evolving and Market
penetration is
growing

Maintainability of volume Test cases/Test scripts

Demands for different types of test suites (Build
Sanity test, Regression suites, Priority based test
suites) with little or no additional effort

Faster test cycles with scripting demands due to
Faster product builds, Agile process

Migrating between framework/scripting language

©

Copyright Inc., 2010

6


© Copyright

Inc., 2012

Challenges back at Home

©

Copyright Inc., 2010

7


© Copyright

Inc., 2012

Want to take a ride !??!

©

Copyright Inc., 2010

8


© Copyright

Inc., 2012

Test Incorrectness…

©

Copyright Inc., 2010

9


© Copyright

Inc., 2012

Release Deadline…

©

Copyright Inc., 2010

10


© Copyright

Inc., 2012

Invalid Test Case…

©

Copyright Inc., 2010

11


© Copyright

Inc., 2012

Higher Maintenance…

©

Copyright Inc., 2010

12


© Copyright

Inc., 2012

Coverage… What !??!#$*

©

Copyright Inc., 2010

13


© Copyright

Inc., 2012

An evening of one Mr. Tester

©

Copyright Inc., 2010

14


© Copyright

Inc., 2012

Model Based Testing

Automated Test Design
TM

Automates ”thinking” of
test cases based on a
system model

Integrates with existing
test execution automation

Provides

Faster test design

Better test coverage

Higher test quality

Easier test maintenance


CONFORMIQ DESIGNER

Fig: Test flow, with Manual Test Design replaced by MBT

©

Copyright Inc., 2010

15


© Copyright

Inc., 2012

Automated Test Design
flow

Develop

System Model

Conformiq

Modeler

Manually capture system functionality

Direct & Review

Test Design

Conformiq

Designer

Generate and verify test case
completeness and correctness

Use Test Scripts

& Documentation

Conformiq

Publisher

Output reports and executable scripts

©

Copyright Inc., 2010

16


© Copyright

Inc., 2012

Paradigm Shift in Test Automation



Input:

Customer requirements,

Function Specifications,

Function Descriptions,

Interwork Descriptions,

etc.

Model

design

(UML) Modeling
tool

Input

MBT tool

(e.g. Conformiq)


Generate

Automated

test scripts

Test automation

tool/framework

Test

cases

Generate

Test documentation

Test Management

tool

Test results

Execute

Import

Test Development

Test Execution

©

Copyright Inc., 2010

17


© Copyright

Inc., 2012

**Note
:

This

is

a

suggestive

list
.

Ideabytes

can

create

plug
-
ins

for

any

scripting

language

output


MBT Test scripts

Scripting Backend Languages

1


Excel

14


FitNesse

2


Word (OpenDocument
Scripter)

15


JUnit

3


PDF (OpenDocumentScripter)

16


SOATest

4


HTML

17


TTCN
with call flow

5


C Language

18


TCL

6


C++

19


Python

7


C#

20


Ruby

8


QTP(VBScript)

21


TTCN

9


AutoIT (VBScript)

22


SIPp

10


Perl

23


XML

11


Test Partner(VBScript)

24


PHP

12


JavaScript

25

13


SQL

scripter


26




Others proprietary scripters can be obtained

on

demand

within

couple of weeks

©

Copyright Inc., 2010

18


© Copyright

Inc., 2012

Model at a Glance
-

Sample


Modeling can be done using Conformiq Modeler, Rational RSA, Rational Rhapsody,
Enterprise Architect.


The Models can be given as input to Conformiq Designer to derive automatic test
cases, scripts and documentation

©

Copyright Inc., 2010

19


© Copyright

Inc., 2012

Reusable Test Architecture

©

Copyright Inc., 2010

20


© Copyright

Inc., 2012

Benefits of Choosing Selenium

Platform, Browser Independent

Scripting possibility in popular programming
languages:
C
#,


Java
,


Groovy
,


Perl
,


PHP
,


Pytho
n

and

Ruby

Open Source


Cost advantage

Reusable components and Libraries

Open Source community
Contributions

Several variants ( IDE, RC, Web Driver, Grid)
depending on the test environment


©

Copyright Inc., 2010

21


© Copyright

Inc., 2012

SUT


Banking Application

MySQL

Banking
Application

Testing:

-

GUI Operation

-

Banking Functionality




Web Browser

©

Copyright Inc., 2010

22


© Copyright

Inc., 2012

Tested Functionality

Login, Logout

Create New Account

Modify Account Information

Funds Transfer

Reports

©

Copyright Inc., 2010

23


© Copyright

Inc., 2012

MBT Architecture with Selenium

System Model of

NetBanking App

C#

Test Scripts

Test
Plans and

Documentation

(Word/Excel/HTML)

NetBanking App

Test Harness

(Framework APIs)

Scripting Plugin

Selenium Server

Test Reports

(Test Mgmt)

©

Copyright Inc., 2010

24


© Copyright

Inc., 2012

System Interfaces

Banking Application

FromUser
:

”Login”,

”Click”,

ToUser
:

Show Home Page,

Show Account page

UI

FromDBHandler
:

QueryResponse

ToDBHandler
:

Query

©

Copyright Inc., 2010

25


© Copyright

Inc., 2012

Demo

Please visit our booth for a Short Demo of
Banking application test automation using
MBT using Selenium framework

©

Copyright Inc., 2010

26


© Copyright

Inc., 2012

Motivate Testers to efficiency

MBT is a revolutionary technology

Well managed introduction of Test Automation and MBT
motivates adoption by testers

Companies achieve immediate
benefits Kick
-
start plan
with
ramp
-
up with Competence build
-
up planning


MBT is suited to all software testing domains

Item

Domain

Time/Test Case

Effort

1

Enterprise (IT, Web

Services)

20
mins

Low

2

BFSI

20
mins

Low

3

Health care



DICOM, HL
-
7

75
mins

Medium

4

Embedded,
ERP, Workflow

50
mins

Low

-

Medium

5

Telecom

Protocol Testing

120
mins

Medium
-

High

Table: Typical end
-
2
-

end automation results from active and completed projects at Tier
-

1 Customers

©

Copyright Inc., 2010

27


© Copyright

Inc., 2012

MBT Advantages in BFSI

Survey at 2011 MBT User Conference in Berlin (ETSI)

Fault Slip Through (FST)
reduction: 59%

Testing duration reduced by 25
%

Testing costs reduced by 17
%

Usage
spans application stacks

software
processes, application domains

MBT is accessible and
practical

Other
Advantages

Early detection of specification faults

No Dependence on scripts, and Test Infrastructure ( Leads to Future
proof technology)

Documentation : 100% automatically generated and its by
-
product of
Model
-

Always in synch

Significant reduction in Effort for regression test cycles

One Model


Many test suites ( Functional, Regression, Sanity,
Priority)


©

Copyright Inc., 2010

28


© Copyright

Inc., 2012

www.ideabytes.com

contact@ideabytes.com

©

Copyright Inc., 2012

THANK YOU

Development Centre, India

Ideabytes Software India Pvt. Ltd

Jayabheri Enclave, Hyderabad

Phone : +91 40 6453 5959

Corporate Office, Canada

Ideabytes Inc.

Ottawa, Ontario

Phone : +1 613 692 9908


South East Asia



Kuala Lumpur, Malaysia





Phone: +60 16 220 1365

USA

3389, Napoli pl,

San Jose, CA
-

951 35

Phone: +14086238278


Srinivas Reddy Katta /

Mrinal Chatterjee

Ideabytes Software India Pvt. Ltd.

email:
srinivas.katta@ideabytes.com /

mrinal.chatterjee@ideabytes.com

Website: www.ideabytes.com