100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4,6 TrustPilot
logo-home
Exam (elaborations)

CPSC 310 Final Exam || Already Passed.

Rating
-
Sold
-
Pages
14
Grade
A+
Uploaded on
27-10-2024
Written in
2024/2025

Different kinds of tests correct answers Unit, Regression, Integration, System, End to End Unit tests correct answers Tests on the smallest possible components of the system (fast to execute and isolate) Regression tests correct answers run every time a modification is made to the system to make sure things run as expected Integration tests correct answers tests on modules of software that interact with each other System tests correct answers tests on the entire system End-to-end correct answers validate an entire customer flow to see if system behaves correctly Black box testing correct answers - tester does not have any knowledge about the implementation details for the SUT - devised based on the specs of the SUT Glass box testing correct answers - tester has knowledge of the system internals - meant to verify the completeness of test suite Problem with glass box testing correct answers suffer from confirmation bias as we already know implementation details and may fail to notice edge cases How do version tests eventually become regression tests correct answers - As system evolves, current version of tests become older version and they are added to regression suite - We still want to make sure these tests work Test formation steps correct answers Setup: initial setup required before tests are run Call: actual call to function being tested and manipulating SUT Check: using assertions to check that system state is equivalent to what we expect Why is line coverage inefficient correct answers Only tells us what lines in the code under test are covered by written test suite - Also need to know what paths and branches are being covered What are Mock Objects correct answers - Allow us to mimic effects of client or server that we may not have access or implementation details for - Mock can simulate behavior of parts of system that are slow or not yet developed Mutation testing correct answers - Pick random mutants that may be inserted into our code - If we detect faults with these mutants, then we know we can detect many more faults

Show more Read less
Institution
CPSC 310
Course
CPSC 310

Content preview

CPSC 310 Final Exam || Already Passed.
Different kinds of tests correct answers Unit, Regression, Integration, System, End to End

Unit tests correct answers Tests on the smallest possible components of the system (fast to
execute and isolate)

Regression tests correct answers run every time a modification is made to the system to make
sure things run as expected

Integration tests correct answers tests on modules of software that interact with each other

System tests correct answers tests on the entire system

End-to-end correct answers validate an entire customer flow to see if system behaves correctly

Black box testing correct answers - tester does not have any knowledge about the
implementation details for the SUT
- devised based on the specs of the SUT

Glass box testing correct answers - tester has knowledge of the system internals
- meant to verify the completeness of test suite

Problem with glass box testing correct answers suffer from confirmation bias as we already
know implementation details and may fail to notice edge cases

How do version tests eventually become regression tests correct answers - As system evolves,
current version of tests become older version and they are added to regression suite
- We still want to make sure these tests work

Test formation steps correct answers Setup: initial setup required before tests are run
Call: actual call to function being tested and manipulating SUT
Check: using assertions to check that system state is equivalent to what we expect

Why is line coverage inefficient correct answers Only tells us what lines in the code under test
are covered by written test suite
- Also need to know what paths and branches are being covered

What are Mock Objects correct answers - Allow us to mimic effects of client or server that we
may not have access or implementation details for
- Mock can simulate behavior of parts of system that are slow or not yet developed

Mutation testing correct answers - Pick random mutants that may be inserted into our code
- If we detect faults with these mutants, then we know we can detect many more faults

, What are the kinds of testability correct answers Observability, Controllability, Isolateability,
Automatability

Observability correct answers the extent to which the response of a SUT can be verified
- Can we actually observe system behaviour? Do we need methods to improve visibility?

Controllability correct answers the extent to which the SUT can be made to perform various
actions of interest
- If it is difficult to satisfy the requirements to invoke a function then we have low controllability

Isolateability correct answers the degree to which the element under test can be validated on its
own
- How well can we evaluate a specific piece of a system independent of the rest of the system?

Automatability correct answers the extent to which the test suite can execute programmatically
- If I make a change, will this change trigger deployment to run my test suite?

Why does TDD afford testability correct answers By writing tests first our system becomes more
testable

Four phase test correct answers - Set up test environment
- Execute code under test
- Evaluate the behaviour of the code under test
- Tear down test environment and clean up

Given-when-then correct answers - Tests should have human readable specifications and should
use plain language
- Simple sentences to help keep test methods focused and understandable

Fuzz testing correct answers Given program P, assume input I
- Generate inputs that can expose bugs or any unintended behaviour
- Random inputs can be generated to stress test a SUT

Random fuzzing correct answers simplest form, generate completely random inputs to a system
using no feed back to generate new inputs

Generator-based fuzzing correct answers write code that provides random inputs but still ensures
that requirements of SUT are met to some degree

Mutational fuzzing correct answers take an input we know works and perform mutations on that
input using external tools

Waterfall development correct answers - Each project phase flows into the next with explicit
stakeholder sign-off before phase begins

Requirements --> Design --> implementation --> Verification --> Maintenance

Written for

Institution
CPSC 310
Course
CPSC 310

Document information

Uploaded on
October 27, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

R217,27
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SirAnton NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
Follow You need to be logged in order to follow users or courses
Sold
757
Member since
3 year
Number of followers
439
Documents
37473
Last sold
1 day ago
Reign Supreme Scholarly || Enlightened.

Get your revised study materials available here and elevate your educational outcomes. I have numerous verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. I am dedicated to offering you the best and unique learning content. You are encouraged to inquire further assistance from this end whenever need be. Kindly remember to leave your review, understanding your satisfaction is essential . We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
3,7

114 reviews

5
49
4
20
3
22
2
8
1
15

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions