add python test indication 59/41159/2
authordongwenjuan <dong.wenjuan@zte.com.cn>
Wed, 6 Sep 2017 07:42:28 +0000 (15:42 +0800)
committerdongwenjuan <dong.wenjuan@zte.com.cn>
Thu, 7 Sep 2017 00:41:10 +0000 (08:41 +0800)
Change-Id: I2c56ce653e05727d13a26bf7bdd2595107a6ffba
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
docs/development/overview/testing.rst

index cd39ee0..08a4d93 100644 (file)
@@ -29,7 +29,10 @@ OpenStack services.
 
 .. _OpenStack CLI manual: https://docs.openstack.org/user-guide/common/cli-set-environment-variables-using-openstack-rc.html
 
-Then, you can run the script as follows:
+Run Bash Test Script
+~~~~~~~~~~~~~~~~~~~~
+
+You can run the bash script as follows:
 
 .. code-block:: bash
 
@@ -46,6 +49,24 @@ INSPECTOR_TYPE can be specified either 'sample'(default) or 'congress'.
 For testing with stable version, checkout stable branch of doctor repo before
 './run.sh'.
 
+The bash test script will be deprecated(only bug fixes) after E Release.
+
+Run Python Test Script
+~~~~~~~~~~~~~~~~~~~~~~
+
+You can run the python script as follows:
+
+.. code-block:: bash
+
+    git clone https://gerrit.opnfv.org/gerrit/doctor
+    cd doctor && tox
+
+You can see all the configurations with default values in sample configuration
+file `doctor.sample.conf`_. And you can also modify the file to meet your
+environment and then run the test.
+
+.. _doctor.sample.conf: https://git.opnfv.org/doctor/tree/etc/doctor.sample.conf
+
 Run Functest Suite
 ==================
 
@@ -60,10 +81,14 @@ Functest container. You can run the Doctor test with the following steps:
         -e INSTALLER_TYPE=${INSTALLER_TYPE} \
         -e INSTALLER_IP=${INSTALLER_IP} \
         -e INSPECTOR_TYPE=sample \
+        -e PYTHON_ENABLE=True \
         opnfv/functest:${DOCKER_TAG} /bin/bash
     docker exec <container_id> python /home/opnfv/repos/functest/functest/ci/prepare_env.py start
     docker exec <container_id> functest testcase run doctor
 
+Add an environment variable *PYTHON_ENABLE* to indicate that using Python or
+Bash to run the test when start the docker container.
+
 See `Functest Userguide`_ for more information.
 
 .. _Functest Userguide: http://artifacts.opnfv.org/functest/docs/userguide/index.html