Professional Documents
Culture Documents
Fundamentals Day05 - Lecture Slides
Fundamentals Day05 - Lecture Slides
DAY 05
What you will learn Today
2
SQA
Test Cases
3
What is a Test Case?
A Test Case is a set of actions executed to verify a
particular feature or functionality of your software
application.
4
What is a Test Scenario?
A Test Scenario is defined as any functionality that can be
tested.
5
SQA
Test Scenario
• Test Scenario 1: Check the Search Functionality Test Scenario
• Test Scenario 2: Check the Payments Functionality
• Test Scenario 3: Check the Login Functionality vs Test Case
Test Case is a set of actions executed to
Example of Test Cases: Test cases for the Test Scenario: “Check the Login
Functionality” would be verify features or functionality
Check system behavior when valid email id and password is entered.
Check system behavior when invalid email id and valid password is entered.
Check system behavior when valid email id and invalid password is entered. Test Scenario is any functionality that can be
Test Case Check system behavior when invalid email id and invalid password is entered. tested.
Check system behavior when email id and password are left blank and Sign in entered.
Check Forgot your password is working as expected
Check system behavior when valid/invalid phone number and password is entered.
Check system behavior when “Keep me signed” is
6
SQA
7
SQA
Test Case Design and Development
System Study
What steps
Identify all possible test scenarios you would
Write test cases by applying test case design
take to write
techniques, using standard template test case?
Review test cases given to you for reviewing
8
SQA
Test Case Design and Development
►SDLC or approach used (e.g., an Agile approach aims for “just enough” documentation)
►The requirement for traceability from the test basis through test analysis and design
9
Test Case Design and Development SQA
Test Case
States of a
10
SQA
Test Case Design and Development
11
SQA
Test Case Design and Development
►Test cases help to verify conformance to applicable standards, guidelines and customer
requirements
13
Best practices of Creating Test cases
14
SQA
15
SQA
Test Case Design and Development
Test Plan
Test Test
Suite A Suite C
Test Data Test Data Test Data Test Data Test Data Test Data
16
17
Test Case
18
19
20
21
22
23
SQA
24
25
26
27
28
29
30
31
SQA
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Test Case
Test Case Scenario ID Test Case ID
Pre-Requisite Post-Requisite
S.No Action Inputs/Test Data Expected Output Actual Output Test Browser Test Result Test
Comments
1
48
Test Case - Executed
Test Case Scenario ID Login-1 Test Case ID Login1-A
S.No Action Inputs/Test Data Expected Output Actual Output Test Browser Test Result Test
Comments
1 Launch Application https:// Hotel adactin login Hotel adactin login Chrome Pass
adactinhotelapp.com/ page page
2 Enter Correct Username: AmirTester Login Success; Login Success; Chrome Pass
username & Password: AmirTester welcome page should welcome page should
password and hit be displayed be displayed
login button
3
49
SQA
Test Data
50
Test Data
Test Data in Software Testing is the input given to a software program during
test execution.
Used in
Positive Testing to verify that functions produce expected results for
given inputs
51
Test Data
Example Signup Form
S.No First Name Last Name Gender Birthdate Email Address Phone Password Confirm
Number Password
1 Asad Ali F 24/8/90 asadali@test.com USA 123456677 ******** ********
52
Test Data Generation
►Testing is a process that produces and consumes large amounts of data
►Depending on your testing environment you may need to CREATE Test Data or at least
identify a suitable test data for your test cases.
►Typically test data is created in-sync with the test case it is intended to be used for.
53
Test Data Generation
Test Data for White Box Testing
In White Box Testing, test data Management is derived from direct examination of the code
to be tested.
DTM Test Data generator, is a fully customizable utility that generates data, tables (views,
procedures etc.) for database testing (performance testing, QA testing, load testing or
usability testing) purposes.
Datatect is a SQL data generator by Banner Software, generates a variety of realistic test
data in ASCII flat files or directly generates test data for RDBMS including Oracle, Sybase,
SQL Server, and Informix.
56
Test Data Management
How to save test How to create data How to delete data
data
For your AUT or For your AUT or
*.csv; *.xlsx; *.json; *.sql downstream app downstream app
Storage
Creation
Deletion
How to create data How to delete data
Points to Consider • Same was it was
• Average data size • Create through API calls created
used by tests • Create through UI • Do not delete. Create
• Amount of test data • Push in ingestion sources random data every time
• Create in DB directly (or • Restore DB before
• Ease of use of data
DB restore DB snapshot) every run
source & robustness
57
SQA
End of Day 05
58
SQA
Lab Exercise
Setup and Practice Test Case Writing and Execution in JIRA / Azure DevOps
Write and Execute BAT/SMOKE Test Cases
Write and Execute Other Functional Test Cases
59
SQA
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
SQA
Q&A
Instructor Notes
102