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

SQE LAB#1 (2)

Uploaded by

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

SQE LAB#1 (2)

Uploaded by

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

Department of Software Engineering

Mehran University of Engineering and Technology, Jamshoro

Course: SW426 - Software Quality Engineering


Instructor Engr. Mehwish Shaikh Practical/Lab No. 01
Date 14-07-2023 CLOs CLO-3
Signature Assessment Score 1 Mark

Topic Verification & Validation


Objectives - To learn verification and validation of a software program.

Lab Discussion: Theoretical concepts and Procedural steps

 Verification
The evaluation of whether a product, service, or system complies with a
regulation, requirement, specification, or imposed condition. It is often an
internal process. Contrast with validation.

 Validation
The assurance that a product, service, or system meets the needs of the
customer and other identified stakeholders. It often involves acceptance
and suitability with external customers. Contrast with verification.

 Difference between Verification and Validation

Verification Validation
1. Verification is a static practice of 1. Validation is a dynamic mechanism of
verifying documents, design, code and validating and testing the actual
program. product.
2. It does not involve executing the 2. It always involves executing the code.
code.
3. It is human based checking of 3. It is computer based execution of
documents and files. program.
4. Verification uses methods like 4. Validation uses methods like black
inspections, reviews, walkthroughs, box (functional) testing, gray box
and Desk-checking etc. testing, and white box (structural)
testing etc.
5. Verification is to check whether the 5. Validation is to check whether
software conforms to specifications. software meets the customer
expectations and requirements.
6. It can catch errors that validation 6. It can catch errors that verification
cannot catch. It is low level exercise. cannot catch. It is High Level Exercise.

7. Target is requirements specification, 7. Target is actual product-a unit, a


application and software architecture, module, a bent of integrated modules,
high level, complete design, and and effective final product.
database design etc.
8. Verification is done by QA team to 8. Validation is carried out with the
ensure that the software is as per the involvement of testing team.
specifications in the SRS document.
9. It generally comes first-done before 9. It generally follows after verification.
validation.

 Example
In Software Engineering, consider the following specification:
1. A clickable button with name Submet

Verification would check the design doc and correcting the spelling
mistake. Otherwise, the development team will create a button like

2. A clickable button with name Submit

Once the code is ready, Validation is done. A Validation test found a


button with name Submit, but not a clickable one. Owing to Validation
testing, the development team will make the submit button clickable.

 Validation of user input

The validation of users input is a very important part of web development


process. This is one the trickiest parts of any application at all. Why is
that? Because the developer doesn't control it. You can write the best
algorithm in the world, but still if it includes user input there is a place for
mistakes. Even if we put some complicated logic to prevent the input of
wrong symbols, check the consistence of the data and do whatever
possible to make sure that it is all OK, there is still possibility that the
users enter the wrong number. Though all said, we must try to prevent
the most of human errors and the best way to do this is by using Regular
Expressions.

Basically Regular Expressions are used for string matches. They are based
on search and pattern matching strings in text.

How to Validate Data in Excel?

Step 1 - Select the Cell For Validation


Select the cell you want to validate. Go to the Data tab > Data tools and
click on the Data Validation button.
A data validation dialogue box will appear having 3 tabs - Settings, Input
Message, and Error Alerts.

Step 2 - Specify Validation Criteria


On the settings tab, specify your validation criteria.

Step 3 - Under Allow, Select The Criteria


Under Allow, select an option from Whole Number, Decimal, List, Date,
Time, Text Length, and Custom.

Step 4 - Select Condition


Under Data, select a condition and set required values based on what you
choose for Allow and Data.

Step 5 - Input Message


You can enter the input message if you want. This step is optional.
Step 6 - Custom Error Message
You can also set your custom error message. This step is optional.
Step 7 - Click Ok
Click OK. Now, if you try entering a value outside the specified range (10,
50), it will result in an error

Excel Data Validation List (Drop-Down)


To add the drop-down list, follow the following steps:
1. Open the data validation dialog box.
2. On the Settings tab, select the list.
3. In the source box, enter the list of your validation, separated by
commas.
You will get the following result.

Lab Tasks

1. Brief and compare verification and validation in software engineering.

2. Consider a scenario of developing a food ordering website, write the


steps and then get it peer-reviewed to verify whether the steps written
meets the food ordering website scenario or not.

3. Create the following table in MS Excel and validate the fields with
bounded list. If the inserted value is not in the list, error message should
be pop up.
4. Write three simple code snippets to validate data using HTML.

5. Create a registration form with the following required input fields.


They are as follows:
- Full Name
- Address
- CNIC
- Email
- Phone
- Date
- Username
- Password
For the above mentioned fields, create registration form and validate it
using PHP code.

6. Create a software program of your choice, with at least three software


development documents (i.e. PRD, UIRD, QRD, TRD, SRS, etc. ). Perform
verification and validation of that software. You’ve this flexibility of
writing the chosen software in any of the available programming
languages.

Assessment Method
Task Solution and Instructor Observation

Outcomes Assessed
A. Ability to understand and accomplish the given tasks Psychomotor P3
B. Ability to use methods, techniques and modern tools for Psychomotor P3
solving tasks
C. Ability to apply best testing techniques for verifying and Psychomotor P3
validating software requirement
Rubric Component Rubric Marks
s
R1 Problem/Task/Constraint Identification. [A] 0.25
R2 Strategy/ Approach. [C] 0.25
R3 Task Completeness & Accuracy of Outcomes. [A] 0.25
R4 Computer/Modern Tool/ Application Usage. [B] 0.25

Level of Achievement
Proficient Acceptable Marginal Unacceptable
1 0.75 0.50 0.25

You might also like