0% found this document useful (0 votes)
7 views

Lecture#7 Scripting Technique

The document outlines various scripting techniques used in test automation, including Record and Playback, Data-Driven Testing, Keyword-Driven Testing, Behavior-Driven Development (BDD), Model-Based Testing, and a Hybrid Approach. Each technique is briefly described, highlighting its purpose and application in automating testing processes. The document emphasizes the importance of these methods in improving efficiency, consistency, and collaboration in software testing.

Uploaded by

mrambo78678672
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Lecture#7 Scripting Technique

The document outlines various scripting techniques used in test automation, including Record and Playback, Data-Driven Testing, Keyword-Driven Testing, Behavior-Driven Development (BDD), Model-Based Testing, and a Hybrid Approach. Each technique is briefly described, highlighting its purpose and application in automating testing processes. The document emphasizes the importance of these methods in improving efficiency, consistency, and collaboration in software testing.

Uploaded by

mrambo78678672
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Scripting

Scripting techniques refer to the methods and approaches used


to design, develop, and execute test scripts. Test scripts are a
set of instructions or code that automate the testing process,
allowing testers to repeat tests, save time, and ensure
consistency.
Scripting Techniques
 Record and Playback
 Data-Driven Testing
 Keyword-Driven Testing
 Behavior-Driven Development (BDD)
 Model-Based Testing
 Hybrid Approach
Record and Playback:
This technique involves using a tool or framework to record
user actions on the application under test. The tool generates
scripts based on the recorded actions, which can be played
back to repeat the same steps during subsequent test runs.
Web Application Testing
Selenium WebDriver
Mobile App Testing
Appium or UI Automator
Data-Driven Testing:
Data-driven Testing with data-driven testing, test scripts are
designed to handle multiple sets of input data. The test script
reads test data from external sources such as spreadsheets or
databases and uses that data to drive the test execution,
checking the application's behavior against different data
combinations.
Login Functionality
Form Validation
Calculation or Processing Logic
Keyword-Driven Testing:
Keyword-driven testing is a technique where test scripts are
composed using a set of keywords or action words that
represent specific operations or functionalities. These
keywords are mapped to functions or methods in the test
automation framework, allowing testers to create test cases by
combining and reusing keywords.
E-commerce Checkout Process
"AddToCart," "EnterShippingAddress," "EnterPaymentDetails," and
"PlaceOrder“

User Permissions
 Test Case 1: Grant administrator access to a user Keywords:
GrantPermission(User, Administrator)
 Test Case 2: Revoke read-only access from a user Keywords:
RevokePermission(User, ReadOnly)
Behavior-Driven Development (BDD):
BDD is an agile software development technique that
emphasizes collaboration between developers, testers, and
business stakeholders. BDD uses a natural language
syntax called Gherkin to describe the desired behavior of
the software. Test scripts are then created based on these
specifications, making them more understandable to non-
technical stakeholders.
1. User Registration: Scenario: User Registration Given the user is on the registration page
When they enter valid registration details And click the Register button Then they should be
successfully registered
2. In this example, the scenario describes the behavior of the user registration process. The
"Given," "When," "And," and "Then" keywords represent the different steps of the scenario.
Test scripts can be created based on this scenario, mapping each step to the corresponding
automation code or manual test instructions.
Model-Based Testing:
In model-based testing, test scripts are derived from models
that represent the expected behavior or structure of the
system under test. These models can be in the form of state
diagrams, flowcharts, or other visual representations. The test
scripts are generated automatically from the models, ensuring
comprehensive test coverage.
Hybrid Approach:
A combination of scripting techniques is used to achieve
effective test automation. Testers may use a hybrid approach
by combining record and playback with data-driven or
keyword-driven techniques to leverage the advantages of each
method and address specific testing requirements.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy