nextcloud/build
Daniel Calviño Sánchez 7c07f01d59 Add actors for test scenarios
An actor plays the role of an end-user in the test scenario. As such,
each actor has its own web browser session used to perform the actions
specified by the steps of the scenario. Only one actor is active at a
time in a test scenario, and the current actor can be set through the "I
act as XXX" step; from then on, all the steps are performed by that
actor, until a different actor is set by calling "I act as XXX" again.
If no actor was explicitly set in a scenario then the default actor,
unsurprisingly named "default", is the one used.

The ActorContext class is added to provide automatic support for all
that. To use the ActorContext, besides adding it to the context list in
"behat.yml", a Mink session for each actor used in the features must be
specified in "behat.yml". Once done other Contexts just need to
implement the ActorAwareInterface (which can be done simply by using the
ActorAware trait) to have access to the current Actor object of the test
scenario; as the Actor object provides its own session other Contexts do
not need to extend from RawMinkContext. The ActorContext is itself a
RawMinkContext, so it automatically receives the base URL of the
Nextcloud test server run by NextcloudTestServerContext and propagates
that base URL to all the actors.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-04-19 08:26:03 +02:00
..
.ci-conf Adding magic file to enable oci on pull request testing on ci.owncloud.org 2015-03-20 15:00:51 +01:00
acceptance Add actors for test scenarios 2017-04-19 08:26:03 +02:00
integration Add support for ratelimiting via annotations 2017-04-13 12:00:16 +02:00
.htaccess Only request "IndexIgnore" if mod_autoindex is loaded 2017-02-20 13:09:15 +01:00
OCPSinceChecker.php $this->blackListedClassNames is unknown 2016-09-07 22:09:08 +02:00
autoloaderchecker.sh Allow to use a global composer instance 2017-01-05 11:01:59 +01:00
build.xml cleaning up the build directory 2014-12-10 10:07:22 +01:00
gen-coverage-badge.php Add script to generate coverage badges 2016-02-16 10:07:00 +01:00
htaccess-checker.php Add .htaccess checker as CI step 2016-11-02 20:11:30 +01:00
jsdocs9.tar.bz2 Update integration tests for system tags with groups 2016-05-20 17:56:02 +02:00
license.php Make sure to also detect their new copy right line 2016-08-18 10:59:59 +02:00
mergejs.php mergejs should print a newline between imports 2017-03-31 17:06:38 +02:00
mergejschecker.sh Add CI step to verify merged vendor js 2017-03-23 13:40:30 +01:00
package.json also install sinon 2017-03-23 23:42:54 -06:00
signed-off-checker.php Add codecov 2016-09-28 21:08:17 +02:00