Running the Tests

To run the tests, use the provtest provadmin plugin.

Generic help

In order to have complete help on how to use the provtest plugin for provadmin, use the following command.

$ provadmin help provtest
Usage: provadmin [param=value,...] <command> <target> [param=value,...]

		global parameters:
			hostname:  application host (default localhost)
			adminport: application admin port (no default)
			debug:     true or false (default false)
			trace:     true or false (default false)

		valid commands and parameters for target "provtest":
		run provtest [ nodename=<value> ]
					filename=<value>
					[ testlist=<value> ]
					[ timeout=<value> ]
					[ verbose=<value> ]
					[ stoponfail=<value> ]
					[ libxml2=<value> ]
			validate provtest filename=<value>
					[ libxml2=<value> ]

			clean provtest [ nodename=<value> ]
					[ timeout=<value> ]
					[ verbose=<value> ]

	install provtest [ nodename=<value> ]
					[ configpath=<value> ]

	runtest provtest [ nodename=<value> ]
					filename=<value>
					[ timeout=<value> ]
					[ verbose=<value> ]
					[ stoponfail=<value> ]
					[ libxml2=<value> ]

	remove provtest [ nodename=<value> ]

	<==Commands==>
	run	Clean 	every provtest object, load the configuration file and run the testlist.
				If testlist is specified, only the testlist will be run.
		validate Validate a file with the provtest schema.

	<==Deprecated commands==>
	install		install xml files from
	runtest		run the tests
	remove		remove provtest installation
	clean		clean up objects created by provtest and remove checkpoints

	<==Parameters==>
	nodename:	application node name (default hostname of the server)
	filename:	the provtest XML configuration file
	testlist:	a list of tests to run; each test name should be
				separated from the other by the character ':'
				if not provided, all the tests are run
	verbose:	verbose level among
					* MinVerbose
					* MediumVerbose
					* MaxVerbose
					(default MediumVerbose)
	timeout:	maximum test duration (in seconds) before test
				failure is forced
				(default 180)
	stoponfail:	the tester will stop testing if an
				error is met and stoponfail is set to 1
	libxml2:	path to the libxml2 library which is used for
				validation only (the binary xmllint will be used if found under $libxml2/bin)
				(default /opt/softwire/develop/users/prov/rrocca/3rdparty/sol/libxml/2.7.6)
	configpath:	upon installation, the script will load files from this directory (default .)

Running an entire provtest file

The simplest way to run a provtest file is :

$ provadmin run provtest filename=../testdriver.xml

Running a subset of a provtest file

In order to run a subset of a provtest file, you may use the "testlist".

The following example will only run the tests named "test1" and "test2".

$ provadmin run provtest filename=../testdriver.xml testlist=test1:test2