- Robotic Process Automation Projects
- Nandan Mullakara Arun Kumar Asokan
- 274字
- 2021-06-24 16:14:29
Handling exceptions
If there is an unexpected exception or error, then the bot should ensure that we bring the target application to a stable state where it can proceed with the next transactions. The following few steps guarantee this:
- Within the Else block, to ensure that the target application is in a stable state, we will attach an element on the screen to the browser. Let's add a new Attach Browser activity to handle the error handling activity in the already opened Chrome browser:
- On the properties side of Attach Browser, update Browser with the ZohoBrowser variable and set the BrowserType as Chrome to continue to use the same browser session:
- Add a Mouse Click activity to the newly created sequence and click on Indicate element inside the browser. Then, go to the browser, and click on the TICKETS menu option in the top left-hand corner of the Zoho desk screen:
This step will enable automation to get control of the home page of the web application if a ticket has not been created.
This completes the Try block. Now, let's handle any system exceptions.
- Moving out of the overall Try block, let's update the Catches block. Add a new catch of the System.exception type to the Catches block. Copy the error handling sequence that we added in the Else block and paste it into this Catches block:
So we have now completed the web (Zoho Desk) automation as well. Here, we took the request data and incorporated it into Zoho Desk. Finally, we will go to the main workflow, invoke this workflow, and finalize the automation.
推薦閱讀
- 嵌入式軟件系統測試:基于形式化方法的自動化測試解決方案
- Spring Boot開發與測試實戰
- 數據庫系統教程(第2版)
- Software Defined Networking with OpenFlow
- DevOps with Kubernetes
- MySQL 8從入門到精通(視頻教學版)
- SQL Server 2012數據庫技術及應用(微課版·第5版)
- 人臉識別原理及算法:動態人臉識別系統研究
- C語言程序設計案例式教程
- Mastering Python High Performance
- Drupal 8 Module Development
- Hands-On Natural Language Processing with Python
- VMware虛擬化技術
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- Node學習指南(第2版)