This is a migrated thread and some comments may be shown as answers.

WPF - PDF

4 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark
Top achievements
Rank 1
Mark asked on 07 Jan 2013, 07:28 AM
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.

4 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 07 Jan 2013, 08:55 PM
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
0
Mark
Top achievements
Rank 1
answered on 08 Jan 2013, 03:12 AM
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?
0
Mario
Telerik team
answered on 10 Jan 2013, 07:59 PM
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
0
Mark
Top achievements
Rank 1
answered on 11 Jan 2013, 03:47 AM
Gotcha.
Thanks a lot for your reply.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Mario
Telerik team
Mark
Top achievements
Rank 1
Share this question
or