← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #294610]: SikuliX Deletes everything from project folder.

 

Question #294610 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/294610

    Status: Needs information => Solved

Shobin confirmed that the question is solved:
Folder structure:

D:-->FWM.Sikuli -->FWM.py, FWM.HTML , LoginLibrary.py(Library file),
LoginLibrary.HTML

For robot I have another folder

D:-->FWM.SIKULI.ROBOT--> which has FWM.ROBOT ,
log.HTML,Output.XML,Report.html

This is my Library file:

from sikuli import *

class LoginLibrary(object):
  def start_firefox_and_goto_testsite(self, page):
		type("CLS")
		type(Key.ENTER)
		exists("entry_4.png")
		type("MISDZJ")
		type(Key.TAB)
		type("MAY2016")
		type(Key.ENTER)
  def stop_firefox(self):
    popup("Execution complete")
  def attempt_to_login_with_credentials(self, username, password):
		
		type("pre misdzjd")
		type(Key.ENTER)
		while(1):
			if exists("maxcc_91.png"):
				type(Key.ENTER)  
				break
			else:
				wait(10)
				type(Key.ENTER)    

		
  def status_should_be(self, expected):
    

This is my Sikuli Scruipt (FWM.PY)

runScript("""
robot
*** Variables ***
${USERNAME}               demo
${PASSWORD}               mode
${TESTSITE}               http://test.sikuli.de
*** Settings ***
Library           D:\\\\FWM.sikuli\\\\LoginLibrary.py
Test Setup        start firefox and goto testsite    ${TESTSITE}
Test Teardown     stop firefox
*** Test Cases ***
User can log in with correct user and password
    Attempt to Login with Credentials    ${USERNAME}    ${PASSWORD}
    Status Should Be    Accepted
""")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.