Bring your user and service stories to life through your tests.
Storyplayer should be installed via Composer. To install Storyplayer, create a composer.json
file with the following contents:
{
"require": {
"datasift/storyplayer": "1.5.0"
}
}
Then, run composer install
. Once that's completed, run ./vendor/bin/storyplayer install
to install any additional dependencies.
If your tests need a web browser, make sure you've started browsermob-proxy and selenium:
./vendor/bin/browsermob-proxy.sh start
./vendor/bin/selenium-server.sh start
Basic usage is:
./vendor/bin/storyplayer [-e <environment>] <story>
where:
<environment>
is the name of the environment that you want to run your story against (defaults to your hostname)<story>
is the path to the PHP file containing your story and its test
If you want to run storyplayer from inside its own git repo, make sure that you have Phix installed, and then do the following:
phing build-vendor
If your tests need a web browser, make sure you've started browsermob-proxy and selenium:
vendor/bin/browsermob-proxy.sh start
vendor/bin/selenium-server.sh start
Basic usage is:
storyplayer self-test src/tests/functional-tests/<story>
where:
- self-test is the name of an environment already defined in storyplayer.xml.dist
- src/tests/functional-tests/ is the path to Storyplayer's own tests, that ship with it :)
You'll find our docs at http://datasift.github.io/storyplayer.
If you try and run Storyplayer but get one of the following error messages, the OS you're using isn't currently supported:
- fatal error: Unable to detect OS
- fatal error: Unable to create from distributions: [distribution list]
Currently supported OS's are:
- OSX
- Ubuntu
- Linux Mint
- Fedora
- CentOS 5
- CentOS 6
If you're not using one of these but still want to use Storyplayer, we can help! To enable us to add support, open an issue and post the results of the following commands:
# This is how we detect the OS
cat /etc/issue
# This is how we get your IP address
ifconfig
With this information, we can add support for your OS to Storyplayer.
New BSD license. Full details are in the LICENSE.txt file.