Service Virtualization

 View Only
  • 1.  PDF Content Validation

    Posted Jun 25, 2018 03:14 AM

    Hi, We have an API call which will receive PDF attachment as a response when triggered. We need to validate some content in the PDF. Can some one tell me if its possible to validate the content using DevTest or not. If validation is possible, please give me steps to do the same. Thanks.

  • 2.  Re: PDF Content Validation
    Best Answer

    Broadcom Employee
    Posted Jun 25, 2018 09:28 AM

    As far as I know, we can't validate the content unless it is in the response. You can load the PDF file in a test step and validate the content.

  • 3.  Re: PDF Content Validation

    Posted Jun 29, 2018 02:44 AM

    Hi Prema, Thanks for the reply. I didnt understand what a "Test Step" mean. I searched in my DevTest 10.2 version and don't see any step with this name. By any chance you meant "Custom Test Step Execution Step"?. Thanks.

  • 4.  Re: PDF Content Validation

    Broadcom Employee
    Posted Jun 29, 2018 11:00 AM

    "Test Step" is not a step in DevTest. When I said test step it means one of the Test steps in DevTest. For example, you can use Read a File (Disk URL or Classpath) - DevTest Solutions - 10.3 - CA Technologies Documentation and load the PDF file and then do validation using some assertion.