Problem in running sikuli script in another Image

Asked by Prateek Sahu

I have created a sikuli script on my machine...

now I am trying to run the same script on other machine But the sikuli script is not running-it is not able to identify the images...

I have checked the resolution of both the machines its same, Image path is also same..Everything is right but its not identifying

Then I took a snapshot of same image on another machine and it is working fine...

what should I do...
I am using HPL1706 monitor
and other machine is having HPL1710 monitor...Please help me...

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Despite the fact, that Sikuli finds what you can see on the monitor, these problems have nothing to do with the monitor itself, but with the graphics setup (e.g. screen resolution) and sometimes with differing skins or GUI setups (e.g. different backgrounds).

So you have to check again for differences on both machines.

Revision history for this message
Prateek Sahu (prateek-sahu01apr) said :
#2

Hello RaiMan,

I have tried every thing. But its an issue...
I have recorded script in IE7 and I am trying to run script on other machine having IE8.
and the script is not running (Cannot find xxxxx.png on screen)

I have also tried it the other way round...

I also tried to use the images which was taken on IE8 on other machine and use that same image on my machine....

and I am getting the same error(Cannot find xxxxx.png on screeen)

Revision history for this message
RaiMan (raimund-hocke) said :
#3

So the images are different in the different scenarios for some reason.

You have to find out WHY they are different - not THAT they are different.

If you have no idea, send me screenshots of the different scenarios with the same images and your captured images zipped together in one file and send it to my mail https://launchpad.net/~raimund-hocke

Revision history for this message
Prateek Sahu (prateek-sahu01apr) said :
#4

Hello Raimund,
Thanks for you assistance...

As I am working in a team so I need to run my scripts on different machines or my script can be resued by another team memeber...
In your prevoius reply you said about System Environment and Graphics Setting...
Could you please suggest what are all parameters i should consider in System Environment and Graphics Settings.

As sikuli is new for me please suggest what will be the best approach

Revision history for this message
Best RaiMan (raimund-hocke) said :
#5

Sorry, might not have been clear enough.

Comparing the 2 pictures you sent me on the pixel level showed up, that these pictures where very different in many aspects (icon and font). As I understand, these where captures from a webpage, that was displayed in 2 different browsers on 2 different systems.

So you have to find out, what is the reason for that. What this might be, I cannot tell from here. Might be a rendering problem in the browser, might be a problem of the web app (automatic resize), ...?

All these I packed under the headline "System Environment and Graphics Settings", which might have been misleading. But this has nothing to do with Sikuli itself, it is how the images and fonts are rendered to the screen/app window.

Revision history for this message
Prateek Sahu (prateek-sahu01apr) said :
#6

Thanks RaiMan, that solved my question.