How to Execute Test Scripts Sequentially

Modified on Wed, 26 Jun at 10:01 PM

TABLE OF CONTENTS

1. Overview

2. Executing Tests Scripts Sequentially Leveraging algoQA

2.1. Using the "usersamesession" Tag Approach in Selenium

2.2 Enabling "usersamesession" in Applications Settings File for Python Selenium scripts

1. Overview

You can execute algoQA generated scripts sequentially. This process is applicable to Web test automation using Java Selenium framework and Mobile test automation using Python Selenium framework.

2. Executing Tests Scripts Sequentially Leveraging algoQA

Before executing multiple tests sequentially, you need to ensure that all dependencies, such as browser drivers, libraries, and other necessary tools, are correctly installed and configured. You also need to  ensure that environment variables are set correctly to access the required resources.


2.1. Using the "usersamesession" Tag Approach in Selenium Scripts

You can execute test cases  sequentially  by configuring tags. These custom tags can be unique test case tags, such as @usersamesession or common tags, such as @set21, provided for a group of test cases. These custom tags can be added while recording a scenario using the Follow Me feature or while editing a scenario in the Edit Scenario. 


The "usersamesession" tag approach in Selenium allows you to maintain user authentication state across sequential test sessions without needing to log in repeatedly. This method is beneficial for scenarios where you need to perform sequential testing while ensuring consistent user authentication. Additionally, it helps optimize test execution efficiency by eliminating the need to reopen the browser multiple times.

2.2. Enabling "usersamesession" Parameter in Applications Settings File for Python Selenium Scripts

Perform the following: 

  1. Scripts generated follow an organized folder structure. Navigate to the algoQA script generated folder and search and locate the ApplicationsSettings.XML file.
    For example, if your script is located at AlgoAFScript_202402121131\src\test\java, navigate to this folder. Applications.xml file will be available in the Java folder.
  2. In the ApplicationSettings file, set 'usersamesession' setting to true to enable this functionality.















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