- Created by ravi.chandran (Unlicensed), last modified on Mar 20, 2021
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 23 Next »
The Import Tasks feature lets you import tasks from another project to cover similar testing scenarios in your project. Importing a task includes importing its associated objects, custom actions, and environment variables.
The import task process involves two types of projects:
Import: The project from which you want to import the tasks in the current project.
Current: The project to which you want to import the tasks.
Pre-Requisites
Before you import tasks from another project, ensure that your associated role is given the Import Feature privilege in the Qualitia Automation Studio client. For more information, refer to Assigning Privileges to a Role.
Also, ensure that the task you want to import:
Is not locked by another user in the imported project or target project.
Its XML file is present in the imported project and the current project.
Is not deleted by another user in the import project.
Points To Know
- After a task is imported:
- If the task name matches with an existing task in the current project, the imported task name is appended with_1.
For example, a task called login is present in both current and import projects, then after importing it becomes login_1 in the current project. If task with the name login_1 already exists in the current project, then it appends to 1 more, that is, login_2. - If an object name matches with an existing object in the current project, the imported object name in the current project is appended by 1. For example, Submit button already exists in current, and you import a task that contains the Submit button, then this object is named Submit_1 in the current object.
- Similarly, if an environment variable name matches with an existing environment, but their value differs. Then, after the task is imported, the environment variable name is appended by _1.
- The imported custom actions along with their parameters are displayed in Test Case Editor screen. However, you need to manually copy all the external files and codes of the imported custom actions to execute them.
- If the task name matches with an existing task in the current project, the imported task name is appended with_1.
- You can find a task by its name, its associated test case names, and associated test scenario names.
Importing a New Task
Perform the following steps to import a new task.
To import a new task:
- Open the current project.
- From the Expand Menu, click Develop.
- Click the Import tab.
- From the left pane, select an import project.
A list of tasks under New and Conflicted appears. - Under New, click the task that you want to import.
The task opens in the main pane. - Click Import to import the task.
All the objects and custom actions are added or updated in the current project.
You can now use the imported task to create test cases in the current project.
Updating a Conflicted Task
Conflicted tasks are those tasks that were already imported in the current project, but either their steps in the import project or the current project has changed.
After a task is imported, the task ids of the task in the import project and the current project are same. Hence, whenever a task is edited in import or current project, the task is displayed under the Conflicted tasks even if you change its name in the import or current project .
To update a conflicted task:
Open the current project.
From the Expand Menu, click Develop.
Click the Import tab.
- From the left pane, select an import project.
A list of tasks under New and Conflicted appears. Under Conflicted, click the task that you want to import.
Both the imported task and the current task opens in the main pane.You can know the differences between these two tasks in the following ways :
Steps marked in red indicate that they will be removed from the current project after the task is imported.
Steps marked in green color indicate that they will be added to the current project after the task is imported.
Objects, custom actions, and parameters marked in red color indicate that their values are different.
In the left pane, under the selected task, the impacted test cases of the current project are displayed.
Click a test case to view its tasks and steps on the main screen.
You can determine how the imported task can impact the test case execution.Do one of the following to resolve the conflicted task:
To import the task, click Keep Imported, and then click Update All.
If the task name in the imported project and the current project is different, you are prompted to save the task as per its name in the imported project or current project.
The task is locked automatically in the imported project and current project.
All the associated objects and custom actions are added or updated in the current project.
You can now use the updated task to create test cases in the current project.To not import the task, click Keep Current, and then click Update All.
The task is locked automatically in the imported project and current project.
Importing Tasks in Bulk
You can import either multiple new tasks or multiple conflicted tasks in a single go.
To import tasks in bulk:
Open the current project.
- From the Expand Menu, click Develop.
- Click the Import tab.
From the left pane, select an import project.
A list of tasks under New and Conflicted appears.Click three dots(), and select Bulk Import.
To import the new tasks, select the new tasks that you want, and click the Import button.
To resolve the conflicted tasks, under Conflicted Tasks, select the conflicted tasks that you want.
To import all the conflicted tasks, click .
To keep current tasks as it is in current project, click .
You can now use the imported tasks to create test cases in the current project.
Viewing an Import History of a Task
You can view all the details for each version of a task, such as when the task version was imported and who imported it. Also, you can revert to an archived task version if it is more appropriate than the current task version.
To view an import history of a task:
Open the current project.
From the Expand Menu, click Develop.
Click Import > Import History.
In the left pane, you can view all the archived versions of tasks.Click a task for which you want to view its import history.
Every archived task version has a timestamp that denotes when it was imported in dd/mm/yyyy, HH:.MM AA. For example, 15/02/2021, 10:40 AM.
For every archived version, you can know which user had imported it, what was modified in it, and when it was imported.To restore an archived task version, select a task version, and then click Restore.
The archived task version has now replaced the current task version in the current project.
All the associated objects, environment variables, and custom actions are now restored.
All the associated test cases in the current project are updated automatically.You can delete the task versions in the following ways:
To delete an archive version, in the left pane, mouse over the archived version you want to remove, and click.
To delete all the versions of a task, in the left pane, mouse over the task, and click.
To delete multiple tasks, in the left pane, select Bulk Delete, select the checkboxes of the tasks that you want to delete, and then click.
Best Practices for Importing Tasks
To cover all the similar testing scenarios, Qualitia recommends the following best practices in the import project before you start importing its tasks:
- Do not have any independent test case step in the test cases. You can insert the independent test case step into the existing tasks or create new tasks at the appropriate places. This makes easy to create similar test cases in the current project.
Ensure that the tasks you have selected to import contain all the objects, environment variables, and custom actions that are required for the current project.
On the Page:
- No labels