Why could the test be failing? A developer wrote a Visualforce page - ProProfs Discuss
Topics
Products
Follow Us:

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



A. The test does not call Test.startTest()
B. The test does not create product data.
C. The test is not run by a System Administrator.
D. The test does not set the current page reference.

This question is part of PD2
Asked by Pal, Last updated: May 18, 2020

+ Answer
Request

1 Answer

Pal

Pal

Answered Apr 11, 2018

The test does not create product data.
The test does not set the current page reference.
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.