How to Continue to next iteration or jump to a test module
Posted: Wed Feb 17, 2016 12:38 am
Hi All,
I am new to Ranorex.
My objective is to either execute a testcase or not depending on the test case parameter (e.g. RunTestCase=Y or N)
Therefore, I would like to either skip test case execution to next iteration or to jump to a dummy test module
such that the next iteration continues.
I was thinking of putting a custom code which can read the test case parameter value. however, I am not sure which coding statement to use to indicate that "jump to next iteration".
public bool GetRunTest()
{
bool runTest = testCaseParameters["RunTest"].Equals("P", StringComparison.OrdinalIgnoreCase);
if (!RunTest)
//TestCase.Current.
return;
//return runTest;
}
I am new to Ranorex.
My objective is to either execute a testcase or not depending on the test case parameter (e.g. RunTestCase=Y or N)
Therefore, I would like to either skip test case execution to next iteration or to jump to a dummy test module
such that the next iteration continues.
I was thinking of putting a custom code which can read the test case parameter value. however, I am not sure which coding statement to use to indicate that "jump to next iteration".
public bool GetRunTest()
{
bool runTest = testCaseParameters["RunTest"].Equals("P", StringComparison.OrdinalIgnoreCase);
if (!RunTest)
//TestCase.Current.
return;
//return runTest;
}