Questions tagged [Behat] (11)

1
answer

To understand BDD to the end, (StoryBDD, SpecBDD)?

Hello colleagues, help to get to the bottom of the BDD, for example with behat and phpspec. Let's say we are starting a new project where we have 10 features (features), we will described for tests(StoryBDD) to behat and begin to implement the spec using phpspec (SpecBDD). All this is of course in the ideal regime according...
macy.Considine asked October 3rd 19 at 08:44
2
answers

Why are you using Codeception?

Actually... it's just a poll and I'm curious. Why did you choose this tool for testing. Subjectively, it's disgusting. Because I would like to hear the opinion of people. Why is it? Why not behat for UI/integration/acceptance tests? Why not phpspec to describe the behaviour of classes? In particular if you used Behat and Co...
Allene_Crona78 asked September 24th 19 at 16:33
0
answer

Behat — is it possible to use variables?

Is there a way to use variables in .feature files that when you run the test would be replaced by a specific value? For exampleScenario Outline: TEST Given I am on the homepage When I visit @website Then I should see: @title As a result, when you run @website and @title will be replaced by the specified values. Mechanism...
Perry_Ledner asked September 15th 19 at 16:50
1
answer

Behat or Codeception and why?

Actually a subject. tridcatka
Travis26 asked September 15th 19 at 09:32
0
answer

How to rewrite php behat in C#?

Like this piece of code to alter in code project in C# using Selenium Webdriver? $this->getSession()->getDriver()->evaluateScript( "function(){ return 'some expression'; }()" );
westley.Hal asked September 15th 19 at 03:09
1
answer

Behat does not load all the files from features/bootstrap?

From the documentation:The bootstrap parameter defines the directory from which Behat will automatically load all *.the phpfiles. But in practice, it downloads only what is written in behat.yml
Johnathan asked September 15th 19 at 02:05
1
answer

How to do that would report on the result of the tests were sent by Email?

In General the problem is that I don't have time to watch when will all the tests each time to force the virtual machine. I want to do whatever the result of the passage came immediately in the mail. How it can be implemented?
Maude asked September 3rd 19 at 16:46
0
answer

An example of unit testing. More useful than assert(2,1+1 )?

everywhere the same primitive examples I can not see use don't want to do tests for tests I recently wrote a helper like{{ knp_pagination_sortable(pagination, 'Id') }} first was a few lines of code then to the extent of use in the project saw cases where it was necessary to add more code to it work ie the growth of the proj...
erna_Bergstr asked August 19th 19 at 21:47
0
answer

Practices functional/acceptance testing of multilingual websites?

Are there any best practices to build acceptance and functional tests for multilingual sites? With the condition that may be different content and should not have translated some phrases/sections and that I would like to check, but not to duplicate the tests just for the sake of translation. If you take, for example, Behat...
Perry_Ledner asked August 12th 19 at 16:58
1
answer

Testing the functionality of the recycle bin?

I see to test this functionality I need 3 levels 1st test objects themselves$product = new Product(123); $basket->add($product) assert ( instanceof $basket->get(123) == \namespace\Product ); $basket->remove( 123 ); assert( false === $basket->getAll() ) 2nd test forms and route returns the contents of the basket...
erna_Bergstr asked June 30th 19 at 11:57