Company
Date Published
Author
Shashikant Jagtap
Word count
1500
Language
English
Hacker News points
None

Summary

Behat is a popular BDD framework for PHP applications that has recently gained new capabilities, including the use of Composer and Behat Extensions. These extensions allow users to extend Behat with custom features. In this tutorial, we will explore how to install Behat using Composer and integrate it with Sauce Labs for mobile app testing. The installation process involves uninstalling the old version of Behat, creating a new directory, and installing the required dependencies using Composer. Once installed, users can access Behat locally or globally. We have also created a sample project that uses MinkExtension to configure the features of Sauce Labs for local testing. The tutorial covers how to create a feature file, update the FeatureContext.php file, and run the tests in a browser. Additionally, we will discuss how to download Selenium Server and run it in the background for remote testing.