Ask Your Question
0

how to run testcases in tempest for a particular attributes like smoke,gate

asked 2014-03-24 04:34:06 -0500

tiru1012@gmail.com gravatar image

Hi,

i am trying to run testcases in tempest using nose for a particular attributes/tags such as smoke,gate or negative

nosetests -v -a type=smoke

I am using above command to run the testcases but none of them ran.

Can you please tell me how to run testcases for a particular attribute/tag which is a decorator above every testcase

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-03-25 08:33:30 -0500

darragh-oreilly gravatar image

updated 2014-03-25 08:38:10 -0500

Have a look at run_tempest.sh.

$ ./run_tempest.sh -N --smoke tempest.api.network
...
Ran 242 tests in 244.280s
OK

Althought what exactly qualifies a test as a smoketest is beyond me.

./run_tempest.sh -N tempest.api.network
...
Ran 242 tests in 282.677s
OK

$ testr list-tests tempest.api.network | grep smoke | wc -l
223

$ testr list-tests tempest.api.network | grep gate | wc -l
234

$ testr list-tests tempest.api.network | grep gate | grep -v smoke | wc -l
11

Anyway, you can do something like this either:

$ testr list-tests tempest.api.network | grep negative > /tmp/negative_tests
$ testr run --load-list=/tmp/negative_tests
edit flag offensive delete link more

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-03-24 04:34:06 -0500

Seen: 1,153 times

Last updated: Mar 25 '14