Project Editing and Execution Management -> Generate project execution logic

Generate project execution logic

Summary

This page is your central hub for creating and overseeing the execution of your projects. It provides a real-time view of the project's progress through a command-line interface (terminal output), shows dynamic visual updates via screenshots, and records all activities in a detailed log. You can start, monitor, and stop project executions, ensuring full control over your automation tasks.

Page Access

You can access this page by navigating to: /automization

Page Functionalities

Loading Project Data

When you first open the page, it will display a 'Loading execution data...' message with a spinning indicator. This means the system is preparing to load your project's necessary information and setup.

Status Row

At the top of the main content, you'll find a status area:

  • Status Message: Displays the current progress or state of your project, such as 'Init project update', 'Setting up the project now - will take a while', or 'Project was (re) - created'.
  • Stop Button: If a project execution is active, a red 'Stop' button (a square icon) will appear. Clicking this allows you to halt the ongoing process. If clicked during an active execution, a confirmation dialog will appear.
  • Show Execution Result Button: Once a project has completed its execution (or if no execution is currently running), a 'Show execution result' button (with a primary color background) will appear. Click this to view the final outcome or details of the last execution.

Terminal View

A large section of the page is dedicated to a live terminal window. This displays all the commands being executed and their output in real-time on the remote system, giving you a detailed view of the automation process as it unfolds.

Screenshot Overlay

During project execution, a dynamic screenshot of the remote system's activity may appear in the top-right corner of the terminal area. This provides a visual update of what's happening:

  • Hide/Show Button: A small button with an 'X' (close) or 'maximize' icon allows you to hide or show the screenshot overlay.
  • Expand Button: A button with a 'fullscreen' icon lets you view the current screenshot in a full-screen pop-up for a clearer view.

Gemini Execution Log

Below the terminal and screenshot, you'll find a section dedicated to the 'Gemini Execution Log'. This log provides a chronological record of events, including timestamps and detailed messages, giving you insight into the background processes of your project.

Error Display and Retry

If an error occurs during initial data loading or project setup, an error message will be prominently displayed with a red error icon. An 'Retry' button will also appear, allowing you to attempt the process again.

Session Notifications

The system will notify you if your user session is about to expire, giving you time to react. If the session expires, a notification will appear, and the page will close automatically to protect your data and ensure secure access.

Scenario Executions

Possible usage steps within this page

1. Successful Project Creation and Monitoring

Imagine you want to start a new project. You open this page, and after a brief 'Loading execution data...' phase, the terminal becomes active. You see commands being executed, status messages updating (e.g., 'Setting up the project now - will take a while'), and periodically, a screenshot of the remote system appears, showing the automation in action. The Gemini Execution Log simultaneously fills with detailed entries. Once complete, the status changes to 'Project was (re) - created', and a 'Show execution result' button appears, allowing you to view the final output of your project.

2. Stopping an Ongoing Execution

You start a project, and the execution begins. After some time, you realize you made a mistake or want to halt the process for another reason. You click the red 'Stop' button in the status row. A confirmation dialog pops up asking if you truly want to stop the execution and close the window. You confirm, and the execution is gracefully terminated. The page then closes, returning you to the previous screen.

3. Expanding and Hiding Screenshots

During a project's execution, you notice a screenshot update. To examine it more closely, you click the 'fullscreen' icon next to the screenshot. The image expands to fill your entire screen. After reviewing, you click the 'close' icon in the full-screen view's header to return to the project execution page. If you find the screenshot distracting, you can click the 'X' (close) icon on the small overlay to hide it, and later click the 'maximize' icon to bring it back.

Possible errors which may occur on this page

1. Failed to Load Initial Project Data

When the page first loads, instead of seeing terminal activity, you might encounter an error message like 'Failed to get main execution folder' or 'Failed to get folder for smart automation' with a large red error icon. This indicates that the system couldn't retrieve essential information to start your project. This often happens due to network issues, incorrect project configuration, or problems with the remote device connection. You can try clicking the 'Retry' button to re-attempt loading the data.

2. SSH Connection Disruption

During an active project execution, if the network connection to the remote device (SSH session) is suddenly lost, the page will automatically detect this. You will see a notification, and the page will close itself. This is a safety measure to prevent you from trying to interact with a non-existent connection and ensures your project's integrity.

3. Project Setup Failure or Timeout

While the project is being set up (e.g., during the 'Setting up the project now - will take a while' phase), the process might fail. This could be due to issues with the script running on the remote device, insufficient permissions, or the process taking too long and timing out. An error message such as 'Failed to setup the project' or 'Error during creation: [detailed error]' will appear in the status area, and the execution will stop. You may need to investigate the underlying issue or contact support.