Automating PDF doc-Fails while running in diff monitor

Experiences, small talk, and other automation gossip.
svs
Posts: 2
Joined: Thu May 22, 2014 7:49 pm

Automating PDF doc-Fails while running in diff monitor

Post by svs » Thu May 22, 2014 9:30 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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

Post by Support Team » Fri May 23, 2014 3:36 pm

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)
.
Image

svs
Posts: 2
Joined: Thu May 22, 2014 7:49 pm

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

Post by svs » Fri May 23, 2014 4:43 pm

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