sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38227
Re: [Question #293980]: RobotFramework: how to get it working (1.1.1 2016-05-25+)
Question #293980 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/293980
Status: Answered => Solved
Shobin confirmed that the question is solved:
I downloaded the latest nightly build 5/24 and ran the test code which
you have provided.
runScript("""
robot
*** Variables ***
${USERNAME} demo
${PASSWORD} mode
${TESTSITE} http://test.sikuli.de
*** Settings ***
Library ./inline/LoginLibrary
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
User cannot log in with invalid user or bad password
Attempt to Login with Credentials betty wrong
Status Should Be Denied
""")
class LoginLibrary(object):
def start_firefox_and_goto_testsite(self, page):
popup("start_firefox_and_goto_testsite")
def stop_firefox(self):
popup("stop_firefox")
def attempt_to_login_with_credentials(self, username, password):
popup("attempt_to_login_with_credentials")
def status_should_be(self, expected):
popup("status_should_be")
This is giving me all the pop ups that you have defined in the python
code. So basically this is working , doesn't need anything else. This
is MUCH MUCH more convenient than the older setup which was a pain.
My issue is resolved now.
Danke RaiMan
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.