behat Questions

2

Solved

I am trying to learn Behat using the tutorial on the website. The first step goes OK, no errors appear. But when I am changing the ls_project/features/bootstrap/FeatureContext.php, as shown in th...
Abbate asked 14/3, 2014 at 11:4

1

Solved

I want to set file name with date and time attached to it so I want to create file named as behat-20140913-195915.html however the example below sets the name as behat-yyyymmdd-hhiiss.html. Anyone ...
Groves asked 13/9, 2014 at 17:32

2

Solved

I'm trying to run Behat (first time for me) and it worked. But i have a configuration problem. I tried to change the paths of features and bootstrap like so: #behat.yml default: paths: features...
Antimagnetic asked 8/1, 2014 at 9:45

1

I am automating a website using the Behat framework, working in PHPStorm, have the latest chromedriver and selenium jar up and running: I cant seem to interact with standard Date fields across the...
Jeopardize asked 13/8, 2014 at 15:22

1

Solved

I'm currently trying to find a solid solution to change the dependencies of a Symfony2 service dynamically. In detail: I have a Services which uses a HTTP-Driver to communicate with an external API...
Asbestosis asked 9/8, 2014 at 7:0

3

Solved

Behat by default looks for the step definitions in file named FeatureContext (all steps in one file). Having a lot of steps, it's hard to maintain such a big file. I'd like to have one definition ...
Benny asked 11/9, 2011 at 11:26

2

Solved

I have Travis-CI running Sauce Connect to run Behat tests. Everything works just fine if I tell Sauce to use Firefox 26 on Windows 7. But if I change the browser to Internet Explorer (any of the th...

3

The basic Behat use case recommends using FeatureContext class. Also, you can specify any other PHP classes in the features/bootstrap directory and they are loaded, but in the alphabetical order, n...
Myrta asked 5/3, 2014 at 13:42

2

Solved

Here are three example BDD statements that should help explain my question: Scenario: User logs in Given I am on the login screen When I enter the valid username "myUsername" And I enter the valid...
Cesspool asked 10/1, 2014 at 16:31

1

I'm using Behat for testing a Symfony2 application. Whilst each Feature test runs happily when run in isolation, trying to run the whole test suite in one go leads to PHP running out of memory - ev...
Zarla asked 20/11, 2013 at 21:7

3

Is it possible to have have a subcontext class extend another subcontext and override functions? At present I have class TestContext extends BehatContext { /** * @Given /^a testScenarioExists$...
Rationalism asked 18/3, 2013 at 8:38

3

Solved

I have been looking around SO and Google, but I couldn't really get a definitive answer. PHPUnit is a framework for unittesting, like JUnit. I use it, also in combination with the Selenium-extensi...
Lucier asked 12/2, 2013 at 8:17

4

Solved

I have recently started using Behat with Mink on a PHP project that uses the Slim microframework My Behat tests work fine but I would like to run them as part of my build, which uses the Jenkins-PH...
Lithuanian asked 6/8, 2012 at 17:0

1

Solved

I created a very simple login test in Behat to login to our internal application. There are two login types (done from the same screen and box). There is basic and advanced. The only difference is ...
Upthrow asked 24/6, 2013 at 15:39

1

Solved

I'm writing functional tests with Behat and Mink in a Symfony2 application. I make use of the data that's already in the database to make the tests instead of adding fixtures (a lot would be neede...
Sanburn asked 19/6, 2013 at 15:37

1

Solved

I am trying to run registration example and I am getting stuck Scenario: New user registration; poor password Given I am on "/register" When I fill in "username" with "admin" And I fill in "pas...
Crux asked 19/4, 2013 at 17:50

2

Solved

This is my directory structure: composer.json composer.phar vendor/ bin/ behat tests/ functional/ behat.yml features/ registration.feature bootstrap/ FeatureContext.php I did: cd tests/...
Jordanjordana asked 10/4, 2013 at 14:47

2

Solved

I am using Mink and Sahi for my user interface tests inside a Symfony2 application. But actually I can't manage to upload a file with Sahi. My Sahi server is up and running: [09:51:33] coil@ubunt...
Corker asked 14/2, 2013 at 9:41

3

I am writing Behat tests and I need to change the value of a hidden input field <input type="hidden" id="input_id" ..... /> I need to change the value of this input field, but I keep getti...
Tenantry asked 26/9, 2011 at 20:47

1

I'm current using Behat with Mink & Goutte Driver. When i'm trying to use it with my dev environment, via the app_dev.php file, which is a typical app_dev.php file from a Symfony2 Standard Edit...
Chaparro asked 22/10, 2012 at 12:31

1

Solved

I'm using Behat and Mink to test several sites. Two of them use Single Sign On, so one of my test includes login in one site, go to second site and check I'm logged in. This is acomplished with th...
Rumery asked 8/11, 2012 at 13:16

1

Solved

I'm trying to use behat and mink together, reading that link: http://docs.behat.org/cookbook/behat_and_mink.html#method-1-composer and trying to activate Mink in Behat framework, but it does not ...
Merola asked 16/9, 2012 at 15:34

3

Solved

Anyone has been using Behat with Zend Framework? Any examples on how to use both?
Jolenejolenta asked 14/4, 2011 at 17:55

1

Solved

I was wondering, i have this HTML : <li> <span class="jqTransformRadioWrapper"> <a rel="choices[choices]" class="jqTransformRadio jqTransformChecked" href = "#"></a> &lt...
Lacagnia asked 4/11, 2011 at 11:3

1

Solved

Behat is the leading BDD framework for PHP. I use PHPStorm and want to integrate Behat into the IDE as an external tool. Question: How should I set up Behat as an external tool (ie, output filters...
Cauterant asked 10/3, 2011 at 6:27

© 2022 - 2024 — McMap. All rights reserved.