STModule 3 Question Answers
STModule 3 Question Answers
Module 3
1 mark
5. What are the Testing Technique used for Positive and Negative Testing?
Following techniques are used for Positive and negative validation of testing is
State Based means change from one state to another. State based Testing is useful to
generate the test cases for state machines as it has a dynamic behavior (multiple state) in
its system.
8. What are the ways to represent state transition?
There are two main ways to represent or design state transition
1) State transition diagram
2) State transition table.
9. What is Compatibility Testing?
User Documentation covers all the manuals, user guides, installation guides, setup
guides, read me files, software release notes, and online help that are provided along with
the software to help the end user to understand the software system.
It is a software testing technique where minimum numbers of inputs are used to access
appropriate output of a system, to ensure the system does not accept invalid input values.
Domain knowledge is the good understanding of particular sphere i.e. a person is acquainted
with particular term of discipline. It helps to minimize delivery cycle, improve customer
service and reduce development time
2 marks
For example
Positive Testing
For example
For example –
A system can accept the numbers from 0 to 10 numeric values. All other numbers
are invalid values. Under this technique, boundary values -1,0,1 and 9,10,11 will
be tested.
This is a software testing technique which divides the input data into many
partitions. Values from each partition must be tested at least once. Partitions with
valid values are used for Positive Testing. While partitions with invalid values are
used for negative testing.
For example-
Numeric values Zero to ten can be divided into two (or three) partitions. In our
case, we have two partitions -10 to -1 and 0 to 10. Sample values (5 and -5) can be
taken from each part to test the scenarios.
1. When the system behavior is different for different input and not same for a
range of inputs, both equivalent partitioning, and boundary value analysis
won’t help, but decision table can be used.
2. The representation is simple so that it can be easily interpreted and is used for
development and business as well.
3. This table will help to make effective combinations and can ensure a better
coverage for testing
4. Any complex business conditions can be easily turned into decision tables
4) Actions that result from a transition (an error message or being given the
cash.)
10. What are the different types of version checking in compatibility testing
The process is quite similar everywhere when it comes to build the strategy, where the
following step-by-structure is used that suits most of the scenarios
It is difficult for someone to perform effectively in a field where the person is not familiar. So
a domain tester should to have basic domain knowledge. It is important because:
1. Online banking
A tester must have to be an expert in the online banking activities like login, bill payment,
transfers.
2. Retail domains
To successfully run a domain test, testers have to recognize how things work flow at
different levels. Some examples of retail domains are warehouse management, in-store
solutions etc.
3. Healthcare
We know that every domain has a boundary from which it is been defined, points near the
boundaries are checked during tests. A testing process every time begins with a question. The
domain testing strategy is an experiment by a QA specialist to find the solutions to these
answers
Let there be a group of students in a study tour. For entertainment purpose they have been
given a ticket to perform a specific activity based on gender and age inputs. Here the
entertainment facility act as the test, age groups will be boundary values with numerous
possible scenarios. Students perform activities in following manner:
On the basis of given algorithm, specialist groups the values into classes i.e. age groups, then
boundary values is picked i.e. highest and lowest age value in a group. Then different
scenarios are built with expected results for each.
16. What are the Skills required for Domain testing?
To be a good domain tester, one must have the following skills
1. Quick learner
2. Domain knowledge
3. Can work under pressure
4. Technical and Programming skill
5. Automation skill
6. Bug hunting skill
7. Communication skill
4 marks
Can be done by trial and error Data domains along with internal
ways and methods. boundaries can be better tested.
3. Execute Tests
Execute the test cases against the system under test and document the results.
1. Requirement ID
2. Risks
3. Requirement Type
4. Requirement Description
5. Trace to Design Specification
6. Unit Test Cases
7. Integration Test Cases
8. System Test Cases
9. User Acceptance Test Cases
10. Trace to Test Script
Legend
1. T – Correct username/password
2. F – Wrong username/password
3. E – Error message is displayed
4. H – Home screen is displayed
Interpretation
1. Case 1 – Username and password both were wrong. The user is shown
an error message.
2. Case 2 – Username was correct, but the password was wrong. The user
is shown an error message.
3. Case 3 – Username was wrong, but the password was correct. The user
is shown an error message.
4. Case 4 – Username and password both were correct, and the user
navigated to homepage
1. Enter correct username and correct password and click on login, and the
expected result will be the user should be navigated to homepage
1. Enter wrong username and wrong password and click on login, and the
expected result will be the user should get an error message
2. Enter correct username and wrong password and click on login, and the
expected result will be the user should get an error message
3. Enter wrong username and correct password and click on login, and the
expected result will be the user should get an error message
Let’s consider an ATM system function where if the user enters the invalid password
three times the account will be locked.
In this system, if the user enters a valid password in any of the first three attempts the user
will be logged in successfully. If the user enters the invalid password in the first or second try,
the user will be asked to re-enter the password. And finally, if the user enters incorrect
password 3rd time, the account will be blocked.
In the diagram whenever the user enters the correct PIN he is moved to Access granted state,
and if he enters the wrong password he is moved to next try and if he does the same for the
3rd time the account blocked state is reached.
S1) Start S5 S2
Types of Testing
Description
Documents
It is a high-level document which describes principles, methods
Test policy
and all the important testing goals of the organization.
A high-level document which identifies the Test Levels (types)
Test strategy
to be executed for the project.
A test plan is a complete planning document which contains the
Test plan
scope, approach, resources, schedule, etc. of testing activities.
Requirements
This is a document which connects the requirements to the test
Traceability
cases.
Matrix
Test scenario is an item or event of a software system which
Test Scenario
could be verified by one or more Test cases.
It is a group of input values, execution preconditions, expected
Test case execution post conditions and results. It is developed for a Test
Scenario.
Test Data is a data which exists before a test is executed. It used
Test Data
to execute the test case.
Defect report is a documented report of any flaw in a Software
Defect Report
System which fails to perform its expected function.
Test summary report is a high-level document which
Test summary
summarizes testing activities conducted as well as the
report
test result.
Graph based testing is useful to represent a transaction or work flows. Consider an example
of a leave application by an employee. A typical leave application process can be visualized
as being made up of the following steps
E
15 marks
Now consider a dialogue box which will ask the user to upload photo with certain conditions
like –
1. You can upload only ‘.jpg’ format image
2. File size less than 32kb
3. Resolution 137*177.
If any of the conditions fails the system will throw corresponding error message stating the
issue and if all conditions are met photo will be updated successfully
For these conditions, we can create 8 different test cases and ensure complete coverage based
on the above table.
1. Upload a photo with format ‘.jpg’, size less than 32kb and resolution 137*177 and
click on upload. Expected result is Photo should upload successfully
2. Upload a photo with format ‘.jpg’, size less than 32kb and resolution not 137*177 and
click on upload. Expected result is Error message resolution mismatch should be
displayed
3. Upload a photo with format ‘.jpg’, size more than 32kb and resolution 137*177 and
click on upload. Expected result is Error message size mismatch should be displayed
4. Upload a photo with format ‘.jpg’, size more than equal to 32kb and resolution not
137*177 and click on upload. Expected result is Error message size and resolution
mismatch should be displayed
5. Upload a photo with format other than ‘.jpg’, size less than 32kb and resolution
137*177 and click on upload. Expected result is Error message for format mismatch
should be displayed
6. Upload a photo with format other than ‘.jpg’, size less than 32kb and resolution not
137*177 and click on upload. Expected result is Error message format and resolution
mismatch should be displayed
7. Upload a photo with format other than ‘.jpg’, size more than 32kb and resolution
137*177 and click on upload. Expected result is Error message for format and size
mismatch should be displayed
8. Upload a photo with format other than ‘.jpg’, size more than 32kb and resolution not
137*177 and click on upload. Expected result is Error message for format, size and
resolution mismatch should be displayed