behat

Behat and Symfony2 bundle issue?

爷,独闯天下 提交于 2020-01-03 13:00:50
问题 I've got some problems with Behat (2.4.*@dev) init process inside Symfony2 bundle (ver 2.2.2). After command: bin/behat --init "@CompanyAppBundle" behat directories are created inside application root directory, not in bundle. The output is: +d features - place your *.feature files here +d features/bootstrap - place bootstrap scripts and static files here +f features/bootstrap/FeatureContext.php - place your feature related code here Where is the problem? 回答1: Not sure about Behat v2.4, but

Behat and Symfony2 bundle issue?

大兔子大兔子 提交于 2020-01-03 13:00:34
问题 I've got some problems with Behat (2.4.*@dev) init process inside Symfony2 bundle (ver 2.2.2). After command: bin/behat --init "@CompanyAppBundle" behat directories are created inside application root directory, not in bundle. The output is: +d features - place your *.feature files here +d features/bootstrap - place bootstrap scripts and static files here +f features/bootstrap/FeatureContext.php - place your feature related code here Where is the problem? 回答1: Not sure about Behat v2.4, but

When running `bin/behat` I get a “Class not found” error

僤鯓⒐⒋嵵緔 提交于 2020-01-02 17:34:22
问题 When I run bin/behat I get this error. PHP Fatal error: Class 'Symfony\Component\Console\Application' not found in /vendor/behat/behat/src/Behat/Behat/Console/BehatApplication.php on line 31 My composer.json file contains this: { "require": { "drupal/drupal-extension": " ", "behat/behat": "2.4. @stable", "behat/mink": "1.4@stable", "behat/mink-goutte-driver": " ", "behat/mink-selenium-driver": " ", "behat/mink-selenium2-driver": " ", "behat/mink-sahi-driver": " ", "behat/mink-zombie-driver":

sahi and symfony2

你。 提交于 2019-12-31 06:25:27
问题 i would like to test behat, mink and sahi with symfony2 so, in my config_test.yml i have mink: base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php default_session: symfony sahi: ~ and in test.feature @mink:sahi Scenario: Open page with products list and check it Given I am on "/hello" Then the response should contain "hello" when i execute i have this PHP Fatal error: Call to undefined function Buzz\Client\curl_init() in C:\wamp\ www\Symfony_Standard_2.0.15_2\Symfony

sahi and symfony2

瘦欲@ 提交于 2019-12-31 06:25:02
问题 i would like to test behat, mink and sahi with symfony2 so, in my config_test.yml i have mink: base_url: http://localhost/Symfony_Standard_2.0.15_2/symfony/web/app_test.php default_session: symfony sahi: ~ and in test.feature @mink:sahi Scenario: Open page with products list and check it Given I am on "/hello" Then the response should contain "hello" when i execute i have this PHP Fatal error: Call to undefined function Buzz\Client\curl_init() in C:\wamp\ www\Symfony_Standard_2.0.15_2\Symfony

Behat / Mink / Selenium testing broken (macOS)

為{幸葍}努か 提交于 2019-12-30 14:47:08
问题 I have been using Selenium for quite some time for automated browser testing. I never did figure out how to get it to run in anything other than Firefox. Well now FireFox will launch but won't get pulled to the front and it just sits there and does nothing. I have a feeling it's because FireFox updated itself. I'm running macOS Sierra. I have installed and enabled the WebDriver 2.48 extension into Safari. I have downloaded and tried both selenium-server-standalone-2.53.1.jar and selenium

How to setup Behat with Selenium Standalone Server and Firefox 49?

為{幸葍}努か 提交于 2019-12-25 12:43:29
问题 Can anyone explain in details how to setup and run Behat with Selenium Standalone Server 3.0.0-beta 4 and Firefox 49. Actually I have problem with setup behat.yml. I have try like it is explained How to run tests in behat on firefox 48.0 using selenium stand alone server? but no luck. 回答1: First of all, do you want to ride a grid or a basic Selenium server? The test will run in Windows, mac or ubuntu? Have you tried as I explain in the last comment of the second answer (in the link you found)

Testing loging in with Behat

孤人 提交于 2019-12-25 07:09:03
问题 So I have given such scenario and feature: Feature: User registration As an Unregistered User I want to be able to register to the system so that I can use it. Scenario: User successfully registers Given I am unregistered user When I register successfully into the system Then I should become a registered user And I should be logged on to the system I was thinking how to write the test. What do I assert. Lets talk about I should be logged in to the system. I had done testing with phpunit and

Is there a way to programmatically supply variables to behat features?

做~自己de王妃 提交于 2019-12-24 11:26:22
问题 I want to exhaustively test a set of pages with behat. For example, this Scenario Outline: Scenario Outline: Given I am at <path> When I click some button Then I should see <hidden-stuff> | path | hidden-stuff | | path1 | element1 | | path1 | element2 | | path1 | element3 | | path2 | element1 | | path2 | element2 | | path2 | element3 | | path3 | element1 | | path3 | element2 | | path3 | element3 | ... In my specific case, I have over 10 examples and 50 paths, so you can see how this becomes

behat step “I should see” does not see

好久不见. 提交于 2019-12-22 18:19:20
问题 Using Behat in Yii framework, I am observing its quite strange behaviour: Behat does not find some text when using steps like Then I should see "some text" Some text it finds normaly, but some - not. To be sure that I am on the page I think I am on, I've added sort of markers in the view files and Behat sees them. So, the scenario is Scenario: editing journal Given the following journals are present: | name | link | description | | Murzilka | http://www.murz.com | advanced child journal| |