can not find images.sikuli/1390382312030.png on the screen
how to read images in eclipse in ubuntu . I have a folder name images.sikuli and all my images are stored inside it ..And in my code I have path as
s.doubleClic
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- karamjeet kaur
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
looks like you are using Java?
If yes, how do you run your app?
Revision history for this message
|
#2 |
Yes using java load my test case with ant
<target name="runTest" depends="compile">
<junit printsummary="yes" haltonfailure="no">
<classpath>
<pathelement location = "lib/sikuli-
</classpath>
<formatter type="xml"/>
<batchtest fork="yes" todir="
<fileset dir="src">
<include name="*
</fileset>
</batchtest>
</junit>
<fileset dir="reports/xml">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="
<
</target>
Revision history for this message
|
#3 |
--1: generally you should NOT put sikuli-java.jar into your project folder.
like every other common library, sikuli-java.jar should be kept in one place (preferably the setup folder) and should only be referenced in your runtime environment.
something like that:
<pathelement location = "${my.Sikuli}"/>
having set this property somewhere at the beginning or generally in your environment.
This makes it easier to switch to new Sikuli versions and avoids spamming your system with copies of sikuli-java.jar and the at runtime created libs folder.
--2:
as generally with Java apps: relative folder names like lib/sikuli-java.jar or images.
So in your case I guess this is your project folder. so the folder images.sikuli must be here.
Revision history for this message
|
#4 |
I have set the path exactly you are telling . tcw is name of my project suppose there is folder named images.sikulii where my .png images are kept , then lib folder where sikuli-java.jar is kept and inside lib I have libs folder like lib/libs where .so files are there. then there is build.xml
where sikuli-java.jar path is set like
<pathelement path="$
and jar and .so file path are set as
<fileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${
then my .java fille is kept in tcw/src/
public void testUntitled() throws Exception {
driver.
driver.
Debug.
Settings.
// s.type(Key.DOWN, Key.DOWN, Key.DOWN);
s.setAutoWa
s.exists("Start Building Now");
s.waitVanis
s.doubleCli
System.
s.wait(2);
s.doubleCli
s.wait(2);
}
But still I am getting <error message="Text search currently switched off" type="org.
Line 1671, in file Region.java
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at com.thecharmwor
at com.thecharmwor
</error>
</testcase>
<system-
[debug] RobotDesktop: captureScreen: on 0 using java.awt.
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[error] Region.find(text): text search is currently switched off
[error] Region.exists: seems that imagefile could not be found on disk
[debug] waiting for 2 to vanish
[debug] Screen.capture: java.awt.
[debug] RobotDesktop: captureScreen: on 0 using java.awt.
[error] Region.waitVanish: seems that imagefile could not be found on disk
[debug] waiting for /1390382312030.png to appear
[debug] Screen.capture: java.awt.
[debug] RobotDesktop: captureScreen: on 0 using java.awt.
[error] /1390382312030.png looks like a file, but not on disk. Assume it's text.
[error] Region.find(text): text search is currently switched off
error or images cannot be found.
Revision history for this message
|
#5 |
see the comments //
s.exists("Start Building Now"); // this is interpreted as text, but text search is switched of (no valid image file name)
s.waitVanis
s.doubleCli
System.
s.wait(2);
s.doubleCli
s.wait(2);
a valid filename in your case is either
<some absolute path>/some-
or
<some relative path>/some-
where <some relative path> is a folder in your project folder
Revision history for this message
|
#6 |
I am using exact configuration as you mentioned
public void testUntitled() throws Exception {
driver.get("http://
driver.
Settings.
Debug.
s.setAutoWait
s.exists(
s.waitVanis
s.wait(2);
s.doubleCli
s.wait(2););
s. hover("
s.doubleCli
s.wait(2);
s.exists(
s.dragDrop(
s.wait(2);
s.doubleCli
s.wait(4);
s.exists(
s.wait(2);
assertTrue(
but the errorlog is saying
<error message="Text search currently switched off" type="org.
Line 1671, in file Region.java
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at com.thecharmwor
at com.thecharmwor
</error>
</testcase>
<system-
[debug] RobotDesktop: captureScreen: on 0 using java.awt.
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[debug] ResourceLoaderB
[error] home/paridhi/
[error] Region.find(text): text search is currently switched off
[error] Region.exists: seems that imagefile could not be found on disk
[debug] waiting for home/paridhi/
[debug] Screen.capture: java.awt.
[debug] RobotDesktop: captureScreen: on 0 using java.awt.
[error] home/paridhi/
[error] Region.find(text): text search is currently switched off
Really tensed about it. Not working good. Does sikuli works in ubuntu using eclipse ?
Revision history for this message
|
#7 |
s.exists(
look comment #5:
this is a relative path, that is resolved relative to your project folder, and I guess it is not there but at
/home/karamjeet
*** you say:
Really tensed about it. Not working good. Does sikuli works in ubuntu using eclipse ?
Of course does it work and I guess some thousand people around the world are using it successfully.
*** and now it is getting unobjective and might be unpolite and I dare to talk:
- I know, who you are and we already had this behaviour discussion privately
- you tend to blame other people or stuff to be responsible for your failures
- you are wasting peoples time in that you are asking silly questions, that are silly, because you do not try to understand the answers you get (... and on top you say: I am using exact configuration as you mentioned - LOL)
... and you are trying to cheat people:
after I have cut the private communication recently, you come here with some other name and even dare to come up with code, that does not fit with the log you are posting with respect to the "error" to disguise yourself.
code: home/karamjeet/
log: /home/paridhi/
I really hope, that after more than 10 days creeping around with 10 lines of basic Sikuli Java coding, that you get on the road now.
Revision history for this message
|
#8 |
I am karamjeet . We are working in a team and paridhi is our team mate . Before thinking just know that things can be other way aswell..She advised me to take help from you. Anyways thanks in further our team don't need your help because you are quite impatient and presume thinks by your own if someone needs help thats why he/she is asking for it. Anyways thanks for your answers. Good Luck
Revision history for this message
|
#9 |
I already mentioned:
*** and now it is getting unobjective and might be unpolite and I dare to talk:
... and this is always a glitchy way - but sometimes, very seldom, I have to shout out how I feel.
... and that you are working together in a team even makes things worth, since this means, that you do not learn from each other and do not communicate about what has happened (again a might be invalid presumption ;-)
... and from beginning giving some information on background and history helps a lot. Many people do that and admit from beginning, that they might have missed something or having done something wrong.
In this case (SHE knew the problem!) some reference and explanation would have given a better base from beginning, instead of just asking the same question with the same complains and coding as before.
So: no excuses from my side.
*** you say:
you are quite impatient and presume thinks by your own if someone needs help
this might in the end look so for you from your standpoint being frustrated to not get nearer to the solution.
*** But be assured:
I am very, very patient - otherwise I could not have managed to support Sikuli now for more than 3 years having helped hundreds of people - many of them being totally new to scripting or even programming, which needs to be one of the most patient people on the world.
Nevertheless: I wish you all the best for your work.
... and be assured: if you come back again with any new question, I will have a look at it and try to help you - very, very patiently ;-)