Show sandeep sunread, Oct 12, 2011, 5:20:15 PM10/12/11 to robotframework-users Hi All,I am getting stuck with the below error message, Selber, Heiko (NSN - DE/Berlin)unread, Oct 12, 2011, 5:38:08 PM10/12/11 to , robotframework-users Just a guess: Is there a space character between ‘PATH’ and ‘=’? If so, you are probably setting the environment variable ‘PATH ‘ (with a space at the end) instead of ‘PATH’. Try whether removing the space helps. sandeep sunread, Oct 12, 2011, 7:07:31 PM10/12/11 to Selber, Heiko (NSN - DE/Berlin), robotframework-users The issue got solved; but not the right way. c:\Python27\Scripts\pybot.bat --xunitfile xunitreport --timestampoutputs --report report.html --outputdir C:\OutResult DashBoard_autoRefresh\*.html - worked doing the above solved..but i m still confused with ; why it didnt work with pybot.bat --xunitfile xunitreport --timestampoutputs --report report.html --outputdir C:\OutResult DashBoard_autoRefresh\*.html set path is working fine without any issues :)... Sandeep Selber, Heiko (NSN - DE/Berlin)unread, Oct 12, 2011, 8:25:51 PM10/12/11 to ext sandeep s, robotframework-users Excuse me if I insist, but I still think the problem is the way you tried to set the path. Look at this batch file. It tries to set the path in 2 different ways, first the way you did, then without the space. ==== BEGIN setpath.bat ==== rem clear variables set PATH= set PATH = rem set path wrongly set PATH = C:\Python27\Scripts echo "PATH"=%PATH% echo "PATH "=%PATH % rem will fail pybot --version rem set path correctly set PATH=C:\Python27\Scripts echo "PATH"=%PATH% echo "PATH "=%PATH % pybot --version ==== END setpath.bat ==== The first attempt fails, the second one succeeds, at least here on Windows 7: ==== BEGIN console output ==== C:\>setpath.bat C:\>rem clear variables C:\>set PATH= C:\>set PATH = C:\>rem set path wrongly C:\>set PATH = C:\Python27\Scripts C:\>echo "PATH"= "PATH"= C:\>echo "PATH "= C:\Python27\Scripts "PATH "= C:\Python27\Scripts C:\>rem will fail C:\>pybot --version 'pybot' is not recognized as an internal or external command, operable program or batch file. C:\>rem set path correctly C:\>set PATH=C:\Python27\Scripts C:\>echo "PATH"=C:\Python27\Scripts "PATH"=C:\Python27\Scripts C:\>echo "PATH "= C:\Python27\Scripts "PATH "= C:\Python27\Scripts C:\>pybot --version Robot Framework 2.6.3 (Python 2.7.2 on win32) C:\> ==== END console output ==== BTW: You might want to use set PATH=%PATH%;C:\Python27\Scripts in order to preserve the existing content of PATH (which includes python itself). How do I run a robot file in Python?Step 1: Install Python. Visit the following website to download Python software. ... . Step 2: Configure Environment Variables. After installing Python and pip, you should configure environment variables by adding the path. ... . Step 3: Install Robot Framework. ... . Step 4: Install wxPython. ... . Step 5: Install RIDE.. How do I run a robot from command line?To run test cases with specific tag name included use --include or -i option:. # execute test cases with tag "one" in any file. robot --include one . ... . # execute test cases containing name "Example" in any file. robot --test *Example* . ... . # execute test cases containing name "Example" and having tag "One" in any file.. How do I run a robot file in Pycharm?New Robot Run Configuration. Open Edit Run Configurations dialog.. Click Add New Configuration button (plus icon at the top left panel).. Choose Robot Runner option.. Choose a Python interpreter from dropdown list (you must setup Python SDK beforehand).. Setup other options as you want.. Click Apply button.. Where is Robot Framework installed?Robot Framework itself is installed under the Python installation directory. Its startup scripts can be found from [PYTHON]\Scripts and code from [PYTHON]\Lib\site-packages.
|