0% found this document useful (0 votes)
18 views4 pages

CT 11 Testing Strategies (LMS) .Ipynb

The document outlines various testing strategies applicable in both software development and business contexts, emphasizing the importance of early bug detection to reduce costs. It covers unit testing, integration testing, regression testing, black box testing, and white box testing, providing definitions and hospitality-related examples for each. The document concludes with a reminder of the significance of these strategies in maintaining quality and efficiency.

Uploaded by

Harvey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

CT 11 Testing Strategies (LMS) .Ipynb

The document outlines various testing strategies applicable in both software development and business contexts, emphasizing the importance of early bug detection to reduce costs. It covers unit testing, integration testing, regression testing, black box testing, and white box testing, providing definitions and hospitality-related examples for each. The document concludes with a reminder of the significance of these strategies in maintaining quality and efficiency.

Uploaded by

Harvey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

{

"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"toc_visible": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"source": [
"---\n",
"# TESTING STRATEGIES\n",
"\n",
"<img src='https://files.realpython.com/media/Getting-Started-with-Testing-
in-Python_Watermarked.9f22be97343d.jpg' height=\"50%\" width=\"50%\"> <p>\n",
"\n",
"You know how, in business, we say that keeping a customer is much cheaper
than acquiring a new one. Well, there is a similar idea in the world of coding:
***Testing code and catching bugs early is much cheaper than writing all the code
first and fixing bugs later.***\n",
"\n",
" > ⚠️<br><font color='yellow'>The testing strategies we're about to cover
do not just relate to coding. As we've seen in class, they are general approaches
that can easily be applied to the world of business and management.</font>\n",
"\n",
"Let's look at the most common types of tests that will help catch bugs
early -- and, when applied to business, can prevent service failures!"
],
"metadata": {
"id": "TKgGX83cu8yq"
}
},
{
"cell_type": "markdown",
"source": [
"## Unit Testing\n",
"\n",
"***Definition***: Unit testing involves testing individual components --
such as functions, methods, classes, etc. -- to ensure that each unit of the
software performs as designed. By testing each part separately, developers can
quickly identify and fix any issues at an early stage of the development process,
enhancing code quality and reducing future debugging time.\n",
"\n",
"<img src='https://industry.ehl.edu/hubfs/web/img/picto-ehl-campus-
lausanne-big.svg' height=\"30%\" width=\"30%\"> <p>\n",
"\n",
"\n",
"In hospitality, this would be akin to testing a single component of a
service or process.\n",
"\n",
"> ***Food Preparation in a Kitchen*** - A chef tests a new recipe for a
single dish to ensure its taste and presentation meet the restaurant's standards.\
n",
"\n",
"> ***Housekeeping in a Hotel*** - Each housekeeper tests their bed-making
technique to ensure it aligns with the hotel's standards for comfort and
appearance."
],
"metadata": {
"id": "_hTeQ-Pu5EBO"
}
},
{
"cell_type": "markdown",
"source": [
"## Integration Testing\n",
"\n",
"***Definition***: Integration testing is a type of software testing in
which the different units or components of a software application are tested as a
combined entity. The aim of integration testing is to expose any defects that may
arise when these components are integrated and need to interact with each other.\
n",
"\n",
"<img src='https://industry.ehl.edu/hubfs/web/img/picto-ehl-campus-
lausanne-big.svg' height=\"30%\" width=\"30%\"> <p>\n",
"\n",
"In hospitality, this would involve testing how different services or
departments work together to perform a specific outcome.\n",
"\n",
"> ***Event Coordination at a Hotel*** - Testing how well the catering,
decoration, and front desk teams coordinate for a seamless execution of a wedding
event.\n",
"\n",
"> ***Check-in Process in a Hotel*** - Evaluating how the reception,
bellhop, and room service teams work together to provide a smooth check-in
experience for guests."
],
"metadata": {
"id": "MpKd9STw5NSH"
}
},
{
"cell_type": "markdown",
"source": [
"## Regression Testing\n",
"\n",
"***Definition***: Regression testing ensures that previously developed and
tested software still performs correctly after it has been modified (e.g., new code
was added, existing code was deleted or modified, bugs were fixed, etc.). The main
purpose of regression testing is to confirm that any code modification has not
adversely affected existing features.\n",
"\n",
"<img src='https://industry.ehl.edu/hubfs/web/img/picto-ehl-campus-
lausanne-big.svg' height=\"30%\" width=\"30%\"> <p>\n",
"\n",
"In hospitality, this would involve checking existing operations after a
change to ensure they still function correctly.\n",
"\n",
"> ***Menu Change in a Restaurant*** - After introducing new dishes, the
restaurant checks if the kitchen's efficiency and food quality are maintained for
existing menu items.\n",
"\n",
"> ***Staff Training Update in a Hotel*** - Post a new customer service
training program, the hotel reassesses existing staff interactions with guests to
ensure service quality is still high."
],
"metadata": {
"id": "P5lQ2ueB5P0i"
}
},
{
"cell_type": "markdown",
"source": [
"## Black Box Testing\n",
"\n",
"***Definition***: Black box testing is a method of testing where the
internal implementation of a piece of software is not known, or is of no interest,
to the tester. The main purpose of black box testing is to validate the behavior
and functionality of the software against the requirements, without requiring any
knowledge of its inner workings.\n",
"\n",
"<img src='https://industry.ehl.edu/hubfs/web/img/picto-ehl-campus-
lausanne-big.svg' height=\"30%\" width=\"30%\"> <p>\n",
"\n",
"In hospitality, this would involve testing the output of a specific
service without knowledge of the internal workings.\n",
"\n",
"> ***Guest Experience in a Hotel*** - A mystery guest evaluates the
overall stay experience without knowing the specific operational procedures of the
hotel.\n",
"\n",
"> ***Customer Feedback in a Restauran***t - Collecting and analyzing
customer feedback on meals without the customers knowing the specifics of recipe
preparation and ingredient sourcing."
],
"metadata": {
"id": "BdFiCNJ05R4p"
}
},
{
"cell_type": "markdown",
"source": [
"## White Box / Glass Box Testing\n",
"\n",
"***Definition***: White box testing, also known as Glass box testing, is a
method of software testing that focuses on the internal workings of a specific
piece of software, as opposed to its functionality. In white box testing, the
tester has knowledge of the component's internal logic, code structure, and
implementation. The purpose of white box testing is to verify the internal
mechanisms, to optimize code, to find hidden errors, and to ensure that all the
potential code pathways are tested.\n",
"\n",
"<img src='https://industry.ehl.edu/hubfs/web/img/picto-ehl-campus-
lausanne-big.svg' height=\"30%\" width=\"30%\"> <p>\n",
"\n",
"In hospitality, this would involve testing a specific service through an
in-depth analysis of its internal processes and inner workings.\n",
"\n",
"> ***Kitchen Management in a Restaurant*** - The head chef inspects the
cooking process, understanding each chef's techniques and the workflow in the
kitchen.\n",
"\n",
"> ***Hotel Maintenance Routine*** - The maintenance manager reviews the
cleaning and upkeep procedures, having detailed knowledge of the standards and
methods used."
],
"metadata": {
"id": "bUGa_txG5Tsd"
}
},
{
"cell_type": "markdown",
"source": [
"---\n",
"`THE END`"
],
"metadata": {
"id": "9xW-FO9vK3MJ"
}
}
]
}

You might also like