Commit 1ee44c8e12d31dbd3f49d364fd0a37c969b7e17a

Authored by yangfan
1 parent b24969ff

加菜

@@ -21,6 +21,7 @@ def get_content_type(data): @@ -21,6 +21,7 @@ def get_content_type(data):
21 21
22 def get_orderid(content): 22 def get_orderid(content):
23 print("11111111111") 23 print("11111111111")
  24 + print content
24 print content[0]["id"] 25 print content[0]["id"]
25 orderid = int(content[0]["id"]) 26 orderid = int(content[0]["id"])
26 print orderid 27 print orderid
No preview for this file type
  1 +<head>
  2 + <meta content="text/html; charset=utf-8" http-equiv="content-type" />
  3 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4 + <title> - TestReport</title>
  5 + <style>
  6 + body {
  7 + background-color: #f2f2f2;
  8 + color: #333;
  9 + margin: 0 auto;
  10 + width: 960px;
  11 + }
  12 + #summary, #details {
  13 + width: 960px;
  14 + }
  15 + #summary th {
  16 + background-color: skyblue;
  17 + padding: 5px 12px;
  18 + }
  19 + #summary td {
  20 + background-color: lightblue;
  21 + text-align: center;
  22 + padding: 4px 8px;
  23 + }
  24 + #details th {
  25 + background-color: skyblue;
  26 + padding: 5px 12px;
  27 + }
  28 + #details td {
  29 + background-color: lightblue;
  30 + padding: 5px 12px;
  31 + }
  32 + #details .detail {
  33 + background-color: lightgrey;
  34 + font-size: smaller;
  35 + padding: 5px 10px;
  36 + text-align: center;
  37 + }
  38 + #details .success {
  39 + background-color: greenyellow;
  40 + }
  41 + #details .error {
  42 + background-color: red;
  43 + }
  44 + #details .failure {
  45 + background-color: salmon;
  46 + }
  47 + #details .skipped {
  48 + background-color: gray;
  49 + }
  50 +
  51 + .button {
  52 + font-size: 1em;
  53 + padding: 6px;
  54 + width: 4em;
  55 + text-align: center;
  56 + background-color: #06d85f;
  57 + border-radius: 20px/50px;
  58 + cursor: pointer;
  59 + transition: all 0.3s ease-out;
  60 + }
  61 + a.button{
  62 + color: gray;
  63 + text-decoration: none;
  64 + }
  65 + .button:hover {
  66 + background: #2cffbd;
  67 + }
  68 +
  69 + .overlay {
  70 + position: fixed;
  71 + top: 0;
  72 + bottom: 0;
  73 + left: 0;
  74 + right: 0;
  75 + background: rgba(0, 0, 0, 0.7);
  76 + transition: opacity 500ms;
  77 + visibility: hidden;
  78 + opacity: 0;
  79 + }
  80 + .overlay:target {
  81 + visibility: visible;
  82 + opacity: 1;
  83 + }
  84 +
  85 + .popup {
  86 + margin: 70px auto;
  87 + padding: 20px;
  88 + background: #fff;
  89 + border-radius: 5px;
  90 + width: 30%;
  91 + position: relative;
  92 + transition: all 5s ease-in-out;
  93 + }
  94 +
  95 + .popup h2 {
  96 + margin-top: 0;
  97 + color: #333;
  98 + font-family: Tahoma, Arial, sans-serif;
  99 + }
  100 + .popup .close {
  101 + position: absolute;
  102 + top: 20px;
  103 + right: 30px;
  104 + transition: all 200ms;
  105 + font-size: 30px;
  106 + font-weight: bold;
  107 + text-decoration: none;
  108 + color: #333;
  109 + }
  110 + .popup .close:hover {
  111 + color: #06d85f;
  112 + }
  113 + .popup .content {
  114 + max-height: 30%;
  115 + overflow: auto;
  116 + text-align: left;
  117 + }
  118 +
  119 + @media screen and (max-width: 700px) {
  120 + .box {
  121 + width: 70%;
  122 + }
  123 + .popup {
  124 + width: 70%;
  125 + }
  126 + }
  127 +
  128 + </style>
  129 +</head>
  130 +
  131 +<body>
  132 + <h1>Test Report: </h1>
  133 +
  134 + <h2>Summary</h2>
  135 + <table id="summary">
  136 +
  137 + <tr>
  138 + <th>START AT</th>
  139 + <td colspan="4">2018-04-03 16:02:59</td>
  140 + </tr>
  141 + <tr>
  142 + <th>DURATION</th>
  143 + <td colspan="4">0.756 seconds</td>
  144 + </tr>
  145 + <tr>
  146 + <th>PLATFORM</th>
  147 + <td>HttpRunner 1.0.0 </td>
  148 + <td>CPython 2.7.10 </td>
  149 + <td colspan="2">Darwin-14.5.0-x86_64-i386-32bit</td>
  150 + </tr>
  151 + <tr>
  152 + <th>TOTAL</th>
  153 + <th>SUCCESS</th>
  154 + <th>FAILED</th>
  155 + <th>ERROR</th>
  156 + <th>SKIPPED</th>
  157 + <!-- <th>ExpectedFailure</th>
  158 + <th>UnexpectedSuccess</th> -->
  159 + </tr>
  160 + <tr>
  161 + <td>10</td>
  162 + <td>9</td>
  163 + <td>0</td>
  164 + <td>1</td>
  165 + <td>0</td>
  166 + <!-- <td>0</td>
  167 + <td>0</td> -->
  168 + </tr>
  169 + </table>
  170 +
  171 + <h2>Details</h2>
  172 + <table id="details">
  173 + <tr>
  174 + <th>Status</th>
  175 + <th>Name</th>
  176 + <th>Response Time</th>
  177 + <th>Detail</th>
  178 + </tr>
  179 +
  180 + <tr>
  181 + <th class="success" style="width:5em;">success</td>
  182 + <td>21桌 顾客扫桌码</td>
  183 + <td style="text-align:center;width:6em;">179.0 ms</td>
  184 + <td class="detail">
  185 +
  186 + <a class="button" href="#popup_log_1">log</a>
  187 + <div id="popup_log_1" class="overlay">
  188 + <div class="popup">
  189 + <h2>Request and Response data</h2>
  190 + <a class="close" href="#">&times;</a>
  191 + <div class="content"><pre>{
  192 + "content_size": 493,
  193 + "elapsed": 0.175193,
  194 + "method": "POST",
  195 + "request_body": "openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026remark=%E8%BF%99%E6%98%AF21%E6%A1%8C%E7%9A%84%E5%A4%87%E6%B3%A8\u0026remarkid=1\u0026pnum=8\u0026tableid=21\u0026sellerid=4",
  196 + "request_headers": {
  197 + "Accept": "*/*",
  198 + "Accept-Encoding": "gzip, deflate",
  199 + "Connection": "keep-alive",
  200 + "Content-Length": "139",
  201 + "Content-Type": "application/x-www-form-urlencoded",
  202 + "User-Agent": "python-requests/2.18.4"
  203 + },
  204 + "request_time": 1522742579.269128,
  205 + "response_body": "{\"ret\":200,\"data\":[{\"id\":\"28\",\"no\":\"87083608\",\"pnum\":\"8\",\"sellerid\":\"4\",\"tableid\":\"21\",\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"price\":null,\"status\":\"1\",\"remark\":\"\\u8fd9\\u662f21\\u684c\\u7684\\u5907\\u6ce8\",\"remarkid\":\"1\",\"type\":null,\"phone\":null,\"cdate\":\"1522741607\",\"table\":{\"id\":\"21\",\"rid\":\"2\",\"sellerid\":\"4\",\"name\":\"\\u554a\\u554a\\u554a\\u4e00\",\"table_pnum\":\"5\",\"tid\":\"0\",\"order_o\":\"12\",\"status\":\"1\",\"enable\":\"0\",\"cdate\":\"1522650111\",\"region_name\":\"\\u554a\\u554a\\u554a\",\"type_name\":\"\"}}],\"msg\":\"\"}",
  206 + "response_headers": {
  207 + "Connection": "keep-alive",
  208 + "Content-Encoding": "gzip",
  209 + "Content-Type": "application/json;charset=utf-8",
  210 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  211 + "Server": "nginx/1.13.5",
  212 + "Transfer-Encoding": "chunked",
  213 + "X-Powered-By": "PHP/5.6.9"
  214 + },
  215 + "response_time": 179,
  216 + "status_code": 200,
  217 + "url": "/?s=App.Orders.CreateOrder"
  218 +}</pre></div>
  219 + </div>
  220 + </div>
  221 +
  222 +
  223 +
  224 + </td>
  225 + </tr>
  226 +
  227 + <tr>
  228 + <th class="success" style="width:5em;">success</td>
  229 + <td>21桌 添加一个有规格有做法菜品</td>
  230 + <td style="text-align:center;width:6em;">64.0 ms</td>
  231 + <td class="detail">
  232 +
  233 + <a class="button" href="#popup_log_2">log</a>
  234 + <div id="popup_log_2" class="overlay">
  235 + <div class="popup">
  236 + <h2>Request and Response data</h2>
  237 + <a class="close" href="#">&times;</a>
  238 + <div class="content"><pre>{
  239 + "content_size": 228,
  240 + "elapsed": 0.063918,
  241 + "method": "POST",
  242 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026specid=7\u0026cookbookid=6\u0026practiceid=3",
  243 + "request_headers": {
  244 + "Accept": "*/*",
  245 + "Accept-Encoding": "gzip, deflate",
  246 + "Connection": "keep-alive",
  247 + "Content-Length": "81",
  248 + "Content-Type": "application/x-www-form-urlencoded",
  249 + "User-Agent": "python-requests/2.18.4"
  250 + },
  251 + "request_time": 1522742579.455925,
  252 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":6,\"specid\":7,\"practiceid\":3,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522742579,\"id\":\"508\",\"countTotal\":1,\"countPirce\":68}],\"msg\":\"\"}",
  253 + "response_headers": {
  254 + "Connection": "keep-alive",
  255 + "Content-Encoding": "gzip",
  256 + "Content-Type": "application/json;charset=utf-8",
  257 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  258 + "Server": "nginx/1.13.5",
  259 + "Transfer-Encoding": "chunked",
  260 + "X-Powered-By": "PHP/5.6.9"
  261 + },
  262 + "response_time": 64,
  263 + "status_code": 200,
  264 + "url": "/?s=App.Orders.AddCart"
  265 +}</pre></div>
  266 + </div>
  267 + </div>
  268 +
  269 +
  270 +
  271 + </td>
  272 + </tr>
  273 +
  274 + <tr>
  275 + <th class="success" style="width:5em;">success</td>
  276 + <td>21桌 添加一个有规格无做法菜品</td>
  277 + <td style="text-align:center;width:6em;">57.0 ms</td>
  278 + <td class="detail">
  279 +
  280 + <a class="button" href="#popup_log_3">log</a>
  281 + <div id="popup_log_3" class="overlay">
  282 + <div class="popup">
  283 + <h2>Request and Response data</h2>
  284 + <a class="close" href="#">&times;</a>
  285 + <div class="content"><pre>{
  286 + "content_size": 232,
  287 + "elapsed": 0.056996,
  288 + "method": "POST",
  289 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026specid=4\u0026cookbookid=3",
  290 + "request_headers": {
  291 + "Accept": "*/*",
  292 + "Accept-Encoding": "gzip, deflate",
  293 + "Connection": "keep-alive",
  294 + "Content-Length": "68",
  295 + "Content-Type": "application/x-www-form-urlencoded",
  296 + "User-Agent": "python-requests/2.18.4"
  297 + },
  298 + "request_time": 1522742579.522038,
  299 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":3,\"specid\":4,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522742579,\"id\":\"509\",\"countTotal\":2,\"countPirce\":136}],\"msg\":\"\"}",
  300 + "response_headers": {
  301 + "Connection": "keep-alive",
  302 + "Content-Encoding": "gzip",
  303 + "Content-Type": "application/json;charset=utf-8",
  304 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  305 + "Server": "nginx/1.13.5",
  306 + "Transfer-Encoding": "chunked",
  307 + "X-Powered-By": "PHP/5.6.9"
  308 + },
  309 + "response_time": 57,
  310 + "status_code": 200,
  311 + "url": "/?s=App.Orders.AddCart"
  312 +}</pre></div>
  313 + </div>
  314 + </div>
  315 +
  316 +
  317 +
  318 + </td>
  319 + </tr>
  320 +
  321 + <tr>
  322 + <th class="success" style="width:5em;">success</td>
  323 + <td>21桌 添加一个普通菜品</td>
  324 + <td style="text-align:center;width:6em;">57.0 ms</td>
  325 + <td class="detail">
  326 +
  327 + <a class="button" href="#popup_log_4">log</a>
  328 + <div id="popup_log_4" class="overlay">
  329 + <div class="popup">
  330 + <h2>Request and Response data</h2>
  331 + <a class="close" href="#">&times;</a>
  332 + <div class="content"><pre>{
  333 + "content_size": 235,
  334 + "elapsed": 0.056664,
  335 + "method": "POST",
  336 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=9",
  337 + "request_headers": {
  338 + "Accept": "*/*",
  339 + "Accept-Encoding": "gzip, deflate",
  340 + "Connection": "keep-alive",
  341 + "Content-Length": "59",
  342 + "Content-Type": "application/x-www-form-urlencoded",
  343 + "User-Agent": "python-requests/2.18.4"
  344 + },
  345 + "request_time": 1522742579.58123,
  346 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":9,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522742579,\"id\":\"510\",\"countTotal\":3,\"countPirce\":162}],\"msg\":\"\"}",
  347 + "response_headers": {
  348 + "Connection": "keep-alive",
  349 + "Content-Encoding": "gzip",
  350 + "Content-Type": "application/json;charset=utf-8",
  351 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  352 + "Server": "nginx/1.13.5",
  353 + "Transfer-Encoding": "chunked",
  354 + "X-Powered-By": "PHP/5.6.9"
  355 + },
  356 + "response_time": 57,
  357 + "status_code": 200,
  358 + "url": "/?s=App.Orders.AddCart"
  359 +}</pre></div>
  360 + </div>
  361 + </div>
  362 +
  363 +
  364 +
  365 + </td>
  366 + </tr>
  367 +
  368 + <tr>
  369 + <th class="success" style="width:5em;">success</td>
  370 + <td>21桌 添加一个沽清数量为2的菜品</td>
  371 + <td style="text-align:center;width:6em;">57.0 ms</td>
  372 + <td class="detail">
  373 +
  374 + <a class="button" href="#popup_log_5">log</a>
  375 + <div id="popup_log_5" class="overlay">
  376 + <div class="popup">
  377 + <h2>Request and Response data</h2>
  378 + <a class="close" href="#">&times;</a>
  379 + <div class="content"><pre>{
  380 + "content_size": 236,
  381 + "elapsed": 0.056483,
  382 + "method": "POST",
  383 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=11",
  384 + "request_headers": {
  385 + "Accept": "*/*",
  386 + "Accept-Encoding": "gzip, deflate",
  387 + "Connection": "keep-alive",
  388 + "Content-Length": "60",
  389 + "Content-Type": "application/x-www-form-urlencoded",
  390 + "User-Agent": "python-requests/2.18.4"
  391 + },
  392 + "request_time": 1522742579.640106,
  393 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":11,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522742579,\"id\":\"511\",\"countTotal\":4,\"countPirce\":231}],\"msg\":\"\"}",
  394 + "response_headers": {
  395 + "Connection": "keep-alive",
  396 + "Content-Encoding": "gzip",
  397 + "Content-Type": "application/json;charset=utf-8",
  398 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  399 + "Server": "nginx/1.13.5",
  400 + "Transfer-Encoding": "chunked",
  401 + "X-Powered-By": "PHP/5.6.9"
  402 + },
  403 + "response_time": 57,
  404 + "status_code": 200,
  405 + "url": "/?s=App.Orders.AddCart"
  406 +}</pre></div>
  407 + </div>
  408 + </div>
  409 +
  410 +
  411 +
  412 + </td>
  413 + </tr>
  414 +
  415 + <tr>
  416 + <th class="success" style="width:5em;">success</td>
  417 + <td>21桌 再次添加一个沽清数量为2的菜品</td>
  418 + <td style="text-align:center;width:6em;">57.0 ms</td>
  419 + <td class="detail">
  420 +
  421 + <a class="button" href="#popup_log_6">log</a>
  422 + <div id="popup_log_6" class="overlay">
  423 + <div class="popup">
  424 + <h2>Request and Response data</h2>
  425 + <a class="close" href="#">&times;</a>
  426 + <div class="content"><pre>{
  427 + "content_size": 236,
  428 + "elapsed": 0.056366,
  429 + "method": "POST",
  430 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=11",
  431 + "request_headers": {
  432 + "Accept": "*/*",
  433 + "Accept-Encoding": "gzip, deflate",
  434 + "Connection": "keep-alive",
  435 + "Content-Length": "60",
  436 + "Content-Type": "application/x-www-form-urlencoded",
  437 + "User-Agent": "python-requests/2.18.4"
  438 + },
  439 + "request_time": 1522742579.698744,
  440 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":11,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522742579,\"id\":\"512\",\"countTotal\":5,\"countPirce\":300}],\"msg\":\"\"}",
  441 + "response_headers": {
  442 + "Connection": "keep-alive",
  443 + "Content-Encoding": "gzip",
  444 + "Content-Type": "application/json;charset=utf-8",
  445 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  446 + "Server": "nginx/1.13.5",
  447 + "Transfer-Encoding": "chunked",
  448 + "X-Powered-By": "PHP/5.6.9"
  449 + },
  450 + "response_time": 57,
  451 + "status_code": 200,
  452 + "url": "/?s=App.Orders.AddCart"
  453 +}</pre></div>
  454 + </div>
  455 + </div>
  456 +
  457 +
  458 +
  459 + </td>
  460 + </tr>
  461 +
  462 + <tr>
  463 + <th class="success" style="width:5em;">success</td>
  464 + <td>22桌 顾客扫桌码</td>
  465 + <td style="text-align:center;width:6em;">56.0 ms</td>
  466 + <td class="detail">
  467 +
  468 + <a class="button" href="#popup_log_7">log</a>
  469 + <div id="popup_log_7" class="overlay">
  470 + <div class="popup">
  471 + <h2>Request and Response data</h2>
  472 + <a class="close" href="#">&times;</a>
  473 + <div class="content"><pre>{
  474 + "content_size": 493,
  475 + "elapsed": 0.055608,
  476 + "method": "POST",
  477 + "request_body": "openid=o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\u0026remark=%E8%BF%99%E6%98%AF22%E6%A1%8C%E7%9A%84%E5%A4%87%E6%B3%A8\u0026remarkid=2\u0026pnum=8\u0026tableid=22\u0026sellerid=4",
  478 + "request_headers": {
  479 + "Accept": "*/*",
  480 + "Accept-Encoding": "gzip, deflate",
  481 + "Connection": "keep-alive",
  482 + "Content-Length": "139",
  483 + "Content-Type": "application/x-www-form-urlencoded",
  484 + "User-Agent": "python-requests/2.18.4"
  485 + },
  486 + "request_time": 1522742579.757087,
  487 + "response_body": "{\"ret\":200,\"data\":[{\"id\":\"29\",\"no\":\"99659978\",\"pnum\":\"8\",\"sellerid\":\"4\",\"tableid\":\"22\",\"openid\":\"o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\",\"price\":null,\"status\":\"1\",\"remark\":\"\\u8fd9\\u662f22\\u684c\\u7684\\u5907\\u6ce8\",\"remarkid\":\"2\",\"type\":null,\"phone\":null,\"cdate\":\"1522741607\",\"table\":{\"id\":\"22\",\"rid\":\"2\",\"sellerid\":\"4\",\"name\":\"\\u554a\\u554a\\u554a\\u4e00\",\"table_pnum\":\"9\",\"tid\":\"0\",\"order_o\":\"13\",\"status\":\"1\",\"enable\":\"0\",\"cdate\":\"1522650015\",\"region_name\":\"\\u554a\\u554a\\u554a\",\"type_name\":\"\"}}],\"msg\":\"\"}",
  488 + "response_headers": {
  489 + "Connection": "keep-alive",
  490 + "Content-Encoding": "gzip",
  491 + "Content-Type": "application/json;charset=utf-8",
  492 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  493 + "Server": "nginx/1.13.5",
  494 + "Transfer-Encoding": "chunked",
  495 + "X-Powered-By": "PHP/5.6.9"
  496 + },
  497 + "response_time": 56,
  498 + "status_code": 200,
  499 + "url": "/?s=App.Orders.CreateOrder"
  500 +}</pre></div>
  501 + </div>
  502 + </div>
  503 +
  504 +
  505 +
  506 + </td>
  507 + </tr>
  508 +
  509 + <tr>
  510 + <th class="success" style="width:5em;">success</td>
  511 + <td>22桌 添加一个沽清数量为2的菜品</td>
  512 + <td style="text-align:center;width:6em;">56.0 ms</td>
  513 + <td class="detail">
  514 +
  515 + <a class="button" href="#popup_log_8">log</a>
  516 + <div id="popup_log_8" class="overlay">
  517 + <div class="popup">
  518 + <h2>Request and Response data</h2>
  519 + <a class="close" href="#">&times;</a>
  520 + <div class="content"><pre>{
  521 + "content_size": 235,
  522 + "elapsed": 0.056063,
  523 + "method": "POST",
  524 + "request_body": "orderid=29\u0026openid=o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\u0026cookbookid=11",
  525 + "request_headers": {
  526 + "Accept": "*/*",
  527 + "Accept-Encoding": "gzip, deflate",
  528 + "Connection": "keep-alive",
  529 + "Content-Length": "60",
  530 + "Content-Type": "application/x-www-form-urlencoded",
  531 + "User-Agent": "python-requests/2.18.4"
  532 + },
  533 + "request_time": 1522742579.815217,
  534 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":29,\"openid\":\"o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\",\"cookbookid\":11,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522742579,\"id\":\"513\",\"countTotal\":1,\"countPirce\":69}],\"msg\":\"\"}",
  535 + "response_headers": {
  536 + "Connection": "keep-alive",
  537 + "Content-Encoding": "gzip",
  538 + "Content-Type": "application/json;charset=utf-8",
  539 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  540 + "Server": "nginx/1.13.5",
  541 + "Transfer-Encoding": "chunked",
  542 + "X-Powered-By": "PHP/5.6.9"
  543 + },
  544 + "response_time": 56,
  545 + "status_code": 200,
  546 + "url": "/?s=App.Orders.AddCart"
  547 +}</pre></div>
  548 + </div>
  549 + </div>
  550 +
  551 +
  552 +
  553 + </td>
  554 + </tr>
  555 +
  556 + <tr>
  557 + <th class="success" style="width:5em;">success</td>
  558 + <td>22桌 下单</td>
  559 + <td style="text-align:center;width:6em;">59.0 ms</td>
  560 + <td class="detail">
  561 +
  562 + <a class="button" href="#popup_log_9">log</a>
  563 + <div id="popup_log_9" class="overlay">
  564 + <div class="popup">
  565 + <h2>Request and Response data</h2>
  566 + <a class="close" href="#">&times;</a>
  567 + <div class="content"><pre>{
  568 + "content_size": 439,
  569 + "elapsed": 0.058701,
  570 + "method": "POST",
  571 + "request_body": "orderid=29\u0026sellerid=4\u0026type=type_order",
  572 + "request_headers": {
  573 + "Accept": "*/*",
  574 + "Accept-Encoding": "gzip, deflate",
  575 + "Connection": "keep-alive",
  576 + "Content-Length": "37",
  577 + "Content-Type": "application/x-www-form-urlencoded",
  578 + "User-Agent": "python-requests/2.18.4"
  579 + },
  580 + "request_time": 1522742579.873527,
  581 + "response_body": "{\"ret\":200,\"data\":[{\"min_num\":[],\"clear_error\":[{\"count\":\"1\",\"cookbookid\":\"11\",\"price\":\"69\",\"specid\":null,\"openid\":\"o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\",\"id\":\"513\",\"practiceid\":null,\"image\":\"https:\\/\\/xt05.colorcun.com\\/uploads\\/Cookbook\\/3e4d7b9a872f17ae4097eda36fa586fa.jpg\",\"unit\":\"\\u65a4\",\"name\":\"\\u4e0a\\u6d77\\u6cb9\\u7206\\u5927\\u867e\",\"class_name\":\"\\u7092\\u83dc\",\"classid\":\"2\",\"spec_price\":null,\"specs\":null,\"practice_name\":null}]}],\"msg\":\"\"}",
  582 + "response_headers": {
  583 + "Connection": "keep-alive",
  584 + "Content-Encoding": "gzip",
  585 + "Content-Type": "application/json;charset=utf-8",
  586 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  587 + "Server": "nginx/1.13.5",
  588 + "Transfer-Encoding": "chunked",
  589 + "X-Powered-By": "PHP/5.6.9"
  590 + },
  591 + "response_time": 59,
  592 + "status_code": 200,
  593 + "url": "/?s=App.Orders.PlaceOrder"
  594 +}</pre></div>
  595 + </div>
  596 + </div>
  597 +
  598 +
  599 +
  600 + </td>
  601 + </tr>
  602 +
  603 + <tr>
  604 + <th class="error" style="width:5em;">error</td>
  605 + <td>21桌 下单</td>
  606 + <td style="text-align:center;width:6em;">72.0 ms</td>
  607 + <td class="detail">
  608 +
  609 + <a class="button" href="#popup_log_10">log</a>
  610 + <div id="popup_log_10" class="overlay">
  611 + <div class="popup">
  612 + <h2>Request and Response data</h2>
  613 + <a class="close" href="#">&times;</a>
  614 + <div class="content"><pre>{
  615 + "content_size": 439,
  616 + "elapsed": 0.071507,
  617 + "method": "POST",
  618 + "request_body": "orderid=28\u0026sellerid=4\u0026type=type_order",
  619 + "request_headers": {
  620 + "Accept": "*/*",
  621 + "Accept-Encoding": "gzip, deflate",
  622 + "Connection": "keep-alive",
  623 + "Content-Length": "37",
  624 + "Content-Type": "application/x-www-form-urlencoded",
  625 + "User-Agent": "python-requests/2.18.4"
  626 + },
  627 + "request_time": 1522742579.934503,
  628 + "response_body": "{\"ret\":200,\"data\":[{\"min_num\":[],\"clear_error\":[{\"count\":\"2\",\"cookbookid\":\"11\",\"price\":\"69\",\"specid\":null,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"id\":\"511\",\"practiceid\":null,\"image\":\"https:\\/\\/xt05.colorcun.com\\/uploads\\/Cookbook\\/3e4d7b9a872f17ae4097eda36fa586fa.jpg\",\"unit\":\"\\u65a4\",\"name\":\"\\u4e0a\\u6d77\\u6cb9\\u7206\\u5927\\u867e\",\"class_name\":\"\\u7092\\u83dc\",\"classid\":\"2\",\"spec_price\":null,\"specs\":null,\"practice_name\":null}]}],\"msg\":\"\"}",
  629 + "response_headers": {
  630 + "Connection": "keep-alive",
  631 + "Content-Encoding": "gzip",
  632 + "Content-Type": "application/json;charset=utf-8",
  633 + "Date": "Tue, 03 Apr 2018 08:02:59 GMT",
  634 + "Server": "nginx/1.13.5",
  635 + "Transfer-Encoding": "chunked",
  636 + "X-Powered-By": "PHP/5.6.9"
  637 + },
  638 + "response_time": 72,
  639 + "status_code": 200,
  640 + "url": "/?s=App.Orders.PlaceOrder"
  641 +}</pre></div>
  642 + </div>
  643 + </div>
  644 +
  645 +
  646 + <a class="button" href="#popup_attachment_10">traceback</a>
  647 + <div id="popup_attachment_10" class="overlay">
  648 + <div class="popup">
  649 + <h2>Traceback Message</h2>
  650 + <a class="close" href="#">&times;</a>
  651 + <div class="content"><pre>Traceback (most recent call last):
  652 +ValidationError:
  653 + check item name: content.ret;
  654 + check item value: 200 (int);
  655 + comparator: equals;
  656 + expected value: 400 (int).
  657 +</pre></div>
  658 + </div>
  659 + </div>
  660 +
  661 +
  662 + </td>
  663 + </tr>
  664 +
  665 + </table>
  666 +</body>
  1 +<head>
  2 + <meta content="text/html; charset=utf-8" http-equiv="content-type" />
  3 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4 + <title> - TestReport</title>
  5 + <style>
  6 + body {
  7 + background-color: #f2f2f2;
  8 + color: #333;
  9 + margin: 0 auto;
  10 + width: 960px;
  11 + }
  12 + #summary, #details {
  13 + width: 960px;
  14 + }
  15 + #summary th {
  16 + background-color: skyblue;
  17 + padding: 5px 12px;
  18 + }
  19 + #summary td {
  20 + background-color: lightblue;
  21 + text-align: center;
  22 + padding: 4px 8px;
  23 + }
  24 + #details th {
  25 + background-color: skyblue;
  26 + padding: 5px 12px;
  27 + }
  28 + #details td {
  29 + background-color: lightblue;
  30 + padding: 5px 12px;
  31 + }
  32 + #details .detail {
  33 + background-color: lightgrey;
  34 + font-size: smaller;
  35 + padding: 5px 10px;
  36 + text-align: center;
  37 + }
  38 + #details .success {
  39 + background-color: greenyellow;
  40 + }
  41 + #details .error {
  42 + background-color: red;
  43 + }
  44 + #details .failure {
  45 + background-color: salmon;
  46 + }
  47 + #details .skipped {
  48 + background-color: gray;
  49 + }
  50 +
  51 + .button {
  52 + font-size: 1em;
  53 + padding: 6px;
  54 + width: 4em;
  55 + text-align: center;
  56 + background-color: #06d85f;
  57 + border-radius: 20px/50px;
  58 + cursor: pointer;
  59 + transition: all 0.3s ease-out;
  60 + }
  61 + a.button{
  62 + color: gray;
  63 + text-decoration: none;
  64 + }
  65 + .button:hover {
  66 + background: #2cffbd;
  67 + }
  68 +
  69 + .overlay {
  70 + position: fixed;
  71 + top: 0;
  72 + bottom: 0;
  73 + left: 0;
  74 + right: 0;
  75 + background: rgba(0, 0, 0, 0.7);
  76 + transition: opacity 500ms;
  77 + visibility: hidden;
  78 + opacity: 0;
  79 + }
  80 + .overlay:target {
  81 + visibility: visible;
  82 + opacity: 1;
  83 + }
  84 +
  85 + .popup {
  86 + margin: 70px auto;
  87 + padding: 20px;
  88 + background: #fff;
  89 + border-radius: 5px;
  90 + width: 30%;
  91 + position: relative;
  92 + transition: all 5s ease-in-out;
  93 + }
  94 +
  95 + .popup h2 {
  96 + margin-top: 0;
  97 + color: #333;
  98 + font-family: Tahoma, Arial, sans-serif;
  99 + }
  100 + .popup .close {
  101 + position: absolute;
  102 + top: 20px;
  103 + right: 30px;
  104 + transition: all 200ms;
  105 + font-size: 30px;
  106 + font-weight: bold;
  107 + text-decoration: none;
  108 + color: #333;
  109 + }
  110 + .popup .close:hover {
  111 + color: #06d85f;
  112 + }
  113 + .popup .content {
  114 + max-height: 30%;
  115 + overflow: auto;
  116 + text-align: left;
  117 + }
  118 +
  119 + @media screen and (max-width: 700px) {
  120 + .box {
  121 + width: 70%;
  122 + }
  123 + .popup {
  124 + width: 70%;
  125 + }
  126 + }
  127 +
  128 + </style>
  129 +</head>
  130 +
  131 +<body>
  132 + <h1>Test Report: </h1>
  133 +
  134 + <h2>Summary</h2>
  135 + <table id="summary">
  136 +
  137 + <tr>
  138 + <th>START AT</th>
  139 + <td colspan="4">2018-04-03 16:16:20</td>
  140 + </tr>
  141 + <tr>
  142 + <th>DURATION</th>
  143 + <td colspan="4">0.943 seconds</td>
  144 + </tr>
  145 + <tr>
  146 + <th>PLATFORM</th>
  147 + <td>HttpRunner 1.0.0 </td>
  148 + <td>CPython 2.7.10 </td>
  149 + <td colspan="2">Darwin-14.5.0-x86_64-i386-32bit</td>
  150 + </tr>
  151 + <tr>
  152 + <th>TOTAL</th>
  153 + <th>SUCCESS</th>
  154 + <th>FAILED</th>
  155 + <th>ERROR</th>
  156 + <th>SKIPPED</th>
  157 + <!-- <th>ExpectedFailure</th>
  158 + <th>UnexpectedSuccess</th> -->
  159 + </tr>
  160 + <tr>
  161 + <td>12</td>
  162 + <td>11</td>
  163 + <td>0</td>
  164 + <td>1</td>
  165 + <td>0</td>
  166 + <!-- <td>0</td>
  167 + <td>0</td> -->
  168 + </tr>
  169 + </table>
  170 +
  171 + <h2>Details</h2>
  172 + <table id="details">
  173 + <tr>
  174 + <th>Status</th>
  175 + <th>Name</th>
  176 + <th>Response Time</th>
  177 + <th>Detail</th>
  178 + </tr>
  179 +
  180 + <tr>
  181 + <th class="success" style="width:5em;">success</td>
  182 + <td>21桌 顾客扫桌码</td>
  183 + <td style="text-align:center;width:6em;">183.0 ms</td>
  184 + <td class="detail">
  185 +
  186 + <a class="button" href="#popup_log_1">log</a>
  187 + <div id="popup_log_1" class="overlay">
  188 + <div class="popup">
  189 + <h2>Request and Response data</h2>
  190 + <a class="close" href="#">&times;</a>
  191 + <div class="content"><pre>{
  192 + "content_size": 494,
  193 + "elapsed": 0.179997,
  194 + "method": "POST",
  195 + "request_body": "openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026remark=%E8%BF%99%E6%98%AF21%E6%A1%8C%E7%9A%84%E5%A4%87%E6%B3%A8\u0026remarkid=1\u0026pnum=8\u0026tableid=21\u0026sellerid=4",
  196 + "request_headers": {
  197 + "Accept": "*/*",
  198 + "Accept-Encoding": "gzip, deflate",
  199 + "Connection": "keep-alive",
  200 + "Content-Length": "139",
  201 + "Content-Type": "application/x-www-form-urlencoded",
  202 + "User-Agent": "python-requests/2.18.4"
  203 + },
  204 + "request_time": 1522743380.936911,
  205 + "response_body": "{\"ret\":200,\"data\":[{\"id\":\"28\",\"no\":\"87083608\",\"pnum\":\"8\",\"sellerid\":\"4\",\"tableid\":\"21\",\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"price\":\"300\",\"status\":\"1\",\"remark\":\"\\u8fd9\\u662f21\\u684c\\u7684\\u5907\\u6ce8\",\"remarkid\":\"1\",\"type\":null,\"phone\":null,\"cdate\":\"1522741607\",\"table\":{\"id\":\"21\",\"rid\":\"2\",\"sellerid\":\"4\",\"name\":\"\\u554a\\u554a\\u554a\\u4e00\",\"table_pnum\":\"5\",\"tid\":\"0\",\"order_o\":\"12\",\"status\":\"1\",\"enable\":\"0\",\"cdate\":\"1522650111\",\"region_name\":\"\\u554a\\u554a\\u554a\",\"type_name\":\"\"}}],\"msg\":\"\"}",
  206 + "response_headers": {
  207 + "Connection": "keep-alive",
  208 + "Content-Encoding": "gzip",
  209 + "Content-Type": "application/json;charset=utf-8",
  210 + "Date": "Tue, 03 Apr 2018 08:16:20 GMT",
  211 + "Server": "nginx/1.13.5",
  212 + "Transfer-Encoding": "chunked",
  213 + "X-Powered-By": "PHP/5.6.9"
  214 + },
  215 + "response_time": 183,
  216 + "status_code": 200,
  217 + "url": "/?s=App.Orders.CreateOrder"
  218 +}</pre></div>
  219 + </div>
  220 + </div>
  221 +
  222 +
  223 +
  224 + </td>
  225 + </tr>
  226 +
  227 + <tr>
  228 + <th class="success" style="width:5em;">success</td>
  229 + <td>21桌 添加一个有规格有做法菜品</td>
  230 + <td style="text-align:center;width:6em;">71.0 ms</td>
  231 + <td class="detail">
  232 +
  233 + <a class="button" href="#popup_log_2">log</a>
  234 + <div id="popup_log_2" class="overlay">
  235 + <div class="popup">
  236 + <h2>Request and Response data</h2>
  237 + <a class="close" href="#">&times;</a>
  238 + <div class="content"><pre>{
  239 + "content_size": 229,
  240 + "elapsed": 0.070604,
  241 + "method": "POST",
  242 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026specid=7\u0026cookbookid=6\u0026practiceid=3",
  243 + "request_headers": {
  244 + "Accept": "*/*",
  245 + "Accept-Encoding": "gzip, deflate",
  246 + "Connection": "keep-alive",
  247 + "Content-Length": "81",
  248 + "Content-Type": "application/x-www-form-urlencoded",
  249 + "User-Agent": "python-requests/2.18.4"
  250 + },
  251 + "request_time": 1522743381.126917,
  252 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":6,\"specid\":7,\"practiceid\":3,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743380,\"id\":\"524\",\"countTotal\":6,\"countPirce\":368}],\"msg\":\"\"}",
  253 + "response_headers": {
  254 + "Connection": "keep-alive",
  255 + "Content-Encoding": "gzip",
  256 + "Content-Type": "application/json;charset=utf-8",
  257 + "Date": "Tue, 03 Apr 2018 08:16:20 GMT",
  258 + "Server": "nginx/1.13.5",
  259 + "Transfer-Encoding": "chunked",
  260 + "X-Powered-By": "PHP/5.6.9"
  261 + },
  262 + "response_time": 71,
  263 + "status_code": 200,
  264 + "url": "/?s=App.Orders.AddCart"
  265 +}</pre></div>
  266 + </div>
  267 + </div>
  268 +
  269 +
  270 +
  271 + </td>
  272 + </tr>
  273 +
  274 + <tr>
  275 + <th class="success" style="width:5em;">success</td>
  276 + <td>21桌 添加一个有规格无做法菜品</td>
  277 + <td style="text-align:center;width:6em;">57.0 ms</td>
  278 + <td class="detail">
  279 +
  280 + <a class="button" href="#popup_log_3">log</a>
  281 + <div id="popup_log_3" class="overlay">
  282 + <div class="popup">
  283 + <h2>Request and Response data</h2>
  284 + <a class="close" href="#">&times;</a>
  285 + <div class="content"><pre>{
  286 + "content_size": 232,
  287 + "elapsed": 0.056331,
  288 + "method": "POST",
  289 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026specid=4\u0026cookbookid=3",
  290 + "request_headers": {
  291 + "Accept": "*/*",
  292 + "Accept-Encoding": "gzip, deflate",
  293 + "Connection": "keep-alive",
  294 + "Content-Length": "68",
  295 + "Content-Type": "application/x-www-form-urlencoded",
  296 + "User-Agent": "python-requests/2.18.4"
  297 + },
  298 + "request_time": 1522743381.199754,
  299 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":3,\"specid\":4,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743380,\"id\":\"525\",\"countTotal\":7,\"countPirce\":436}],\"msg\":\"\"}",
  300 + "response_headers": {
  301 + "Connection": "keep-alive",
  302 + "Content-Encoding": "gzip",
  303 + "Content-Type": "application/json;charset=utf-8",
  304 + "Date": "Tue, 03 Apr 2018 08:16:20 GMT",
  305 + "Server": "nginx/1.13.5",
  306 + "Transfer-Encoding": "chunked",
  307 + "X-Powered-By": "PHP/5.6.9"
  308 + },
  309 + "response_time": 57,
  310 + "status_code": 200,
  311 + "url": "/?s=App.Orders.AddCart"
  312 +}</pre></div>
  313 + </div>
  314 + </div>
  315 +
  316 +
  317 +
  318 + </td>
  319 + </tr>
  320 +
  321 + <tr>
  322 + <th class="success" style="width:5em;">success</td>
  323 + <td>21桌 添加一个普通菜品</td>
  324 + <td style="text-align:center;width:6em;">62.0 ms</td>
  325 + <td class="detail">
  326 +
  327 + <a class="button" href="#popup_log_4">log</a>
  328 + <div id="popup_log_4" class="overlay">
  329 + <div class="popup">
  330 + <h2>Request and Response data</h2>
  331 + <a class="close" href="#">&times;</a>
  332 + <div class="content"><pre>{
  333 + "content_size": 235,
  334 + "elapsed": 0.061684,
  335 + "method": "POST",
  336 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=9",
  337 + "request_headers": {
  338 + "Accept": "*/*",
  339 + "Accept-Encoding": "gzip, deflate",
  340 + "Connection": "keep-alive",
  341 + "Content-Length": "59",
  342 + "Content-Type": "application/x-www-form-urlencoded",
  343 + "User-Agent": "python-requests/2.18.4"
  344 + },
  345 + "request_time": 1522743381.258292,
  346 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":9,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743380,\"id\":\"526\",\"countTotal\":8,\"countPirce\":462}],\"msg\":\"\"}",
  347 + "response_headers": {
  348 + "Connection": "keep-alive",
  349 + "Content-Encoding": "gzip",
  350 + "Content-Type": "application/json;charset=utf-8",
  351 + "Date": "Tue, 03 Apr 2018 08:16:20 GMT",
  352 + "Server": "nginx/1.13.5",
  353 + "Transfer-Encoding": "chunked",
  354 + "X-Powered-By": "PHP/5.6.9"
  355 + },
  356 + "response_time": 62,
  357 + "status_code": 200,
  358 + "url": "/?s=App.Orders.AddCart"
  359 +}</pre></div>
  360 + </div>
  361 + </div>
  362 +
  363 +
  364 +
  365 + </td>
  366 + </tr>
  367 +
  368 + <tr>
  369 + <th class="success" style="width:5em;">success</td>
  370 + <td>21桌 添加一个沽清数量为2的菜品</td>
  371 + <td style="text-align:center;width:6em;">61.0 ms</td>
  372 + <td class="detail">
  373 +
  374 + <a class="button" href="#popup_log_5">log</a>
  375 + <div id="popup_log_5" class="overlay">
  376 + <div class="popup">
  377 + <h2>Request and Response data</h2>
  378 + <a class="close" href="#">&times;</a>
  379 + <div class="content"><pre>{
  380 + "content_size": 236,
  381 + "elapsed": 0.060874,
  382 + "method": "POST",
  383 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=11",
  384 + "request_headers": {
  385 + "Accept": "*/*",
  386 + "Accept-Encoding": "gzip, deflate",
  387 + "Connection": "keep-alive",
  388 + "Content-Length": "60",
  389 + "Content-Type": "application/x-www-form-urlencoded",
  390 + "User-Agent": "python-requests/2.18.4"
  391 + },
  392 + "request_time": 1522743381.322181,
  393 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":11,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743380,\"id\":\"527\",\"countTotal\":9,\"countPirce\":531}],\"msg\":\"\"}",
  394 + "response_headers": {
  395 + "Connection": "keep-alive",
  396 + "Content-Encoding": "gzip",
  397 + "Content-Type": "application/json;charset=utf-8",
  398 + "Date": "Tue, 03 Apr 2018 08:16:20 GMT",
  399 + "Server": "nginx/1.13.5",
  400 + "Transfer-Encoding": "chunked",
  401 + "X-Powered-By": "PHP/5.6.9"
  402 + },
  403 + "response_time": 61,
  404 + "status_code": 200,
  405 + "url": "/?s=App.Orders.AddCart"
  406 +}</pre></div>
  407 + </div>
  408 + </div>
  409 +
  410 +
  411 +
  412 + </td>
  413 + </tr>
  414 +
  415 + <tr>
  416 + <th class="success" style="width:5em;">success</td>
  417 + <td>21桌 再次添加一个沽清数量为2的菜品</td>
  418 + <td style="text-align:center;width:6em;">66.0 ms</td>
  419 + <td class="detail">
  420 +
  421 + <a class="button" href="#popup_log_6">log</a>
  422 + <div id="popup_log_6" class="overlay">
  423 + <div class="popup">
  424 + <h2>Request and Response data</h2>
  425 + <a class="close" href="#">&times;</a>
  426 + <div class="content"><pre>{
  427 + "content_size": 237,
  428 + "elapsed": 0.065972,
  429 + "method": "POST",
  430 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=11",
  431 + "request_headers": {
  432 + "Accept": "*/*",
  433 + "Accept-Encoding": "gzip, deflate",
  434 + "Connection": "keep-alive",
  435 + "Content-Length": "60",
  436 + "Content-Type": "application/x-www-form-urlencoded",
  437 + "User-Agent": "python-requests/2.18.4"
  438 + },
  439 + "request_time": 1522743381.385236,
  440 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":11,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743381,\"id\":\"528\",\"countTotal\":10,\"countPirce\":600}],\"msg\":\"\"}",
  441 + "response_headers": {
  442 + "Connection": "keep-alive",
  443 + "Content-Encoding": "gzip",
  444 + "Content-Type": "application/json;charset=utf-8",
  445 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  446 + "Server": "nginx/1.13.5",
  447 + "Transfer-Encoding": "chunked",
  448 + "X-Powered-By": "PHP/5.6.9"
  449 + },
  450 + "response_time": 66,
  451 + "status_code": 200,
  452 + "url": "/?s=App.Orders.AddCart"
  453 +}</pre></div>
  454 + </div>
  455 + </div>
  456 +
  457 +
  458 +
  459 + </td>
  460 + </tr>
  461 +
  462 + <tr>
  463 + <th class="success" style="width:5em;">success</td>
  464 + <td>22桌 顾客扫桌码</td>
  465 + <td style="text-align:center;width:6em;">63.0 ms</td>
  466 + <td class="detail">
  467 +
  468 + <a class="button" href="#popup_log_7">log</a>
  469 + <div id="popup_log_7" class="overlay">
  470 + <div class="popup">
  471 + <h2>Request and Response data</h2>
  472 + <a class="close" href="#">&times;</a>
  473 + <div class="content"><pre>{
  474 + "content_size": 493,
  475 + "elapsed": 0.06242,
  476 + "method": "POST",
  477 + "request_body": "openid=o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\u0026remark=%E8%BF%99%E6%98%AF22%E6%A1%8C%E7%9A%84%E5%A4%87%E6%B3%A8\u0026remarkid=2\u0026pnum=8\u0026tableid=22\u0026sellerid=4",
  478 + "request_headers": {
  479 + "Accept": "*/*",
  480 + "Accept-Encoding": "gzip, deflate",
  481 + "Connection": "keep-alive",
  482 + "Content-Length": "139",
  483 + "Content-Type": "application/x-www-form-urlencoded",
  484 + "User-Agent": "python-requests/2.18.4"
  485 + },
  486 + "request_time": 1522743381.453193,
  487 + "response_body": "{\"ret\":200,\"data\":[{\"id\":\"29\",\"no\":\"99659978\",\"pnum\":\"8\",\"sellerid\":\"4\",\"tableid\":\"22\",\"openid\":\"o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\",\"price\":\"69\",\"status\":\"1\",\"remark\":\"\\u8fd9\\u662f22\\u684c\\u7684\\u5907\\u6ce8\",\"remarkid\":\"2\",\"type\":null,\"phone\":null,\"cdate\":\"1522741607\",\"table\":{\"id\":\"22\",\"rid\":\"2\",\"sellerid\":\"4\",\"name\":\"\\u554a\\u554a\\u554a\\u4e00\",\"table_pnum\":\"9\",\"tid\":\"0\",\"order_o\":\"13\",\"status\":\"1\",\"enable\":\"0\",\"cdate\":\"1522650015\",\"region_name\":\"\\u554a\\u554a\\u554a\",\"type_name\":\"\"}}],\"msg\":\"\"}",
  488 + "response_headers": {
  489 + "Connection": "keep-alive",
  490 + "Content-Encoding": "gzip",
  491 + "Content-Type": "application/json;charset=utf-8",
  492 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  493 + "Server": "nginx/1.13.5",
  494 + "Transfer-Encoding": "chunked",
  495 + "X-Powered-By": "PHP/5.6.9"
  496 + },
  497 + "response_time": 63,
  498 + "status_code": 200,
  499 + "url": "/?s=App.Orders.CreateOrder"
  500 +}</pre></div>
  501 + </div>
  502 + </div>
  503 +
  504 +
  505 +
  506 + </td>
  507 + </tr>
  508 +
  509 + <tr>
  510 + <th class="success" style="width:5em;">success</td>
  511 + <td>22桌 添加一个沽清数量为2的菜品</td>
  512 + <td style="text-align:center;width:6em;">61.0 ms</td>
  513 + <td class="detail">
  514 +
  515 + <a class="button" href="#popup_log_8">log</a>
  516 + <div id="popup_log_8" class="overlay">
  517 + <div class="popup">
  518 + <h2>Request and Response data</h2>
  519 + <a class="close" href="#">&times;</a>
  520 + <div class="content"><pre>{
  521 + "content_size": 236,
  522 + "elapsed": 0.060112,
  523 + "method": "POST",
  524 + "request_body": "orderid=29\u0026openid=o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\u0026cookbookid=11",
  525 + "request_headers": {
  526 + "Accept": "*/*",
  527 + "Accept-Encoding": "gzip, deflate",
  528 + "Connection": "keep-alive",
  529 + "Content-Length": "60",
  530 + "Content-Type": "application/x-www-form-urlencoded",
  531 + "User-Agent": "python-requests/2.18.4"
  532 + },
  533 + "request_time": 1522743381.518138,
  534 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":29,\"openid\":\"o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\",\"cookbookid\":11,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743381,\"id\":\"529\",\"countTotal\":2,\"countPirce\":138}],\"msg\":\"\"}",
  535 + "response_headers": {
  536 + "Connection": "keep-alive",
  537 + "Content-Encoding": "gzip",
  538 + "Content-Type": "application/json;charset=utf-8",
  539 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  540 + "Server": "nginx/1.13.5",
  541 + "Transfer-Encoding": "chunked",
  542 + "X-Powered-By": "PHP/5.6.9"
  543 + },
  544 + "response_time": 61,
  545 + "status_code": 200,
  546 + "url": "/?s=App.Orders.AddCart"
  547 +}</pre></div>
  548 + </div>
  549 + </div>
  550 +
  551 +
  552 +
  553 + </td>
  554 + </tr>
  555 +
  556 + <tr>
  557 + <th class="success" style="width:5em;">success</td>
  558 + <td>22桌 下单</td>
  559 + <td style="text-align:center;width:6em;">60.0 ms</td>
  560 + <td class="detail">
  561 +
  562 + <a class="button" href="#popup_log_9">log</a>
  563 + <div id="popup_log_9" class="overlay">
  564 + <div class="popup">
  565 + <h2>Request and Response data</h2>
  566 + <a class="close" href="#">&times;</a>
  567 + <div class="content"><pre>{
  568 + "content_size": 439,
  569 + "elapsed": 0.0597,
  570 + "method": "POST",
  571 + "request_body": "orderid=29\u0026sellerid=4\u0026type=type_order",
  572 + "request_headers": {
  573 + "Accept": "*/*",
  574 + "Accept-Encoding": "gzip, deflate",
  575 + "Connection": "keep-alive",
  576 + "Content-Length": "37",
  577 + "Content-Type": "application/x-www-form-urlencoded",
  578 + "User-Agent": "python-requests/2.18.4"
  579 + },
  580 + "request_time": 1522743381.580503,
  581 + "response_body": "{\"ret\":200,\"data\":[{\"min_num\":[],\"clear_error\":[{\"count\":\"2\",\"cookbookid\":\"11\",\"price\":\"69\",\"specid\":null,\"openid\":\"o9pcQ0dtFx_KTFpUpCXOaLUdsGTQ\",\"id\":\"513\",\"practiceid\":null,\"image\":\"https:\\/\\/xt05.colorcun.com\\/uploads\\/Cookbook\\/3e4d7b9a872f17ae4097eda36fa586fa.jpg\",\"unit\":\"\\u65a4\",\"name\":\"\\u4e0a\\u6d77\\u6cb9\\u7206\\u5927\\u867e\",\"class_name\":\"\\u7092\\u83dc\",\"classid\":\"2\",\"spec_price\":null,\"specs\":null,\"practice_name\":null}]}],\"msg\":\"\"}",
  582 + "response_headers": {
  583 + "Connection": "keep-alive",
  584 + "Content-Encoding": "gzip",
  585 + "Content-Type": "application/json;charset=utf-8",
  586 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  587 + "Server": "nginx/1.13.5",
  588 + "Transfer-Encoding": "chunked",
  589 + "X-Powered-By": "PHP/5.6.9"
  590 + },
  591 + "response_time": 60,
  592 + "status_code": 200,
  593 + "url": "/?s=App.Orders.PlaceOrder"
  594 +}</pre></div>
  595 + </div>
  596 + </div>
  597 +
  598 +
  599 +
  600 + </td>
  601 + </tr>
  602 +
  603 + <tr>
  604 + <th class="error" style="width:5em;">error</td>
  605 + <td>21桌 下单</td>
  606 + <td style="text-align:center;width:6em;">80.0 ms</td>
  607 + <td class="detail">
  608 +
  609 + <a class="button" href="#popup_log_10">log</a>
  610 + <div id="popup_log_10" class="overlay">
  611 + <div class="popup">
  612 + <h2>Request and Response data</h2>
  613 + <a class="close" href="#">&times;</a>
  614 + <div class="content"><pre>{
  615 + "content_size": 439,
  616 + "elapsed": 0.079423,
  617 + "method": "POST",
  618 + "request_body": "orderid=28\u0026sellerid=4\u0026type=type_order",
  619 + "request_headers": {
  620 + "Accept": "*/*",
  621 + "Accept-Encoding": "gzip, deflate",
  622 + "Connection": "keep-alive",
  623 + "Content-Length": "37",
  624 + "Content-Type": "application/x-www-form-urlencoded",
  625 + "User-Agent": "python-requests/2.18.4"
  626 + },
  627 + "request_time": 1522743381.642474,
  628 + "response_body": "{\"ret\":200,\"data\":[{\"min_num\":[],\"clear_error\":[{\"count\":\"4\",\"cookbookid\":\"11\",\"price\":\"69\",\"specid\":null,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"id\":\"511\",\"practiceid\":null,\"image\":\"https:\\/\\/xt05.colorcun.com\\/uploads\\/Cookbook\\/3e4d7b9a872f17ae4097eda36fa586fa.jpg\",\"unit\":\"\\u65a4\",\"name\":\"\\u4e0a\\u6d77\\u6cb9\\u7206\\u5927\\u867e\",\"class_name\":\"\\u7092\\u83dc\",\"classid\":\"2\",\"spec_price\":null,\"specs\":null,\"practice_name\":null}]}],\"msg\":\"\"}",
  629 + "response_headers": {
  630 + "Connection": "keep-alive",
  631 + "Content-Encoding": "gzip",
  632 + "Content-Type": "application/json;charset=utf-8",
  633 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  634 + "Server": "nginx/1.13.5",
  635 + "Transfer-Encoding": "chunked",
  636 + "X-Powered-By": "PHP/5.6.9"
  637 + },
  638 + "response_time": 80,
  639 + "status_code": 200,
  640 + "url": "/?s=App.Orders.PlaceOrder"
  641 +}</pre></div>
  642 + </div>
  643 + </div>
  644 +
  645 +
  646 + <a class="button" href="#popup_attachment_10">traceback</a>
  647 + <div id="popup_attachment_10" class="overlay">
  648 + <div class="popup">
  649 + <h2>Traceback Message</h2>
  650 + <a class="close" href="#">&times;</a>
  651 + <div class="content"><pre>Traceback (most recent call last):
  652 +ValidationError:
  653 + check item name: content.ret;
  654 + check item value: 200 (int);
  655 + comparator: equals;
  656 + expected value: 400 (int).
  657 +</pre></div>
  658 + </div>
  659 + </div>
  660 +
  661 +
  662 + </td>
  663 + </tr>
  664 +
  665 + <tr>
  666 + <th class="success" style="width:5em;">success</td>
  667 + <td>21桌 添加一个普通菜品</td>
  668 + <td style="text-align:center;width:6em;">70.0 ms</td>
  669 + <td class="detail">
  670 +
  671 + <a class="button" href="#popup_log_11">log</a>
  672 + <div id="popup_log_11" class="overlay">
  673 + <div class="popup">
  674 + <h2>Request and Response data</h2>
  675 + <a class="close" href="#">&times;</a>
  676 + <div class="content"><pre>{
  677 + "content_size": 236,
  678 + "elapsed": 0.069306,
  679 + "method": "POST",
  680 + "request_body": "orderid=28\u0026openid=o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\u0026cookbookid=9",
  681 + "request_headers": {
  682 + "Accept": "*/*",
  683 + "Accept-Encoding": "gzip, deflate",
  684 + "Connection": "keep-alive",
  685 + "Content-Length": "59",
  686 + "Content-Type": "application/x-www-form-urlencoded",
  687 + "User-Agent": "python-requests/2.18.4"
  688 + },
  689 + "request_time": 1522743381.724398,
  690 + "response_body": "{\"ret\":200,\"data\":[{\"orderid\":28,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"cookbookid\":9,\"specid\":null,\"practiceid\":null,\"price\":null,\"source\":1,\"fromSoucre\":null,\"cdate\":1522743381,\"id\":\"530\",\"countTotal\":11,\"countPirce\":626}],\"msg\":\"\"}",
  691 + "response_headers": {
  692 + "Connection": "keep-alive",
  693 + "Content-Encoding": "gzip",
  694 + "Content-Type": "application/json;charset=utf-8",
  695 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  696 + "Server": "nginx/1.13.5",
  697 + "Transfer-Encoding": "chunked",
  698 + "X-Powered-By": "PHP/5.6.9"
  699 + },
  700 + "response_time": 70,
  701 + "status_code": 200,
  702 + "url": "/?s=App.Orders.AddCart"
  703 +}</pre></div>
  704 + </div>
  705 + </div>
  706 +
  707 +
  708 +
  709 + </td>
  710 + </tr>
  711 +
  712 + <tr>
  713 + <th class="success" style="width:5em;">success</td>
  714 + <td>21桌 加菜</td>
  715 + <td style="text-align:center;width:6em;">77.0 ms</td>
  716 + <td class="detail">
  717 +
  718 + <a class="button" href="#popup_log_12">log</a>
  719 + <div id="popup_log_12" class="overlay">
  720 + <div class="popup">
  721 + <h2>Request and Response data</h2>
  722 + <a class="close" href="#">&times;</a>
  723 + <div class="content"><pre>{
  724 + "content_size": 439,
  725 + "elapsed": 0.07704,
  726 + "method": "POST",
  727 + "request_body": "orderid=28\u0026sellerid=4\u0026type=type_add",
  728 + "request_headers": {
  729 + "Accept": "*/*",
  730 + "Accept-Encoding": "gzip, deflate",
  731 + "Connection": "keep-alive",
  732 + "Content-Length": "35",
  733 + "Content-Type": "application/x-www-form-urlencoded",
  734 + "User-Agent": "python-requests/2.18.4"
  735 + },
  736 + "request_time": 1522743381.795961,
  737 + "response_body": "{\"ret\":200,\"data\":[{\"min_num\":[],\"clear_error\":[{\"count\":\"4\",\"cookbookid\":\"11\",\"price\":\"69\",\"specid\":null,\"openid\":\"o9pcQ0ZvcI3L5fg75WdVtvK9l3xQ\",\"id\":\"511\",\"practiceid\":null,\"image\":\"https:\\/\\/xt05.colorcun.com\\/uploads\\/Cookbook\\/3e4d7b9a872f17ae4097eda36fa586fa.jpg\",\"unit\":\"\\u65a4\",\"name\":\"\\u4e0a\\u6d77\\u6cb9\\u7206\\u5927\\u867e\",\"class_name\":\"\\u7092\\u83dc\",\"classid\":\"2\",\"spec_price\":null,\"specs\":null,\"practice_name\":null}]}],\"msg\":\"\"}",
  738 + "response_headers": {
  739 + "Connection": "keep-alive",
  740 + "Content-Encoding": "gzip",
  741 + "Content-Type": "application/json;charset=utf-8",
  742 + "Date": "Tue, 03 Apr 2018 08:16:21 GMT",
  743 + "Server": "nginx/1.13.5",
  744 + "Transfer-Encoding": "chunked",
  745 + "X-Powered-By": "PHP/5.6.9"
  746 + },
  747 + "response_time": 77,
  748 + "status_code": 200,
  749 + "url": "/?s=App.Orders.PlaceOrder"
  750 +}</pre></div>
  751 + </div>
  752 + </div>
  753 +
  754 +
  755 +
  756 + </td>
  757 + </tr>
  758 +
  759 + </table>
  760 +</body>
@@ -172,4 +172,29 @@ @@ -172,4 +172,29 @@
172 orderid: ${get_orderid($orderid1)} 172 orderid: ${get_orderid($orderid1)}
173 type: type_order 173 type: type_order
174 validate: 174 validate:
175 - - eq: ["content.ret", 400]  
  175 + - eq: ["content.ret", 400]
  176 +
  177 +- test:
  178 + name: 21桌 添加一个普通菜品
  179 + request:
  180 + url: App.Orders.AddCart
  181 + method: POST
  182 + data:
  183 + orderid: ${get_orderid($orderid1)}
  184 + openid: $openid1
  185 + cookbookid: $cook4_id
  186 + validate:
  187 + - eq: ["content.ret", 200]
  188 +
  189 +#加菜
  190 +- test:
  191 + name: 21桌 加菜
  192 + request:
  193 + url: App.Orders.PlaceOrder
  194 + method: POST
  195 + data:
  196 + sellerid: $sellerid
  197 + orderid: ${get_orderid($orderid1)}
  198 + type: type_add
  199 + validate:
  200 + - eq: ["content.ret", 200]