Re: Pybot is not recognised as and internal and external command

8,641 views
Skip to first unread message

Bart Vanherck

unread,
Apr 26, 2013, 3:05:07 AM4/26/13
to ranjana...@gmail.com, robotframe...@googlegroups.com
Ranjana ,

I do have also C:\python27 in my path. That should solve the error I assume.

Regards,

Bart


2013/4/25 Ranjana <ranjana...@gmail.com>
Hi ,
 
I wanted to start with robotframwork,for that
1. i have installed Python27,it looks like C:\Python27 in my system(windows 7 32 bit).
2.I have installed jython also ,it looks C:\jython2.5.3.
3. set the path as C:\Python27\Scripts
4.Installed robotframwork  robotframework-2.7.7.win32
5.I can see jybot,pybot files in C:\Python27\Scripts  folder.
 
I have started writting test cases in text file ..and trying to execute but getting error as  'Pybot' is not recognised as and internal and external command
 
when i tries to fire command pybot ---version..it is giving me error as Python  is not recognised as and internal and external command.
 
Can sumbody help me sorting out this.
 
 
Also wants help in start up with this framwork from eclips.
 
 
Many Thanks in advanced
 
Ranjana
 

--
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 http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ranjana NAwkhare

unread,
Apr 30, 2013, 3:17:53 AM4/30/13
to sova....@gmail.com, Bart Vanherck, robotframe...@googlegroups.com
Hello,
 
I just trying  this once again..
C:\Python27>pybot C:\mydata\RFramework\Demo\myFirstTest.txt
[ ERROR ] Error in file 'C:\mydata\RFramework\Demo\common.txt' in table 'Setting
s': Importing test library 'SeleniumLibrary' failed: ImportError: No module name
d SeleniumLibrary
Traceback (most recent call last):
  None
PYTHONPATH:
  C:\Python27\lib\site-packages\robot\libraries
  C:\Python27\lib\site-packages
  C:\WINDOWS\system32\python27.zip
  C:\Python27\DLLs
  C:\Python27\lib
  C:\Python27\lib\plat-win
  C:\Python27\lib\lib-tk
  C:\Python27
  .
==============================================================================
myFirstTest :: This is our first test case.
==============================================================================
Go To Google Page[Documentation] Go to google page and serch somet... | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
Open Browser to Google Page                                           | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
Input Search tieto                                                    | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
Submit Search                                                         | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
Open Tieto Page [Documentation] Testcase for open Selenium page       | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
Click tieto Link                                                      | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
tieto page should Open                                                | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
[Teardown] close browser                                              | FAIL |
Test case contains no keywords
------------------------------------------------------------------------------
myFirstTest :: This is our first test case.                           | FAIL |
8 critical tests, 0 passed, 8 failed
8 tests total, 0 passed, 8 failed
==============================================================================
Output:  C:\Python27\output.xml
Log:     C:\Python27\log.html
Report:  C:\Python27\report.html
 
 
 
 
 
 
 
 
 
What can be  the reason ,i have started selenium server on another command proomt ..
n What can the solution..can u guide me step by step


On Fri, Apr 26, 2013 at 7:57 PM, Peter Sova <sova....@gmail.com> wrote:
Dont forget to restart command line...

Ed Manlove

unread,
Apr 30, 2013, 7:18:23 AM4/30/13
to ranjana...@gmail.com, sova....@gmail.com, Bart Vanherck, robotframe...@googlegroups.com
Reading through the output below your error is ...

Ranjana NAwkhare wrote:
> Hello,
> I just trying this once again..
> C:\Python27>pybot C:\mydata\RFramework\Demo\myFirstTest.txt
> [ ERROR ] Error in file 'C:\mydata\RFramework\Demo\common.txt' in
> table 'Setting
*** Here ***
> s': Importing test library 'SeleniumLibrary' failed: ImportError: No
> module name
> d SeleniumLibrary
*** Here ***
> Traceback (most recent call last):
> None
> PYTHONPATH:
> C:\Python27\lib\site-packages\robot\libraries
> C:\Python27\lib\site-packages
> C:\WINDOWS\system32\python27.zip
> C:\Python27\DLLs
> C:\Python27\lib
> C:\Python27\lib\plat-win
> C:\Python27\lib\lib-tk
> C:\Python27
> .

Python can't find the Selenium Library module. Not sure of your method
for installation but I would recommend using pip,

c:\pip install robotframework-seleniumlibrary

and there is additional installation instructions on the google code
site [1]. Also if you are writing new tests and not already using the
SeleniumLibrary on older tests it might be recommended to use the newer
Selenium2Library [2] and the older Selenium Library is no longer being
maintained.

Ed

[1]
http://code.google.com/p/robotframework-seleniumlibrary/wiki/InstallationInstructions
[2] https://github.com/rtomac/robotframework-selenium2library

Ranjana NAwkhare

unread,
Apr 30, 2013, 8:26:11 AM4/30/13
to Ed Manlove, sova....@gmail.com, Bart Vanherck, robotframe...@googlegroups.com
yes,I have tried your option before posting it..i have installed it properly.I can see C:\Python27\Lib\site-packages\Selenium2Library folder as well.
Restarted cmd promt and selenium server as well.
C:\Python27>pybot C:\mydata\RFramework\Demo\myFirstTest.txt
[ ERROR ] Error in file 'C:\mydata\RFramework\Demo\common.txt' in table 'Setting
s': Importing test library 'SeleniumLibrary' failed: ImportError: No module name
d SeleniumLibrary
Traceback (most recent call last):
  None
