Update getting started guide 57/35457/2
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Sun, 28 May 2017 03:19:39 +0000 (11:19 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Mon, 29 May 2017 14:49:24 +0000 (22:49 +0800)
Change-Id: Ic40c9f30dc2d803e047a5f39aa0b20de24b6a60b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
docs/testing/user/userguide/getting-started.rst
docs/testing/user/userguide/index.rst

index 8289a9c..0f60f13 100644 (file)
@@ -5,10 +5,29 @@
 Getting started with QTIP
 *************************
 
-Overview
-========
+.. code-block::
+
+    pip install qtip
+    eval $(ssh-agent)
+
+    qtip create <project_name>
+    cd <project_name>
+
+    qtip setup
+    qtip run
+    qtip teardown
+
+Installation
+============
+
+Refer to `installation and configuration guide`_ for details
+
+.. _installation and configuration guide:../configguide/
 
-Create a new project to hold the neccessary configurations and test results
+Create
+======
+
+Create a new project to hold the necessary configurations and test results
 ::
 
     qtip create <project_name>
@@ -29,32 +48,33 @@ The user would be prompted for OPNFV installer, its hostname etc
     **OPNFV Scenario [unknown]: os-nosdn-nofeature-ha**
     Depends on the OPNFV scenario deployed
 
-With the framework generated, user should now proceed on to setting up testing environment. In this step, information related to OPNFV cluster would
-be generated, such as getting the IP addresses of the nodes in System Under Test (SUT).
-::
+Setup
+=====
+
+With the project is created, user should now proceed on to setting up testing environment. In this step, ssh connection
+to hosts in SUT will be configured automatically::
 
     cd <project_name>
     $ qtip setup
 
-QTIP uses `ssh-agent` for authentication. It is critical that it started and stopped in the correct way.
-
+Run
+===
 
-ssh-agent
-=========
+QTIP uses ``ssh-agent`` for authentication of ssh connection to hosts in SUT. It must be started correctly before
+running the tests::
 
-ssh-agent is used to hold the private keys for RSA, DCA authentication. In order to start the process
-::
+    eval $(ssh-agent)
 
-    $ eval $(ssh-agent)
+Then run test with ``qtip run``
 
-This would start the agent in background. One must now be able to execute QTIP
-::
+Teardown
+========
 
-    $ qtip run
+Clean up the temporary folder on target hosts.
 
-However, if QTIP is not working because of `ssh-agent`, one should kill the process as follows
-::
+.. note:: The installed packages for testing won't be uninstalled.
 
-    $ eval $(ssh-agent -k)
+One more thing
+==============
 
-Then start the agent again as described above.
+You may use ``-v`` for verbose output (``-vvv`` for more, ``-vvvv`` to enable connection debugging)
index 9b6ab88..e6eaea5 100644 (file)
@@ -12,7 +12,7 @@ QTIP User Guide
    :maxdepth: 2
 
    overview.rst
+   getting-started.rst
    cli.rst
    api.rst
    compute.rst
-   getting-started.rst