Last active
December 22, 2015 19:49
-
-
Save IchHabRecht/6521965 to your computer and use it in GitHub Desktop.
Composer installation of mink/behat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Users\Nicole\Version Control\Composer\behat\composer.json" | |
{ | |
"require": { | |
"behat/behat": "2.4.*@stable", | |
"behat/mink": "1.4@stable", | |
"behat/mink-goutte-driver": "*", | |
"behat/mink-selenium-driver": "*", | |
"behat/mink-selenium2-driver": "*", | |
"behat/mink-sahi-driver": "*", | |
"behat/mink-zombie-driver": "*", | |
"behat/mink-extension": "*" | |
}, | |
"minimum-stability": "dev", | |
"config": { | |
"bin-dir": "bin/" | |
} | |
} | |
Im Verzeichnis behat "C:\Users\Nicole\Version Control\Composer\behat\bin\behat --init" ausführen | |
"C:\Users\Nicole\Server\typo3-4-5.local\behat\features\bootstrap\FeatureContext.php" | |
class FeatureContext extends Behat\MinkExtension\Context\MinkContext | |
"C:\Users\Nicole\Server\typo3-4-5.local\behat\behat.yml" | |
default: | |
context: | |
class: 'FeatureContext' | |
extensions: | |
Behat\MinkExtension\Extension: | |
base_url: 'http://typo3-4-5.local' | |
javascript_session: 'selenium2' | |
goutte: ~ | |
selenium2: | |
"C:\Users\Nicole\Server\typo3-4-5.local\behat\features\IntroductionPackage.feature" | |
Feature: Multiple tests for TYPO3 introduction package | |
@javascript | |
Scenario: Search for "test" on a TYPO3 Introduction Package | |
Given I am on "/" | |
When I fill in "inputText" with "test" | |
And I press "inputButton" | |
Then I should be on "/special-pages/search/" | |
And I should see "1 to 2" | |
Scenario: Backend Login with default user | |
Given I am on "/typo3/index.php" | |
When I fill in "t3-username" with "admin" | |
And I fill in "t3-password" with "password" | |
And I press "t3-login-submit" | |
Then I should be on "/typo3/backend.php" | |
And I should see "admin" in the "#username" element | |
java -jar C:\Users\Nicole\Downloads\Programme\selenium-server-standalone-2.31.0.jar | |
Stopping: http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer | |
Im Verzeichnis der behat.yml "C:\Users\Nicole\Version Control\Composer\behat\bin\behat" für alle Tests ausführen | |
Im Verzeichnis der behat.yml "C:\Users\Nicole\Version Control\Composer\behat\bin\behat features/example.feature" für einen Test ausführen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment