Page 1 of 1

Automating PDF doc-Fails while running in diff monitor

Posted: Thu May 22, 2014 9:30 pm
by svs
Hi,

I am trying to automate a 7 page PDF file generated by my web application using Ranorex version 5.0.2.17874. I am using Ranorex Record & playback. I was able to do the text validation & image validation successfully. But when I change the monitor(smaller than the one I used for recording) the test fails for most of the data validations & image validations. It is trying to locate elements which cannot be found in that screen(as the screen is smaller than the recorded one) or it some times finds a different text
than the searched text in the same position & it fails.

Is there any solution for this problem?

I have heard that image validation has some limitations & it fails if ran in different monitors than the recorded one but how about text validations?

This is the path of a text of my pdf file from Ranorex spy:

/form[@title~'^mypdf']/element[@instance='3']/element[@instance='1']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@instance='0']/container[@accessiblename='']/container/table[2]/row[8]/cell[1]/text[@accessiblerole='Text']

Thanks,
svs

Re: Automating PDF doc-Fails while running in diff monitor

Posted: Fri May 23, 2014 3:36 pm
by Support Team
Hi Svs,

Unfortunately I was not able to reproduce the issue with text validation on my machine.

In order to analyze the problem on more detail I would need some additional information.
May I ask you to answer the following questions?
  • Which application are you using to view the PDF file?
  • Is it possible for you to send us snapshots of both states (failure and success)?
    • Please have a look at this link to see how to create Ranorex Snapshots.
    if you don't want to post the Snapshot in this public forum, you can send it by mail to [email protected]
Regarding Image Based Validation:
In order to run a successful test with image Based validation you have to use the same settings (Screen Resolution, aspect ratio, color depth, True Type-settings, etc.) on your machines.

Regards,
Markus (S)

Re: Automating PDF doc-Fails while running in diff monitor

Posted: Fri May 23, 2014 4:43 pm
by svs
Hi Markus,

Thanks for the reply.

I am using Adobe Reader XI to view the pdf file.
I have send the snapshot to [email protected].

Thanks,
svs