在命令提示符

时间:2015-07-30 07:57:02

标签: python pycharm robotframework

我在命令提示符下使用以下代码运行以下行,但我的脚本不是从pycharm启动的:

我正在检查脚本所在的目录:

K:\PycharmProjects\workshop-robot>dir
 Volume in drive K is USER_SHARES
 Volume Serial Number is 569B-2F04

 Directory of K:\PycharmProjects\workshop-robot

28.07.2015  11:37    <DIR>          .
28.07.2015  11:37    <DIR>          ..
23.07.2015  10:12    <DIR>          .idea
27.07.2015  17:37               837 Abbott.robot
24.07.2015  14:20               752 Allianz.robot
24.07.2015  16:08               748 diageo.robot
24.07.2015  16:08               756 freenet_ag.robot
24.07.2015  16:09               770 friesland_campina.robot
28.07.2015  11:37           209.277 log.html
28.07.2015  11:38            12.261 output.xml
28.07.2015  11:37           212.337 report.html
29.07.2015  17:45    <DIR>          resources
28.07.2015  11:37            30.228 selenium-screenshot-1.png
28.07.2015  11:37            30.228 selenium-screenshot-10.png
28.07.2015  11:37            30.228 selenium-screenshot-2.png
28.07.2015  11:37            30.228 selenium-screenshot-3.png
28.07.2015  11:37            30.228 selenium-screenshot-4.png
28.07.2015  11:37            30.228 selenium-screenshot-5.png
28.07.2015  11:37            30.228 selenium-screenshot-6.png
28.07.2015  11:37            30.228 selenium-screenshot-7.png
28.07.2015  11:37            30.228 selenium-screenshot-8.png
28.07.2015  11:37            30.228 selenium-screenshot-9.png
24.07.2015  12:03               760 testcase.robot
              19 File(s)        740.778 bytes
               4 Dir(s)  343.376.748.544 bytes free

我在这里启动命令来运行我的脚本:

K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat testcase.robot

K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat Abbott.robot

K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat Abbott.robot

K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat Abbott.robot

K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat testcase.robot

K:\PycharmProjects\workshop-robot>c:\Python27\Scripts\pybot.bat testcase.robot

你能告诉我为什么我的剧本没有发起

1 个答案:

答案 0 :(得分:0)

问题有点不清楚,但尝试再次使用cmd和pybot运行脚本。该命令应该/看起来像:

pybot \PycharmProjects\workshop-robot.robot