Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHi,
I'm sorry, this is currently not possible (please add a feature request in the corresponding board here at the forum). If you really need this you could create a project onLoad script that checks for a provided system property and disables/enables testcases accordingly, for example if you add
-DenabledTestSuites=TestSuite 1,TestSuite 2
to the command-line invocation, then you could add an onLoad script (in the project window);
Does that make sense?
regards!
/Ole
eviware.com
I'm sorry, this is currently not possible (please add a feature request in the corresponding board here at the forum). If you really need this you could create a project onLoad script that checks for a provided system property and disables/enables testcases accordingly, for example if you add
-DenabledTestSuites=TestSuite 1,TestSuite 2
to the command-line invocation, then you could add an onLoad script (in the project window);
// check for flag
def ets = System.getProperty( "enabledTestSuites" )
if( ets != null )
{
// first disable all
for( ts in project.testSuiteList )
ts.disabled = true
// now enable those specified
for( testSuite in ets.split( "," ) )
{
def ts = project.testSuites[testSuite.trim()]
if( ts != null )
ts.disabled = false
}
}
Does that make sense?
regards!
/Ole
eviware.com