PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

How can PTF test whether or not a certain error message is displayed?

edited Mar 3, 2020 5:28PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 6 commentsAnswered ✓

In PeopleSoft Test Framework (PTF), on PT 8.55.20:

How can I test whether or not a certain error message is displayed during the execution of a test script?  In my example, if the user enters a value over 40 (time entry), they should get a specific error message.  If they get the error message then the test passes.  If they do NOT get the error message then the test fails.

The Message Recognition feature does not test this scenario.  It only lets you respond to a message whenever it appears (abort/continue).

I have tried multiple approaches and none of them worked.  I have also spent a lot of time reading through the PeopleBooks documentation and searching Oracle Support and elsewhere.  I thought the Div + Exists step action would work, but it will not find any of the nested div or span elements underneath the "pt_modals" div.  Does anyone know why not?

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