首页 > 解决方案 > 由于 500 内部服务器错误,测试失败

问题描述

[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/ng-file-upload-shim.min.js HTTP/1.1" 200 bytesIn:568 bytesOut:3062 reqTime:0
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/ng-file-upload-all.min.js HTTP/1.1" 200 14565 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/ngBootbox.min.js HTTP/1.1" 200 1407 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/bootbox.min.js HTTP/1.1" 200 4166 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/ngBootbox.min.js HTTP/1.1" 200 bytesIn:557 bytesOut:1407 reqTime:0
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/bootbox.min.js HTTP/1.1" 200 bytesIn:556 bytesOut:4166 reqTime:0
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/ng-file-upload-all.min.js HTTP/1.1" 200 bytesIn:567 bytesOut:14565 reqTime:0
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/moment.min.js HTTP/1.1" 200 20933 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/angular-moment.min.js HTTP/1.1" 200 2281 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/moment-locale-en-gb.js HTTP/1.1" 200 1385 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/smart-table/smart-table.min.js HTTP/1.1" 200 2902 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/lrStickyHeader.js HTTP/1.1" 200 1905 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/lrStickyHeader.js HTTP/1.1" 200 bytesIn:559 bytesOut:1905 reqTime:0
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/moment-locale-en-gb.js HTTP/1.1" 200 bytesIn:563 bytesOut:1385 reqTime:0
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/angular-moment.min.js HTTP/1.1" 200 bytesIn:563 bytesOut:2281 reqTime:0
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/smart-table/smart-table.min.js HTTP/1.1" 200 bytesIn:572 bytesOut:2902 reqTime:0
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/moment.min.js HTTP/1.1" 200 bytesIn:555 bytesOut:20933 reqTime:0
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/stStickyHeader.js HTTP/1.1" 200 816 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /assets/d5e561ce/js/stStickyHeader.js HTTP/1.1" 200 bytesIn:558 bytesOut:816 reqTime:0
[php-fpm:access] 127.0.0.1 -  13/Sep/2019:14:02:09 +0000 "GET /index.php?compDur=0+DAY&getKids=none&open=0&team=50&type=team" 200 /var/www/secure.curtisbanks.co.uk/htdocs/index.php 323.680 8192 30.89%
docker.vm:ip - - [13/Sep/2019:14:02:09 +0000] "GET /tasks/tasksApi/tasks?compDur=0+DAY&getKids=none&open=0&team=50&type=team HTTP/1.1" 200 57634 "http://servertest01:8082/apex/team/50" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
[httpd:access] servertest01:ip - - [13/Sep/2019:14:02:09 +0000] "GET /tasks/tasksApi/tasks?compDur=0+DAY&getKids=none&open=0&team=50&type=team HTTP/1.1" 200 bytesIn:587 bytesOut:576

所以我每天早上大约在凌晨 3 点进行测试。我有一些测试失败并出现相同的错误,即:

  03:12:18.785 WARNING - http://servertest/user/account/login - This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.
  03:12:53.997 WARNING - http://servertest/user/account/login - This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.
  03:13:18.146 SEVERE - http://servertest/portal/messages/team/id/46/view/onldgdl7g7SrCYl93uyGVFon1yfJP6OGpRpyiJmpQUYuoXKk - [DOM] Found 2 elements with non-unique id #undefined_hint: (More info: https://goo) %o %o
  03:13:25.395 SEVERE - http://servertest/portal/messages/exportForKW/ref/onldgdl7g7SrCYl93uyGVFon1yfJP6OGpRpyiJmpQUYuoXKk/ajax/1 - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

我试图更改 id 在哪里填写用户名和密码,正如我在屏幕截图中看到的那样,在用户名已经填写后,密码的最后一部分有时会填写在用户名字段中。

$I = new AcceptanceTester($scenario);
$I->wantTo('Search for a caller, go through security, save it and add notes');

//Log in
$I->amOnPage('/user/account/login');
$I->fillField("UserLogin[username]", "");
$I->fillField("UserLogin[password]", "");
$I->click('Log In');
$I->wait(2);
$I->waitForElementVisible('#AdminMemberGrid_status', 30);

//Access the call tab
$I->click('//*[@id="secondaryMenu"]/li[1]/a');
$I->waitForText('Search for caller :');

在这里,我等待文本搜索呼叫者并接听转接呼叫的弹出窗口不可见,在屏幕截图中,当我单击呼叫选项卡时,大麦出现在第一页的前面$I->click('//*[@id="secondaryMenu"]/li[1]/a');

我期待看到文本并填写字段,添加更长的等待不会有任何区别。

其他测试通过,并且它们具有相同的代码。

单击 google 链接会将我重定向到安全博客,在线 google 安全博客:2016/09/moving-towards-more-secure-web.html

09:39:55.676 WARNING - http://servertest/user/account/login - This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see 
09:41:09.738 SEVERE - http://servertest/nii/index/show/id/144904/type/40x40.max - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
09:41:10.182 SEVERE - http://servertest/nii/index/show/id/144904/type/40x40.max - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
09:41:22.316 SEVERE - http://servertest/nii/index/show/id/144904/type/40x40.max - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
09:41:42.15 SEVERE - http://servertest/nii/index/show/id/144904/type/40x40.max - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
09:42:12.869 SEVERE - http://servertest/nii/index/show/id/144904/type/40x40.max - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
09:42:29.88 WARNING - http://servertest/user/account/login - This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see 
09:43:04.33 WARNING - http://servertest/user/account/login - This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see 
09:43:30.640 SEVERE -  - [DOM] Found 2 elements with non-unique id #undefined_hint: (More info: ) %o %o

标签: jenkinstestingcodeception

解决方案


推荐阅读