REFramework Init Question

Hi,
In my automation process I need to work with two web applications.
One application, I need to open, search and get data, loop through data and process.
Then I need to work with the processed data in the second application.

So my question is do I open the two web applications in the init part of the REFramework? Thank you,

Hi @A_Learner

Not required based on your usage you can launch your second application in process state also.

Hope it helps!!

Thank you,
What is the difference in launching application in init vs process states?

1 Like

Hi @A_Learner

so basically init is initialization —a place where config , assets , login happen and it does only once

if there is any system exception in init - it would move directly to end process

in process - we automate core business logic

1 Like

Okay @A_Learner

Commonly in Initallapplication xaml we will launch the application and login process only. The process in that application will do it in the Process state.

Because the login will happen only once for application the Initialization will execute the bot for first transaction only, for every transaction if we login to application it drains time, that’s why we will give the login process in Initallapplication xaml.

Hope you understand!!

1 Like

Hi,

  1. Init State:
  • Initialization: The “Init” state is primarily used for initialization tasks at the start of your automation process. This is where you set up your environment, configure settings, and prepare everything needed for the actual processing.
  • Application Launch: If an application needs to be opened at the very beginning of the automation and should remain open throughout the process, you can launch it in the “Init” state. This ensures the application is ready for use during the entire automation run.
  • Examples: Opening a web browser to access a login page or launching an application that needs to run continuously in the background.
  1. Process State:
  • Processing Tasks: The “Process” state is where the core processing tasks of your automation take place. This is where you perform data extraction, manipulation, and any actions specific to your business logic.
  • On-Demand Application Launch: If an application is only needed at a certain point within your automation workflow or is opened and closed multiple times during the process, you should launch it within the “Process” state when it’s required.
  • Examples: Opening a second web application after extracting data from the first one, interacting with applications based on conditional logic, or launching applications for specific data processing steps.
    .
1 Like

Hello @A_Learner

  • If both web applications need to be open throughout the entire automation process and they don’t consume excessive resources or require complex exception handling, you can open them in the Init state. Just make sure to handle any exceptions that might occur during this phase.
1 Like

@A_Learner

Basically if you need to use both the browsers in the process…then it would be good idea to open in int itself

Cheers

1 Like

Thanks every one for the great information.
Love all the answers.

Regards,

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