Executing the TestsConfiguring Auto Healing Feature

Configuring Auto Healing Feature

This article provides you details on how to use Auto healing executable file.

Prerequisites

  • Click here to install latest version of the Python.
  • You must install the following libraries in Python using pip, run the commands in the command prompt sequentially.
pip install fuzzywuzzy
pip install PyYAML
pip install xmltodict
pip install -U scikit-learn
pip install beautifulsoup4
pip install cosine-similarity
pip install tfIdfInheritVectorizer (optional)

Auto healing feature is available in the executable file for use. To use this executable file, you will have to add it to Windows Task Scheduler.

How to Add an Executable file to Windows Task Scheduler

Perform the following:

  1. Open Task Scheduler: Press Win + R, type taskschd.msc, and press Enter.
    Windows Run dialog with taskschd.msc entered and OK button highlighted
  2. Create a Task: In the Task Scheduler window, click on "Create Task..." in the Actions pane.
    Task Scheduler window with Create Task option highlighted in the Actions pane
  3. Create Task window appears. In the Create Task window, perform the following:
    1. In the General tab of the Create Task window, enter a name and description for your task.
    2. Unselect the option "Run only when user is logged on."
    3. Select the option "Run whether user is logged on or not."
    4. Select the option "Do not store password." The task will only have access to local computer resources.
    5. Select the option "Run with highest privileges."
    6. Select the option "Hidden."
    7. Click on the "Triggers" tab to set up when the task should run.
      Create Task dialog General tab with Auto Healing name and Run whether user is logged on option highlighted
  4. In the Trigger tab, select New button to view New Trigger window and choose the trigger for your task, select One time option and then select Repeat task every option if you want the task to repeat and enter 2 minutes. Select Indefinitely from for a duration of : drop down option and select Actions tab.
    New Trigger window with One time and Repeat task every 2 minutes options highlighted, duration set to Indefinitely
  5. In the Action tab, select New button to view Action window. In this window you need to start a program: Select "Start a program" as the action. Click "Browse" to the folder to select the auto-healing executable file, click OK and then click Conditions tab.
    New Action dialog with Start a program action and highlighted Program/script path to algoAI.exe
  6. In the Conditions tab, unselect the 'Start the task only if the computer is on AC power' option.
    Create Task Conditions tab with Start the task only if the computer is on AC power option highlighted
  7. Click OK.

Validating Auto Healing Executable File Status

You can validate if the auto healing exe file is running by checking the status in the Task Scheduler window next to the associated task. If the task is currently running, the status must display as 'Running.' This indicates that the executable file is actively executing its auto-healing functionality as scheduled.