100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CPSC 310 Final Exam || Already Passed.

Puntuación
-
Vendido
-
Páginas
14
Grado
A+
Subido en
27-10-2024
Escrito en
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

Mostrar más Leer menos
Institución
CPSC 310
Grado
CPSC 310

Vista previa del contenido

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

Escuela, estudio y materia

Institución
CPSC 310
Grado
CPSC 310

Información del documento

Subido en
27 de octubre de 2024
Número de páginas
14
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$12.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
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
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
757
Miembro desde
3 año
Número de seguidores
439
Documentos
37473
Última venta
1 día hace
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.

Lee mas Leer menos
3.7

114 reseñas

5
49
4
20
3
22
2
8
1
15

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes