小编Shy*_*tty的帖子

如何在使用量角器时运行单个特定的测试用例

我在我的应用程序中使用量角器进行角度js测试,目前有大约19个测试用例,其中一个失败

describe('Login page', function() {

beforeEach(function() {
  browser.ignoreSynchronization = true;
  ptor = protractor.getInstance();
});

it('should contain navigation items', function(){
  //test case code here
});

it('should login the user successfully', function(){ 
  //test case code here
})
});
Run Code Online (Sandbox Code Playgroud)

目前,我运行所有测试用例.但是,如何运行一个测试用例来调试问题,例如一个被描述为"登录页面应该成功登录用户"的问题?

integration-testing angularjs protractor

28
推荐指数
2
解决办法
2万
查看次数

Rails 3动作邮件程序生成OpenSSL :: SSL :: SSLError:主机名与服务器证书不匹配

我在生产服务器中发送电子邮件时遇到Open SSL证书错误问题.在开发模式下一切正常.以下是我在生产模式下的配置代码.

config.action_mailer.raise_delivery_errors = true

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {
 :address => "smtp.gmail.com",
 :port => 587,  
 :authentication => "plain",
 :enable_starttls_auto => true,
 :user_name => 'xxxxxxx',
 :password => 'xxxxx',
 :openssl_verify_mode  => 'none'
}
Run Code Online (Sandbox Code Playgroud)

我已经看过上一篇文章中的解决方案但是,这并没有解决我的问题.

有人可以帮助这个吗?

openssl ruby-on-rails actionmailer ruby-on-rails-3.2

5
推荐指数
1
解决办法
1907
查看次数