From 33a502fe7a06276a75bfd14fe39534567a3229c5 Mon Sep 17 00:00:00 2001 From: Chirag Jog Date: Sun, 25 Dec 2011 23:31:04 -0800 Subject: [PATCH] Update the README --- tools/testClient/testcase/BVT-tests/README | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tools/testClient/testcase/BVT-tests/README b/tools/testClient/testcase/BVT-tests/README index 5edd028e29e..0d146f3b3d9 100644 --- a/tools/testClient/testcase/BVT-tests/README +++ b/tools/testClient/testcase/BVT-tests/README @@ -1,28 +1,29 @@ Build Verification Testing (BVT) Cases -------------------------------------- -These test cases are the core functionality tests that ensure the application is stable and can be tested thoroughly. -These BVT cases definitions are located at : https://docs.google.com/a/cloud.com/spreadsheet/ccc?key=0Ak8acbfxQG8ndEppOGZSLV9mUF9idjVkTkZkajhTZkE&invite=CPij0K0L +The test cases are the core functionality tests that ensure the application is stable and can be handed over to the QA for testing. +The BVT cases definitions are located at : https://docs.google.com/a/cloud.com/spreadsheet/ccc?key=0Ak8acbfxQG8ndEppOGZSLV9mUF9idjVkTkZkajhTZkE&invite=CPij0K0L -Guidelines ----------- -BVT test cases are being developed using Python's unittests2. Following are certain guidelines being followed - 1. Tests exercised for the same resource should ideally be present under a single suite or file. +Guidelines for developing Tests +------------------------------- +BVT test cases are being developed using Python's unittests2. Following are the guidelines being followed: + 1. Tests exercised for the same resource should ideally be present under a single suite or file. eg. + All tests related VMs should ideally be present in a same test suite. - 2. Time-consuming operations that create new cloud resources like server creation, volume creation etc - should not necessarily be exercised per unit test. The resources can be shared by creating them at - the class-level using setUpClass and shared across all instances during a single run. + 2. Time-consuming operations that create new cloud resources like servers, volumes etc + should not necessarily be exercised per unit test. The resources can be created once and will be shared + by all the unit tests in the test suite. 3. Certain tests pertaining to NAT, Firewall and Load Balancing warrant fresh resources per test. Hence a call should be - taken by the stakeholders regarding sharing resources. + taken by the stakeholders regarding sharing resources in such scenarios. - 4. Ensure that the tearDown/tearDownClass functions clean up all the resources created during the test run. + 4. Ensure that the functions are in place that clean up all the resources created during the test run. For more information about unittests: http://docs.python.org/library/unittest.html -BVT Tests ----------- +BVT Test Files +-------------- The following files contain these BVT cases: 1. test_vm_life_cycle.py contains all the VM Life Cycle tests