Introduction
Data repository is the storage for the data you may want to use in your test cases.
There are several types of data that you can store in the data repository, sorted into environments:
- selectors - CSS or xPath selectors that you can use to locate the elements in the application under testing,
- variables - the variables you can use in the test cases that can be changed between the test runs,
- endpoints - the endpoints you want to test (for SSH connections, for instance).
Environments
You can have different selectors, variables and endpoints depending on the environment. A default environment is created for each project by default. You cannot edit or delete the Default environment.
Add a new environment
If you want to create other environments, here's how you can do it:
- Click the Environment dropdown and click Add in the dropdown list. An Add Environment modal will be displayed.
- Enter the environment Name and Description and click SAVE. An Environment has been created successfully toast message will be displayed.
When you run a test in a specific environment, only the items (selectors, variables, endpoints) existing in it will be used. The ones that have not been created for this environment, will be taken from the Default environment. |
Edit an environment
You can edit any environment other than the Default one. In order to do that:
- Select the environment you want to edit in the Environment dropdown. Click on the Environment dropdown. Click the Edit option at the bottom of the list. An Edit Environment modal will be displayed.
- Edit the necessary details and click SAVE. An Environment has been saved successfully toast message will be displayed.
Delete an environment
You can delete any environment other than the Default one. In order to do that:
- Select the environment you want to delete in the Environment dropdown. Click on the Environment dropdown. Click the Delete option at the bottom of the list. A Delete Environment confirmation modal will be displayed.
- Click DELETE if you indeed want to delete the environment, or close the modal if you have changed your mind. An Environment has been deleted successfully toast message will be displayed.
Restoring deleted items is not supported. Once you delete an environment, it is gone for good. If you delete an Environment, all of its child items (selectors, variables, endpoints) will be deleted as well. |
Selectors
You can add, edit or delete selectors in the Data Repository.
In this article, you will find the information on how to work with the data repository. Refer to this article for information about how to write selectors. |
Add a selector
In order to add a new selector:
- Select Selectors under the Environment dropdown.
- Click the New item icon in the Data Repository header, or right-click on the folder you want to add the selector to. Add item modal will be displayed.
- Enter the selector name and description. Select the Parent folder under which you want to add the selector. Select the environment from the Environment dropdown. Select the selector type (xPath or CSS) in the Type dropdown. Enter the selector in the Value field. Click SAVE. The modal will be closed and an Item has been created successfully toast message will be displayed.
Edit a selector
In order to edit a selector:
- Right-click the selector you want to edit and click the Edit option in the context menu. The Edit Item modal will be displayed.
- Edit all the necessary details and click SAVE. The modal will be closed and an Item has been saved successfully toast message will be displayed.
Delete a selector
In order to delete a selector:
- Right-click the selector you want to delete and click the Delete option in the context menu. The Delete Item confirmation modal will be displayed.
- Click DELETE if you indeed want to delete the selector. Close the modal if you have changed your mind. An Item has been deleted successfully toast message will be displayed.
Restoring deleted items is not supported. Once you delete an item from the data repository, it is gone for good. |
Variables
You can add, edit or delete variables in the Data Repository.
Add a variable
In order to add a new variable:
- Select Variables under the Environment dropdown.
- Click the New item icon in the Data Repository header, or right-click on the folder you want to add the variable to. Add item modal will be displayed.
- Enter the variable name and description. Select the Parent folder under which you want to add the variable. Select the environment from the Environment dropdown. Select the variable type (text, number or date) in the Type dropdown. Enter the variable value in the Value field. Click SAVE. The modal will be closed and an Item has been created successfully toast message will be displayed.
Edit a variable
In order to edit a variable:
- Right-click the variable you want to edit and click the Edit option in the context menu. The Edit Item modal will be displayed.
- Edit all the necessary details and click SAVE. The modal will be closed and an Item has been saved successfully toast message will be displayed.
Delete a variable
In order to delete a variable:
- Right-click the variable you want to delete and click the Delete option in the context menu. The Delete Item confirmation modal will be displayed.
- Click DELETE if you indeed want to delete the variable. Close the modal if you have changed your mind. An Item has been deleted successfully toast message will be displayed.
Restoring deleted items is not supported. Once you delete an item from the data repository, it is gone for good. |
Endpoints
You can add, edit or delete endpoints in the Data Repository.
Add an endpoint
In order to add a new endpoint:
- Select Endpoints under the Environment dropdown.
- Click the New item icon in the Data Repository header, or right-click on the folder you want to add the endpoint to. Add item modal will be displayed.
- Enter the endpoint name and description. Select the Parent folder under which you want to add the endpoint. Select the environment from the Environment dropdown. Select the endpoint type (currently, can only be SSH) in the Type dropdown. Enter the value in the Value field. Click SAVE. The modal will be closed and an Item has been created successfully toast message will be displayed.
Edit an endpoint
In order to edit an endpoint:
- Right-click the endpoint you want to edit and click the Edit option in the context menu. The Edit Item modal will be displayed.
- Edit all the necessary details and click SAVE. The modal will be closed and an Item has been saved successfully toast message will be displayed.
Delete an endpoint
In order to delete an endpoint:
- Right-click the endpoint you want to delete and click the Delete option in the context menu. The Delete Item confirmation modal will be displayed.
- Click DELETE if you indeed want to delete the endpoint. Close the modal if you have changed your mind. An Item has been deleted successfully toast message will be displayed.
Restoring deleted items is not supported. Once you delete an item from the data repository, it is gone for good. |
Manage the Data Repository
You can create, edit and delete folders for items of each type in the data repository.
Add a Folder
In order to add a folder:
- Select the item type under the Environment dropdown (Selectors, Variables or Endpoints).
- Click the New Folder icon in the Data Repository header. The Add Folder modal will be displayed.
- Select the parent folder you want to create the folder in. Enter the name and description and click SAVE. A Folder has been created successfully toast message will be displayed.
Edit a Folder
In order to edit a folder:
- Right-click the folder you want to edit and click the Edit option in the context menu. The Edit Folder modal will be displayed.
- Edit the necessary details and click SAVE. A Folder has been updated successfully toast message will be displayed.
Delete a Folder
In order to delete a folder:
- Right-click the folder you want to delete and click the Delete option in the context menu. The Delete Folder confirmation modal will be displayed.
- Click DELETE if you indeed want to delete the folder, or close the modal if you changed your mind. A Folder has been deleted successfully toast message will be displayed.
Restoring deleted items is not supported. Once you delete a folder, it is gone for good. When a folder is deleted, all of its child items (subfolders, selectors/variables/endpoints) are deleted as well. |
Comments
0 comments
Please sign in to leave a comment.