NameError: name 'robot' is not defined Error on running my script
Hi,
I get the following error when i execute my Sikuli script, Seen this only for few of my scripts , Not sure why.
I used the same robo class syntax used in the script which executed without below error
<code used>
from sikuli import*
runScript("""
robot
*** Variables ***
${USERNAME} demo
${PASSWORD} mode
${TESTSITE} http://
*** Settings ***
Library ./inline/
Test Setup launch application
Test Teardown stop application
*** Test Cases ***
TC-18 :Validate library material transluency shade are disabled for non restoration
Create patient
""")
class LoginLibrary(
def launch_
#write code to launch dc#
<CODE>
def stop_applicatio
#write code to stop dc#
popup(
def Create_
#Code to create patient#
<CODE>
<ERROR I GOT>
[error] JythonSupport: exec: returns: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\
from robot.rebot import rebot, rebot_cli
File "C:\Users\
from robot.conf import RebotSettings
File "C:\Users\
from .settings import RobotSettings, RebotSettings
File "C:\Users\
from robot.output import LOGGER, loggerhelper
File "C:\Users\
from .output import Output
File "C:\Users\
from . import pyloggingconf
File "C:\Users\
\Sikulix\
from robot import utils
File "C:\Users\
from .robottime import (elapsed_
File "C:\Users\
import datetime
File "C:\Sikuli\
File "C:\Sikuli\
ImportError: datetime.sikuli has no datetime.py
[error] JythonSupport: exec: returns: Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'robot' is not defined
All theese days , all my sikuli scripts run great . not sure why this error is caused.
Please Help.
Thanks in advance
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Test App
- Solved:
- Last query:
- Last reply: