小编acf*_*tas的帖子

如何在Travis CI中添加SSH密钥?

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

我的帐户:

在此输入图像描述

特拉维斯文件:

在此输入图像描述

continuous-integration github ssh-keys git-submodules travis-ci

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

如何在impdp中更改目录转储文件?

我正在使用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)

database oracle impdp

10
推荐指数
3
解决办法
9万
查看次数

如何在测试失败时使用PHPUnit和Selenium2捕获屏幕截图?

我正在使用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)

testing selenium phpunit phantomjs ghostdriver

4
推荐指数
2
解决办法
4165
查看次数