Enterprise Manager Generic (MOSC)

MOSC Banner

OATS Question: How to change the behavior of a script based on text found in a Web Application?

 Hello,

I have a question and I'm hoping someone here can help.  

I figured out a way to use a Text Matching Test to detect a condition and then use an IF-ELSE to change the behavior of the script.  The problem is that when the script runs it shows that the whole script failed, even though it worked perfectly.  

Here's what I'm doing:  

1. Set the Error Recovery so that the script will continue even if the text is not found:
SetErrorRecovery: HTTP - Text Matching Failed = ReportErrorAndContinue

2. At the appropriate place execute a Text Matching Test:
Text Matching Test: LookForCondition, Condition

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center