Ask Your Question
1

unable to run openstack tempest testcases in group

asked 2014-08-20 01:30:59 -0600

abhi24790 gravatar image

updated 2014-08-20 23:55:53 -0600

i have created one sampletest.txt file in tempest folder and written tempest test case location in that file.

now i want to run that file using testr or nosetest so that all the test case present in that file get executed.. example contents in sampletest.txt file

tempest.api.identity.admin.test_users:UsersTestJSON.test_create_user_with_enabled

tempest.api.identity.admin.test_roles:RolesTestJSON.test_role_create_delete

tempest.api.identity.admin.test_roles:RolesTestJSON.test_get_role_by_id

tempest.api.identity.admin.test_roles:RolesTestJSON.test_remove_user_role

now i want to execute this sampletest.txt file so that all the testcase get executed... if i am executing this file as, nosetests -vx sampletest.txt i am getting error,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-24 13:39:37 -0600

Hi abhi24790,

I think you are looking for -c as the option to execute the tests from the config file?

Let us know if that works.

-Prasoon

edit flag offensive delete link more

Comments

Hi prasoon, thanks for replying, now when I am typing this command

nosetests -c testfile.txt I'm getting error --- Error reading config file 'testfile.txt': File contains no section headers.

abhi24790 gravatar imageabhi24790 ( 2014-08-27 05:45:22 -0600 )edit

hi prasoon, I think u didn't understand what I wanted to say, I have collected diffrent test cases from diffrent diffrent python directories and pasted in testfiles.txt and now I want to to run those testcase at a time using nosetest or testr run

abhi24790 gravatar imageabhi24790 ( 2014-08-27 06:20:40 -0600 )edit

can you copy the txt file to http://paste.openstack.org/ and add the link to the question? It will be more easy to debug. :)

prasoontelang gravatar imageprasoontelang ( 2014-08-27 08:01:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-20 01:30:59 -0600

Seen: 137 times

Last updated: Aug 24 '14