Synopsis : @testparams is a decorator to specify tunable test parameters for a test and their default values

      Details: 

      1. Test Parameters can be specified using testparams decorator in key value pair format. The parameters and its values will be stored in self.conf dictionary of the test case. 

          @testparams decorator should be only used at test case level not at testsuite level.

           Variable names should be kept unique across the test cases to avoid collisions when modifying it at CLI.

          Example: 

          @testparams(x=y,a=b)

          Can be accessed inside testcase as self.conf['x']

      2. As the decorator stores the key value pair data in self.conf dictionary it can be modified through pbs_benchpress.

          The variable name should be mentioned with testsuite name to avoid collisions when running multiple testsuites ot tags.

          Example:

          pbs_benchpress -p TestsuiteA.x=z,TestsuiteA.a=c


           Synopsis : The test parameters will be added to test doc string and can be viewed by pbs_benchpress -i --verbose -t <pbstestsuite>

           Example:

           If test runner wants to know which parameters of the test can be modified he can do that by running

           pbs_benchpress -i --verbose -t Teststat

                                  Test Case Doc: 

                                  <doc string>

                                  Test Params:

                                  x=y

                                  a=b



OSS Site Map

Project Documentation Main Page

Developer Guide Pages


Ignore this.  We may use it later for page characterization.