Migrating Java Selenium Scripts to Avo Assure
This section explains how to migrate Selenium automation scripts written in Java into Avo Assure Test cases.
Prerequisites
Before you migrate Selenium scripts to Avo Test cases, make sure the following requirements are fulfilled:
Selenium Environment: You must have a configured Selenium development environment (such as Eclipse) to execute the scripts.
Interceptor Setup: You must set up the interceptors in your project.
Script Status: Your Selenium automation scripts are up to date.
Error-free Execution: Ensure the Selenium script runs successfully without any errors before using it in Avo Assure.
Avo Assure Access: You must have access to the Avo Assure server.
Known Limitations
Maximum Supported ZIP File Size: The maximum supported size for a ZIP file is 50 MB.
Duplicate Variables in Excel File: If the Excel file contains duplicate variables (the same column name defined more than once), the migration process may fail or produce inconsistent parameter mapping results.
Logical Conditions Support: Currently, the migration feature supports selenium script or Test case, logical conditions such as IF statements and loops are not supported.
Best Practices
Data Parameterization (Excel file):
Make sure each variable name (column name) in the Excel file is unique.
Do not define the same variable name more than once in the data sheet.
Validate the Excel data before executing the Selenium scripts.
Migrating Selenium Scripts
To migrate your Java scripts, you must first set up the interceptor in your project, generate the scenario file, and then import it into Avo Assure.
The interceptor allows you to execute code before and after your automation logic without modifying the core functionality of the scripts.
Downloading and Configuring Interceptor
To download and configure the Interceptor for Selenium scripts in Avo Assure, perform the following actions:
On the Home page, go to Utilities and select the Migrate To Avo tab.

On the Selenium to Avo page, select Java as the programming language from the Select Technology dropdown.
Select Download to save the interceptor package file (java-intercept.zip) to your local machine.

Extract the downloaded java-intercept.zip file.
Copy the extracted interceptor folder into your Selenium project’s Java source directory (the directory that contains your Selenium framework classes). For Example, <Path to your Selenium project>/src/main/java OR <Path to your Selenium project>/src/test/java.

Configure the Interceptor: Configuring the Interceptor allows Avo Assure to capture Selenium browser actions and data parameterization during execution, ensuring accurate migration. To configure the interceptor, perform the following actions:
Generating and Uploading Scenarios
To generate and upload Selenium scripts to Avo Assure, perform the following actions:
Execute your Selenium automation suite.
Go to Selenium To Avo page in Avo Assure.
In the Select Project dropdown, select the Avo Assure project where you want to import the Selenium test cases.

Upload the selenium_testcase_batch.zip file generated in step 1.

After uploading the file, select Start Migration. The Migration Status dialog opens.

On the Migration Status dialog, the following details are displayed:
Element Repository Folder and Test case Folder name.
Test case Name and migration Status.
Status: Shows whether a Test case is SUCCESS, FAILED, or SKIPPED. An Info (i) icon displays the reason for each status.
Fail: Migration fails due to an error, such as missing data or missing key in the Test case JSON file.
Success: The Test case migrated successfully.
Skipped: Migration is skipped because the Test case fails during Selenium execution.
The system provides a downloadable Excel file that contains data parameterization details. Use this Excel file as a reference to review and correct the migrated Test cases in Avo Assure, if required. The Excel file includes the following information:
Test case name.
Test Step Group name.
Step details, including whether data parameterization is present.
Select Ok to close the Migration Status dialog.

Last updated