SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
output substring validation

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
output substring validation
Author Message
ddw



Joined: 22 Oct 2014
Posts: 10
Country: United States

Post output substring validation Reply with quote
Hello, I need some assistance with the "output substring" validation function. I'm running 5.1.403 with web console version 5.1.395.

I want to do check the output for "Error" like the example in the wizard,

@REGEX:.*(?![Ee]rror).*)

But that example is not valid because it's missing a parenthesis, and no variation I have tried seems to catch anything. I don't have much experience using look-aheads or negative matches.

So a couple of questions have come to mind.

What flavor of regex is the scheduler using?

Assuming I did have a valid regex, how does the output string validation interact with with the exit code validation? If you have a good exit code and no match in the substring check, what happens? What about bad exit code but a match in the substring check?
Wed Oct 22, 2014 11:33 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6506

Post Reply with quote
There is a typo, the first ( is missing. please use @REGEX:.*((?![Ee]rror).)* You can also try @REGEX:^((?!Error).)*$ which will check the string doesn't contain word "Error" in any position (case sensitive). This an alternative version of the first expression. for case insensitive, replace E with [Ee]. If you only need to test for cases of text starting with "Error" then you can use a more efficient @REGEX:^(?!Error).*$
Tue Oct 28, 2014 11:52 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.