WEEK 5 PYTHON AUTOMATION SOFTWARE TESTING

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In what type of test is the code not transparent?

Black box test (This type of test relies on the tester having no knowledge of the code.)

Which of the following is descriptive of a black-box test case?

Code is opaque. (Black-box tests have no knowledge of the code.)

Which of the following is NOT an advantage of running an automatic unit test in a suite for a single function?

Creating multiple test scripts (It's harder to manage multiple test scripts.)

When you test software, what are you really looking for?

Defects You want to find errors and defects when testing software.

When using the assertRaises method, what is passed first?

Error (The expected error is passed first.)

Which of the following is NOT an advantage of test-driven development (TDD)?

Faster development of code (Testing while developing code may increase the code completion time.)

Verifying an automation script works well with the overall system and external entities describes what type of test?

Integration Test (This test verifies that the different parts of the overall system interact as expected.)

__ ensures that any success or failure of a unit test is caused by the behavior of the unit in question, and doesn't result from some external factor.

Isolation (By ensuring the unit of code we are testing is isolated, we can ensure we know where the bug originated.)

An important characteristic of a unit test is ___.

Isolation (Unit tests test the piece of code they target.)

Which of the following would NOT be considered as an edge case when testing a software's input for a user's first and last name?

Jeffrey (A user's name with only letters is expected.)

What type of software testing is used to verify the software's ability to behave well under significantly stressed testing conditions?

Load Test (Load testing verifies the behavior of the software remains consistent under conditions of significant load.)

A test that is written after a bug has been identified in order to ensure the bug doesn't show up again later is called _____

Regression Test (Regression testing is a type of software test used to confirm that a recent program or code change has not adversely affected existing features, by re-executing a full or partial selection test cases.)

Running a piece of software code as-is to see if it runs describes what type of testing?

Smoke test (This test finds out if the program can run in its basic form before undergoing more refined test cases.)

What keyword can help provide a reason an error has occurred in a function?

assert (This keyword is used to produce a message when a conditional is false.)

When a test is codified into its own software, what kind of test is it?

automatic test (Codifying tests into its own software and code that can be run to verify that our programs do what we expect them to do is automatic testing.)

You can verify that software code behaves correctly using test ___.

cases (The software code should behave the way you expect with as many possible values or test cases.)

What is the most basic way of testing a script?

different parameters with expected results (The most basic way of testing a script is to use different parameters and get the expected results.)

When a try block is not able to execute a function, which of the following return examples will an exception block most likely NOT return?

error (An exception is not meant to produce an error, but to bypass it.)

The advantage of running automated tests is that they will always get the same expected ___ if the software code is good.

results (Automatic tests will always get the same expected result if the software code is good.)

The more complex our code becomes, the more value the use of _____ provides in managing errors.

software testing (Software testing is the process of evaluating computer code to determine whether or not it does what you expect it to do, and the more complex the code, the more likely failure is.)

Using _____ simplifies the testing process, allowing us to verify the program's behavior repeatedly with many possible values.

test cases (Test cases automatically test with a range of possible values to verify the program's behavior.)

What module can you load to use a bunch of testing methods for your unit tests?

unittest (This module provides a TestCase class with a bunch of testing methods.)


संबंधित स्टडी सेट्स

Organizational Behavior Chapter 4

View Set

5002 - Reading and Language Arts

View Set