Testing Flashcards

1
Q

Describe functional testing

A

to determine whether software works right: whether it behaves as intended in a logical sense,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is non-functional testing

A

examines usability, performance, security, resiliency, compliance (with standards and regulations, for example), localization, and many other issues, with an eye to finding out if software is fit for purpose, provides intended value, and minimizes risk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is test driven development (TDD)

A

using testing as a framework for guiding software development: that is, capturing design requirements as tests, then writing software to pass those tests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is unit testing

A

Detailed functional testing of small pieces of code (lines, blocks, functions, classes, and other components in isolation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are two testing frameworks in python

A

unittest and Py Test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is integration testing

A

makes sure that all of those individual units you’ve been building fit together properly to make a complete application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When should you run an integration test

A

you should run your integration tests before you make any changes for the day, whenever you make significant changes, and before you close out for the day

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the first step in TDD

A

Create a new test - The idea here is to capture some requirement of the (perhaps not-yet-created) unit of application code we want to produce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the second step of TDD

A

Run tests to see if any fail for unexpected reasons - If this happens, correct the tests. Note that expected failures, here, are acceptable (for example, if our new test fails because the function it’s designed to test doesn’t yet exist, that’s an acceptable failure at this point).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the third step in TDD

A

Write application code to pass the new test: - The rule here is to add nothing more to the application besides what is required to pass the test.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the fourth step in TDD

A

Run tests to see if any fail - If they do, correct the application code and try again.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the last step in TDD

A

Refactor and improve application code - Each time you do, re-run the tests and correcting application code if you encounter any failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly