具有通配符意外结果的测试路径

时间:2018-12-03 11:02:41

标签: powershell

Test-Path的行为异常。

Acceptance Tests (1) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Modules: Yii2, WebDriver
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FinishCallCest: Submit blank finish form
Signature: calIn\FinishCallCest:submitBlankFinishForm
Test: tests/acceptance/callIn/FinishCallCest.php:submitBlankFinishForm
Scenario --
  Destroying application
  Starting application
  [ConnectionWatcher] watching new connections
  [Fixtures] Loading fixtures
  [Fixtures] Done
  [GET] http://test:test@localhost:8080/
  [Cookies] [{"domain":"localhost","httpOnly":true,"name":"_csrf","path":"/","secure":false,"value":"c99eee70d806de0660302db950c436a04f5a6316b5847caed6de7d1d2e2d896aa%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22PXMEKYNF-k-StsR38slXolelVVLuFKTK%22%3B%7D"},{"domain":"localhost","expiry":1543848123.606772,"httpOnly":true,"name":"_identity","path":"/","secure":false,"value":"dacb46519512cd901d6c8ceafb494a3d2893b6cf41a196e111c9c522aa4605c9a%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A77%3A%22%5B%22corebofs000080000ktnhd8g9vnbio68%22%2C%22corebofs000080000ktnhd8g9vnbio68%22%2C18000%5D%22%3B%7D"},{"domain":"localhost","httpOnly":true,"name":"PHPSESSID","path":"/","secure":false,"value":"06okm3re6q6ncjj6q878sdq88j"}]
 I am on page "/index-test.php?r=call-in%2Ffinish-call&callId=1"
  [GET] http://test:test@localhost:8080/index-test.php?r=call-in%2Ffinish-call&callId=1
 I wait 5
 I click "//*[@id="w3"]/div[1]/div[1]/h4/a"
 I wait 5
 I see "Завершение звонка","//*[@id="w1"]/div[4]/button"
 I click "//*[@id="w1"]/div[4]/button"
 PASSED 

  Destroying application
  [ConnectionWatcher] no longer watching new connections
  [ConnectionWatcher] closing all (0) connections
  Suite done, restoring $_SERVER to original
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Time: 24.18 seconds, Memory: 14.00MB

OK (1 test, 1 assertion)


Code Coverage Report:     
  2018-12-03 09:42:01     

 Summary:                 
  Classes:  0.00% (0/84)  
  Methods:  0.00% (0/389) 
  Lines:    0.00% (0/2706)

Remote CodeCoverage reports are not printed to console

HTML report generated in coverage

我认为这将返回true,与Test-Path -Path 'C:\W*' -PathType 'Container' # Returns: False 相匹配。

当我为C:\Windows运行相同命令时,它返回true,并且匹配了C:\P*C:\Program FilesC:\Program Files (x86)

我正在Win-10(64位)上运行PowerShell 5.1。

谁能看到我所缺少的东西?

0 个答案:

没有答案