PYTHONPATH:
  C:\Python27\lib\site-packages\robot\libraries
  C:\Python27\lib\site-packages
  C:\WINDOWS\system32\python27.zip
  C:\Python27\DLLs
  C:\Python27\lib
  C:\Python27\lib\plat-win
  C:\Python27\lib\lib-tk
  C:\Python27

Ed Manlove

unread,
Apr 30, 2013, 8:33:36 AM4/30/13
to ranjana...@gmail.com, robotframe...@googlegroups.com
Ranjana,

You have Selenium2Library install but it looks like you are calling SeleniumLibrary instead. Look at your test file and change the library setting to Selenium2Library, something like

Library  Selenium2Library

or someone else is calling the SeleniumLibrary while you have the newer Selenium2Library installed.

Ed

Ranjana NAwkhare

unread,
May 2, 2013, 4:25:03 AM5/2/13
to Ed Manlove, robotframe...@googlegroups.com
Thank you ,my above problem has solved.
 
Please help me in resolving below issue.
[ ERROR ] Error in file 'C:\mydata\RFramework\Demo\common.txt' in table 'Setting
s': Importing test library 'Selenium2Library' failed: ImportError: No module nam
ed decorator

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\Selenium2Library\__init__.py", line 2, in
<module>
    from keywords import *
  File "C:\Python27\lib\site-packages\Selenium2Library\keywords\__init__.py", li
ne 1, in <module>
    from _logging import _LoggingKeywords
  File "C:\Python27\lib\site-packages\Selenium2Library\keywords\_logging.py", li
ne 5, in <module>
    from keywordgroup import KeywordGroup
  File "C:\Python27\lib\site-packages\Selenium2Library\keywords\keywordgroup.py"
, line 4, in <module>
    from decorator import decorator

PYTHONPATH:
  C:\Python27\lib\site-packages\robot\libraries
  C:\Python27\lib\site-packages
  C:\WINDOWS\system32\python27.zip
  C:\Python27\DLLs
  C:\Python27\lib
  C:\Python27\lib\plat-win
  C:\Python27\lib\lib-tk
  C:\Python27\Scripts
  C:\Python27
  .
  C:\mydata\RFramework\Demo

Tatu Aalto

unread,
May 2, 2013, 6:25:50 AM5/2/13
to ranjana...@gmail.com, Ed Manlove, robotframe...@googlegroups.com
Ugh

This error is usually caused by not installing dependencies for Selenium2Library. Please follow the Selenium2Library installation instructions [1].

-Tatu
[1] https://github.com/rtomac/robotframework-selenium2library/blob/master/INSTALL.rst

Ranjana NAwkhare

unread,
May 6, 2013, 8:01:58 AM5/6/13
to Tatu Aalto, Ed Manlove, robotframe...@googlegroups.com
My test is running properly when i mention browser as chrome.But it wont run for firefox.Does anybody give me idea what to do ...
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
test2                                                                                  | FAIL |
TypeError: environment can only contain strings

Tatu Aalto

unread,
May 6, 2013, 9:01:44 AM5/6/13
to Ranjana NAwkhare, Ed Manlove, robotframe...@googlegroups.com
Ugh

For some reason the browser was not open when 'Capture Page Screenshot' keyword was executed. This could be caused by many things, could send test suite and the log files (report.html, log.html and output.xml) and it might be that we are able to provide better answer.

-Tatu

Kevin O.

unread,
May 6, 2013, 9:24:09 AM5/6/13
to robotframe...@googlegroups.com
Take a look at this topic.

Ranjana NAwkhare

unread,
May 7, 2013, 4:19:54 AM5/7/13
to korm...@gmail.com, robotframe...@googlegroups.com
My browser is 16.0.2 FF version.
herein attached log.
Can you also guide me how to change the path of generated report,log n output file.


On Mon, May 6, 2013 at 6:54 PM, Kevin O. <korm...@gmail.com> wrote:
Take a look at this topic.
log.jpg

Tatu aalto

unread,
May 9, 2013, 4:22:46 AM5/9/13
to robotframe...@googlegroups.com, korm...@gmail.com
Ugh

Most likely Kevin right and you should do what is mentioned in the other thread/topic.

-Tatu


On Tuesday, 7 May 2013 11:19:54 UTC+3, Ranjana wrote:
My browser is 16.0.2 FF version.
herein attached log.
Can you also guide me how to change the path of generated report,log n output file.
On Mon, May 6, 2013 at 6:54 PM, Kevin O. <korm...@gmail.com> wrote:
Take a look at this topic.


--
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-users+unsub...@googlegroups.com.

Kevin O.

unread,
May 9, 2013, 9:24:40 AM5/9/13
to robotframe...@googlegroups.com, korm...@gmail.com
To see how to change execution options such as log location, type:
pybot --help
and look at the output

Reply all
Reply to author
Forward
0 new messages