Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Login to QAS - Client.

  2. Access Develop from left navigation to view Test Explorer screen.

  3. Click Custom Action icon from extreme right of the toolkit. It will open the Custom Action Explorer screen.

  4. When no Custom Action exists, you are prompted to Create Custom Action in the Custom Action viewer section.

  5. Click +Add or Create Custom Action to start creating a new Custom Action.

  6. Clicking Create Custom Action will open Create Custom Action screen with the following options.

    1. Name: Enter an intuitive name for the custom action that is easy to recognize.

      1. Maximum length permitted is 300 characters including spaces.

    2. Description: A brief description about the custom action.

    3. Technology: Select technology as Web or Mobile.

    4. Base Class: Select Base Class from the dropdown menu.
      (warning) The Custom Object Class file name including its file path should not exceed 256 characters when you are using Git/Bitbucket as a source control system for maintaining project artifacts.

    5. Custom Action Class: To add a new Qualitia Class:

      1. Click + Add/Edit Object Class next to Custom Action Class to add a custom object class.

      2. It will open Manage Action Object screen with the following options:

        • Technology: This will be default and you cannot edit it.

        • Base Class: This will be default and you cannot edit it.

        • Custom Action Class: Enter an intuitive name for the custom action class that is easy to recognize.

        • Qualitia Class: Enter Qualitia class name that is easy to recognize.

      3. Click Save to continue; otherwise, Discard.

      4. From the Custom Action Class drop-down list, select the newly created or a pre-defined custom object class. The associated Qualitia Class will be selected automatically.

    6. Function Name: Enter an intuitive name for the function that is easy to recognize.

    7. Parameters: You can add multiple parameters by clicking +Add next to Parameter. Once done,enter parameter name, select String or Array as per your preference, and check Mandatory as ON/OFF for all the parameters. You can also change the sequence of the parameters by just dragging them up and down.

    8. Click Save and Launch Code Editor to continue; otherwise, Discard.

  7. You will see an Alert - Custom Action window with a message, click OK to launch the Eclipse IDE.

  8. Import the pre-created Custom Action Java project workspace into Eclipse workspace.
    (info) This is a one-time activity for a project.

    1. To import the pre-created workspace, open Project Explorer, and select Import Project from the context-menu.

    2. On the Import window, under select the General section Maven folder, select Existing Projects into Workspace and then click Next.

    3. In the Select root directory section, click Browse, select <PROJECTNAME>_QASJavaproject and click Finish.
      You will find this directory under Qualitia project path.

  9. In Eclipse IDE, from the Window menu, select Preferences.

  10. Select General > Workspace > select Refresh using native hooks or polling.

  11. Click Apply and Close.

  12. Ensure you do not change the method signature and provide only the method body. Changing the signature in code may break your action in Qualitia.

  13. In the editor, add the custom action code in the provided template for your custom action.

  14. To add the dependent jars, do the following in the order listed:

    1. Add the dependent jar files in the lib folder under the project.

    2. Right-click the Project, point to Build Path, and then select Configure Build Path.

    3. Click Libraries > Add JARs.

    4. Under Jar Selection window, expand the Project folder.

    5. Under the lib folder, select the dependent Jar, and click Ok

    6. Click Apply and Close.

  15. Build the project and close the Eclipse IDE.
    To work this custom action code in the Qualitia automation test cases, you must build the project successfully.
    You can now use this newly created custom action while developing task and test cases in QAS - Client.

...