RobotFramework: SikuliLibrary: Set Ocr Text Read, Get text keyword not working

Asked by md atequer rahman

Hello,

I am working on windows app testing R&D for CatiaV6 thin client. I have done many test cases successfully. Now I need to check field value whether it is correct or not.
After searching 'Get Text' & 'Set Ocr Text Read' keywords from Sikuli library, are not found. but in keyword documentation of Sikuli these 2 keywords are mentioned. Sikuli Library is imported properly. Others Sikuli keywords are found except these 2. Can anyone say why?

Thanks in advance :)

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

Using RobotFrameWork?

Revision history for this message
md atequer rahman (sourov19) said :
#2

Sorry for late! Yes. I am using RobotFramework.

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

no problem.

You have to ask the developer of the Sikuli Library

Revision history for this message
md atequer rahman (sourov19) said :
#4

Could you say me how can I reach any of Sikuli Library developers?

Revision history for this message
masuo (masuo-ohara) said :
#5

Are you using "robotframework-SikuliLibrary" from the link "https://github.com/rainmanwy/robotframework-SikuliLibrary" ?
The author of https://github.com/rainmanwy/robotframework-SikuliLibrary answered the following question.
https://answers.launchpad.net/sikuli/+question/295568

Revision history for this message
md atequer rahman (sourov19) said :
#6

Yes, I am using this link.

Revision history for this message
md atequer rahman (sourov19) said :
#7
Revision history for this message
md atequer rahman (sourov19) said :
#8

Hello,
I have installed tesseract-ocr to resolve this problem. But how shall I show tesseract's path to sikuli? Need your kind help please.

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

simply installing tesseract-ocr does not help.

With the library you have chosen, you have to follow the steps to create a working sikulixapi.jar for your environment as mentioned on the library homepage on github.

Revision history for this message
md atequer rahman (sourov19) said :
#10

Hello RaiMan,
R u saying about SikuliXRobotLibrary of this https://github.com/jaredfin/SikuliXRobotLibrary?
If yes, I have installed 'SikuliXRobotLibrary' properly following the steps. I have run their demo project successfully in cmd as they have run in cmd. But while importing in RIDE, SikuliXRobotLibrary showing in red letter i.e. not importing library.
Previously I was using 'SikuliLibrary' following your blog https://github.com/rainmanwy/robotframework-SikuliLibrary . Then RIDE was importing 'SikuliLibrary'. Now my problem is why RIDE is not importing 'SikuliXRobotLibrary' ?
If it imports hope that Set Ocr Text Read, Get text keyword problem will be solved. :)

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

We cannot help you here with both libraries you mention (not our stuff).

You have to go to their pages and ask there.

About RIDE: same goes for the import problem here: you seem to have done something wrong with your project setup in RIDE.

A good place to ask questions like this and may be find help is stackoverflow.

Revision history for this message
md atequer rahman (sourov19) said :
#12

Thanks.

Revision history for this message
md atequer rahman (sourov19) said :
#13

Hello,
My project setup for RIDE is ok. So 'SIkulibrary ' is imported correctly. 'SikuliXRobotLibrary' is jython based. May be that's why RIDE can't import this. As far as I know RIDE can import only python based library.
I have this question in Stackoverflow. But Still got only one respose, that's about editing question :(
http://stackoverflow.com/questions/40191358/robotframework-sikulilibrary-set-ocr-text-read-get-text-keyword-not-working

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

I just had a look at SikuliLibrary (https://github.com/rainmanwy/robotframework-SikuliLibrary).

In fact the Keyword "Get Text" was only added at September 12th this year.
Since the latest version 0.1.5 on pypi is from May 16th, "Get Text" is not included in the package you get with pip.

You have to follow the steps mentioned under
Build With Maven

to get the latest version containing the changes made after May 16th.

I recommend to stick with rainmanwy's SikuliLibrary if possible - looks better integrated with the RobotFramework stuff.

Revision history for this message
md atequer rahman (sourov19) said :
#15

Thanks for your suggestion. Now trying with maven build. We also prefer SikuliLibrary rather than others. Bcoz of its integration with RF is good :)

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

I would appreciate a feedback about your trials. Thanks.

Revision history for this message
md atequer rahman (sourov19) said :
#17

Thanks. Problem solved after maven build.

Revision history for this message
md atequer rahman (sourov19) said :
#18

Thanks RaiMan, that solved my question.