在Travis Doc中,"设置"中有"SSH密钥"选项卡,但在我的帐户中没有.我需要在GitHub上添加SSH Key来克隆子模块.
我的帐户:

特拉维斯文件:

continuous-integration github ssh-keys git-submodules travis-ci
我正在使用impdp导入备份.但我想要更改默认目录dumpfile.
$ impdp system/password@$ORACLE_SID schemas=USER_SCHEMA dumpfile=mydumpfile.dmp logfile=impdpmydumpfile.log
Import: Release 11.2.0.3.0 - Production on Mon Mar 16 09:32:05 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "/u01/app/oracle/admin/mydatabase/dpdump/mydumpfile.dmp" for read
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Run Code Online (Sandbox Code Playgroud) 我正在使用PHPUnit 4.6和PHPUnit Selenium 1.4.2与PhantomJS.当selenium测试失败时,我想捕获最后一页的截图.在PHPUnit Manual中有一个Selenium 1的例子,但我正在尝试使用Selenium 2,因为我需要使用GhostDriver.
WebTestCase.php
class WebTestCase extends PHPUnit_Extensions_Selenium2TestCase
{
protected $captureScreenshotOnFailure = TRUE;
protected $screenshotPath = '/../../screenshots';
protected $screenshotUrl = 'http://localhost:8080/screenshots';
protected function setUp() {
$this->setBrowser('phantomjs');
$this->setBrowserUrl("http://localhost:8080");
$this->setHost('localhost');
}
}
Run Code Online (Sandbox Code Playgroud)
test.php的
class Test extends WebTestCase
{
public function testTitle()
{
$this->url('');
assertEquals($this->title(), "My App");
}
}
Run Code Online (Sandbox Code Playgroud)
但这不是截图.
$ vendor/bin/phpunit
PHPUnit 4.6-ge85198b by Sebastian Bergmann and contributors.
Configuration read from /MyApp/phpunit.xml
F
Time: 231 ms, Memory: 5.50Mb
There was 1 failure:
1) Test::testTitle
Failed asserting …Run Code Online (Sandbox Code Playgroud)