You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Download the Chrome driver, unzip and copy into /usr/bin
16
5
17
6
Check the latest `chromedriver` version at [https://googlechromelabs.github.io/chrome-for-testing/](https://googlechromelabs.github.io/chrome-for-testing/) that matches your configuration (linux64 for Ubuntu), then adapt the following command to the latest version. Use a version that matches your version of the Chrome browser.
- Have the Google Chrome browser installed (or any other browser that supports headless mode, but instructions and configurations below will change accordingly).
13
+
23
14
### Chamilo configuration
24
15
25
16
- An administrator user should be created with these parameters:
@@ -29,29 +20,32 @@ cd /tmp && wget https://storage.googleapis.com/chrome-for-testing-public/143.0.7
29
20
- Last name "Doe"
30
21
- user_id = 1 (this one is set when you install Chamilo, but just in case...)
31
22
32
-
- Edit the tests/behat/behat.yml file and update the base_url param with your own Chamilo local URL.
23
+
- Edit the tests/behat/behat.yml file and update the base_url param with your own Chamilo local URL and make sure your machine understands it (e.g. add it to your /etc/hosts file).
33
24
- The main platform language and the admin user's language must be English (`platform_language = 'en_US'` in the `settings` table and admin user profile)
34
25
- Social network tool must be available (`allow_social_tool = 'true'` in the `settings` table)
35
26
- Student can register to the system (`allow_registration = 'true'` in the `settings` table)
36
27
- Teacher can register to the system (`allow_registration_as_teacher = 'true'` in the `settings` table)
37
28
29
+
### Launch the chromedriver
30
+
```
31
+
chromedriver --port=4444
32
+
```
33
+
If you want to run the tests with a different base_url (see behat.yml), you will need to ask chromedriver to allow calls from remote IPs. This has serious security implications if the testing machine is exposed to the internet, so please be careful.
To run all features (including the installation of Chamilo - which you might want to disable in features/actionInstall.feature if you already have Chamilo installed):
Not all java versions will work. For Ubuntu, `sudo apt install openjdk-11-jdk openjdk-11-jre` should do, but OpenJDK 17 will not work, for example.
57
-
If you have several versions installed, you can update the "active" version with `sudo update-java-alternatives -l` to see the possibilities, then `sudo update-java-alternatives -s java-1.11.0-openjdk-amd64` or something like that to set it. Beware this can have a big impact on other things you run with Java (like your IDE?) so maybe think about undoing this later on...
0 commit comments