A new version of Qualitia Automation Studio 7.2.x is now available. We highly recommend you upgrade. Find more details here.

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 3 Current »

In order to map the actions in Eclipse, follow the below steps:
To map the actions in Eclipse:

  1. Log on to the Qualitia and create a project.
  2. On Develop tab, select Objects.
  3. Click Custom.
  4. If the object is of an existing type, and only one action needs to be developed, on the left pane, select a particular object. Right click and select New Class.


 Adding New Object Class
a. Select the base class as set in the Java source file (parent class of Keyword class).
b. Enter the object class name as the name of the Custom Keyword class name.
c. Enter the Qualitia Class name as the fully qualified class name (full package name). If the class is a default package then enter only the class Name.
 

 
5.  If the object is a completely new Qualitia class, on the left pane, selects the appropriate technology. Right click and select New Class. 
Adding New Object Class
a. Enter the object class name as the name of the Custom Keyword class name.
b. Enter the Qualitia Class name as the fully qualified class name (full package name). If the class is a default package then enter only the class Name.
 

6.  Create the object manually for this new Custom class.
7.  Map the Keyword written for this object by selecting the created class.
8.  Select New Custom Action.
 
9.  Enter the Action Name as given in the Java class.
10. Enter the Description and Function Name as given in the Java class.
11. Add the parameters in the Properties window.
a. Do not set the ObjectInfo parameter as given in the Java class. You only need to add the parameters in the same sequence as given in the Java class excluding the ObjectInfo Parameter.
b. Select the argument data type as String or Array. If the argument data type is an Array then in the Java class the parameter type needs to be Object. For example, the action written in Java class is mapped in Qualitia. The parameter ObjectInfo type is not given in Qualitia.
 

 
12. Using custom actions in Test Cases:
a. On Develop > Test Cases select a WebEdit Object.
All the actions for WebEdit including the new Custom Actions will be displayed in the list.
b. Select the Custom Action. The parameters will be displayed.
 

c. If the object is totally a new Object that is not present in Qualitia, then only the new created actions will be shown in the list.
13. The Custom Actions can now be debugged in Eclipse or executed in Qualitia.
14. To debug the Custom Actions, save the Test Case written in Qualitia using a Save As XML option.

  • No labels