Browse Source

Update Behat README

Yannick Warnier 8 years ago
parent
commit
ff929e075a
1 changed files with 14 additions and 17 deletions
  1. 14 17
      tests/behat/README.md

+ 14 - 17
tests/behat/README.md

@@ -1,41 +1,38 @@
-In order to run behat tests locally you need:
+In order to run behat tests locally with the right support for browser and JS environments under Linux, you will need to:
 
-- Install Selenium 3
+- Download Selenium Standalone Server v3.*
  
 http://www.seleniumhq.org/download/
 
-And run with:
+And run it with the following command:
 
 ```
 java -jar /my-dir/selenium-server-standalone-3.1.0.jar
 ```
 
-- Install Chrome driver, unzip and copy into /usr/bin
+- Download the Chrome driver, unzip and copy into /usr/bin
 
-https://sites.google.com/a/chromium.org/chromedriver/downloads
+Check the latest version at https://sites.google.com/a/chromium.org/chromedriver/downloads, then adapt the following command to the latest version:
 
 ```
- - wget https://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && sudo mv chromedriver /usr/bin 
+cd /tmp && wget https://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && sudo mv chromedriver /usr/bin 
 ```
 
 ### Chamilo configuration
 
-- An administrator user should be created with this parameters:
+- An administrator user should be created with these parameters:
     - Username "admin" 
     - Password "admin"
-    - First name John
-    - Last name Doe
-    - user_id = 1 
-
-- Edit file tests/behat/behat.yml
-  Update with your Chamilo local URL.
-  
-- The main platform language must be in English (platformLanguage = english)
+    - First name "John"
+    - Last name "Doe"
+    - user_id = 1 (this one is set when you install Chamilo, but just in case...)
+
+- Edit the tests/behat/behat.yml file and update the base_url param with your own Chamilo local URL.
+- The main platform language and the admin user's language must be English (platformLanguage = english and admin user profile)
 - Social network tool must be available (allow_social_tool = true)
 - Student can register to the system (allow_registration = yes)
 - Teacher can register to the system (allow_registration_as_teacher = yes)
 
-
 ### Run tests
 
 To run all features:
@@ -50,4 +47,4 @@ To run an specific feature:
 
 ```
 ../../vendor/behat/behat/bin/behat features/createCourse.feature
-```
+```