Steps to Generate Scripts in algoAF

Modified on Fri, 23 Aug at 3:25 PM

TABLE OF CONTENTS

1. Overview

2. Installation Steps

2.1 Scheduling and Executing Scripts 

3. Updating Test Scripts Settings

4. Reports

5. Comparing Results

1. Overview

This article provides you steps to generate scripts in algoAF tool.

2. Installation Steps

Perform the following:

Applicable for algoQA V3 version

  1. Click the algoAF Icon on your Desktop to open the application.
  2. Click Code generator settings to select appropriate Application Type
    • Choose Desktop automation under Application Type and C# WinAppDriver under Language & Framework.  Later, click the "Update" button and restart the application. This restart is necessary only during initial setup. For subsequent switches between  any two automation types, a restart is required only if the user transitions between any two automation types.
  3. Click the 'Upload Test Cases' button to upload the GWT file <in .txt format> generated by the Profiler, along with the Control Mapping file <in Updated.xls/xlsx formats> also generated by the Profiler.
  4. Upon the successful loading of Test cases, select the required type of run from the dropdown menu, and then click the ‘GO’ button. The default option is ‘default Run’, which will generate the script and you can use custom run which enables you to make changes while generating the scripts.
  5. Upon clicking on GO, it initiates the script generation process for the uploaded test cases. Once the process is complete, click 'OK.
  6. Click ‘OK’ on the script generation message.
  7. If the scripts are generated successfully, proceed to click on the 'Schedule & Execute' button. Enter the desired set number (Tags to execute) in the provided TextBox, and then click 'Confirm'. This action will initiate the execution of the scripts.
  8. Once the execution is finished, you can access the generated report by clicking on the 'Report' button within the user interface. 

The following screenshot displays Schedule and Execute

 


Schedule & Execute process contains:

  • Execute 
  • Schedule

2.1 Scheduling and Executing Scripts 

Execute

  • In the "Execute" section, you have the option to provide tags for the specific test cases you want to run
  • Click the Confirm button to initiate the execution of the selected test cases.
     You can opt for either the SpecFlow or NUnit method of execution.
  • The command prompt result will be displayed in the empty box provided.
  • If needed, you can choose the Abort button to halt the execution.
  • To utilize previously generated scripts, upload the project by clicking the Browse button.

Schedule

  • In the Schedule section, you have the option to provide tags for the specific test cases you want to run.
  • Click the Confirm button to initiate the execution of the selected test cases.ilar image ?
  • You can opt for either the SpecFlow or NUnit method of execution.
  • The command prompt result will be displayed in the empty box provided.
  • If needed, you can choose the Abort button to halt the execution.
  • To utilize previously generated scripts, upload the project by clicking the Browse button.
  • You have an option to store the test suite and execute it at a later time. 

3. Updating Test Scripts Settings

 

In the Test Scripts Settings window, enter or choose the required options:

Field Name 

Description

URL

Enter the URL of the application under test (AUT).

Browser Type

Choose the browser type to perform the execution of the scripts.

To Email ID

Enter your email address to send the details of the executed test case.

From Email 

Enter your email address to receive the details of the executed test case.

Password 

Enter the password for the email address from which the email has been sent.

Image 

If two identical images are present, the test case will pass. To accommodate this scenario, you have the option to enable the Compare Image option.

Maximum time to wait for control

To enhance the Application Under Test (AUT), you have this option to specify the maximum time to wait for a control to respond. Note that time is tracked in seconds.

Maximum time to wait for Page

Choose this option to specify the maximum waiting time for page loading.

Time interval to wait for a Page 

Choose this option to specify the time interval for a page loading.

Enable screenshot

By default, both the options are enabled. You can enable this screenshot option for both successful test cases and failed test cases.

Enable video

You can enable or disable this video capturing option to record the test cases. 

Quenching for test cases

Choose this option to allow all test cases to run sequentially in a queue. When enabled, you won’t have the flexibility to customize the order of test cases as they normally do.

 

Parallel Execution

Choose this option to execute parallelly with different browsers or same browsers.

 


Click the Update button to update the settings and once settings are updated close the form using Close button.

4. Reports

All execution results are stored within this form. You can use the "Upload Reports" button to import a report from an alternate location. Additionally, you can use the "Compare" button to compare two different reports.

 

5. Comparing Results

algoAF Reports are classified into four categories: 

  • Fail/fail
  • Fail/pass
  • Pass/fail
  • Pass/pass
     

 Perform the following to compare the reports: 

  1. Select the checkboxes for the two reports you wish to compare.
  2. Click the "Compare' button.

  3. The following results window appears:

 

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article