Execute test modules by priority
Posted: Fri Feb 06, 2015 12:09 pm
Hello,
1. What version of Ranorex are you using?
5.2.2
2. What Windows version are you using?
Win 7 Enterprise SP1
I am trying to "skip" a test module, using this:
and this
But it's not working as I want. Let me explain, I have a total usercode module, to read parameters from a XML file, and use some of them in the tests. And we want to run tests by priority, so I have in my repository variables, each test priority, so I can run only high priority tests when I have "to rush" to release.
The question is, can I have a recording module, with the first action being a UserCode, to check it's priority, and skip the entire module if it's not the priority that we want?
A code snipet would be great, I'm trying to find something in the Documentation, but still searching.
Thanks in advance
1. What version of Ranorex are you using?
5.2.2
2. What Windows version are you using?
Win 7 Enterprise SP1
I am trying to "skip" a test module, using this:
Code: Select all
static void TestSuite_TestSuiteCompleted(object sender, EventArgs e)
{
ActivityStack.Instance.VisitAll(a => {
if (a.CustomProperties.ContainsKey("ignore"))
a.Status = ActivityStatus.Ignored;
return true;
});
}
Code: Select all
ActivityStack.Current.Parent.CustomProperties["ignore"] = "";
The question is, can I have a recording module, with the first action being a UserCode, to check it's priority, and skip the entire module if it's not the priority that we want?
A code snipet would be great, I'm trying to find something in the Documentation, but still searching.
Thanks in advance