1. There's a process outlined here for debugging tests using testtools, 
pdb should work:
   
http://docs.openstack.org/developer/neutron/devref/development.environment.html#debugging

   FWIW, you can also look into using the olso debug helper script, but 
looks like tempest doesn't support it ATM:
   
http://docs.openstack.org/developer/oslotest/features.html#debugging-with-oslo-debug-helper
 


2. To determine which suites that tox -e will run by default, look at 
tox.ini:
   https://github.com/openstack/tempest/blob/master/tox.ini#L2

   To determine which tests get run by default look at:
   https://github.com/openstack/tempest/blob/master/.testr.conf

3. Add a new test to a file for starters, or make a new file called 
test_foo.py.
   I'm sure there has to be info about it here: 
http://docs.openstack.org/developer/tempest/

4. There is a "read-only" policy for the clients, the tests are all here:
   
https://github.com/openstack/tempest/tree/master/tempest/cli/simple_read_only
   With way more info here: 
http://docs.openstack.org/developer/tempest/field_guide/cli.html

Thanks,
Steve

Abhishek Talwar/HYD/TCS <abhishek.tal...@tcs.com> wrote on 01/15/2015 
12:09:27 AM:

> From: Abhishek Talwar/HYD/TCS <abhishek.tal...@tcs.com>
> To: openstack-dev@lists.openstack.org
> Date: 01/15/2015 12:19 AM
> Subject: [openstack-dev] Doubts regarding OpenStack Tempest
> 
> Hi, 

> I am going through tempest in OpenStack and have some questions that
> I would like to get answered. 
> 
> Q1. How can we debug test cases in OpenStack ? (We can debug the 
> code through import pdb but the same doesn't work for test cases and
> we have a bdb quit error) 
> Q2. The run_tests.sh script or tox -e does it only run the unit test
> cases for that components or it runs the complete set of tests 
> covered in the Tempest test integration suite ? 
> Q3. Suppose I need to add a test case in the tempest suite how can Ido 
that ? 
> Q4. As it is said that tempest interacts only with the OpenStack 
> Rest Api's , then how are the test cases for the various clients 
> run, by clients here I mean the python-novaclient,keystoneclient etc. 
> 
> Thanks and Regards
> Abhishek Talwar
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
__________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: 
openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to