automated testing gireendra kasmalkar prabodhan exports pvt. ltd

19
Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd.

Upload: marshall-miles

Post on 17-Jan-2016

217 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Automated Testing

Gireendra Kasmalkar

Prabodhan Exports Pvt. Ltd.

Page 2: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Need for Automated Testing

Automation ensures implementation of process Repetitive testing Simulated testing Voluminous data testing Internal testing

Page 3: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Types of Automated Testing

Component Regression Load Web-site checking Memory Leak Coverage

Page 4: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Automated testing for products / projects

For products– Regression

For projects– Data preparation

For web-sites– Navigation

For all– Load / Performance– Memory Leak– Coverage– Component

Page 5: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

List of tools

Mercury Interactive (Winrunner, LoadRunner, Astra Site Manager)

Segue (SilkTest, SilkPerformer) Rational (Test Studio incl. Robot and Pure) Empirix (E-Suite) Microsoft (Web Application Stress Tool) Cyrano (OpenSTA) Building your own tools

– For components and systems

– Need for planned and centralized approach

– Can be very efficient and effective

Page 6: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

GUI-based Automated Regression Testing

Misconceptions– Easy to build – simple record and playback– Very little effort– Replaces manual testing– Testing can be completely automated

Objectives– Regression testing – to verify that things still work– Routine testing – to allow expert resources time for more

critical testing– Repeated testing – reuse over a number of builds and

releases

Page 7: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Requirements from Automated Regression

Robust Data-driven Maintainable

Page 8: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Process for Automation Development

Tool Evaluation Analysis (Feasibility) Design Development Testing Deployment

Page 9: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Elements of Automated Regression

Test script Test data Test report Design and architect for robustness etc.

Page 10: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Elements of a Test Script

Action Verification Report All good programming practices

Page 11: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Prerequisites for automation

Stability of application Test cases must be ready Knowledge of tool

Page 12: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Limitations in Automated GUI Testing

Testing Compatibility Testing Robustness Testing Usability

Page 13: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Load / Performance Testing

Misconceptions– A tool is all that is required– Problems are directly identified– Extrapolation of results is possible– Has to be done on production setup

Objectives– Benchmarking– Identifying limits– Stability– Bottle-neck finding

Page 14: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Process for Load / Performance Testing

Tool Evaluation Requirement Analysis Planning and setup Development of scenarios Execution Analysis & Report

Page 15: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Elements of a Load Testing Scenario

Transaction Workload Server side configuration Network bandwidth simulation Output parameters

Page 16: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Prerequisites for Load / Performance testing

Functional stability of application Knowledge of tool Collaboration with developers

– Criticality of scenarios– Tuning parameters e.g.connection pool– Understanding logs

Page 17: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Setup

Isolated network Client machines Specified server configuration

Page 18: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Execution

Execute scenario with ramp-up Monitor

– Server– Network– Client

Data collection Analysis Rerun

Page 19: Automated Testing Gireendra Kasmalkar Prabodhan Exports Pvt. Ltd

Conclusion

Very important and effective components of the total testing effort

Objectives must be clear and realistic Requires tools, specialized skills and processes Requires dedicated and planned effort