由于500个内部服务器错误而导致测试失败

时间:2019-07-02 08:33:30

标签: jenkins testing codeception

因此,我每天早上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

更多挖掘后,我得到了:

this is the login screen where it's failing现在登录屏幕上的测试失败,并且在用户名中填写用户名后,后缀,密码的一半也出现在用户名旁边,并且在密码中还填充了一点密码密码部分,但显然现在无法登录。

  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严重-http://servertest/nii/index/show/id/144904/type/40x40.max-加载资源失败:服务器响应状态为500(内部服务器错误)   09:41:10.182严重-http://servertest/nii/index/show/id/144904/type/40x40.max-无法加载资源:服务器响应状态为500(内部服务器错误)   09:41:22.316 SEVERE-http://servertest/nii/index/show/id/144904/type/40x40.max-加载资源失败:服务器响应状态为500(内部服务器错误)   09:41:42.15严重-http://servertest/nii/index/show/id/144904/type/40x40.max-加载资源失败:服务器响应状态为500(内部服务器错误)   09:42:12.869严重-http://servertest/nii/index/show/id/144904/type/40x40.max-加载资源失败:服务器响应状态为500(内部服务器错误)   09:42:29.88警告-http://servertest/user/account/login-此页面包含在非安全上下文中输入的密码或信用卡。警告已添加到URL栏中。有关更多信息,请参见   09:43:04.33警告-http://servertest/user/account/login-此页面包含在非安全上下文中输入的密码或信用卡。警告已添加到URL栏中。有关更多信息,请参见   09:43:30.640严重--[DOM]找到2个具有非唯一ID #undefined_hint的元素:(更多信息:)%o%o

0 个答案:

没有答案