Thank you for this internal function.
But it is not exactly what I need.
For example I want to write the value of my titlebar into the Report, because therein is the Product Release String.
The placeholder string ("@Validate.AttributeREASON@") is replaced by the reason only if a validation failed. Is it possible to write this reason into an other string, or to start a validation without exception
and without 'validation failure' in the Report?
This Example writes the whole exception string into the Report, but I need only the actual value:
- Code: Select all
try
{
Validate.EnableReport = false;
Validate.Attribute(repo.Login_ARTS_Explorer.TitleLogin_ARTS_Explorer_3_x, "Text", new Regex("Value"), "Test2: " + "@Validate.AttributeREASON@");
Validate.EnableReport = true;
}
catch (RanorexException e)
{
Report.Info("Expected RanorexException occured: " + e.ToString());
}