小黑小波比.功能测试登录用户

zmzp@zmzp1:~/data/s910$ node single a
Default Log Start...
x86 don't support memwatch
test> 
可使用下列命令:
	@login app.task.action a:b ;功能调用测试
	@api.app.task.action a=b   ;功能调用测试
	unit <times>               ;为一个目录进行测试
	unit <times>.<testfile>    ;为一个文件进行单元测试
	jshint api                 ;为API目录检测js代码质量
	jshint app                 ;为APP目录检测js代码质量
test> @login sign.auth.login user:as
当前用户:{"key":"test","auth":true,"uid":"00941752c7-2676-4fe4-81e3-dcdc67c93cdf","title":"as","level":1,"logout":false,"authParams":{"p":0,"a":0,"ya":0,"yb":0}}
test> @api.admin.person.read
00941752c7-2676-4fe4-81e3-dcdc67c93cdf
[{"urecord":null,"uimage":"Context/images/1.png","email":null,"telphone":"as","uname":"as","usex":null,"mainsubject":null,"validate":null}]
time:71ms ops:14.084507042253522
test> 
可使用下列命令:
	@login app.task.action a:b ;功能调用测试
	@api.app.task.action a=b   ;功能调用测试
	unit <times>               ;为一个目录进行测试
	unit <times>.<testfile>    ;为一个文件进行单元测试
	jshint api                 ;为API目录检测js代码质量
	jshint app                 ;为APP目录检测js代码质量
test> login sign.auth.login user:ls
可使用下列命令:
	@login app.task.action a:b ;功能调用测试
	@api.app.task.action a=b   ;功能调用测试
	unit <times>               ;为一个目录进行测试
	unit <times>.<testfile>    ;为一个文件进行单元测试
	jshint api                 ;为API目录检测js代码质量
	jshint app                 ;为APP目录检测js代码质量
test> @login sign.auth.login user:ls
当前用户:{"key":"test","auth":true,"uid":"1","title":"任课教师","level":1,"logout":false,"authParams":{"p":0,"a":0,"ya":0,"yb":0}}
test> @api.admin.person.read
1
apis/admin/person/avatar?params={"url":"group1/M00/00/01/wKjHx1RcdA-AFylUAAa4mLt-_Vk513.910"}
[{"urecord":null,"uimage":"apis/admin/person/avatar?params={\"url\":\"group1/M00/00/01/wKjHx1RcdA-AFylUAAa4mLt-_Vk513.910\"}","email":"[email protected]","telphone":"ls","uname":"任课教师","usex":1,"mainsubject":null,"validate":null}]
time:28ms ops:35.714285714285715
test> @api.admin.person.read
1
apis/admin/person/avatar?params={"url":"group1/M00/00/01/wKjHx1RcdA-AFylUAAa4mLt-_Vk513.910"}
[{"urecord":"a","uimage":"apis/admin/person/avatar?params={\"url\":\"group1/M00/00/01/wKjHx1RcdA-AFylUAAa4mLt-_Vk513.910\"}","email":"[email protected]","telphone":"ls","uname":"任课教师","usex":1,"mainsubject":null,"validate":null}]
time:68ms ops:14.705882352941176
test> @api.admin.person.read
1
apis/admin/person/avatar?params={"url":"group1/M00/00/01/wKjHx1RcdA-AFylUAAa4mLt-_Vk513.910"}
[{"urecord":"a","uimage":"apis/admin/person/avatar?params={\"url\":\"group1/M00/00/01/wKjHx1RcdA-AFylUAAa4mLt-_Vk513.910\"}","email":"[email protected]","telphone":"ls","uname":"任课教师","usex":1,"mainsubject":null,"validate":null}]
time:54ms ops:18.51851851851852
test> @api.person.save em=1 tel=1 name1=1 os=1
===ERROR:2014-11-7T16:22:33星期五 
MODULE_NOT_FOUND:Cannot find module '/home/zmzp/data/s910/app/person/'
=========

