Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

You can import your existing set of custom actions into Qualitia. Importing custom actions is simple 3 step process.


 1. Gather or generate all java source files at one place.

You can generate the source code files for the custom actions easily using these commands.

  1. Launch command prompt.
  2. Navigate to the %localappdata%\QualitiaWDClient\app-7.1.0\Dist
  3. Enter the following command:

    java -jar jd-cli.jar "<CLASS_FILE_SOURCE_PATH>" -od "<DESTINATION_FOLDER_TO_SAVE_SOURCE_CODE>"

    C:\Users\<HOSTNAME>\AppData\Local\QualitiaWDClient\app-7.1.0\Dist>java -jar jd-cli.jar "D:\ClassFiles" -od "D:\JavaFiles"
    21:21:06.078 INFO  jd.cli.Main - Decompiling D:\ClassFiles
    21:21:06.095 INFO  jd.core.output.DirOutput - Directory output will be initialized for path D:\JavaFiles
    21:21:06.412 INFO  jd.core.output.DirOutput - Finished with 2 class file(s) and 1 resource file(s) 

    Post executing this command, source code files will be added at the destination folder. You can use them now to build and compile Eclipse project.

 2. Create an Eclipse project and compile the project with all the custom actions.

To create and compile custom action project:

  1. Launch Eclipse and create a new java project using an execution environment as JRE 1.8.
  2. Set the bin folder as an output folder.
  3. Add new folder and name it as lib.
    The complete folder hierarchy will look something like this in the project directory.



  4. Add all the existing custom action files in this directory.
    1. Add all the dependency files in the lib folder. 
    2. Add all the compiled class files in the bin folder.
    3. Add all the java source files in the src folder. 
  5. Compile and build the Eclipse project.
    Actions are now ready to be imported.
 3. Import custom action code in Qualitia Project.

You can import the project existing set of custom actions in Qualitia to share with the other project members easily.

  1. Log on to automation studio as a user with Manage Custom Action Code privileges. 
  2. Navigate to the project in which you want to import the custom action code.
    You will see the notification about importing custom actions on the top.
  3. Click Import.
  4. Provide path to the the Eclipse project which we have created and compiled earlier.
  5. After importing all the custom action files successfully, click Close.
    Eclipse project directory will be copied under Qualitia project path with all the sub-folders mentioned earlier (bin, lib, src, and so forth)
    The Custom Action Repository Path under Configuration Settings will be set automatically to this new directory created under Qualitia Project Path.
  6. In case there are any issues while importing the actions, these will be listed which can be exported in the HTML report.
  7. Refer to the troubleshooting section to resolve the errors.
  • No labels