Skip to content
Newer
Older
100644 43 lines (25 sloc) 1.36 KB
bebdd13 @Shashi-ibuildings ReadMe updated for PHPUnit-Mink Framework
authored
1 PHPUnit-Mink framework designed to use combination of PHPUnit, Mink and Page Object Pattern to write functional tests with various browser emulators like Goutte, Selenium, Sahi and WebDriver. PHPUnit-Mink Framework has used Mink and PHPUnit to write tests. Driver support for Selenium, Sahi, WebDriver for browser emulation. Test Report Generation which can plugged in Continuous Integration server. Page Objects which can be used directly in tests. Abstracted common elements up in the framework in order to make it maintainable.
2
3 How to use:
4
5 Clone GitHub Repository
6
7 $git clone git@github.com:Shashi-ibuildings/PHPUnit-Mink.git
8 $cd PHPUnit-Mink
9
10 Start your Driver
11
12 Sahi Driver :
13
14 Download sahi zip file from SourceForge
15
16 Now launch Sahi Server using command below:
17
18 $ cd /path/to/sahi
19
20 $ cd userdata/bin
21
22 $./start_sahi.sh
23
24 Selenium Driver:
25
26 You need to download selenium server jar file and execute following command:
27
28 $ cd /path/to/selenium-server
29
30 $java -jar selenium-server-standalone-2.20.0.jar
31
32 In this tutorial, we are using sahi driver.
33 Now run tests using ANT
34
35 $ant Mink
36
37 Directory structure of framework
38
39 conf : YAML files can be used with Behat
40 core : Abstracted common elements/ methods
41 Page : Page objects (reusable Methods for page)
42 report: Generate Junit, Agile doc reports
43 tests: PHPUnit tests using Mink Api's
Something went wrong with that request. Please try again.