小编g.c*_*lia的帖子

Specflow中的多维场景概述

我正在创建一个类似于下面的场景大纲(它是一个简化版本,但很好地说明了我的问题):

Given I have a valid operator such as 'MyOperatorName'
    When I provide a valid phone number for the operator 
    And I provide an '<amount>' that is of the following '<type>'
    And I send a request 
    Then the following validation message will be displayed: 'The Format of Amount is not valid'
    And the following Status Code will be received: 'AmountFormatIsInvalid'

Examples:
    | type      | description                     | amount |
    | Negative  | An amount that is negative      | -1.0   |
    | …
Run Code Online (Sandbox Code Playgroud)

bdd cucumber specflow gherkin

8
推荐指数
1
解决办法
3622
查看次数

nuget对文件名中的空格进行编码

我使用pack命令创建了一个nuget包:

http://docs.nuget.org/docs/reference/command-line-reference#Pack_Command

一切正常; 我遇到的唯一问题是我正在尝试通过PowerShell脚本安装证书这一事实.此证书的名称类似于"CompanyName Ltd.pfx"(请注意空格),但在nuget包中,它被编码为"CompanyName%20Ltd.pfx",因此我的安装脚本无法使用此证书.现在,这是一个小问题,因为我可以修改证书名称删除空格,但无论如何我想知道是否有一种方法可以阻止(或控制)这种类型的编码(因为我没有找到任何东西在nuget文件).

powershell nuget nuget-package

6
推荐指数
1
解决办法
1615
查看次数

禁用Chrome中的打印预览

有没有办法在Chrome中使用javascript禁用打印预览?我需要在Web应用程序中打开一个弹出窗口,其中包含一些要打印的文本; 在此弹出窗口中,我在加载页面时有以下代码:

$(document).ready(function () {
    window.print();
}); 
Run Code Online (Sandbox Code Playgroud)

一个打开打印预览页面的简单JavaScript; 现在,会发生的情况是打印预览页面的行为类似于模式对话框:我无法在打开打印页面的应用程序中导航(即使链接是可点击的).如果正常系统对话框可用,则不会显示此行为(实际上,我在IE Explorer和Firefox中没有此问题).那么,有没有办法告诉Chrome通过JavaScript禁用打印预览?

html javascript jquery google-chrome

6
推荐指数
1
解决办法
6960
查看次数