Editing a test

You can modify an existing test asset that you created from the desktop product or a test that you created in the containerized product on HCL OneTest Server. After you publish the edited test to a branch in your project repository, you can run the test on HCL OneTest Server.

Before you begin

You must have completed the following tasks:

Procedure

  1. Log in to HCL OneTest Server.

    The team space that contains your project is displayed.

  2. Open the project, and then click Author > Tests.

    The existing test assets in the branch of the project repository are displayed if they exist.

    The details such as test design considerations, the load test profile, or other details that you entered as properties of the test asset in the desktop products are displayed in the Description column.

  3. Select the branch of the repository that contains the test assets.
    The test assets that are contained in the selected branch of the repository are displayed in the following tabs on the Tests page:
    Tab Description
    SUITES Lists all suites, compound tests, JMeter tests, JUnit tests, Postman tests, Rate Schedules, or VU Schedules that are in the selected branch of the repository.
    TESTS Lists all API tests, functional tests, or performance tests that are in the selected branch of the repository.
    ADVANCED Lists all assets that are displayed when custom filters are applied for assets in the selected branch of the repository.
  4. Identify the test asset that you want to edit by performing any of the following actions:
    • Scroll through the list.
      Tip: You can hover over the icon in the Type column to know the type of the test asset.
      Note: You can also identify the type of the asset from the icon that represents the test type as shown in the following table:
      Icon Represents Listed in the SUITES tab Listed in the TESTS tab Listed in the ADVANCED tab
      API test image of checkmark image of checkmark
      Functional test image of checkmark image of checkmark
      Performance test image of checkmark image of checkmark
      AFT Suite image of checkmark image of checkmark
      API Suite image of checkmark image of checkmark
      Compound Test image of checkmark image of checkmark
      Rate Schedule image of checkmark image of checkmark
      VU Schedule image of checkmark image of checkmark
    • Enter any text, that is contained in the test asset name, in the Search field.
    • Click the Filter icon Image of the filter icon in the SUITES or TESTS tab to filter the displayed assets based on the asset type.

      For example, select API Suite in the SUITES tab to display all the API Suites or select Functional Test in the TESTS tab to display all the functional tests that are available in the selected branch of the repository.

    • Click the Filter icon Image of the filter icon in the ADVANCED tab, and then create a filter query by using the New filter option by performing the following steps:
      1. Click New filter.
      2. Enter a name for the filter.
      3. Select an operator, and add a rule, or a group of rules.
      4. Add or enter the relevant parameters and either select or enter the condition and the criteria for the condition.
        You can select a parameter from the following list:
        • Type
        • Test Asset Name
        • Test Asset Path
        • Description
      5. Save the filter query to save and apply the filter query to filter the assets based on the query.

        The test assets that match the filter criteria are displayed.

    • Retrieve and apply a saved filter query, if you have saved filter queries previously by performing the following steps:
      Note: The filter query applied previously is selected and the assets based on that filter query are displayed. To apply a different filter query, you must have created and saved the filter query.
      1. Click the Filter icon Image of the filter icon in the ADVANCED tab.

        The filter queries that you created and saved are displayed.

      2. Click the filter that you want to apply.

        The test assets that match the filter criteria are displayed.

    You have identified the test asset that you want to edit.

  5. Click the Edit icon Image of the edit icon in the Actions column of the test asset.
    Based on the type of test asset that you select, the corresponding containerized product is displayed in a new browser tab as detailed in the following table.
    Note: If you are presented with a message prompting you to allow the content to be copied on the clipboard, select Allow and continue with your task.
    Test asset type selected Containerized product displayed
    • API Test Suite
    • API tests
    • Postman tests
    HCL OneTest API
    • AFT Suite
    • Compound tests that contain any of the following types of tests:
      • HTML tests
      • Performance tests
      • Web UI tests
    • JMeter tests
    • JUnit tests
    • Functional Web UI tests
    • Performance tests
    • Rate Schedules
    • VU Schedules
    HCL OneTest UI
    Note: This is a shell-shared version with HCL OneTest Performance with which you can create both functional tests and performance tests.

    The containerized product displays the product GUI similar to the desktop product. You must use the options similar to the desktop product to edit the tests in the containerized products.

  6. Edit the test by using the containerized product.
    You can refer to the product documentation of the desktop products to find information about the specific tasks that you want to perform in the containerized product. Use the following links to the product documentation:
  7. Save and commit the test assets or virtual service resources to the Git repository that is configured in your project from the containerized product.
  8. Delete the containerized product session by closing the browser tab of the containerized product, and then click Delete session.
  9. Click Author > Changes.
  10. Select the Git repository to which the test asset or resource was committed in the containerized product.
  11. Click Publish.

    Publishing the test assets or resources to the Git repository makes the test assets or resources to be available to other members of your project.

Results

You edited a test by using the containerized product on HCL OneTest Server.

What to do next

You can configure a run of the tests that you edited. See Test run configurations.