-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoctest.sh
More file actions
executable file
·34 lines (24 loc) · 828 Bytes
/
octest.sh
File metadata and controls
executable file
·34 lines (24 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
BASE_PATH=$(dirname $0)
cd $BASE_PATH
TESTS=$PWD/tests
DOCKER=$PWD/images
WWW=$PWD/www
OC_TEST_INSTANCE_NAME="test"
OC_TEST_INSTANCE_EDITION="community"
OC_TEST_INSTANCE_VERSION="7.0.1"
OC_TEST_INSTANCE="$OC_TEST_INSTANCE_NAME-$OC_TEST_INSTANCE_EDITION-$OC_TEST_INSTANCE_VERSION"
URL="http://127.0.0.1/octest/${OC_TEST_INSTANCE}/"
SERVER=$WWW/$OC_TEST_INSTANCE
echo $OC_TEST_INSTANCE
echo $URL
echo $SERVER
rm -rf $SERVER; ./ocsetup.sh test -c
cd $TESTS
protractor $TESTS/protractor_conf.js --params.baseUrl=$URL --suite install
cd $SERVER
php occ app:disable firstrunwizard
cd $TESTS
protractor $TESTS/protractor_conf.js --params.baseUrl=$URL --suite login
# protractor $TESTS/protractor_conf.js --params.baseUrl=$URL --suite files
# protractor $TESTS/protractor_conf.js --params.baseUrl=$URL --suite share