Drupal knowledge
In Today’s fast-paced world with faster releases expected, growing is the demand for quicker testing as well. Testing is a blend of manual and automation activities. Regression scenarios are often the best candidate to automate.
We have “Behat” an automation tool in order to automate our test cases. It supports “Gherkin” language which is a human-readable language and you just need to write a minimal amount of code in order to write more powerful assertions apart from the inbuilt ones.
Here is an example of a Behat scenario written in Gherkin language:
Given I am on the homepage
When I visit “/index.php”
Then I should see “….message”
In order to make the interaction between the user and the web browser, we have a requirement to produce a script with a set of programs, like start browser, fill the correct credentials, and press the login button etc. Mink extension enables you to make it possible. which has defined many readymade step definitions which can be used. We can use a selenium2 server which contributes real-time behavior performance. We can check how it will work with the browser.
Key takeaways
• What is Behat?
• What is the use of mink extension with Behat
• Mink driver
• Execution on
o Browser-based execution
o Headless execution
o Tags/selected scenarios