behat Questions

2

I have a Behat test running Selenium whenever Javascript is needed. My current Behat test works just fine if Javascript (so Selenium is disable). At the moment, my only error feedback from Seleniu...
Puerility asked 23/3, 2016 at 9:42

3

I am working on a solution for functional test with javascript support. Naturally, using Symfony Framework, I choose Behat with Sahi driver, and I had my test suites green. The problem was that sa...
Capua asked 16/12, 2013 at 10:33

3

Solved

I am using Behat and Mink with the Selenium2 driver, and I'm trying to type directly into a form field (simulating raw keyboard input), instead of using the fillField() function. This is what I'm ...
Quasi asked 27/6, 2013 at 2:58

1

I was just wondering if you could point out where the problem is here, if it's Behat, the CSS selector, or the Sahi Driver. We have just upgraded to Behat 3 and are using Sahi Driver (most recent ...
Starve asked 26/11, 2014 at 16:16

2

First of all I've read this related question and this other approach (blog post). This is my behat.yml: default: suites: users: contexts: - DoctrineFixturesContext - FeatureContext - Behat...
Augustinaaugustine asked 10/11, 2015 at 16:44

2

I am using Behat to test an third-party webshop. I have a item in the shoppingcart that i want to delete. A confirmation pop-up shows that asks me if i really want to do it. The structure of this d...
Archaeornis asked 11/11, 2015 at 11:24

2

Solved

Is it possible to pass an array as argument in Behat step? For example want something like this: When I select <"Alex","Sergey"> in "users" I know that for this situation I can use: When...
Imogeneimojean asked 14/11, 2014 at 10:7

1

Solved

I'm builing a REST API in Symfony and I'd like to test it with Behat (using Mink and the behat extension for symfony2). There's no problem for the GET methods, I just "mock" some database objects, ...
Hertz asked 26/10, 2015 at 20:34

1

I am using behat+mink. I wrote some features and am now running tests. How can I enable xdebug to to stop on breakpoints in phpstorm when running behat tests ?
Steffaniesteffen asked 17/12, 2014 at 9:20

1

Solved

i'm trying to use mink with Behat on Zend framework 1 but when i run Behat command i get this error "Mink instance has not been set on Mink context class. Have you enabled the Mink Extension? (Runt...
Tybi asked 16/7, 2015 at 5:56

4

Solved

I am using Behat for testing, with the ZombieJS driver, and everything is working very well so far, but there is one thing that bothers me, I can't seem to figure out how to get Behat to simulate a...
Baltazar asked 13/11, 2012 at 17:46

2

Solved

Background: I'm currently writing behat tests (Mink/Selenium) for a Symfony2 webpage. I have a good deal of examples to go by, and actually writing them should be no problem. The step definitions ...
Meretricious asked 26/6, 2015 at 7:44

4

Solved

I would like to know if it's possible to set the base_url via the command line. Example bin/behat --base_url=http://google.fr I would like to avoid creating a new profile and passing it via the...
Miscarriage asked 6/11, 2013 at 14:49

2

Solved

I followed the Behat 2.5 docs to test mails. After a few tweaks to match Behat 3 I have ended with the following code (I have removed non-relevant parts): public function getSymfonyProfile() { $d...
Follett asked 21/11, 2014 at 12:6

3

Solved

I get this error when trying to run my behat tests from the command line. The full output of the error looks like this: $ behat Feature: View a list of current custom tariffs In order to provid...
Telescopium asked 31/1, 2013 at 16:2

2

I've been following this guide (and installed everything through composer): http://docs.behat.org/cookbook/behat_and_mink.html and am attempting to get Behat + Mink working but everytime I try and ...
Occupancy asked 6/6, 2012 at 16:43

1

I can't use getMainContext() and getSubcontext($alias) in version 3 any more. What is the way to communicate between context in version 3. Are context traits the only way? # behat.yml default: ...
Sec asked 16/4, 2015 at 12:26

2

Solved

I have tried Behat 2.5 in the past and had no issues setting it up, but now I just downloaded Behat 3 and I am having some difficulties trying to set it up. My problem is that, after a fresh instal...
Eugenle asked 30/10, 2014 at 16:35

1

When writing functionnal tests, some parts are repeated quite frequently. For example users logging in : I go to "/login" I fill in "login" with "username" I fill in "password" with "password" I ...
Bortman asked 27/12, 2014 at 10:22

1

How can I run behat --init -s bugfix to generate Context files inside the Bundle? Is there any way to do this? I see the Sf2DemoBundle but I didn't solve how it works. My files # /composer.json ...
Spotweld asked 30/6, 2014 at 16:45

4

Solved

I'm using Behat in Symfony2 / Doctrine2. Now, I have this scenario that boils down to the fact that "if I'm logged in and I go to /login, I shoud go to / instead": @login Scenario: Go to the login...
Crossjack asked 12/11, 2011 at 22:21

1

Solved

I installed Behat, Mink and a few other related packages. Here is my composer.json file: "require":{ //... "behat/behat": "~3.0.6", "behat/symfony2-extension": "dev-master", "behat/mink": "de...
Shortcut asked 31/7, 2014 at 0:45

3

Solved

Scenario: Modify and save an incomplete change to a Campaign Given I click on the Campaign section folder And I press Save in the selected Campaign Then I should see an error balloon informing the...
Gamone asked 25/9, 2012 at 10:13

1

I am working on automating a website written in Python and using Angular where there are many confirmation notifications. The issue I have is that Behat doesn't seem to recognise those notification...
Watereddown asked 23/10, 2014 at 11:11

2

Solved

I have a test suite which has 20 feaure files and 100% MySQL CRUD operations are being carried out. It takes about 5 minutes to finish. If I did the test manually it would take about 7 minutes max....
Homeward asked 16/10, 2014 at 16:15

© 2022 - 2024 — McMap. All rights reserved.