Custom Validation
Posted: Thu Jun 14, 2012 3:22 pm
Hello.
My project require a custom validation of data saved to database by application.
I developed a little validation class that looks like this:
There are should be a really LOT of validations and i have a trouble how to organize that in Ranorex Studio. One of possible ways is use User Code, but there is impossible just to write DataChecker.CheckSessionStarted("SomeResource"); because i need to specify just a method. So i have to duplicate DataChecker interface in each Recording and call DataChecker from methods. A lot of useless code, that makes me sad.
Ideally i want a ability to add custom action that can add some parameterized code snippet to generated result code. So in this way creating tests won't require any programming.
Is it possible? Or better solution is forgot about Recoder and write own code?
My project require a custom validation of data saved to database by application.
I developed a little validation class that looks like this:
Code: Select all
public class DataChecker
{
public static void CheckSessionStarted(string resourceName) { ... }
public static void CheckSessionClosed(string resourceName) { ... }
...
}
Ideally i want a ability to add custom action that can add some parameterized code snippet to generated result code. So in this way creating tests won't require any programming.
Is it possible? Or better solution is forgot about Recoder and write own code?