zy:add test case

This commit is contained in:
lovelyzhang 2016-12-25 14:02:06 +08:00
commit 3416ad6bb6
2 changed files with 127 additions and 0 deletions

View File

@ -0,0 +1 @@
第一个测试用例

View File

@ -181085,3 +181085,129 @@ Processing by ChatController#notify as JSON
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:58:46 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:58:56 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:59:06 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:59:16 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:59:26 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:59:36 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:59:46 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 13:59:56 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:00:06 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:00:16 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:00:26 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:00:36 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:00:46 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:00:56 +0800
Processing by ChatController#notify as JSON
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:01:06 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:01:16 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:01:26 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
Started GET "/notify" for 127.0.0.1 at 2016-12-25 14:01:36 +0800
Processing by ChatController#notify as JSON
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
 (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]]
Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)