我们有AngularJS量角器测试.该过程是按顺序设置和运行这些步骤:
$ npm install
$ webdriver-manager update --ie32 --ignore_ssl
$ gulp
Run Code Online (Sandbox Code Playgroud)
我遇到的问题是这个设置适用于我团队中的其他人,但是我有100%的时间收到此错误:
[11:42:33] I/local - Starting selenium standalone server...
[11:42:36] I/local - Selenium standalone server started at http://10.222.189.129:55574/wd/hub
/path/to/repo/node_modules/selenium-webdriver/lib/error.js:27
super(opt_error);
^
SessionNotCreatedError: Unable to create new service: ChromeDriverService
Build info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:54:15.039Z'
System info: host: 'xxxx', ip: 'xxxx', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_131'
Driver info: driver.version: unknown
at WebDriverError (/path/to/repo/node_modules/selenium-webdriver/lib/error.js:27:5)
at SessionNotCreatedError (/path/to/repo/node_modules/selenium-webdriver/lib/error.js:214:5)
at Object.checkLegacyResponse (/path/to/repo/node_modules/selenium-webdriver/lib/error.js:505:15)
at parseHttpResponse (/path/to/repo/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response …Run Code Online (Sandbox Code Playgroud) selenium-chromedriver angularjs selenium-webdriver protractor gulp
我正在尝试(但失败)使用 ActionMailer 配置 Ruby on Rails 应用程序以发送 AMP 电子邮件。现在正在寻找有关如何进一步调试的任何建议,我不知道还能做什么!
示例 AMP 模板在从AMP Gmail 游乐场发送时有效,但是当我从我们的 Rails 应用程序发送示例时,AMP 版本不会在 Gmail 中呈现。
在config/initializers/mime_types.rb我补充说:
Mime::Type.register 'text/x-amp-html', :amp
Run Code Online (Sandbox Code Playgroud)
AMP 标记位于名为app/views/reminder_mailer/foo_notification.amp.erb. 为了测试,我的邮件程序方法如下所示:
def foo_notification
mail(to: 'foo@example.com', subject: 'Foo subject') do |format|
format.amp
format.text
format.html
end
end
Run Code Online (Sandbox Code Playgroud)
我的 Rails 控制台的输出显示了正确发送的邮件,Content-Type: multipart/alternative后跟Content-Type: text/x-amp-html. 完整输出如下。
ReminderMailer#foo_notification: processed outbound mail in 19.9ms
Sent mail to foo@example.com (625.2ms)
Date: Thu, 06 Feb 2020 16:47:56 -0800
From: example <notifier@example.com>
Reply-To: example <notifier@example.com> …Run Code Online (Sandbox Code Playgroud) 我已经查看了 SO 上所有安装 Postgres gem 时出现类似错误的帖子pg。
我的问题很独特:我可以通过 Gemfile 成功地将 Postgres 添加到我的 Sinatra Ruby 项目中,bundle install但是在构建 Docker 映像时,它安装失败pg,并出现以下错误:
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/pg-0.19.0/ext
/usr/local/bin/ruby -r ./siteconf20170113-7-ottv1k.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Run Code Online (Sandbox Code Playgroud)
我已经尝试了类似答案中建议的所有内容:
pg_config和 …actionmailer ×1
amp-email ×1
amp-html ×1
angularjs ×1
bundler ×1
docker ×1
gulp ×1
pg ×1
postgresql ×1
protractor ×1
ruby ×1
sinatra ×1