• yosra saidani
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have a custom Visualforce page that is used to create an interactive report for our sales teams.  Once a sales rep clicks on custom tab, it brings them to the Visualforce page, which in turn calls the Apex class.  The Apex class queries the rep's opportunities and puts them into a list.  The Visualforce page uses that list and some CSS and Javascript to render an interactive report for the rep.

My question is how would I get code coverage for the Apex class as it is not triggered by a record and does not have a DML statement?  It simply calls a list of records in a list and displays it to the user.