Error Handling in Application

hello everyone,
i have a complete automation with oracle application. but i need to add the part for handling error. for example, if the end-user sends an excel file with invalid data the oracle application will throw an error how to give order if there is an error at the oracle application close form and send an email to the sender that the file is not correct.
for more clarification


this is one of the errors that might appears how to handle this error for example.

Hi @mohamed.saty2012

U can capture this popup using check app state activity and check if popup is present u can give the exception in throw activity and also send the mail to respective user with specific error

Regards
Naman Jain

@mohamed.saty2012,

Checking for popup wherever possibility of it using check app state will be the only one way.

Thanks,
Ashok :slight_smile:

Hi Saty,

For exception handling of popups, try to make selector of that and use the ‘use application/ browser’ activity where just update the property section (single window)/ Application Instance and give hotkey ‘Enter’ or make the ‘OK’ button selector.

If this not works also - use classic activity as ‘Attach Window’ and pass the hotkey/ or make ‘Ok’ selector

Please confirm if it works & like…

Cheers…

if i try this the next time i run the automation if the robot doesn’t see the new popup window it will throw an error cannot find activity if i understand correctly

just to be sure try catch cannot work at this situation correct.

Hi Saty,

What i can suggest, please follow my first suggestion and go to the property section where one options is there ‘continue on error’ apply check and give needful time in ‘timeout’ property option.

Try/ Catch definitely helps you, but in catch also you have to handle the error. It’s up to you.

Cheers…

@mohamed.saty2012

Use check app state first before click…if pop up found then click and throw error else dont click and continue

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.