• NAGENDRA TEKUMALLA 8
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

I have written a custom apex code for web service integration. Input parameter is the RecordID. 
The functionality working fine but i am unable to achieve code coverage since i am unable to pass the Input parameter to my method "sfmOperation".

global class ServiceMaxOutbound{
    webservice static SVMXC.INTF_WebServicesDef.INTF_Response sfmOperation(SVMXC.INTF_We  bServicesDef.INTF_Response request)
   {     
       String recordId,logDescription;
       List<SVMXC__Service_Order__c> listWO;
       for(SVMXC.INTF_WebServicesDef.SVMXMap objSVXMMap : request.valueMap) {                                                    if(objSVXMMap.key == 'WorkOrder_ID'){                                                                   
                   recordId = objSVXMMap.value; 
                }
            }

Any suggestions will be highly appreciated as can't find any doc on how to write test classes for servicemax apex class.