automation test scripting guidelines

10
Automation Testing Automation Testing Test Script Guidelines 1

Upload: bharathi-krishnamurthi

Post on 11-Nov-2014

4.879 views

Category:

Technology


5 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Automation test scripting guidelines

Automation TestingAutomation Testing

Test Script Guidelines

1

Page 2: Automation test scripting guidelines

Automation Scripting GuidelinesAutomation Scripting Guidelines

2

Automation Script

Page 3: Automation test scripting guidelines

Automation Scripting GuidelinesAutomation Scripting Guidelines

3

Scripting can be done by an beginner or an expert, but the expert can create a scripting better then the beginner.

How an expert will create a script is called Scripting guidelines.

Here we define the scripting guidelines in to three aspects.

Plan your Script -> Design your Script -> Validate your Script.

When a beginner follows the guidelines, we can create a script like a expert.

When we try to create script for a logic, without guidelines you will create a 10 lines of code to implement the logic, but if you have a plan to script it, we can make it in 6 lines of code and if you create a design for your scripting, you can make the logic work in 4 lines of code, while validating you can make it in 2 lines of code.

2 4 6 10No. of lines of coding

Scripting with out Guidelines

Scripting with Plan

Scripting with Plan & Design

Scripting with Plan, Design & validation

Page 4: Automation test scripting guidelines

Script PlanningScript Planning We have to spend more time on planning our Script, the more likely that it will

accomplish what you want. In our rush to show progress and results to our customers, we tend to start

scripting without putting enough thought into what we want to automate and developing a formal

approach. A Structured Plan is required before we start the Automation scripting Three Components of Script Plan are Automation technique, Methodology and

Framework

4

Technique Methodology Framework

Script Plan

Page 5: Automation test scripting guidelines

Scripting MethodologyScripting Methodology

5

Methodology defines the way or process to achieve the objectives. Methodology entails an array of powerful strategies and tactics for Test

Automation. Scripting methodology is the driving focus for Automation Scripting.

Method1 Method2

Methodology

Method3

Techniques Principles Techniqu

es Principles Techniques Principles

Page 6: Automation test scripting guidelines

Scripting TechniqueScripting Technique

6

Selecting an technique and methodology are the key factors to decide and design a automation framework

Two types of Techniques : Functional and StructuralFunctional automation Technique is depends on business requirementsStructural automation technique Is depends on Application Technology

Select a technique which leads to achieve the organizational needs

If we know the business requirements

Clients wants to work based on the business requirement

Automation required exclusively for a specific application

Limited budget

Short Term Planning

Where We can use Functional Technique

?

Where We can use Structural

Technique ?

To Implement a Centralized automation process.

Independent of business requirement

Automation - On the Shelf Product

Page 7: Automation test scripting guidelines

Automation FrameworkAutomation Framework

7

Front Loaded Workflow Organization &

Governance Data integration Automation Monitoring & Reporting Goals and Timelines

Design

Proto type Solutions Review Test Result Review design Plan Implementation

Pilot

Review current Revenue workflow

Collect Historical/Live data Analyze for errors/

frequency & size Identify gaps and impacts.

Analyze

Custom Automation Build Reporting/ Dash

board Integration Testing Review Program Outcomes

Implement

Page 8: Automation test scripting guidelines

Script DesignScript Design Poor Script design leads to more automation project failures than any

other cause. It is necessary to use an automation methodology to design robust

automation scripts around specific functional areas of an application Test Script design involves in constructing of an executable model Good Script design leads to visibility, reusability, Scalability and

maintainability Design test script independent of Test Data & Test Environment, Scripting design includes, script modularization, parameterization, and

external definition of global functions and constants. define templates, standards, and naming conventions for automation

scripts. This will make it easier in the long-run to correlate test plans to test scripts, to follow the logic of test steps, and to maintain test instructions.

Script Design is commonly used in test automation for improving the maintenance and extensibility of your automation suite.

Selecting an scripting Structure is a part of Design phase. Structures of Scripting : Flexible Scripts, Modular Scripts, Reusable

Scripts.

8

Page 9: Automation test scripting guidelines

Script ValidationScript Validation Consistency : The consistency state of the script need to be validated by analyzing the results of multiple executions. Quality : size of the script, Code standards, maintainability, level of reusability are used to validate the quality of our scripts. Customization : it is a process to make the script compatible & understandable Reviews : Internal and external reviews can help you to validate the scripts

9

Page 10: Automation test scripting guidelines

10

Thank You