[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [test-API PATCH 0/4]Add feature to check case file before running



The set of patches add a new feature to examine testcase config file
before running it. The framework will do the job on behalf of testcase,
so test writer will release from the work.

Usage:

In testcase, it only needs to define two global tuple variables
required_params are the mandatory options to the testcase
optional_params are the optional options

...
required_params = ('networkname', 'autostart')
optional_params = ('optparams1', 'optparas2')

def testcase(params):
...

Checking results:
on success, it will run these testcases defined in testcase config file

on error-detected, error as follows

Unknown parameter 'whoami'
the No.2 : domain:testb

Parameter autostart is required
the No.5 : domain:testa

The idea and part of code in patches is from Osier:)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]