我有使用java的fitnesse,现在我想用python试试。
我正在尝试使用waferslim,目前无济于事。
我一直在尝试遵循本指南: http ://withaherring.blogspot.co.nz/2009/03/using-waferslim-with-fitnesse.html
我仍在使用以下命令启动服务器:
java -jar fitnesse-standalone.jar -p 8081
那么我在页面上的脚本是:
!define TEST_SYSTEM {slim}
!path /home/calum/python/test-fit/app.py
!define COMMAND_PATTERN {python3 -m waferslim.server --syspath %p }
|Calc|
|A |B |multiply? |
|1 |2 |2 |
|1 |0 |0 |
|3 |5 |15 |
当我运行它时,我得到了很长的堆栈跟踪,这对我来说没有多大意义。(可以提供是否有助于解决问题)
然后我尝试从命令行运行命令:
python3 -m waferslim.server --syspath '/home/calum/python/test-fit/app.py'
这给了我以下痕迹:
Traceback (most recent call last):
File "/usr/lib/python3.2/runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.2/runpy.py", line 73, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.2/dist-packages/waferslim/server.py", line 164, in <module>
start_server()
File "/usr/local/lib/python3.2/dist-packages/waferslim/server.py", line 161, in start_server
WaferSlimServer(options).serve_forever()
File "/usr/local/lib/python3.2/dist-packages/waferslim/server.py", line 85, in __init__
server_address = (options.inethost, int(options.port))
TypeError: int() argument must be a string or a number, not 'NoneType'
谁能建议我哪里出错了?
谢谢