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

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

 



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:)

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]