PHP 瀏覽器模擬測試工具,Mink 1.7.0 發布

jopen 9年前發布 | 5K 次閱讀 Mink

Mink 是開源的 PHP 瀏覽器/控制器 模擬測試工具。Mink 可以模擬 Web 應用和瀏覽器之間的交互,測試 Web 應用的行為是否正確。

Mink 1.7.0 發布,此版本更新內容如下:

新特性:

  • Added Session::getResponseHeader to access a response header easily

    </li>

  • Added support for header assertions

    </li>

  • Added a forward compatibility layer for drivers to allow them to prepare for Mink 2.0 (they won't require any change if they use it). They should now overwrite CoreDriver::findElementXpaths instead of implementing findand setSession themselves.

    </li>

  • Added escaping of the locator in the NamedSelector rather than expecting the caller to perform the escaping. Passing an escaped locator is still supported but deprecated.

    </li>

  • Remove the dependency on the Session in expectation exceptions. Passing the session in the exception constructor is now deprecated. The driver should be passed instead.

    </li> </ul>

    Bug 修復:

    • Fixed the URL assertions when comparing paths ending in .php

      </li>

    • Silenced deprecation warnings (following the Symfony convention) to make them less invasive. Use the symfony/phpunit-bridge to get them reported when using Mink in your PHPUnit tests.

      </li>

    • Fixed NodeElement::hasClass in case the class attribute contains newlines

      </li> </ul>

      測試套件:

      • Made the testsuite compatible with PHPUnit strict timing mode (only the library testsuite, not the driver one)

        </li>

      • Added testing against PHP 7

        </li>

      • Added testing against lowest version of dependencies to ensure we got the lower bounds right

        </li> </ul>

        驅動測試套件:

        • Added an extra test to ensure the right behavior when getting the HTML with empty elements

          </li>

        • Added a few more safeguards to ensure test failures rather than fatal errors for misbehaving drivers

          </li>

        • Added a test ensuring that drivers follow recommended practices

          </li> </ul>

          Misc:

          • Added a few missing deprecation warnings for deprecated APIs or classes.

            </li> </ul> 下載:<a href="/misc/goto?guid=4958967950287814904" _src="</a>。

             本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
             轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
             本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!