SyntaxError: invalid syntax

587 views
Skip to first unread message

somit

unread,
Feb 22, 2016, 5:14:54 AM2/22/16
to robotframework-users
getting error at initial level

C:\Users\somit\Desktop>python Test_fa1.txt
  File "Test_fa1.txt", line 1
    *** Settings ***
     ^
SyntaxError: invalid syntax

How to slove this?

Hélio Guilherme

unread,
Feb 22, 2016, 5:19:55 AM2/22/16
to robotframework-users
You are trying to run in Python a Robot Framework test file. You should use "pybot" or "robot" for that.

Python programs usually have the .py filename extension.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Mallikarjunarao Kosuri

unread,
Feb 22, 2016, 8:29:32 PM2/22/16
to robotframework-users
If you are in Python 3 and Robotframework 3, use

python -m robot Test_fa1.txt
Reply all
Reply to author
Forward
0 new messages