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

testing lec

The document outlines a comprehensive lecture on software testing, covering various topics such as types of testing, testing methodologies, and specific testing scenarios related to a shopping cart feature in an e-commerce application. It includes questions and examples to illustrate key concepts, such as functional testing, boundary testing, and performance testing. Additionally, it narrates a case study involving a shopping cart bug that highlights the importance of thorough testing and documentation.

Uploaded by

medo.ahmed3676
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

testing lec

The document outlines a comprehensive lecture on software testing, covering various topics such as types of testing, testing methodologies, and specific testing scenarios related to a shopping cart feature in an e-commerce application. It includes questions and examples to illustrate key concepts, such as functional testing, boundary testing, and performance testing. Additionally, it narrates a case study involving a shopping cart bug that highlights the importance of thorough testing and documentation.

Uploaded by

medo.ahmed3676
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

sensor engineering

Testing lecture
1. What is software testing?
2. What is the purpose of testing?
3. Difference between manual and
automatic?
4. What are the types of testing?
5. How many boxes of testing and what
are they?
6. How to install the test?
7. What is the name of the package?
8. What is the difference between
Mocking & Asynchronous testing?
9. Write the difference types of
Matchers?
10. How to start the testing?
11. What is the name of the file for
testing?
12. Write a code to test the area of the
triangle.
13. What is super testing used for?
14. Terminal to start the testing?
15. What is the difference between
functional and non-functional testing?
16. What are the key differences between
verification and validation in software
testing?

Aya Hafez 13002042


Hiphop

Aya Hafez 13002042 Hiphop

Aya Hafez 13002042 Hiphop

Aya Hafez 13002042 Hiphop


17. What is a test case, and what are its
main components?
18. Explain the difference between black-
box testing and white-box testing.
19. What is the purpose of regression
testing, and when should it be performed?
20. What is the difference between unit
testing and integration testing?
21. What is the role of a test plan in
software testing? What key elements does
it contain?
22. What is exploratory testing, and how is
it different from scripted testing?
23. What is the importance of test
automation, and which tools are
commonly used for it?
24. What is acceptance testing, and who
typically performs it?
25. What are the different levels of
testing? Give examples for each.
26. What is boundary value analysis
(BVA)? How is it applied in testing?
27. What is equivalence partitioning, and
how does it help in test case design?
28. What is the difference between smoke
testing and sanity testing?
29. What is defect life cycle? Explain its
stages.
30. What is the difference between priority
and severity in defect management?
Provide examples.
31. What is adhoc testing, and when
should it be performed?
32. How do you perform compatibility
testing?
33. What is the role of Selenium in
automated testing? How does it work?
34. What is the difference between a test
script and a test suite?
35. How do you select test cases for
automation?
36. What is Continuous Integration (CI),
and how does automated testing support
it?
37. What challenges have you faced while
automating tests, and how did you
overcome them?
38. What is performance testing, and how
is it different from load testing?
39. What is the difference between stress
testing and scalability testing?
40. What are the key performance metrics
you measure during performance testing?
41. What tools have you used for
performance testing, and how do they
work?
42. What is test-driven development
(TDD)? Explain its benefits and challenges.
43. What is a test oracle, and why is it
important in testing?
44. Explain the concept of code coverage.
How do you ensure high coverage in unit
testing?
45. What is mutation testing, and how is it
used to evaluate the quality of tests?
46. What is risk-based testing, and how do
you prioritize test cases in this approach?
47. You are testing a login page that
requires a username and password. What
test cases would you write?
48. You find a critical defect just before
release. What steps would you take?
49. How would you test an API that
retrieves data from a database?
50. How would you test a mobile
application on multiple devices?
51. You are given a feature to test but no
documentation. How would you proceed?

Ali has a new application that he is working on.


The new application is a web that is responsible for
shipping purposes. The backend team has just
finished the file for the web. Ali what to test the
web before publishing it. You are the leader of the
testing team

1.Do you recommend what type of testing that


your team will use?
2. What step will you take to test the system?
3.Do you recommend using the system testing or
the Integration or the unit testing?
4.Can you test the system without knowing the
code?

The Story: The Shopping Cart Bug


Once upon a time, a small e-commerce startup
called ShopEasy decided to revamp its website to
compete with bigger online stores. As part of the
upgrade, they introduced a new feature for the
shopping cart. The feature allowed users to:
 Add items to the cart.
 Update the quantity of items.
 Remove items from the cart.
 Apply discount codes.
The development team was confident in their work
and handed the feature over to the QA team for
testing. Sarah, the lead QA engineer, started by
analyzing the requirements. She quickly realized
that the team didn’t fully document edge cases or
scenarios involving invalid inputs.
What Happened?
During testing, Sarah discovered several critical
bugs:
1.Bug 1: When a user tried to add a negative
quantity of an item, the system still allowed it,
creating a "negative cart total."
2.Bug 2: Applying multiple discount codes
caused the total price to become negative in
some cases.
3.Bug 3: Removing items too quickly (by clicking
"Remove" multiple times) caused the cart to
crash.
4.Bug 4: When the database connection was
slow, the cart showed old, cached data instead
of updated items.
Sarah documented these bugs and discussed them
with the development team. The team fixed the
issues, and the feature was re-tested thoroughly
before launch. Thanks to Sarah's diligence, the
shopping cart was stable when the website went
live, earning the trust of thousands of users.

Questions About Testing


1.Functional Testing:
o What functional test cases would you write
to test the shopping cart feature?
2.Boundary Testing:
o How would you test the "quantity" input for
edge cases?
3.Negative Testing:
o What negative test scenarios would you
design for the discount code functionality?
4.Performance Testing:
o How would you test the shopping cart's
performance when multiple users are
adding/removing items simultaneously?
5.Database Testing:
o How would you test the issue related to
showing cached data when the database
connection is slow?
6.Automation Testing:
o If you were automating the shopping cart
tests, which scenarios would you prioritize?
7.Regression Testing:
o After fixing the bugs, what regression tests
should be performed to ensure the
shopping cart works across all scenarios?
8.Usability Testing:
o How would you ensure that the shopping
cart is user-friendly and intuitive for
customers?

You might also like