Correct Answer: To define how testing will be performed
Explanation:
Test planning defines the testing approach, activities, resources, and schedule.
Incorrect! Try again.
2Which activity is supported by a test plan?
Goal of Test Planning
Easy
A.Replacing all software requirements
B.Creating customer invoices
C.Coordinating testing activities
D.Managing employee salaries
Correct Answer: Coordinating testing activities
Explanation:
A test plan helps the team coordinate testing activities and responsibilities.
Incorrect! Try again.
3Why are testing resources identified during test planning?
Goal of Test Planning
Easy
A.To avoid documenting test results
B.To remove the need for software testing
C.To increase the number of software defects
D.To ensure needed people and tools are available
Correct Answer: To ensure needed people and tools are available
Explanation:
Resource planning identifies the staff, environments, and tools required for testing.
Incorrect! Try again.
4Which item is commonly included in a test plan?
Test Planning Topics
Easy
A.Employee vacation history
B.Testing scope
C.Office building design
D.Product advertising slogan
Correct Answer: Testing scope
Explanation:
Testing scope describes which features and areas will be tested.
Incorrect! Try again.
5What does a test schedule describe?
Test Planning Topics
Easy
A.Where customers purchase software
B.How source code is compiled
C.When testing activities will occur
D.Why a company hires employees
Correct Answer: When testing activities will occur
Explanation:
A test schedule identifies the planned timing of testing tasks and milestones.
Incorrect! Try again.
6Which topic identifies conditions for starting or stopping testing?
Test Planning Topics
Easy
A.User interface color
B.Network cable length
C.Entry and exit criteria
D.Database normalization
Correct Answer: Entry and exit criteria
Explanation:
Entry criteria define when testing can begin, while exit criteria define when it can finish.
Incorrect! Try again.
7What is a primary goal of test case planning?
Goals of Test Case Planning
Easy
A.To reduce the number of requirements
B.To decide what needs to be tested
C.To eliminate all project documentation
D.To replace developers with testers
Correct Answer: To decide what needs to be tested
Explanation:
Test case planning determines the features, conditions, and scenarios that require testing.
Incorrect! Try again.
8Why should test cases be linked to requirements?
Goals of Test Case Planning
Easy
A.To confirm that requirements are covered
B.To prevent testers from recording results
C.To change requirements without approval
D.To make the application run faster
Correct Answer: To confirm that requirements are covered
Explanation:
Linking test cases to requirements helps verify test coverage and traceability.
Incorrect! Try again.
9What does test case planning help testers identify?
Goals of Test Case Planning
Easy
A.Employee attendance
B.Required test data
C.Marketing targets
D.Company tax rates
Correct Answer: Required test data
Explanation:
Test case planning identifies the data and conditions needed to execute each test.
Incorrect! Try again.
10What is a test case?
Test Case Planning Overview
Easy
A.A software installation package
B.A set of steps and expected results
C.A project budget document
D.A list of programming languages
Correct Answer: A set of steps and expected results
Explanation:
A test case describes actions to perform and the results expected from those actions.
Incorrect! Try again.
11Which information is normally defined before executing a test case?
Test Case Planning Overview
Easy
A.The expected result
B.The tester's lunch time
C.The office seating plan
D.The company's logo size
Correct Answer: The expected result
Explanation:
Defining the expected result allows the actual result to be compared with it.
Incorrect! Try again.
12What is a test scenario?
Test Case Planning Overview
Easy
A.A completed salary report
B.A high-level situation to be tested
C.A detailed source code comment
D.A hardware replacement order
Correct Answer: A high-level situation to be tested
Explanation:
A test scenario describes a broad condition or functionality that testing should cover.
Incorrect! Try again.
13Why are test cases organized into groups?
Test Case Organization and Tracking
Easy
A.To prevent them from being executed
B.To remove their expected results
C.To make them easier to find and manage
D.To hide failed test results
Correct Answer: To make them easier to find and manage
Explanation:
Grouping test cases by feature, module, or type improves organization and maintenance.
Incorrect! Try again.
14Which status usually indicates that a test case produced the expected result?
Test Case Organization and Tracking
Easy
A.Blocked
B.Skipped
C.Failed
D.Passed
Correct Answer: Passed
Explanation:
A test case is marked passed when the actual result matches the expected result.
Incorrect! Try again.
15What does a failed test case indicate?
Test Case Organization and Tracking
Easy
A.The software has no requirements
B.The test case was written in a spreadsheet
C.The actual result differs from the expected result
D.The test case has no assigned identifier
Correct Answer: The actual result differs from the expected result
Explanation:
A failed test means the observed behavior did not match the defined expected behavior.
Incorrect! Try again.
16What should a well-designed test case be?
Test Case Design
Easy
A.Unrelated and informal
B.Clear and repeatable
C.Hidden and incomplete
D.Random and undocumented
Correct Answer: Clear and repeatable
Explanation:
Clear, repeatable test cases help different testers perform the same test consistently.
Incorrect! Try again.
17Which test design technique checks values at the edges of an input range?
Test Case Design
Easy
A.Code formatting
B.Screen prototyping
C.Boundary value analysis
D.Version labeling
Correct Answer: Boundary value analysis
Explanation:
Boundary value analysis focuses on values at and near the limits of an input range.
Incorrect! Try again.
18Which item is commonly included in a manual test case?
Building Manual Test Cases
Easy
A.Network ownership record
B.Compiler source code
C.Test steps
D.Advertising budget
Correct Answer: Test steps
Explanation:
Manual test cases include step-by-step instructions for a tester to follow.
Incorrect! Try again.
19What should a tester record after executing a manual test case?
Building Manual Test Cases
Easy
A.The team holiday plan
B.The actual result
C.The application price
D.The office telephone list
Correct Answer: The actual result
Explanation:
Recording the actual result allows comparison with the expected result.
Incorrect! Try again.
20Which tool is commonly used as a Java unit testing framework?
Building Automated Test Cases Using Java Framework Tools
Easy
A.Excel
B.JUnit
C.PowerPoint
D.Photoshop
Correct Answer: JUnit
Explanation:
JUnit is a widely used Java framework for writing and running automated unit tests.
Incorrect! Try again.
21A team has limited time before release and cannot execute every planned test. How should test planning address this constraint?
Goal of Test Planning
Medium
A.Remove all tests that require complex test data
B.Prioritize tests according to product risk and business impact
C.Execute test cases in the order in which they were written
D.Ask each tester to select tests based only on personal preference
Correct Answer: Prioritize tests according to product risk and business impact
Explanation:
Risk-based prioritization directs limited testing effort toward failures that would cause the greatest technical or business harm.
Incorrect! Try again.
22During planning, the team discovers that the performance environment will not be available until two days before release. What is the most appropriate planning response?
Goal of Test Planning
Medium
A.Replace performance testing with additional user-interface testing
B.Keep the schedule unchanged and document the issue after release
C.Mark every performance test as passed because the environment is unavailable
D.Record the dependency and arrange an alternative or revise the schedule
Correct Answer: Record the dependency and arrange an alternative or revise the schedule
Explanation:
Test planning should expose dependencies early so that mitigation, rescheduling, or an alternative environment can be arranged.
Incorrect! Try again.
23Which planning item defines the conditions that must be satisfied before system testing can begin?
Test Planning Topics
Medium
A.Execution summary
B.Defect severity
C.Exit criteria
D.Entry criteria
Correct Answer: Entry criteria
Explanation:
Entry criteria specify prerequisites such as a stable build, an available environment, and approved requirements.
Incorrect! Try again.
24A test plan states that testing will end when 95% of critical test cases pass and no open critical defects remain. This statement primarily defines:
Test Planning Topics
Medium
A.Exit criteria
B.Test-case ownership
C.Resource allocation
D.A complete procedure for deciding how every failed test will be debugged and repaired
Correct Answer: Exit criteria
Explanation:
Exit criteria are measurable conditions used to determine whether testing is sufficiently complete.
Incorrect! Try again.
25A payment feature depends on an external banking sandbox that is occasionally unavailable. In which part of the test plan should this concern and its mitigation be recorded?
Test Planning Topics
Medium
A.Risks and contingencies
B.Test deliverables
C.Requirement identifiers
D.Defect classifications
Correct Answer: Risks and contingencies
Explanation:
External service availability is a testing risk, and the plan should identify a contingency such as a stub or backup schedule.
Incorrect! Try again.
26A requirements review finds that one security requirement has no associated test case. Which test case planning goal has not been achieved?
Goals of Test Case Planning
Medium
A.Environment stability
B.Defect resolution
C.Execution speed
D.Requirements coverage
Correct Answer: Requirements coverage
Explanation:
Test case planning should ensure that each testable requirement is covered by one or more suitable test cases.
Incorrect! Try again.
27Three testers independently create nearly identical login tests. Which planning action would best reduce this duplication?
Goals of Test Case Planning
Medium
A.Review planned coverage and assign ownership before implementation
B.Execute all duplicate cases to increase the total pass count
C.Allow each tester to maintain a separate copy indefinitely
D.Combine login testing with every unrelated feature test in one large end-to-end procedure
Correct Answer: Review planned coverage and assign ownership before implementation
Explanation:
Coordinating coverage and ownership helps avoid redundant work while preserving the required behavioral coverage.
Incorrect! Try again.
28A requirement states that an account is locked after five consecutive failed login attempts. What should the team do first when planning test cases for this behavior?
Test Case Planning Overview
Medium
A.Write automation code before defining the expected result
B.Identify test conditions and expected outcomes from the requirement
C.Create a defect report for the untested requirement
D.Execute random passwords until the account becomes locked
Correct Answer: Identify test conditions and expected outcomes from the requirement
Explanation:
Planning begins by deriving testable conditions, inputs, and expected behavior from the requirement.
Incorrect! Try again.
29A feature is still changing frequently, but its business rules are stable. Which approach is most suitable during initial test case planning?
Test Case Planning Overview
Medium
A.Plan logical test conditions before finalizing detailed execution steps
B.Define expected results only after the first production release
C.Delay all planning until the user interface is completely frozen
D.Automate every screen coordinate and visual action immediately, including elements expected to change
Correct Answer: Plan logical test conditions before finalizing detailed execution steps
Explanation:
Stable business rules can support early logical test design even when detailed interface steps are likely to change.
Incorrect! Try again.
30A requirement changes after several related test cases have already been created. Which mechanism best helps the team identify the affected cases?
Test Case Organization and Tracking
Medium
A.A list of tester names sorted alphabetically
B.A folder containing only execution screenshots
C.A dashboard showing the total number of test steps
D.A traceability matrix linking requirements and test cases
Correct Answer: A traceability matrix linking requirements and test cases
Explanation:
Traceability links make it possible to locate tests affected by requirement changes and evaluate coverage.
Incorrect! Try again.
31Test case TC-104 fails because the test environment is offline, so the application behavior cannot be evaluated. Which execution status is most appropriate?
Test Case Organization and Tracking
Medium
A.Blocked
B.Retired
C.Failed
D.Passed
Correct Answer: Blocked
Explanation:
A test is blocked when an external condition prevents execution or prevents a valid result from being determined.
Incorrect! Try again.
32A test case is updated after a workflow change, but previous execution results must remain auditable. What is the best tracking practice?
Test Case Organization and Tracking
Medium
A.Create a new version while preserving the execution history
B.Overwrite the case and delete all previous execution records
C.Store the changed steps only in a tester's private notes
D.Reuse the identifier for a different feature to limit database growth
Correct Answer: Create a new version while preserving the execution history
Explanation:
Versioning preserves historical evidence while clearly associating future executions with the updated procedure.
Incorrect! Try again.
33A quantity field accepts integer values from 1 through 100 inclusive. Which set best applies boundary value analysis?
Test Case Design
Medium
A.0, 1, 2, 99, 100, 101
B.1, 25, 50, 75, 100, 125
C.0, 20, 40, 60, 80, 100
D.2, 3, 50, 98, 99, 100
Correct Answer: 0, 1, 2, 99, 100, 101
Explanation:
Boundary value analysis checks values just below, at, and just above the lower and upper limits.
Incorrect! Try again.
34A shipping form accepts countries from a supported list and rejects all other country values. Which test set best represents equivalence partitioning?
Test Case Design
Medium
A.Several supported countries, every unsupported country, and all possible differences in letter casing
B.Only the first and last supported countries
C.Every supported country in alphabetical order
D.One supported country and one unsupported country
Correct Answer: One supported country and one unsupported country
Explanation:
Equivalence partitioning selects representatives from classes expected to behave similarly, here supported and unsupported countries.
Incorrect! Try again.
35A discount is applied only when a customer is a premium member and the cart total is at least $100. Which technique is most useful for covering combinations of these conditions?
Test Case Design
Medium
A.State transition testing
B.Error guessing
C.Random testing
D.Decision table testing
Correct Answer: Decision table testing
Explanation:
A decision table systematically covers combinations of membership status and cart-total conditions with their resulting actions.
Incorrect! Try again.
36Which expected result is most suitable for a manual test that submits a valid registration form?
Building Manual Test Cases
Medium
A.The registration process should work correctly
B.The tester confirms that the application looks acceptable
C.The system creates all required internal records, performs every relevant validation, and behaves according to unspecified business expectations
D.The account is created and the user is taken to the welcome page
Correct Answer: The account is created and the user is taken to the welcome page
Explanation:
A useful expected result is specific and observable, allowing the tester to determine pass or fail consistently.
Incorrect! Try again.
37A manual test passes when executed alone but fails when run after another test because account data remains modified. How should the case be improved?
Building Manual Test Cases
Medium
A.Change the expected result depending on the execution order
B.Add explicit preconditions and cleanup steps for account state
C.Remove the test from the suite because dependent tests cannot be documented reliably
D.Require testers to remember which cases modify the account
Correct Answer: Add explicit preconditions and cleanup steps for account state
Explanation:
Documented setup and cleanup make the test repeatable and reduce unintended dependence on execution order.
Incorrect! Try again.
38A JUnit test needs a fresh WebDriver instance before every test method. Which JUnit 5 annotation should be used on the setup method?
Building Automated Test Cases Using Java Framework Tools
Medium
A.@BeforeAll
B.@AfterEach
C.@TestFactory
D.@BeforeEach
Correct Answer: @BeforeEach
Explanation:
@BeforeEach runs the annotated setup method before every individual JUnit 5 test method.
Incorrect! Try again.
39A Selenium test fails intermittently because it checks a button before an asynchronous request enables it. What is the best improvement?
Building Automated Test Cases Using Java Framework Tools
Medium
A.Use an explicit wait for the button to become enabled
B.Catch the failure and mark the test as passed
C.Repeat the entire test continuously until one execution succeeds
D.Add a fixed 30-second delay before every interaction
Correct Answer: Use an explicit wait for the button to become enabled
Explanation:
An explicit wait synchronizes the test with a specific condition and avoids unnecessary fixed delays.
Incorrect! Try again.
40Several Selenium tests repeat the same locators and interaction methods for the login page. Which Java test design change best improves maintainability?
Building Automated Test Cases Using Java Framework Tools
Medium
A.Encapsulate the page locators and actions in a Page Object
B.Generate a new locator at random each time the login page is opened
C.Place every test and locator in one large Java method
D.Copy the login code into a shared text document
Correct Answer: Encapsulate the page locators and actions in a Page Object
Explanation:
The Page Object pattern centralizes page-specific locators and operations, reducing duplication and simplifying updates.
Incorrect! Try again.
41A payment platform must release in six weeks, but complete testing would require ten weeks. Failure impact varies sharply across features. Which planning decision best fulfills the primary goal of test planning?
Goal of Test Planning
Hard
A.Assign equal testing time to every feature to preserve procedural fairness
B.Automate the largest test cases first regardless of their business impact
C.Allocate effort according to product risk, release constraints, and required evidence
D.Execute every existing test once and defer all failures until after release
Correct Answer: Allocate effort according to product risk, release constraints, and required evidence
Explanation:
Test planning converts objectives, risks, and constraints into a defensible testing strategy. Risk-based allocation provides the strongest evidence within the available time.
Incorrect! Try again.
42Midway through a project, the team discovers that the planned performance environment will not be available before release. Which response best preserves the intent of the test plan?
Goal of Test Planning
Hard
A.Reassess performance risk and document substitute evidence, limits, and residual risk
B.Replace performance tests with additional functional tests covering the same workflows
C.Remove performance testing because the original environment cannot be obtained
D.Keep the plan unchanged so that baseline commitments remain formally consistent
Correct Answer: Reassess performance risk and document substitute evidence, limits, and residual risk
Explanation:
A test plan is a decision framework, not a fixed schedule. When assumptions fail, the team should reassess risk, adapt the strategy, and make limitations visible.
Incorrect! Try again.
43A test plan defines scope, environments, schedules, roles, and entry criteria, but stakeholders still disagree about whether testing is complete. Which missing planning topic most directly caused the disagreement?
Test Planning Topics
Hard
A.Defect naming conventions and attachment formats
B.Meeting frequency and daily status distribution lists
C.Programming standards and source review procedures
D.Exit criteria and test completion reporting rules
Correct Answer: Exit criteria and test completion reporting rules
Explanation:
Exit criteria define the evidence required to stop testing or recommend release. Reporting rules ensure stakeholders interpret that evidence consistently.
Incorrect! Try again.
44A system depends on a third-party identity provider whose test service is available only two hours per day and occasionally returns stale data. Where should this constraint primarily be addressed in the test plan?
Test Planning Topics
Hard
A.Defect severity definitions, coding standards, and unit test naming
B.Test data, environment dependencies, scheduling, and contingency planning
C.Product branding, deployment notes, and customer training materials
D.Source control branching, code ownership, and build artifact retention
Correct Answer: Test data, environment dependencies, scheduling, and contingency planning
Explanation:
The restricted service affects environment availability, data validity, execution timing, and fallback arrangements. These dependencies must be planned together.
Incorrect! Try again.
45A project has 800 requirements and limited time. The plan proposes testing only requirements labeled critical, but labels were assigned without a documented method. What is the most important addition to the plan?
Test Planning Topics
Hard
A.A larger test repository with folders organized by requirement identifier
B.A formal risk model linking likelihood, impact, and planned test intensity
C.A naming standard that embeds priority in every test case identifier
D.A defect dashboard showing daily counts grouped by assigned developer
Correct Answer: A formal risk model linking likelihood, impact, and planned test intensity
Explanation:
Risk-based scope is defensible only when prioritization criteria are explicit. A likelihood-impact model connects risk ratings to the depth of testing.
Incorrect! Try again.
46A suite achieves 100% requirements traceability, yet a production failure occurs because two individually tested requirements interact incorrectly. Which test case planning goal was inadequately addressed?
Goals of Test Case Planning
Hard
A.Covering behavioral interactions and risk scenarios beyond direct traceability
B.Minimizing the number of identifiers assigned to each test case
C.Maximizing the percentage of tests executed without test data
D.Ensuring every requirement maps to exactly one independent test case
Correct Answer: Covering behavioral interactions and risk scenarios beyond direct traceability
Explanation:
Traceability confirms that requirements are referenced, but it does not guarantee interaction coverage. Planning must also include cross-feature and risk-driven scenarios.
Incorrect! Try again.
47A regression suite contains many overlapping cases and takes 18 hours, while the release pipeline permits 4 hours. Which test case planning objective best guides rational reduction?
Goals of Test Case Planning
Hard
A.Retain cases that maximize distinct risk and coverage per unit execution cost
B.Remove all cases that previously detected defects because they have succeeded
C.Remove every manual case because automated cases always provide broader coverage
D.Retain cases in identifier order until the execution window becomes full
Correct Answer: Retain cases that maximize distinct risk and coverage per unit execution cost
Explanation:
Test case planning should optimize useful evidence under constraints. Redundancy can be reduced by comparing risk coverage, uniqueness, and execution cost.
Incorrect! Try again.
48A requirement states: "The search response should be fast for normal traffic." What should occur before detailed test cases are written?
Test Case Planning Overview
Hard
A.Select random query terms and record whichever response times are observed
B.Translate the statement into measurable workload, latency, and percentile criteria
C.Create UI scripts first and derive expected performance from their average duration
D.Mark the requirement covered because performance belongs to operational monitoring
Correct Answer: Translate the statement into measurable workload, latency, and percentile criteria
Explanation:
A vague quality statement is not directly testable. Test case planning must establish measurable conditions such as load, latency thresholds, and percentiles.
Incorrect! Try again.
49A feature has stable business rules but an unstable user interface that changes weekly. Which test case planning approach best limits rework while retaining coverage?
Test Case Planning Overview
Hard
A.Delay all test design until the user interface is permanently frozen after release
B.Define logical scenarios independently, then map them to reusable interface actions
C.Embed current selectors directly into every scenario to make each case self-contained
D.Replace expected outcomes with screenshots so interface changes need no maintenance
Correct Answer: Define logical scenarios independently, then map them to reusable interface actions
Explanation:
Separating business scenarios from interface mechanics preserves intent while localizing changes to reusable action or page abstractions.
Incorrect! Try again.
50A test case validates requirements R1 and R2. R2 changes, the case is revised, and the old release must remain auditable. Which tracking model best supports impact analysis and historical evidence?
Test Case Organization and Tracking
Hard
A.Duplicate the case without relationships and rename both copies by date
B.Store results in comments while keeping requirement mappings outside the repository
C.Version the case and preserve execution links to requirement baselines
D.Overwrite the case and retain only its current requirement references
Correct Answer: Version the case and preserve execution links to requirement baselines
Explanation:
Versioned cases linked to baselined requirements preserve what was tested for each release while supporting impact analysis for later changes.
Incorrect! Try again.
51A dashboard reports 95% test execution, but 30% of executed tests are blocked and counted as completed. Which metric representation is most accurate?
Test Case Organization and Tracking
Hard
A.Treat blocked tests as failures because neither status provides release confidence
B.Combine passed, failed, and blocked tests because each received execution effort
C.Exclude blocked tests from both totals so the completion rate remains stable
D.Report execution attempts and conclusive outcomes as separate status measures
Correct Answer: Report execution attempts and conclusive outcomes as separate status measures
Explanation:
An attempted test is not necessarily a completed evaluation. Separating execution activity from conclusive outcomes prevents blocked tests from overstating confidence.
Incorrect! Try again.
52Two test cases cover the same requirement and inputs, but one runs on PostgreSQL and the other on Oracle. Which organization strategy best avoids false duplication while preserving traceability?
Test Case Organization and Tracking
Hard
A.Keep unrelated copies and remove the shared requirement from one of the cases
B.Delete one case because identical inputs guarantee identical database behavior
C.Merge both execution results into one status without recording the database platform
D.Store one logical case with explicit platform configurations and separate executions
Correct Answer: Store one logical case with explicit platform configurations and separate executions
Explanation:
The test intent is shared, while the environments are distinct configurations. Modeling both dimensions avoids duplicated design and preserves platform-specific results.
Incorrect! Try again.
53An input accepts integers from 10 through 99 inclusive. Values outside this range are rejected. Which set provides complete robust boundary value coverage for this single input?
Test Case Design
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Robust boundary analysis includes , , , a nominal value, , , and .
Incorrect! Try again.
54An account is locked after three consecutive failed logins. A successful login resets the failure count, and a locked account rejects all attempts. Which design technique most directly derives cases for this behavior?
Test Case Design
Hard
A.Boundary testing applied only to the password character count
B.Equivalence partitioning based only on valid and invalid passwords
C.State transition testing using states, events, guards, and transitions
D.Pairwise testing across browser, operating system, and account type
Correct Answer: State transition testing using states, events, guards, and transitions
Explanation:
The outcome depends on event history and state. State transition testing models the failure count, reset behavior, lock transition, and locked-state responses.
Incorrect! Try again.
55A discount applies when a customer is premium and the cart exceeds $100, except when an excluded product is present. Which technique best exposes missing combinations and contradictory rules?
Test Case Design
Hard
A.A state diagram representing the customer's navigation between pages
B.A decision table covering conditions and resulting discount actions
C.A boundary table containing only cart values near the $100 threshold
D.A use-case narrative containing one typical premium purchase workflow
Correct Answer: A decision table covering conditions and resulting discount actions
Explanation:
A decision table systematically combines premium status, cart threshold, and exclusion status, making omissions and contradictions visible.
Incorrect! Try again.
56A manual test step says, "Verify that the report looks correct." Which revision makes the case most reproducible without overprescribing irrelevant presentation details?
Building Manual Test Cases
Hard
A.Capture a screenshot and pass the case whenever no obvious visual issue appears
B.Confirm the report contains the specified records, totals, period, and sort order
C.Ask the tester to inspect every visible element and approve the overall appearance
D.Confirm the report looks professional and resembles reports from earlier releases
Correct Answer: Confirm the report contains the specified records, totals, period, and sort order
Explanation:
A reproducible manual case uses observable, objective outcomes tied to requirements. It should avoid subjective judgments and unnecessary cosmetic constraints.
Incorrect! Try again.
57A destructive manual test modifies shared customer records, causing later tests to fail unpredictably. Which case design change best addresses the underlying problem?
Building Manual Test Cases
Hard
A.Allow each tester to select any customer record that appears inactive at runtime
B.Define isolated preconditions, controlled data identifiers, and post-test cleanup
C.Repeat failed downstream tests until the shared records happen to become usable
D.Move the destructive test to the end and leave all modified records unchanged
Correct Answer: Define isolated preconditions, controlled data identifiers, and post-test cleanup
Explanation:
Controlled setup and cleanup make tests independent and repeatable. Merely changing order leaves hidden dependencies and contamination in place.
Incorrect! Try again.
58A JUnit 5 test must verify that withdraw(150) throws InsufficientFundsException and that the balance remains unchanged. Which structure is most appropriate?
Building Automated Test Cases Using Java Framework Tools
Hard
A.Catch Exception, print its message, and skip the balance assertion on failure
B.Use assertDoesNotThrow, then inspect the exception through a global listener
C.Use assertThrows, then assert the balance separately after the invocation
D.Place the withdrawal in @BeforeEach and mark the test passed if setup fails
Correct Answer: Use assertThrows, then assert the balance separately after the invocation
Explanation:
assertThrows verifies the precise exceptional outcome, while a separate state assertion confirms the failed operation preserved the balance.
Incorrect! Try again.
59A Selenium Java suite frequently fails because it uses Thread.sleep(5000) before checking a dynamically loaded button. Which replacement most directly improves reliability and execution time?
Building Automated Test Cases Using Java Framework Tools
Hard
A.Use an implicit wait and retain the fixed sleep for additional protection
B.Use an explicit wait for the button's required state before interacting
C.Increase the fixed sleep to the maximum delay observed in production
D.Retry the entire test class whenever the button cannot be located
Correct Answer: Use an explicit wait for the button's required state before interacting
Explanation:
An explicit wait synchronizes with a specific condition and proceeds as soon as it is satisfied. Fixed delays are either insufficient or unnecessarily slow.
Incorrect! Try again.
60A Java test suite shares one mutable WebDriver instance across parallel JUnit executions. Failures show tests navigating each other's browser sessions. Which redesign best preserves parallelism?
Building Automated Test Cases Using Java Framework Tools
Hard
A.Reuse one browser window but assign a different tab to each test method
B.Provide each test thread with an isolated driver and deterministic teardown
C.Synchronize every assertion while leaving navigation and setup unsynchronized
D.Add retries around navigation until each test reaches its expected application page
Correct Answer: Provide each test thread with an isolated driver and deterministic teardown
Explanation:
Parallel tests require isolated mutable state. A driver per execution thread or test prevents cross-test interference, while teardown reliably releases resources.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →