Question #241257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/241257
Status: Answered => Open
DeepaKiran is still having a problem:
Thanks RaiMan for the reply.
For now, i have manually placed a blank txt file log.txt under project
directory/logs folder &
I have downloaded and added sikuli-setup.jar to my project classpath (in order
to use org.sikuli.basics) and added above mentioned steps 1 and 4 into my test
script. My test script now, look like below:
package dataEntry;
import java.io.IOException;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Screen;
import org.sikuli.script.Settings;
import static org.sikuli.basics.Debug.*;
import static org.testng.Assert.*;
public class OE_SP1_AFDataEntry {
@Test
public void TestDataEntry() throws FindFailed, IOException,
InterruptedException {
try
{
String path_or = System.getProperty("user.dir") +
"\\MLAB_OR\\OE\\";
Screen screen = new Screen();
Settings.DebugLogs = true;
Settings.MoveMouseDelay = 3;
screen.wait(path_or + "de_de_btn.png",10);
assertTrue(screen.exists(path_or + "de_de_btn.png",10) !=
null,"Step3: Activity list doesnot include DataEntry category");
screen.click(path_or + "de_de_btn.png",10);
assertTrue(screen.exists(path_or + "de_actmnu_img.PNG") !=
null,"Step4: Modules menu not present at right side");
screen.click(path_or + "de_actmnu_oes_lnk.PNG");
assertTrue(screen.exists(path_or + "de_oes_oesch_tab.PNG") !=
null,"Step5: Order Entry search tab is not present");
}
catch(Exception e)
{
assertTrue(false, e.toString());
}
setLogFile(System.getProperty("user.dir") + "\\logs\\log.txt");
}
}
This script is executed successfully but the log.txt file is still
blank. No logs have been copied to log.txt file.
Please let me know if I am doing any mistake here.
Thanks & Regards
Deepa
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp