0
我遇到了使用behat + sahi + phantomjs設置測試本地託管的web應用程序的問題。當使用behat測試本地PHP web應用程序時,Sahi + PhantomJS失敗
- 我與運行全套只是貝哈特+ SAHI +鍍鉻的正常工作
- 我還測試了一個小樣本貝哈特測試對行之有效
出現問題現場STIE發生兩當我點我的BASE_URL要麼我的本地託管應用程序或者該應用程序已被部署
東西這樣簡單的服務器:
@javascript
Scenario: Get to the login page
Given I am on "/login"
And I should see "Email Address"
And I should see "Password"
個
結果輸出:
Given I am on "/login" # FeatureContext::visit()
And I should see "Email Address" # FeatureContext::assertPageContainsText()
Command execution time limit reached: `_sahi.setServerVarPlain('___lastValue___50ff0bcf186da', _sahi._getText(_sahi._byXPath("//html")))`
我使用這裏詳細的設置:http://shaneauckland.co.uk/2012/11/headless-behatmink-testing-with-sahi-and-phantomjs/
這是一個配置問題?或者因爲該應用程序也託管在本地主機上?
我可以嘗試進一步解決這個問題?
感謝