nerdexam
Salesforce

PDII · Question #111

PDII Question #111: Real Exam Question with Answer & Explanation

The correct answer is B. The test does not create product data D. The test does not set the current page reference. See the full explanation below for the reasoning.

Question

A developer wrote a Visualforce page for Sales Reps to add products to an order. The page takes a URL query parameter, productFamily, which filters the product results. The test method for the filter behavior has an assertion failing due to an incorrect number of results. Why could the test be failing? (Choose two.)

Options

  • AThe test does not call Test.startTest()
  • BThe test does not create product data
  • CThe test is not run by a System Administrator
  • DThe test does not set the current page reference

Community Discussion

No community discussion yet for this question.

Full PDII Practice