[TypeError: Property 'save' of object #<Object> is not a function]
test> @api.admin.person.save em=1 tel=1 name1=1 os=1
插入失败!
{"status":2}
time:113ms ops:8.849557522123893
test> @api.admin.person.save em=1
插入失败!
{"status":2}
time:112ms ops:8.928571428571429
test> 
可使用下列命令:
	@login app.task.action a:b ;功能调用测试
	@api.app.task.action a=b   ;功能调用测试
	unit <times>               ;为一个目录进行测试
	unit <times>.<testfile>    ;为一个文件进行单元测试
	jshint api                 ;为API目录检测js代码质量
	jshint app                 ;为APP目录检测js代码质量
test> login sign.auth.login user:ls
可使用下列命令:
	@login app.task.action a:b ;功能调用测试
	@api.app.task.action a=b   ;功能调用测试
	unit <times>               ;为一个目录进行测试
	unit <times>.<testfile>    ;为一个文件进行单元测试
	jshint api                 ;为API目录检测js代码质量
	jshint app                 ;为APP目录检测js代码质量
test> @login sign.auth.login user:ls
当前用户:{"key":"test","auth":true,"uid":"1","title":"任课教师","level":1,"logout":false,"authParams":{"p":0,"a":0,"ya":0,"yb":0}}
test> @api.admin.person.save em=1
插入失败!
{"status":2}
time:21ms ops:47.61904761904762
test> @api.admin.person.save [email protected] tel=110 name1=bobo os=0
插入成功!
{"status":1}
time:76ms ops:13.157894736842104
test> @api.admin.person.save em=41377284 tel=110 name1=bobo os=0
插入成功!
{"status":1}
time:28ms ops:35.714285714285715
test> @api.admin.person.save em=41377284 tel=110 name1=bobo os=1
插入成功!
{"status":1}
time:25ms ops:40
test> @api.admin.person.save em=41377284 tel=a name1=bobo os=1
插入成功!
{"status":1}
time:32ms ops:31.25
test> @api.admin.person.save em=41377284 tel=a name1=bobo os=a
插入失败!
{"status":2}
time:4ms ops:250
test> @api.admin.person.save em=41377284 tel=a name1=bobo os=1
插入成功!
{"status":1}
time:46ms ops:21.73913043478261
test> @api.admin.person.save em=41377284 tel=a name1=bobo os=0
插入成功!
{"status":1}
time:28ms ops:35.714285714285715
test> @api.admin.person.save em=a tel=a name1=bobo os=0
插入成功!
{"status":1}
time:23ms ops:43.47826086956522
test> @api.admin.person.save em=a tel=a name1=a os=0
插入成功!
{"status":1}
time:29ms ops:34.48275862068966
test> @api.admin.person.save em=1 tel=a name1=a os=0
插入成功!
{"status":1}
time:22ms ops:45.45454545454545
test> @api.admin.person.save em=1 tel=1 name1=a os=0
插入失败!
{"status":2}
time:4ms ops:250
test> @api.admin.person.save em=1 tel=a name1=a os=0
插入成功!
{"status":1}
time:27ms ops:37.03703703703704
test> @api.admin.person.save em=1 tel=1 name1=a os=0
插入失败!
{"status":2}
time:35ms ops:28.571428571428573
test> @admin.person.upload file=1
可使用下列命令:
	@login app.task.action a:b ;功能调用测试
	@api.app.task.action a=b   ;功能调用测试
	unit <times>               ;为一个目录进行测试
	unit <times>.<testfile>    ;为一个文件进行单元测试
	jshint api                 ;为API目录检测js代码质量
	jshint app                 ;为APP目录检测js代码质量
test> @api.admin.person.upload file=1
{"failure":false}
time:87ms ops:11.494252873563218
test> @api.admin.person.upload file=1.png
{"failure":false}
time:1ms ops:1000
test>

你可能感兴趣的:(测试,单元测试,小黑小波比)