WPF - PDF

5 posts, 0 answers
  1. Mark
    Mark avatar
    27 posts
    Member since:
    Nov 2011

    Posted 07 Jan 2013 Link to this post

    Hi all,
    I am implementing some test cases in a WPF application with test studio.
    In this application, there is a fax option and I need to preview a PDF file and check its content.
    How can I handle it with test studio? I have tried pdfviewer http://www.telerik.com/products/silverlight/pdfviewer.aspx but I didn't see any results.
    Thanks in advance for your assistance.
  2. Mario
    Admin
    Mario avatar
    8 posts

    Posted 07 Jan 2013 Link to this post

    Hello Mark,

    Thank you for contacting Telerik Support.

    Unfortunately Test Studio cannot read and/or verify against the contents of a PDF file loaded in the browser (using PDF Viewer or otherwise), as it does not have a DOM structure like a traditional web page. The only workaround I can suggest (other than a manual step) is that you store that information in a file type such as XLS, XML, CSV, or a SQL database, then you can use the Data Driving feature.

    Please let me know whether you have any further questions.

    Greetings,
    Mario
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Mark
    Mark avatar
    27 posts
    Member since:
    Nov 2011

    Posted 07 Jan 2013 Link to this post

    Ok thanks for your prompt reply.
    Actually it's worst than a PDF file loaded in a browser: it is just an independent PDF file.
    I think the best will be to do it manually.
    Do you think you will have one day such a plugin for PDF handling?
  4. Mario
    Admin
    Mario avatar
    8 posts

    Posted 10 Jan 2013 Link to this post

    Hi Mark,

    All I can commit to is that we do not have plans to automate PDF files in the foreseeable future. The problem is that a PDF file does not have any HTML that we can parse. They are basically like a black box and we do not have any way of seeing the contents of them. The closest we can come to automating PDF's is to blindly simulate mouse clicks on specific points relative to a corner of the PDF outer container.

    All the best,
    Mario
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Mark
    Mark avatar
    27 posts
    Member since:
    Nov 2011

    Posted 10 Jan 2013 Link to this post

    Gotcha.
    Thanks a lot for your reply.
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!